News for hackers. Stuff that matters.
Re:Why isn't Java used for modern web application development? by lucian1900 on Sunday June 10, 2012 @08:29AM (#4090867)
Is Rails that slow? There's absolutely nothing on my machine slower to start up that the jvm.
Re:Why isn't Java used for modern web application development? by sterwill on Sunday June 10, 2012 @08:55AM (#4090917)
The JVM is very fast to start on my machines. For Java 7 on Linux x86_64:

  t:~% time java HelloWorld
  Hello from Java!
  java HelloWorld  0.04s user 0.02s system 94% cpu 0.063 total
It's not as fast as C or Ruby, but who cares about .063 seconds spent once at start-up?

  t:~% time ./hello 
  Hello from C!
  ./hello  0.00s user 0.00s system 0% cpu 0.002 total
  t:~% time ruby hello.rb
  Hello from Ruby!
  ruby hello.rb  0.00s user 0.00s system 86% cpu 0.009 total
Re:Why isn't Java used for modern web application development? by democracy on Sunday June 10, 2012 @09:31AM (#4090992)
How about the same test with a '-client' switch...
Re:Why isn't Java used for modern web application development? by sterwill on Sunday June 10, 2012 @10:15AM (#4091096)
I get the same times, more or less. I'm not sure the -client switch changes any behavior that early in the VM's life, before any garbage collection or sizable allocation happens. It would still be using a 64-bit data model with the -client switch (-d32 gives me: "Error: This Java instance does not support a 32-bit JVM.").
Re:Why isn't Java used for modern web application development? by astrange on Sunday June 10, 2012 @06:28PM (#4092443)
"-client" has no effect in 64-bit.
Re:Why isn't Java used for modern web application development? by IsTom on Sunday June 10, 2012 @10:18AM (#4091104)
I'm not sure about slow (though probably it is slow), but it surely eats a lot of RAM. Lots and lots of RAM.
Re:Why isn't Java used for modern web application development? by thebluesky on Monday June 11, 2012 @03:51AM (#4093602)
I'm willing to put up with a few hundred megs of RAM usage for a system which runs 100x faster...