spar mc

Greenhorn
+ Follow
since Jul 30, 2012
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by spar mc

Upto version 1.3 JavaFX worked with JOGL. Now they have their own OpenGL Wrapper.
8 years ago
We often hear that language X saw failures in this old language Y over the years and corrected them. Long ago, Java was replacing C/C++, now Ceylon/Scala are being proposed as Java alternative. This cycle never ends. And its very good that this cycle goes on, it will bring us more languages. There is no need to cling to a technology or be religious about it.

Software systems sell not because they are in a language with pointers, they sell because they work well in real world, are secure and scalable.

As far as Java is concerned, JVM has been the real winner over all this time. It is the key platform of abstraction that has provided so much freedom to developers. And there is plenty room for Java to adapt as long as the JVM concept holds good in the market. Recent releases of Java do point in this direction. May be there is a new Java in the making ;) . As long as Java evolves well with its time, it will continue to hold a good market share.
8 years ago
You cannot guarantee the order of thread's execution when the run in parallel, CPU gives its time to each thread as directed by Operating System, you cannot control that.

The good option is already mentioned in a reply, use a boolean flag.

The technologies you mention cater to different aspects of an application and cannot replace each other. There is no good comparison between them.

JOGL: Java alternative to OpenGL. Open Graphic language is used to tell a graphic card hardware to draw graphics. Graphics card driver is written using C/C++ . Java programmer cannot call those C/C++ routines so easy. ( Of course Java has a huge Graphics library and you can draw pretty much anything on screen using pure Java. But it is a tedious job and will run slow on your CPU, making no use of Graphics hardware). That's where JOGL comes to rescue, it translates your Java instructions to OpenGL instructions that your Graphics hardware understands.

JavaFX : Java alternative to Flash. Its a newer platform. It's an effort to increase Java's grip on client side where Flash is used for almost all interactive web content. Its similar to flash in design but is more organized. It uses Java for programming. It allows non changing UI elements to be described in XML files. The API contains advanced functionality like shapes, transforms, animations special effects etc. New JRE's now have JavaFX runtime so it runs in your browser like flash. JavaFX will have strong competition from HTML 5 and flash, if it ever made it to mainstream web front-ends.

JavaFX vs JOGL : this is not a sensible comparison, JavaFX uses JOGL for hardware accelerated graphics.

JavaEE : Is Java API for enterprise, Server side, You don't use JavaFX and JOGL here.
JavaSE: Is Java API for general purpose desktop apps, browsers, front-end. You use JavaFX and JOGL here.
9 years ago
Good information.
Most of the time iterating is the only option. toArray() method is indeed useless in 90% situations.
9 years ago