Skip to content
HomeVideosBooksBlogs
AllTop postsTopics
Podcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K
    V

    Vanilla Java

    vanillajava.blogspot.com · Personal blog · on HN since 2011

    Peter Lawrey writes about high-performance Java, covering memory use, off-heap data, concurrency and low-latency techniques.

    Visit blogHN submissions
    ProgrammingSystems & PerformanceLanguages & Compilers
    What HN says

    Commenters recommend it as a good JVM performance blog and link posts on off-heap memory with Unsafe, Java myths and using enums as state machines.

    Stats for nerds
    26HN people shared it
    70linked in comments
    459story points
    Jan 2014last shared
    2011people per year2014

    Top posts on HN

    1. 1
      High performance libraries in Java
      1 person · 117 points · first shared 2012 · 21 comments on HN
    2. 2
      How to get C like performance in Java
      1 person · 67 points · first shared 2011 · 71 comments on HN
    3. 3
      Randomly not so random
      1 person · 60 points · first shared 2011 · 9 comments on HN
    4. 4
      Vanilla Java: Using a memory mapped file for a huge matrix
      1 person · 53 points · first shared 2012 · 11 comments on HN
    5. 5
      Java: All about 64-bit programming
      1 person · 24 points · first shared 2011 · 6 comments on HN
    6. 6
      The Exchanger and GC-less Java
      1 person · 8 points · first shared 2011 · Discussion on HN
    7. 7
      Regex vs IndexOf in Java.
      1 person · 7 points · first shared 2012 · Discussion on HN
    8. 8
      C++ or Java, which is faster for high frequency trading?
      1 person · 7 points · first shared 2011 · 12 comments on HN
    9. 9
      Why testing code for thread safety is flawed
      1 person · 6 points · first shared 2011 · Discussion on HN
    10. 10
      Java can be significantly faster than C
      1 person · 6 points · first shared 2011 · 1 comments on HN

    What HN people wrote when they linked it

    • gtaniFeb 2012

      from 2008. slide 25:

      experiments on a sampling of different JVMs.

      More recent :

      http://vanillajava.blogspot.com/2011/07/java-getting-size-of-object.html

      http://vanillajava.blogspot.com/2011/07/java-how-much-memory-do-different.html

      http://kohlerm.blogspot.com/2008/10/knowledge-about-much-memory-things-need.html

      http://kohlerm.blogspot.com/2009/02/how-to-really-measure-memory-usage-of.html

      http://marxsoftware.blogspot.com/2011/12/estimating-java-object-sizes-with.html

      (i have zillions bookmarks on this)

    • agumonkeyOct 2011

      http://dorophone.blogspot.com/ ;; elisp/picolisp stuff. monads, sexp, fexpr. inspiring.

      http://okmij.org/ftp/ ;; general cs ftw. too deep.

      http://john.freml.in/ ;; nice http server perf in clisp.

      http://www.learningclojure.com/ ;; get the most of clojure in terms of cpu cycles. refreshing.

      http://vanillajava.blogspot.com/ ;; perf, lo-level details about java. refreshing.

      btw, swegr ~= hacker ?

    • moondownerSep 2011

      I (as a Java developer) use state machines often - and know other developers who do same too. I use mostly enums (though there are other ways of achieving it), as explained in this post:

      Java Secret: Using an enum to build a State machine: http://vanillajava.blogspot.com/2011/06/java-secret-using-enum-as-state-machine.html

    • pan69Jul 2011

      Its a content farm, probably to count ad impressions or some other BS. This is the original (from the bottom of the article):

      http://vanillajava.blogspot.com/2011/06/java-secret-using-enum-as-state-machine.html

    • peter_lawreyAug 2011

      I agree, avoiding GC is paramount. You can do this in Java by discarding less objects. http://vanillajava.blogspot.com/2011/06/how-to-avoid-garbage-collection.html

    • dave809Jan 2014

      An interesting post on c++ like memory management in java:

      http://vanillajava.blogspot.ca/2014/01/sunmiscunsafe-and-off-heap-memory.html?q=unsafe

    Related

    Mechanical Sympathymechanical-sympathy.blogspot.com79 people

    Memory Access Patterns Are Important (2012)

    Mechanical Sympathy
    Personal · last shared 2026
    Flying Frog Blogflyingfrogblog.blogspot.com30 people

    Disadvantages of purely functional programming

    Flying Frog Blog
    Personal · last shared 2019
    Cliff Clickcliffc.org23 people

    Introverts, Emotional Processing, Self-Esteem and Salary Negotiations

    Cliff Click
    Personal · last shared 2019
    Chris Wellonsnullprogram.com295 people

    Why Aren't There C Conferences?

    Chris Wellons
    Personal · last shared 2026
    Tony Morrisblog.tmorris.net30 people

    Reverse.jar

    Tony Morris
    Personal · last shared 2026
    fasterthanli.mefasterthanli.me236 people

    A half-hour to learn Rust

    fasterthanli.me
    Personal · last shared 2026
    Arm Community Blogcommunity.arm.com147 people

    An update on GNU performance

    Arm Community Blog
    Company · last shared 2025
    Probably Danceprobablydance.com74 people

    Fibonacci Hashing: The Optimization That the World Forgot

    Probably Dance
    Personal · last shared 2026