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
- 1Try optimising the memory consumption first2 people · 5 points · first shared 2014 · discussion on HN
- 2Common Core Java Interview Questions with incorrect Answers2 people · 4 points · first shared 2011 · discussion on HN
- 3Demonstrating when volatile is required in Java2 people · 2 points · first shared 2012 · discussion on HN
- 4Java: Getting the size of an Object2 people · 2 points · first shared 2011 · discussion on HN
- 5Homepage2 people · first shared 2011
- 6Java secret using enum as state machine2 people · first shared 2011
- 7High performance libraries in Java1 people · 117 points · first shared 2012 · 21 comments on HN
- 8How to get C like performance in Java1 people · 67 points · first shared 2011 · 71 comments on HN
- 9Randomly not so random1 people · 60 points · first shared 2011 · 9 comments on HN
- 10Vanilla Java: Using a memory mapped file for a huge matrix1 people · 53 points · first shared 2012 · 11 comments on HN
- 11Java: All about 64-bit programming1 people · 24 points · first shared 2011 · 6 comments on HN
- 12The Exchanger and GC-less Java1 people · 8 points · first shared 2011 · discussion on HN
- 13C++ or Java, which is faster for high frequency trading?1 people · 7 points · first shared 2011 · 12 comments on HN
- 14Regex vs IndexOf in Java.1 people · 7 points · first shared 2012 · discussion on HN
- 15Why testing code for thread safety is flawed1 people · 6 points · first shared 2011 · discussion on HN
What HN people wrote when they linked it
jcdavis · 2012-12-16
2 good JVM performance blogs:
http://vanillajava.blogspot.com/
http://mechanical-sympathy.blogspot.com/
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
The original without all of the noise:
http://vanillajava.blogspot.gr/2012/08/java-memes-which-refuse-to-die.…
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…
mrspandex · 2011-07-22
Original article: http://vanillajava.blogspot.com/2011/07/incorrect-core-java-interview-…
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…
gtani · 2012-02-02
from 2008. slide 25:
experiments on a sampling of different JVMs.
More recent :
http://vanillajava.blogspot.com/2011/07/java-getting-size-of-object.ht…
http://vanillajava.blogspot.com/2011/07/java-how-much-memory-do-differ…
http://kohlerm.blogspot.com/2008/10/knowledge-about-much-memory-things…
http://kohlerm.blogspot.com/2009/02/how-to-really-measure-memory-usage…
http://marxsoftware.blogspot.com/2011/12/estimating-java-object-sizes-…
(i have zillions bookmarks on this)