Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
_old_dude_
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
_old_dude_
13d ago
All Java GCs are generational collectors, they reduce the marking time (for young collection) by tracking if there is a reference from the old generation to the new generation. The benchmark creates an array in the old generation (by being
2.
▲
by
_old_dude_
13d ago
Nice article. I think this is similar to the way Kotlin implements coroutine. I believe Kotlin goes to the extra miles to also capture parts of the stack frames when creating the Continuation object so even when the runtime resume the conti
3.
▲
by
_old_dude_
26d ago
Just here to say that Java as interruptible channels since the beginning of 2000. You can interrupt a blocking IO operation with either interrupt() or close(). https://docs.oracle.com/en/java/javase/25/do
4.
▲
by
_old_dude_
1mo ago
It's not hate, it's not wanted to be associated with: see https://victorwynne.com/dhh/
5.
▲
by
_old_dude_
3mo ago
For me, the difference is that if methods are inlined, the compiler is still required to do a copy for structs but not for value classes. I do not know how this is called.
6.
▲
by
_old_dude_
3mo ago
I think pass by copy is a consequence of being modifiable. The other solution is to stack allocate and pass a pointer but as i said, unlike in C#, i do not think it's possible to do that in Java. In Go, you can stack allocate but when
7.
▲
by
_old_dude_
3mo ago
The article has a section about that. For me, a struct in C/C# can be modified and is passed by copy while a value class can not be modified and is passed by value. I do not think you can do stack allocation in Java.
8.
▲
by
_old_dude_
3mo ago
The usual GC tradeoff is between memory and CPU performance. If you set the memory max high, the GC will run less often, you get less pause time. So I do not understand why it's a surprise that minimizing the pause time requires more m
9.
▲
by
_old_dude_
3mo ago
I agree. And the next section is very clear that they want to kill the project. > For example, rather than proposing one single concrete JIT implementation, > it may make more sense for the PEP to describe a JIT infrastructure t
10.
▲
by
_old_dude_
4mo ago
You need more than that for the example with setTimeout(). It requires to be able to freeze the stack and then go back later. You need stackful coroutine (like goroutine) for that.
11.
▲
by
_old_dude_
4mo ago
If you do not block 3rd party harness, people will discover that a good harness is more important than a good model.
12.
▲
by
_old_dude_
4mo ago
Yes, and let's not forget Stephen Elop's 'Burning Platform' Memo https://www.wsj.com/articles/BL-TEB-2031
13.
▲
by
_old_dude_
5mo ago
Parser generators are great in Python (Lark for me) so you can iterate fast and get a runtime spec of your grammar. A hand-written recursive descent parser is something you do later when you start to industrialize your code, to get better e
14.
▲
by
_old_dude_
5mo ago
In C#, all instances have a class, so there is already a discriminant, the class itself. In the article, the example with the switch works because it switches on the class of the instance.
15.
▲
by
_old_dude_
9mo ago
In Scala 3, the inline keyword is part of the macro system. When inline is used on a parameter, it instructs the compiler to inline the expression at the call site. If the expression is substantial, this creates considerable work for the JI
16.
▲
by
_old_dude_
10mo ago
There is a modern equivalent based on Linux criu. https://github.com/CRaC/
17.
▲
by
_old_dude_
10mo ago
Yes, the version in Java is clearly less elegant. Java has map+lambda and compareTo (<=>) but no tuple assignemnt and no splat. record AppVersion(int major, int minor, int patch) implements Comparable<AppVersion> { p
18.
▲
by
_old_dude_
1y ago
For the record (sorry), I believe C# uses the clone operation because records support inheritance. For me, this is where lies the design flaw, trying to support both inheritance and be immutability at the same time.
19.
▲
by
_old_dude_
1y ago
> Libya was bombed primarily by France and then other NATO countries for no good reason https://en.wikipedia.org/wiki/Alleged_Libyan_financing_in_th...
20.
▲
by
_old_dude_
1y ago
And AISQL is a thing ... https://quickstarts.snowflake.com/guide/getting-started-with-cortex-aisql/index.html I'm glad i'm retired.
21.
▲
by
_old_dude_
1y ago
Java Almanac has a list of all features https://javaalmanac.io/features/ And the main page let you compare API versions https://javaalmanac.io/
22.
▲
by
_old_dude_
1y ago
> at least I know that the phone will be supported for at least 4 years It's 4 (mid) to 7 years (flagship) for Samsung. https://www.androidauthority.com/samsung-android-updates-114...
23.
▲
by
_old_dude_
1y ago
OOP is great for libraries but leads to overly complex codes for applications. For a long time, Java was like, every classes is a library, i do not think it's a failure of OOP, it's a failure of Java. But I'm optimistic, I ch
24.
▲
by
_old_dude_
1y ago
I've just tried to change a field of an instance of a record using reflection, and it's not possible, even with setAccessible(true).
25.
▲
by
_old_dude_
1y ago
In Java, constants are declared as static final. static final Complex CONSTANT = new Complex(1, 2); If you want a lazy initialized constant, you want a stable value static final StableValue<Complex> STABLE_VALUE = StableVal
26.
▲
by
_old_dude_
1y ago
In JavaScript, a 'let' inside the initializer of a for loop is captured by value, all the others are captured by reference. I think it's fair to call that semantics "implicit".
27.
▲
by
_old_dude_
1y ago
Parroting something i have heard at a Java conference several years ago, tail recursion remove stack frames but the security model is based on stack frames, so it has to be a JVM optimization, not a compiler optimization. I've no idea
28.
▲
by
_old_dude_
2y ago
I'm sympathetic to the points being made but the argument that Oracle does not have its own JavaScript runtime does not hold. An OracleBD is able to execute triggers written in JavaScript since quite some time. see https://b
29.
▲
by
_old_dude_
2y ago
Is their a design document, somewhere about this new library ? The jep does not explain how to prepare to new Java bytecodes and future enhancements. Am i suppose to only run with the latest version of Java if i want to use that library ?
30.
▲
by
_old_dude_
2y ago
> the default is trivial, it just returns the object's address This was trivial a long time ago. Now, all Java GCs move objects in memory.
More ›