Peter Lawrey - Low Latency Code in Java 8

Поділитися
Вставка
  • Опубліковано 12 вер 2024
  • How do Java 8's new features, Lambdas and Optional in particular, perform? Do they create garbage and is there anything you can do about it?
    Peter Lawrey likes to inspire developers to improve the craftmanship of their solutions, engineer their systems for simplicity and performance, and enjoy their work more by being creative and innovative.
    He has a popular blog “Vanilla Java” which gets 120K page views per month, he is 2nd and 3rd on StackOverflow.com for Concurrency and Java respectively, and is lead developer of the OpenHFT project which includes support for thread safe off heap memory, thread pinning and low latency persistence and IPC (as low as 100 nano-seconds).
    vanillajava.blo...

КОМЕНТАРІ • 8

  • @brixomatic
    @brixomatic 7 років тому +10

    If only the guys asking about trivial Optional/Type inference/lazy evaluation/lambda stuff would have done their homework.. so distracting! Plus, these basic questions stop him from explaining, why this code is especially good for low latency code. Especially the equals method looks suspicious against those generated by eclipse for example.

  • @Kessra
    @Kessra 8 років тому +1

    Good and informative talk. However the example with the lock and the Callable does not work on Java 8 U101 anymore (or maybe never didn't).
    First Callable throws an exception which is clearly not caught or thrown and second, Java claims that a medhod-reference is not applicable for a Callable argument. Instead of a method-reference using a lambda expression of the form () -> { condition.signal(); return null; } works though IntelliJ reports that this can be replaced via a method reference, though condition::signal is not accepted and doesn't even compile.

  • @leozilla
    @leozilla 9 років тому +5

    Whats with the newbies in the audience.. seems like they never programmed at all before, wtf

    • @konoutro
      @konoutro 9 років тому +1

      +David Leonhartsberger be nice. perhaps they dont watch and subscribe to the same youtube videos as you

    • @leozilla
      @leozilla 9 років тому +1

      +Kon Soulianidis you are right, I am sorry. I was just disappointed that the first very easy code example led to 15 very basic questions that have not much to do with the topic directly

    • @konoutro
      @konoutro 9 років тому

      +David Leonhartsberger all good mate. thanks for checking out the video

  • @SachinKumar-ox6zk
    @SachinKumar-ox6zk 3 роки тому

    good intel

  • @AjayKumar-fd9mv
    @AjayKumar-fd9mv 3 роки тому

    👍