News for hackers. Stuff that matters.
Re:Bazel 1.0 by pjmlp on Friday October 18, 2019 @08:26AM (#21290754)
Java 13 takes 97ms on Windows 10, and I haven't bothered to produce a Java native image before attempting it.

    PS C:\Workdir> Measure-Command { java -version }
    openjdk version "13" 2019-09-17
    OpenJDK Runtime Environment (build 13+33)
    OpenJDK 64-Bit Server VM (build 13+33, mixed mode, sharing)


    Days              : 0
    Hours             : 0
    Minutes           : 0
    Seconds           : 0
    Milliseconds      : 97
    Ticks             : 975572
    TotalDays         : 1.12913425925926E-06
    TotalHours        : 2.70992222222222E-05
    TotalMinutes      : 0.00162595333333333
    TotalSeconds      : 0.0975572
    TotalMilliseconds : 97.5572
About 60 ms more than make.

Hurray Make still wins, now what are we going to do with those 60ms... /s

Re:Bazel 1.0 by lultimouomo on Friday October 18, 2019 @10:26AM (#21291626)
FWIW, I don't think "java -version" is a good benchmark of java startup time - why should it start up the JVM just to print the version?
Re:Bazel 1.0 by pjmlp on Friday October 18, 2019 @02:18PM (#21293775)
I think that measuring anything less than 1s for CLI is silly, school playground measuring competition.
Re:Bazel 1.0 by fnord123 on Friday October 18, 2019 @03:25PM (#21294345)
The original comment was "JVM startup is sub-second. Still not great for e.g. small command line utilities, but completely fine otherwise."

For tooling it matters. Some scripts will have backticks and $() and each use of these could be up to a second and be acceptable? Not really. And if you want to run a command like `go fmt` every time you save a file in $EDITOR then you want it to be fast. Maybe when we use the Language Server Protocol everywhere, it will be a different world. But a lot of editors shell out for these features still - and you would never dream of shelling out to e.g. `mvn dependency:tree` because it's too slow.

Re:Bazel 1.0 by pjmlp on Friday October 18, 2019 @05:52PM (#21295370)
Unless I am missing something, 97ms looks pretty much sub-second to me.