Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
vips7L
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
39 ms
·
781.
▲
by
vips7L
2y ago
I haven’t really run into any libraries wanting reflective access at all. All of our applications are on Java 21, except for one that relies on 8 because it uses jdk internals. What ones have you ran into? Jackson doesn’t even require you t
782.
▲
by
vips7L
2y ago
I thought this was the case but actually couldn’t find any documentation on it. The best I could find was that the vm is aware it is in a container and will correctly set the heap %’s based on the containers memory. It still looked like it
783.
▲
by
vips7L
2y ago
It’s valid criticism because you do need to think about it less in other runtimes, but it doesn’t always just work. There’s a reason why GOMEMLIMIT and other knobs for high allocation programs were introduced. IIRC .NET just sets it to 75%
784.
▲
by
vips7L
2y ago
In my experience I don’t see many people use final classes. Mostly just final fields.
785.
▲
by
vips7L
2y ago
Doens't jpackage still just make installers and not a single binary you can just run?
786.
▲
by
vips7L
2y ago
They are working on this with Project Leyden. https://cr.openjdk.org/~jiangli/hermetic_java.pdf
787.
▲
by
vips7L
2y ago
I believe they were calling the function tiny, which it is, it’s 27 lines.
788.
▲
The Infamous Gnome Shell Memory Leak (2018)
(feaneron.com)
1 points
by
vips7L
2y ago
|
0 comments
789.
▲
by
vips7L
2y ago
GJS is why I went back to Windows. The interpreter would leak memory.
790.
▲
by
vips7L
2y ago
Its not a strange reply at all. _All_ of those languages are cheating. Those benchmarks are junk because they don't test implementations in the language.
791.
▲
by
vips7L
2y ago
Im sorry, but calling out to C libraries — regardless of the language — is cheating. Just because everyone in the competition is on steroids doesn’t mean you got there legitimately.
792.
▲
by
vips7L
2y ago
20% is frequently. And calling out to C is cheaty.
793.
▲
by
vips7L
2y ago
Most the Debian benchmarks for C# are cheaty too. They frequently just call out to C libraries rather than use something implemented in the language.
794.
▲
by
vips7L
2y ago
I have friends who work in InsuranceTech and they use satellite images of houses when someone apply for home owners insurance. They've said it flags people with trampolines all the time.
795.
▲
by
vips7L
2y ago
In React I just use Formik and Yup to make forms painless. I've yet to discover a better way.
796.
▲
by
vips7L
2y ago
You can't compare 10 years ago Java to current Go. 10 years ago was Java 8, we are currently on Java 23. The performance difference is massive between these 2 runtimes especially between the available garbage collectors. Hazelcast has
797.
▲
by
vips7L
2y ago
Sometimes barrier to entry is good. For example, both npm and cargo struggle with package name squatting and malicious packages that are miss spellings of common packages.
798.
▲
by
vips7L
2y ago
Part of the reason why Haskell never took off. This stuff is incomprehensible.
799.
▲
by
vips7L
2y ago
class MyException extends Exception { @Override public Throwable fillInStackTrace() { return this; } }
800.
▲
by
vips7L
2y ago
I have a ton of opinions on exceptions too, mostly because I love them. FWIW you can override the stack trace collecting behaviour of Java exceptions. Not collecting the stack trace makes exceptions really fast and thats actually how Scala
801.
▲
by
vips7L
2y ago
Exceptions are great. Whats not great is not having them expressed in the type system via checking. I think Kotlin's greatest mistake is not improving upon checked exception handling. Though it looks like they're going to be movin
802.
▲
by
vips7L
2y ago
It feels so lambda and extension function heavy.
803.
▲
by
vips7L
2y ago
Sounds like the new “capabilities” stuff in Scala.
804.
▲
by
vips7L
2y ago
I saw this cool metro theme for JavaFX a while back: https://www.pixelduke.com/java-javafx-theme-jmetro/
805.
▲
by
vips7L
2y ago
> having just switched over from CMS (!) This is really interesting. CMS was removed in Java 14 after being replaced by G1GC in Java 9. They were probably running an antiquated Java 8 or 11 runtime. So that means that in 2022 they were e
806.
▲
by
vips7L
2y ago
Kotlin is a Jetbrains product, not a Google one.
807.
▲
by
vips7L
2y ago
I agree its desperately needed. But we also desperately need investment in the language itself (not just the runtime).
808.
▲
by
vips7L
2y ago
Unfortunately I think we're currently in a state where all resources are going towards project Valhalla. Everything seems to be on hold until they get that out the door.
809.
▲
by
vips7L
2y ago
Records are structural types. Null restricted types are in draft: https://openjdk.org/jeps/8303099
810.
▲
by
vips7L
2y ago
Reading more about how invokedynamic works, it appears that if your lambda doesn't capture it shouldn't allocate it more than one time.
More ›