Live data from Hacker News

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

javalin.io

91–100 of 139 posts

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

#91

Earlier quoted context omitted.

I like Jetty. Javalin is nice for Kotlin but Jetty + java has worked well for me.

What do you use for routing and DI? do you use Jetty handlers or the servlet API?

Dropwizard is cool if you write REST microservices. It uses embedded jetty, JAX-RS, Jackson, metrics, etc.

As far as I know it's inspiration for Spring Boot, and it's simpler and ready to use on production.

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

#92
post #80

Congratulations! This is great! Java deserves its comeback among the wave of nu-programming we are going through.

> Java deserves its comeback among the wave of nu-programming we are going through. What is nu-programming? And why would Java deserve a comeback?

>nu-programming

I made that one up.

>And why would Java deserve a comeback?

Java is an extremely mature piece of technology, and having used it on the enterprise, I can attest that few things come close on flexibility and stability. Also, functional languages on top of the JVM (clojure, kotlin, scala) are very interesting on their own. Java deserves some love from this new wave of paradigm changes like "write-once-run-anywhere" v2.0, monadic programming, serverless functions, etc...

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

#94
post #71

Earlier quoted context omitted.

Disagree on using a lib? cause I guess doing manual DI is still DI.

Yes, disagree on needing a library. The way your comment was worded made it seem to me like you were saying all serious Java applications need a DI library, I'm sorry if I misunderstood you. I prefer doing my ID manually, so no recommendation :)

Could you be more explicit, perhaps with an example? Do you simply mean you prefer function/constructor parameters over DI?

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

#95
post #88
post #84

Earlier quoted context omitted.

> Just a minor nitpick (for those who care about the details of OpenJDK's development): virtual threads are not Project Loom, but rather one of the JEPs contributed to the JDK by Project Loom. Thanks for clearing that up. Would adding a "from" be sufficient? and it uses Virtual Threads (“Project Loom”) by default and it uses Virtual Threads (from “Project Loom”) by default

Yeah, from Project Loom (no need for quotes) would be better, but even the current usage has become colloquial and is okay. :)

Fixed, thank you :)

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

#96

Some quick questions: - are you using an already-existing HTTP engine, like Jetty or Tomcat? - how do virtual threads fit into a web framework? - do virtual threads make debugging more difficult? (A more general JVM question, I suppose) - any performance / readability benefit, or just a coolness factor?

are you using an already-existing HTTP engine, like Jetty or Tomcat?

Yes, Javalin is built on top of Jetty.

- how do virtual threads fit into a web framework?

Most JVM web frameworks (Jetty included) have a thread based request lifecyle (one thread handles one request from beginning to end). The java.lang.Threads are extremely expensive (~1mb memory), while Virtual Threads are very cheap (~0mb memory). We also have another ThreadPool for JSON streaming, and one for writing async responses. Using Virtual Threads for these things reduces overall memory pressure.

- do virtual threads make debugging more difficult? (A more general JVM question, I suppose)

Not that I know, but I've never used this in production myself.

- any performance / readability benefit, or just a coolness factor?

The alternative here is java.lang.Threads, so primarily the memory footprint. There is no readability difference. When developing, you don't see this at all.

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

#97
post #90

Congrats on v5. Have you tried it yet with GraalVM and native compilation? Any gotchas?

Thanks! We had some interest in running Javalin on GraalVM in the past, but no one has updated the tutorial in many years. It used to work though, so I bet it still would, if you really wanted it to.

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

#99

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…

just wondering, what did you use SQLite for on a wedding website?

I used PostgreSQL for my wedding website. People could RSVP, say how many were coming, volunteer for support roles since we did too much of it ourselves, etc.

It was overkill and I loved it.

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

#100
post #78

Congrats on the release! I reviewed Javalin lately and it was high on my list. We use quite a bit of Kotlin and look for a framework. I really dislike the magic that annotations bring to most popular Java frameworks (and Hibernate). I prefer most is just code". Kotlin helped us a lot in making our code more type safe, especially the KProperty way of referring to methods made a difference. Though I ended up leaning to…

> ...would anyone with more knowledge compare the two (Javalin and KTor)?

I'd love to hear more on this as well. While I've done some minor stuff with Ktor, because JetBrains, I too would love some insight related to these as well.

Post reply on HN