Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tipsee
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
tipsee
7mo ago
I've been working on this since 2017, the last release has been much slower than usual due to changing circumstances in my personal life, so very happy to finally get it out!
2.
▲
Show HN: I just released v7 Javalin, a JVM web framework
(javalin.io)
6 points
by
tipsee
7mo ago
|
1 comments
3.
▲
Javalin v6 has been released
(javalin.io)
2 points
by
tipsee
3y ago
|
0 comments
4.
▲
by
tipsee
4y ago
Yes :)
5.
▲
by
tipsee
4y ago
If I would be using something like `ctx.result(inputStream)` - would it block the [lightweight] thread until all data is written. Or would the handler return and the data transfer happen in the background? There is no difference between O
6.
▲
by
tipsee
4y ago
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.
7.
▲
by
tipsee
4y ago
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
8.
▲
by
tipsee
4y ago
Fixed, thank you :)
9.
▲
by
tipsee
4y ago
Thank you! The Vue support is the thing in Javalin I'm the most proud of. There are a hundred web frameworks for the JVM, but none of them have anything close to the Vue support Javalin has. Some people think it's trash, but for m
10.
▲
by
tipsee
4y ago
> 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 addi
11.
▲
by
tipsee
4y ago
Rebuild and restart. Javalin itself starts in milliseconds (the test suite starts and stops servers across 600+ tests in less than 10 seconds). If you run in debug mode in IDEA, or use some hot-swapping tool like dcevm or jrebel, you won&#x
12.
▲
by
tipsee
4y ago
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 recomme
13.
▲
by
tipsee
4y ago
Hard disagree on needing a DI library, manual DI is great.
14.
▲
by
tipsee
4y ago
I mean, it sort of doesn't? Coroutines is a whole concept, Virtual Threads can in most cases just replace java.lang.Threads, which is how it's implemented in Javalin. We just swap out the OS Threads for Virtual Threads.
15.
▲
by
tipsee
4y ago
I've been dogfooding it hard, which is a great incentive to keep working on it. I think we have 20 Javalin projects where I work. It's also gotten pretty popular lately (3m downloads last 12months), which of course helps a lot :)
16.
▲
by
tipsee
4y ago
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...
17.
▲
by
tipsee
4y ago
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).
18.
▲
by
tipsee
4y ago
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
19.
▲
by
tipsee
4y ago
Yeah, no, he was 100% correct, I was just looking at the wrong snippet. It's been fixed now :)
20.
▲
by
tipsee
4y ago
> Closures defined only by the arrow are a Java thing... or so I thought. :D In fairness, I think you did copy the Java version. There's a little switch in the code boxes where you can toggle the language, if you switch to Kotlin yo
21.
▲
by
tipsee
4y ago
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
22.
▲
by
tipsee
4y ago
I'm not super sure what you're asking, but Javalin doesn't care at all about your directory structure. You can add it as a dependency to any existing gradle project you have, and import it like any other Java library (like ja
23.
▲
by
tipsee
4y ago
Both inspired by Sinatra, the OG :)
24.
▲
by
tipsee
4y ago
Seems to compile fine here, what's the issue? Edit: I was looking at the wrong snippet, the offending snippet has been fixed.
25.
▲
by
tipsee
4y ago
Javalin offers way less, it's more or less just the web routing layer. No databases, no ORM, no config loading, etc.
26.
▲
by
tipsee
4y ago
The good old days!
27.
▲
by
tipsee
4y ago
Indeed it is! May I asked what you switched from?
28.
▲
Show HN: I finished v5 of a JVM framework I've spent spent half a decade making
(javalin.io)
377 points
by
tipsee
4y ago
|
136 comments
29.
▲
Javalin web framework 4.0 just released
(javalin.io)
8 points
by
tipsee
5y ago
|
1 comments
30.
▲
OpenAPI/Swagger specs (and clients for specs) using Javalin and Maven
(javalin.io)
1 points
by
tipsee
7y ago
|
0 comments
More ›