What this allows you to do is build flows around pausing and saving the state of execution, and resuming it with all variables captured at a later time, which opens up neat possibilities.
With Loom on the JVM natively this in THEORY should be possible but there is a lot of complication here.
There was a good post on this on /r/java with Ron Pressler from Oracle posting about why this is complicated 1 month ago:
"Yet another delimited continuations implementation and why Project Loom is a bit disappointing"
https://www.reddit.com/r/java/comments/10889p1/yet_another_d...Steele needs to step in here and demonstrate some leadership. He invented Scheme and is involved in Java's day to day engineering decisions, he should be more than familiar with the problems that arise when you let programmers write continuations instead of implementing it at the compiler level.
https://github.com/gbevin/rife2
Including:
> RIFE2 has features that after 20 years still can't be found elsewhere: web continuations, bidirectional template engine, bean-centric metadata system, full-stack without dependencies, metadata-driven SQL builders, content management framework, full localization support, resource abstraction, persisted cron-like scheduler, continuations-based workflow engine.
Doesn't appear to have websocket support, though.
It's great that you see the similarities with Spark, I think that's a great framework!
Given how much everyone around here likes to hate on IBM, while not even being aware of how OpenJ9 works, the alternative implementations for IBM mainframe and micro computers and so forth, it would hardly make a difference versus Oracle.
Sun, Oracle and IBM were the main triumvirate pushing Java into the market.
Every Java developer that uses OpenJDK or a distribution based on it, uses Oracle code.
It is about 80% of Oracle employes that put in the effort since Java 6 to bring the ecosystem forward.
Earlier licensing practices were not much better; my company did a 'hard purge' a few years ago and everything using Oracle JDK+RDBMS is now running on OpenJDK with a PostgreSQL backend.
Don't know what rooting for Google and/or IBM would help. All companies that size do have their shady side and will sometimes do questionable things. They didn't get to be so big just by being nice...
They're all from Oracle, even the ones you download from an Amazon website. Those providers merely build and package OpenJDK (which is the name of Oracle's implementation of Java). What you mean is that they're not using the distribution provided to Oracle support subscribers.
Whilst Oracle does have its issues what is it doing wrong here? As per other comments you don't have to use Oracle's JDK and if you do you're buying support.
Oracle seems to be this big, complicated enterprise oriented corporation. But they’re also stewards of Java and had kept the language evolving with impressive stability and compatibility guarantees.
There are definitely firms that I don’t want to rely on for ethical reasons. They accumulated long lists of malpractices and exploitation. One in particular is very popular around here.
What am I missing here?
So are you suggesting to be stuck using Java 6 version?
Why do i need to put some code inside another superficial class here ?
There's a lot more to it than obsessing over a single line of boilerplate code...
Personally, it's nice from an operations perspective. Makes debugging performance problems a lot easier.
Nope.
> Why do i need to put some code inside another superficial class here ?
Which class is the superficial class?