Hacker GitHub

← All repos

openjdk/jdk

View on GitHub ↗ ★ 23,492 Java

JDK main-line development https://openjdk.org/projects/jdk

129 mentions on Hacker News by 93 people: 17 stories, 112 comments · first 2019-04-25 · latest 2026-10-25

Mentions per year 129 mentions · busiest year 2023 (28)
20082026
  1. https://github.com/openjdk/jdk/pull/31120#issuecomment-51378...
  2. …<-> 127 The cache can be extended on startup with env var `java.lang.Integer.IntegerCache.high ` https://github.com/openjdk/jdk/blob/cc278dbb8a1ca0754d584270...
  3. …and commits work in the OpenJDK repository -- a bot squashes each pull request into one commit: https://github.com/openjdk/jdk/pull/31120#issuecomment-51378... The final singular commit is cc278db (8389219: Implement JEP 401: Value Objects…
  4. The MR is closed This is it https://github.com/openjdk/jdk/commit/cc278dbb8a1ca0754d5842...
  5. …virtual machine has 12: https://www.erlang.org/docs/25/man/erts_alloc.html jvm has at least 5: https://github.com/openjdk/jdk/blob/master/src/hotspot/share... postgres has at least 8: https://github.com/postgres/postgres/blob/master/src/bac…
    comment by dnautics · 2026-06-30 · in Zig – SPIR-V Backend Progress
  6. …object reference.) By default the cached values where -127 to 127, but that is tuneable at runtime. https://github.com/openjdk/jdk/blob/jdk-27%2B27/src/java.bas...
  7. …but the results weren't what I expected, so I took it out) BTW, here's a list of our intrinsics: https://github.com/openjdk/jdk/blob/master/src/hotspot/share... As you might notice, they include SIMD intrinsics offered through…
    comment by pron · 2026-06-06 · in Every Byte Matters
  8. …started transferring to the main line, but will require many tests to know if they have any issues. https://github.com/openjdk/jdk/pull/31120
  9. …a bug from day one." [2] [1] https://www.linux.com/news/preventing-supply-chain-attacks-l... [2] https://github.com/openjdk/jdk/pull/9152#issue-1270543997
    comment by jgneff · 2026-05-10 · in Debian must ship reproducible packages
  10. …be set manually, but if there's some unusual environment or condition, they can be helpful. [1]: https://github.com/openjdk/jdk/blob/master/src/hotspot/share...
    comment by pron · 2026-04-12 · in JVM Options Explorer
  11. …nel.org/pub/scm/linux/kernel/git/torvalds/lin... [2] https://git.ffmpeg.org/gitweb/ffmpeg.git/log [3] https://github.com/openjdk/jdk/commits/master/src/hotspot [4] https://github.com/openssl/openssl/commits/master/ [5]…
    comment by alt_422568 · 2026-04-09 · in Git commands I run before reading any code
  12. Lazy Constants looked interesting. The impl uses unsafe: https://github.com/openjdk/jdk/blob/master/src/java.base/sha...
    comment by winrid · 2026-03-18 · in Java 26 is here
  13. …cost to accessing class fields, as exampled by this (now-replaced) code in the JDK itself - https://github.com/openjdk/jdk/blob/jdk8-b120/jdk/src/share/...
    comment by dekelpilli · 2026-03-18 · in Python 3.15's JIT is now back on track
  14. Follow-up questions: Do you test manually? Why? Do you debug manually? Why? You wanted examples: https://github.com/openjdk/jdk/tree/master/test/jdk/java/uti...
    comment by PinkSheep · 2026-02-02 · in Kernighan on Programming
  15. Java chooses to use the cycle method mostly. They also reference Bentley. https://github.com/openjdk/jdk/blob/f1e0e0c25ec62a543b9cbfab...
  16. …special for Floats" code. [0] https://docs.oracle.com/en/java/javase/17/docs/api/java.base... [1] https://github.com/openjdk/jdk/blob/master/src/java.base/sha...
  17. …it's mostly software written in C++ and that software allocates "its own heap" using uh... malloc https://github.com/openjdk/jdk/blob/master/src/hotspot/share...
  18. I believe, Oracle JVM uses polling? This is the class responsible for safepoints: https://github.com/openjdk/jdk/blob/4b544f93ad0e2beae4c80e06... And this is one of the implementations: https://github.com/openjdk/jdk/blob/4b544f93ad0e2beae4…
    comment by cyberax · 2025-09-20 · in Safepoints and Fil-C
  19. …bunch of code which looks like it's trying to do the right kind of escaping for msvcrt vs cmd.exe: https://github.com/openjdk/jdk/blob/jdk-26%2B1/src/java.base... But i would be lying if i said i understood what was going on there. Some…
  20. …specific bin is converted into a RB tree. This is detailed in implementation notes comment here: https://github.com/openjdk/jdk/blob/56468c42bef8524e53a929dc...
    comment by 77 · 2025-05-02 · in Strings Just Got Faster
  21. …How it tells the JVM this? It uses the internal annotation @jdk.internal.ValueBased https://github.com/openjdk/jdk/blob/jdk-17-ga/src/java.base/...
    comment by amiga386 · 2025-05-02 · in Strings Just Got Faster
  22. Define mostly, https://github.com/openjdk/jdk - Java 74.1% - C++ 14.0% - C 7.9% - Assembly 2.7% And those values have been increasing for Java with each OpenJDK release.
    comment by pjmlp · 2025-03-17 · in Zlib-rs is faster than C
  23. > if javac involves IR, SSA based analysis and transformation (which I assume it does) https://github.com/openjdk/jdk/blob/master/src/jdk.compiler/... I am fairly certain that it does not. The JVM is a stack-machine. I wrote a compiler for…
    comment by sieve · 2025-02-21 · in TinyCompiler: A compiler in a week-end
  24. This is similar to how java.util.concurrent.atomic.LongAdder works: https://github.com/openjdk/jdk/blob/master/src/java.base/sha...
    comment by oftenwrong · 2025-02-04 · in The Slotted Counter Pattern (2020)
  25. Java https://github.com/openjdk/jdk/blob/master/Makefile Rust https://github.com/rust-lang/rust/blob/master/tests/run-make... Go https://github.com/golang/go/blob/master/src/runtime/Makefil... NodeJS https://github.com/nodejs/node/blob/main…
    comment by dumah · 2025-01-31 · in A better build system for OCaml
  26. …bullshit themselves. (At which point it's just of dubious value instead of an outright negative) 0. https://github.com/openjdk/jdk/blob/master/src/java.base/sha...
  27. …note: the JDK deliberately randomizes iteration order of certain immutable sets and maps ( https://github.com/openjdk/jdk/blob/jdk-23%2B37/src/java.bas... ).
    comment by ljnelson · 2024-10-02 · in Hash Ordering and Hyrum's Law
  28. ….zip (and .jar and .tar ...) files as if they were a volume mounted at /home/user/foo.zip - e.g. https://github.com/openjdk/jdk/blob/jdk-21-ga/src/java.base/... It may be easier to reason about when thinking of the way $(mount -o loop)…
    comment by mdaniel · 2024-09-27 · in Tcl 9.0
  29. …strings. The Latin1 mode is used for compact storage of alphanumeric text as the name suggests: https://github.com/openjdk/jdk/blob/1ebf2cf639300728ffc02478...
    comment by neonsunset · 2024-08-20 · in Zed AI
  30. …÷ 6 doesn’t stand for π ÷ 6 , and could have been computed in another way. By the way, reading https://github.com/openjdk/jdk/blob/bd4160cea8b6b0fcf0507199... , these results may vary between Java implementations, possibly even between…
  31. …is something that languages/runtimes with more effort put into portability already handle for you: https://github.com/openjdk/jdk/blob/master/src/java.base/win... If Python doesn't do this it's just because the sort of people who write…
  32. …for equals call and they were keys to a HashMap - you'd only be able to put one of them in there. https://github.com/openjdk/jdk/blob/master/src/java.base/sha...
  33. …> to < https://sources.debian.org/src/openjdk-22/22.0.1%2B8-1/debia... > lead me to https://github.com/openjdk/jdk/tree/jdk-22-ga/src/hotspot/cp... It seems that it's a specific CPU target for the Hotspot JIT for non-mainstream…
    comment by mdaniel · 2024-04-30 · in Show HN: I Built a Java IDE for iPad
  34. The list is here: https://github.com/openjdk/jdk/blob/6d5699617ff0985104a8bb5f...
    comment by mike_hearn · 2024-04-21 · in JEP draft: Exception handling in switch
  35. Completely gutted from the OpenJDK, last I checked. See here for the culprit PR: https://github.com/openjdk/jdk/pull/18688
    comment by SpaghettiCthulu · 2024-04-19 · in Java 23: The New Features Are Officially Announced
  36. …13.7%, on the OpenJDK, other JVM implementations differ, e.g. GraalVM is mostly Java 91.8%, C 3.6%. https://github.com/openjdk/jdk https://github.com/oracle/graal Two examples from many others, https://en.wikipedia.org/wiki/List_of_Java_vir…
  37. …use of signal handlers in general. Hotspot continues to use signals for efficiency in general. See https://github.com/openjdk/jdk/blob/9059727df135dc90311bd476 ... This whole thread is about SIGSEGV, and specifically their SIGSEGV…
  38. …code in question takes into account that the value read might be garbage. See the big comment here: https://github.com/openjdk/jdk/commit/29397d29baac3b29083b1b... > On current CPUs and operating systems, this is not an optimization, so…
  39. …use of signal handlers in general . Hotspot continues to use signals for efficiency in general. See https://github.com/openjdk/jdk/blob/9059727df135dc90311bd476... > Be careful with fallacies suggesting only one side of an argument is…
  40. The "safe fetch" code relies on a signal handler (either here https://github.com/openjdk/jdk/blob/48717d63cc58f693f0917e61... or here https://github.com/openjdk/jdk/blob/3c70f26b2f3fa9bc143e2506... ), which is considered asynchronous…
  41. …code in question takes into account that the value read might be garbage. See the big comment here: https://github.com/openjdk/jdk/commit/29397d29baac3b29083b1b... On current CPUs and operating systems, this is not an optimization, so the…
  42. …for the JVM, because it prevents a fast path being taken for stack thawing for virtual threads: https://github.com/openjdk/jdk/blob/d32ce65781c1d7815a69ceac...
    comment by BinaryRage · 2024-03-17 · in The return of the frame pointers
  43. https://github.com/openjdk/jdk/tree/master/src/jdk.compiler/... , Wiki citation for good measures https://en.wikipedia.org/wiki/Javac . Maybe you're thinking of Hotspot, which is written in C++.
    comment by hyperpape · 2024-01-04 · in The One Billion Row Challenge
  44. …internally, it just supports various bit-related operations as-if it were two's complement. https://github.com/openjdk/jdk/blob/28026434f74726d72857e781...
  45. …expose their users to bugs on account of this implementation. EDIT: … ha, sure looks like it https://github.com/openjdk/jdk/blob/a2c0fa6f9ccefd3d1b088c51...
  46. Map doesn't implement the Collection interface. https://github.com/openjdk/jdk/blob/master/src/java.base/sha...
    comment by vips7L · 2023-11-14 · in Java JEP 461: Stream Gatherers
  47. …in or have parts of their implementations in C++. See JS ( https://github.com/v8/v8)and Java GC ( https://github.com/openjdk/jdk/tree/36de19d4622e38b6c00644b0... ) I am not an expert on Java (or C++), so if someone knows better or can add…
  48. …details. Check out this function which helps determine if instance fields are trusted: https://github.com/openjdk/jdk/blob/edd454b502b9bacde5549282...
  49. …such questions. A small aside: The README uses `Paths/get`, which might be deprecated eventually: https://github.com/openjdk/jdk/blob/b16e5584abcae18fdcc4494f... Should just use `Path/of` directly. BTW, I thought I would give it a try, but…
    comment by onetom · 2023-09-19 · in Show HN: Pile Programming Language
  50. …semantics on different platforms is so annoying and why C standard left itself a nice shortcut. [0] https://github.com/openjdk/jdk/blob/d27daf01d6361513a815e783... [1] https://github.com/openjdk/jdk/blob/d27daf01d6361513a815e783...