Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
SureshG
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
SureshG
5mo ago
New GraalVM project Crema now supports runtime class-loading. Here's a full Clojure runtime built with GraalVM native-image + Crema: https://github.com/borkdude/cream
2.
▲
We Built ExoQuery
(exoquery.com)
1 points
by
SureshG
10mo ago
|
0 comments
3.
▲
by
SureshG
2y ago
> That means that Java programmers have to be very careful when writing code From JEP 444: The scheduler does not currently implement time sharing for virtual threads. Time sharing is the forceful preemption of a thread that has consumed
4.
▲
by
SureshG
3y ago
>"write once, run anywhere"?? You know that the code compiled using future version of java won' work in older versions..rt? I would like to know if any other programming language does that kind of thing. > t should be a
5.
▲
by
SureshG
3y ago
For java/Kotlin, we are using JTE ( https://jte.gg/#getting-started ), pretty nice build tooling and IDE support to generate pre-compiled templates without additional code generation steps.
6.
▲
by
SureshG
3y ago
>An average JVM needs 500+ MB of RAM We are running small services with heap size under 100 MBs and is absolutely possible with new JVM versions. If you want ever smaller without JIT, native image is also an option. Moreover in most scen
7.
▲
by
SureshG
4y ago
> I don't see the advantage to this over async/await style programming Harmonious with the platform (jvm) which is based on threads, better stack-traces, accurate profiling info and simpler programming model (without adding asy
8.
▲
by
SureshG
4y ago
Modern java (check this - https://www.infoq.com/articles/data-oriented-programming-jav... ) is really not that bad. Golang is like far more verbose than even JDK 8 (9 old release) for most parts. The issue is, many java
9.
▲
by
SureshG
4y ago
> The Go build tools fit your analogy better. Go uses two build tools for any non-trivial projects. One write in go.mod and another in Make :D (see this - https://github.com/kubernetes/kubernetes/tree/maste
10.
▲
by
SureshG
4y ago
Yes, IMO game changing for java. Read this JEP - https://openjdk.org/jeps/425 Here is a simple echo server running on Virtual thread (using same old blocking APIs, handle 5m persistent connections) - https://
11.
▲
by
SureshG
4y ago
https://micronaut.io/ https://spring.io/projects/spring-boot https://quarkus.io/ For Kotlin: https://ktor.io/
12.
▲
by
SureshG
4y ago
Check compose mpp, uses Kotlin and Skia under the hood. Really good performance overall. https://www.jetbrains.com/lp/compose-mpp/
13.
▲
by
SureshG
4y ago
> because there’s nothing better! You should check out compose multi platform - https://www.jetbrains.com/lp/compose-mpp/
14.
▲
by
SureshG
4y ago
May be by next LTS (java 21 - 2023 Sep) :D
15.
▲
by
SureshG
5y ago
> None with the same performance characteristics, Most JVM languages (Kotlin/Scala/Clojure) including Java :) In fact kotlin/java has better peak performance than Go. Main advantage for go is the reduced memory footprint.
16.
▲
by
SureshG
5y ago
Yes, nerdctl compose will work for most of the use cases. Check this compatibility guide - https://github.com/containerd/nerdctl/blob/master/docs/compo...
17.
▲
by
SureshG
5y ago
JDK is modular now and ecosystem is moving towards jlinked application. So no need for jdk on the target machine.
18.
▲
by
SureshG
5y ago
Probably once ZGC gets the generation support ( https://github.com/openjdk/zgc/tree/zgc_generational ) which will reduce the memory footprint.
19.
▲
by
SureshG
5y ago
jfyi: here is the latency GC numbers (JDK17) - https://kstefanj.github.io/2021/11/24/gc-progress-8-17.html . The experience is vastly different compared to an 8 year old jdk version (jdk 8)
20.
▲
by
SureshG
5y ago
>ton of the bullshit abstractions Not sure how that's the Java's problem. Most of these abstraction come older frameworks. You can have these same abstraction/design pattern in Go also.
21.
▲
by
SureshG
5y ago
That's case for virtual threads also. It uses ForkJoinPool.ManagedBlocker to add additional threads. "File I/O is problematic. Internally, the JDK uses buffered I/O for files, which always reports available bytes even wh
22.
▲
by
SureshG
5y ago
There are two more intersting features that work with Virtual threads, Structured Concurrency - https://openjdk.java.net/jeps/8277129 Scope Locals - https://openjdk.java.net/jeps/8263012
23.
▲
by
SureshG
5y ago
Yeah that decision make sense for multi platform. Suspending functions will work on JS and Kotlin Native.
24.
▲
by
SureshG
5y ago
Is this the case very large go heaps? ZGC claims sub ms pause for TB heap size.
25.
▲
by
SureshG
5y ago
Primitive types are not in java 17. Hoping to preview it on 18
26.
▲
by
SureshG
5y ago
https://micronaut.io/ - low memory foot print, AOT first approach, catch most of the errors at compile time and highly productive.
27.
▲
by
SureshG
5y ago
Does playwright work out of the box in CI systems (github actions) or we have to explicitly install the browser binaries? I am planning to use playwright-java ( https://playwright.dev/java/docs/intro )
28.
▲
The Modern Java Platform – 2021 Edition
(jamesward.com)
1 points
by
SureshG
6y ago
|
0 comments
29.
▲
by
SureshG
6y ago
You can do underscore import and local variable to workaround this limitation and I have seen that in the code.
30.
▲
by
SureshG
6y ago
> with far less complexity by using an AOT compiled language. Or use reflection free frameworks like Micronaut or Quarkus and enjoy the same productivity. The culprit here is no java, the spring framework.
More ›