Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
randombytes6869
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
31.
▲
by
randombytes6869
6y ago
Vert.X is a relatively light layer on top of Netty and it is quite nice to work with. Spring WebFlux is also built on top of Netty, and missing some benchmarks, but I have no reason to think it would perform poorly. Its very easy to use for
32.
▲
by
randombytes6869
6y ago
This sucks so hard. Most Java libraries are planning to drop support for Java 8 when Java 17 hits LTS. This will completely divide the language into two, one for Android and the other for everything else. Google could just run OpenJDK on ph
33.
▲
by
randombytes6869
6y ago
This is exactly what newer versions of Java allow you to do. The problem is, nobody does it. I really like C# as a language, its better than Java in nearly every way. But this is a rare case where C# is implementing a feature Java has had f
34.
▲
by
randombytes6869
6y ago
> For example, the toString/hashCode/equals methods of record types (that are being added with Java 14). Are all generated at runtime via indy (Invoke Dynamic) instead of generating the bytecode for them at compile-time. Didn&#
35.
▲
by
randombytes6869
6y ago
Unfortunately I have doubts. This is one of the few features copied from Java instead of the other way around. You can pre-process code in Java and generate classes at build time instead of reflecting, but I know of just a handful of librar
36.
▲
by
randombytes6869
6y ago
C# and Java are both guilty of this. I don't think generators will help nearly as much as hoped, because Java has the same problem even though it supports build time code generation through Annotation Processors for like over a decade,
37.
▲
by
randombytes6869
6y ago
reflection. Same problem Java has. Too many libraries fiddling with the code at runtime. JS is also exposed to this. Some libraries can be shaken but I've always ran into random things breaking when trying it.
38.
▲
by
randombytes6869
6y ago
I remember reading about this in Java world a while back. To maintain safety you need to validate all the bytecode on load, so you can't really pre-cache it. Newer versions of Java use "class data sharing", but this only cach