Live data from Hacker News

Rife Is a Framework Experiment

rife2.com

31–39 of 39 posts

Re: Rife Is a Framework Experiment

#31

There are a huge set of web frameworks in Java that have the same example as shown on this site; I have no idea how this differs from, say, https://ratpack.io or https://sparkjava.com . This really needs some key features on the site to sell it.

Thanks for reminding me that I've been neglecting the main site. I added a few very visible cards of some of the key features and split out a more comprehensive list into bullet points as opposed to the previous long paragraph.

It's great that you see the similarities with Spark, I think that's a great framework!

Re: Rife Is a Framework Experiment

#32

There are a huge set of web frameworks in Java that have the same example as shown on this site; I have no idea how this differs from, say, https://ratpack.io or https://sparkjava.com . This really needs some key features on the site to sell it.

The major difference that I seem to be able to find digging through the docs/wiki is that in RIFE2, "continuations" are a first-class feature of the framework and the framework was built with these in mind.

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...

Re: Rife Is a Framework Experiment

#33
post #5

I thought "modern Java" means classless ? Why do i need to put some code inside another superficial class here ?

Are you thinking of JavaScript? In Java you can’t even write hello world without a class.

Soon you will: https://openjdk.org/jeps/8302326

Re: Rife Is a Framework Experiment

#34
post #2

It’s always nice to see full-stack, batteries included frameworks. However, whenever I see Java, I can’t help but think about Oracle and it turns into a very unpleasant feeling.

As a professional developer that only works on Java I hated the fact that Oracle bought Sun. I was rooting for IBM or Google. If you use the Oracle JDK; yes you MIGHT need to pay money depending on what you use of it. There are around 10 (?) different providers of Java Software Developer Kits available all the others are free. I know no Java developer that actually uses the one from Oracle; and since I am a consultan…

There are many other vendors who offer JDK. We have been using Amazon Corretto JDK in production pretty much since the launch. Didn't face any issues.

Re: Rife Is a Framework Experiment

#35

There are a huge set of web frameworks in Java that have the same example as shown on this site; I have no idea how this differs from, say, https://ratpack.io or https://sparkjava.com . This really needs some key features on the site to sell it.

The major difference that I seem to be able to find digging through the docs/wiki is that in RIFE2, "continuations" are a first-class feature of the framework and the framework was built with these in mind. 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 nati…

Do Java programmers dream of callback hell?

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.

Re: Rife Is a Framework Experiment

#36

There are a huge set of web frameworks in Java that have the same example as shown on this site; I have no idea how this differs from, say, https://ratpack.io or https://sparkjava.com . This really needs some key features on the site to sell it.

There's more detail in the readme on GitHub:

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.

Re: Rife Is a Framework Experiment

#37
post #25
post #15

Earlier quoted context omitted.

Only if by "modern Java" you mean Kotlin. C# has top-level functions and even top-level code these days, but it evolves a lot faster.

When Kotlin ships with their own JVM replacement, we might think about calling it "modern" Java.

I did not mean suggest that it is one. But many people outside of the ecosystem seem to treat it this way after Google started promoting it, which would explain OP's confusion.

Re: Rife Is a Framework Experiment

#38
post #24
post #14

Earlier quoted context omitted.

Sun did release their Java implementation under GPL in 2006. There are lots of OpenJDK builds from different companies so you don't have to touch anything 'Oracle' to use Java.

Except the tiny detail that OpenJDK code is mostly written by Oracle anyway. So are you suggesting to be stuck using Java 6 version?

So a for loop written by those evil Oracle fingers is different than one written by some majestic employee of a virtuous company that saves the World on a weekly basis like a child’s cartoon?

Java is a tool that started long before Oracle acquired Sun, it’s open source and actually more open than most languages due to their governance and other powerful players involved.

Re: Rife Is a Framework Experiment

#39
post #24
post #14

Earlier quoted context omitted.

Sun did release their Java implementation under GPL in 2006. There are lots of OpenJDK builds from different companies so you don't have to touch anything 'Oracle' to use Java.

Except the tiny detail that OpenJDK code is mostly written by Oracle anyway. So are you suggesting to be stuck using Java 6 version?

The OpenJDK project releases all Java code under a GPL license. You can make use of Java 19 without having any kind of relation with Oracle.
Post reply on HN