News for hackers. Stuff that matters.
Re:The One Billion Row Challenge in Go: from 1m45s to 4s in ... by benhoyt on Sunday March 03, 2024 @04:13PM (#39584600)
I think that's true with the JVM, but the fastest Java solutions are using GraalVM and its ahead-of-time compilation mode to avoid startup time. In addition, while "go run" might take 149ms to compile and run a program, a compiled Go program starts in just a couple of milliseconds:

  $ time ./t
  Hello, world
  
  real  0m0.003s
Re:The One Billion Row Challenge in Go: from 1m45s to 4s in ... by tutfbhuf on Monday March 04, 2024 @03:00AM (#39588062)
Thank you for the insights. I would like to add that native compilation with GraalVM sounds excellent in theory, but in all the real-world Java codebases that I have tested for native compilation, it wasn't possible due to some limitations in the code or some dependency (it is not a drop-in replacement).