logoalt Hacker News

didiplast Wednesday at 6:06 PM2 repliesview on HN

It’s possible to have something like Express, take a look at Javalin.

But Java problem is not the mechanics, it’s that the community doesn’t want nice things.


Replies

brabellast Wednesday at 8:06 PM

Javalin was inspired by https://sparkjava.com/ which was inspired by Sinatra (which I think also inspired Express?).

Anyway, libraries like this were only really feasible after Java 8 because of the reliance on lambdas. Having to instantiate anonymous nested classes for every "function" was a total pain before that.

morshu9001last Wednesday at 6:56 PM

Kinda now that Java has lambdas, but still async in that disn't work as easily as JS, which is important. This is only recently starting to change with Project Loom.