Viewing profile — haglin
haglin
HN member- Joined
- Wed, Sep 06, 2017, 11:25 PM UTC
- HN karma
- 114
- Public activity
- 63 items
- HN profile
- View on Hacker News ↗
About haglin
No profile information was provided.
Recent public activity
-
comment
Comment #48805881
I work on OpenJDK, so I may be biased, but I’ve also found that JFR works really well with LLMs. $ java -XX:StartFlightRecording:maxsize=10M,filename=dump.jfr -jar app.jar $ jfr vi…
-
comment
Comment #45756392
I find inheritance works best when you model things that don't exist in reality, but only as software concepts, for example, an AbstractList, Buffer or GUI component.
-
comment
Comment #45380740
It would be in the "Files changed" section on GitHub, not in the git history. If you don't want to see the context, you can turn it off.
-
comment
Comment #45380540
Splitting up a PR is a lot of work, especially if you want each commit to compile, but it would be great if you could categorize changes using 5–10 colors and then have checkboxes …
-
comment
Comment #43772642
Yeah, Windows 2000 was probably the best operating system Microsoft ever produced. It had no crashes, a snappy/intuitive/sleek user interface, and DirectX support for games. I am c…
-
comment
Comment #43651478
Since JDK 11 (released in 2018). "Launch Single-File Source-Code Programs" https://openjdk.org/jeps/330
-
comment
Comment #41620360
JFR only samples running Java methods. I would guess at least some of the bottlenecks are in hardware, the operating system or in native code (including the JVM) in this case.
-
comment
Comment #39623261
"Left unquestioned, assumptions and expectations could have caused us to miss one of the most impactful changes we’ve made to our operational defaults in a decade"
-
comment
Comment #37531230
> the only knock you can put on Java for reliability is null-safety FWIW, nullity control has been added to the Valhalla project, so it might be fixed going forward. https://youtu.…
-
comment
Comment #37096408
Two years it too short. The reason I now use gmail and not hotmail is because Microsoft did a similar thing 20 years ago. When I lost my hotmail account, I thought I might as well …
-
comment
Comment #35357108
An alternative to avoid safepoints (only samples executing threads) var r = new RecordingStream(); r.enable("jdk.ExecutionSample").withStackTrace().withPeriod(Duration.ofMillis(1))…
-
comment
Comment #33723338
There are multiple ways to represent an optional value, for example: 1) an empty list/array 2) throw an exception if the return value is missing. 3) -1 Optional can be used as a be…
-
comment
Comment #26700550
Hotspot has sub-millisecond GC pause times. "But as long as your system isn’t heavily over-provisioned, you can expect to see average GC pause times of around 0.05ms (50µs) and max…
-
comment
Comment #26495265
And in JDK 16, ZGC has concurrent thread-stack processing, which typically reduces GC pauses below 1 ms https://openjdk.java.net/jeps/376 https://youtu.be/88E86quLmQA?t=1525
-
comment
Comment #22845983
The JDK comes with a powerful memory leak tool. $ java -XX:StartFlightRecording:settings=profile MyApp $ jcmd MyApp JFR.dump paths-to-gc-root=true filename=dump.jfr $ jfr print --e…
-
comment
Comment #21294571
In JDK 14, Flight Recorder events will be available for monitoring. try (var rs = new RecordingStream()) { rs.onEvent("jdk.GCPhasePause", event -> { System.out.println(event.getDur…
- story
-
comment
Comment #21118244
New IO.
-
comment
Comment #19888190
I haven't tried serverless, but shouldn't that be Java's cup of tea? The JVM can load code dynamically and adapt the runtime to the work load. Maybe there is a framework missing, s…
-
comment
Comment #19848382
For arbitrage that must happen really fast, FPGAs is the way to go, and for complex code that needs to be rewritten often and quickly, Java is probably a better fit than C++.
-
comment
Comment #19586375
If you want to sell software or services to the government you need to be 508 compliant https://www.section508.gov/sell
-
comment
Comment #19460397
JDK 11 comes with a new HttpClient. Might be useful and fun to learn. https://docs.oracle.com/en/java/javase/11/docs/api/java.net....
-
comment
Comment #19384971
With ZGC[1], value types[2] and Panama[3], Java will be great platform for gaming and 3D graphics. Write once and it will work on Linux, Windows and Mac OS X. [1] https://openjdk.j…
-
comment
Comment #19060497
Data Classes for Java https://cr.openjdk.java.net/~briangoetz/amber/datum.html
-
comment
Comment #18793159
I like to see simplified loops in Java. For example, traverse two collections/arrays of the same size simultaneously. for (var f : fathers, var m : mothers) { families.add(new Fami…