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.

What HN saysCommenters 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.
26HN people shared it
9linked it in comments
70stories submitted
459story points
11 years agolast shared
2011people per year2026

Most-shared posts

  1. 1
    Try optimising the memory consumption first
    2 people · 5 points · first shared 2014 · discussion on HN
  2. 2
  3. 3
    Demonstrating when volatile is required in Java
    2 people · 2 points · first shared 2012 · discussion on HN
  4. 4
    Java: Getting the size of an Object
    2 people · 2 points · first shared 2011 · discussion on HN
  5. 5
    Homepage
    2 people · first shared 2011
  6. 6
    Java secret using enum as state machine
    2 people · first shared 2011
  7. 7
    High performance libraries in Java
    1 people · 117 points · first shared 2012 · 21 comments on HN
  8. 8
    How to get C like performance in Java
    1 people · 67 points · first shared 2011 · 71 comments on HN
  9. 9
    Randomly not so random
    1 people · 60 points · first shared 2011 · 9 comments on HN
  10. 10
  11. 11
    Java: All about 64-bit programming
    1 people · 24 points · first shared 2011 · 6 comments on HN
  12. 12
    The Exchanger and GC-less Java
    1 people · 8 points · first shared 2011 · discussion on HN
  13. 13
  14. 14
    Regex vs IndexOf in Java.
    1 people · 7 points · first shared 2012 · discussion on HN
  15. 15
    Why testing code for thread safety is flawed
    1 people · 6 points · first shared 2011 · discussion on HN

What HN people wrote when they linked it

dave809 · 2014-01-27
An interesting post on c++ like memory management in java: http://vanillajava.blogspot.ca/2014/01/sunmiscunsafe-and-off-heap-memo…
djb_hackernews · 2012-08-27
agumonkey · 2011-10-17
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 ?
moondowner · 2011-09-01
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-stat…
peter_lawrey · 2011-08-01
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-collectio…
pan69 · 2011-07-12
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-stat…

Keyboard shortcuts

/Search
j kNext / previous blog
EnterOpen selected blog
vVisit the blog site
fFollow / unfollow
lSwitch grid / list view
dSwitch dark mode
g hHome
g pTop posts
g tTopics
g fFollowing
g lLiked
g yHistory
g qFAQ
EscBack / close