Live data from Hacker News

Show HN: I finished v5 of a JVM framework I've spent spent half a decade making

javalin.io

41–50 of 139 posts

Re: Show HN: I finished v5 of a JVM framework I've spent spent half a decade making

#41

this is very cool. quick question though - do u have a gradle build setup ? im new to java and saw this problem on spring boot. That you needed to have this bunch of complex directory structures cos of the way java packages worked. for e.g. the test directories were parallel to the src directory, so they could be named with the same package name. for a single file...i can just run java. but it would be nice to see a…

That's not a spring thing, but a java tools convention (having a src and test folder etc). Nothing stops you from doing it differently, but most tools work out of the box if you follow that setup. So better to just do it than having to fight with / configure every part of your pipeline.

Re: Show HN: I finished v5 of a JVM framework I've spent spent half a decade making

#45

Peeking int the docs, it reminds me a little bit of Vert-X. What do you think qbout such a statement?

I respect Vert.x a lot, so I'm flattered, but Vert.x is a huge beast with focus on performance. Javalin is basically a tiny UX layer on top of Jetty. I don't think they are very similar frameworks. Javalin's focus is on being "good enough" all around, but with the best possible developer experience.

Re: Show HN: I finished v5 of a JVM framework I've spent spent half a decade making

#46
post #33

I just wanted to say thank you for your work. The straightforward docs are some the best in my opinion when you want to go from "How do I do ..." to answer. I ended up using Javalin with Kotlin and SQLite to build my wedding website. Most of my projects are lucky to see the light of day, but with a very persistent project manager and a simple lightweight framework, I was able to ship a fantastic product with very lit…

Hey, thank you for using it. Single-page docs are also my favorite, and Javalin/jdbi/SQLite is my goto for quick stuff! > but with a very persistent project manager Your partner? :D

Yep! At least they didn't mind when I was drinking on the job.

Re: Show HN: I finished v5 of a JVM framework I've spent spent half a decade making

#47
post #24
post #6

Javalin is the bomb! I don’t know why Java community likes to make things complicated.

“An idiot admires complexity, a genius admires simplicity, a physicist tries to make it simple, for an idiot anything the more complicated it is the more he will admire it, if you make something so clusterfucked he can't understand it he's gonna think you're a god cause you made it so complicated nobody can understand it. That's how they write journals in Academics, they try to make it so complicated people think you…

Would prefer if this were worded more simply.

Re: Show HN: I finished v5 of a JVM framework I've spent spent half a decade making

#48

Given Project Loom hasn't been available, how does it utilise Virtual Threads already?

If you run this on JDK19 with *--enable-preview*, Javalin will use Virtual Threads for the Server ThreadPool (as well as all other ThreadPools it has).

Re: Show HN: I finished v5 of a JVM framework I've spent spent half a decade making

#49
post #44

Given Project Loom hasn't been available, how does it utilise Virtual Threads already?

Project Loom is in preview, and far from available. As far as I can see, Javalin doesn't make use of virtual threads yet.

It does :)

We use reflection to build the Virtual Thread Factory if the user has Loom enabled in their enviroment: https://github.com/javalin/javalin/blob/master/javalin/src/m...

Post reply on HN