Project Leyden: Capturing Lightning in a Bottle

Поделиться
HTML-код
  • Опубликовано: 19 окт 2024
  • НаукаНаука

Комментарии • 34

  • @krellin
    @krellin 6 месяцев назад +1

    Awesome to see Per with Oracle
    great presentation

  • @austecon6818
    @austecon6818 11 дней назад

    Great talk. So well explained.

  • @ebuzertahakanat
    @ebuzertahakanat 7 месяцев назад

    Does this mean JAOTC going to come back? it will be great if it did.

  • @thiagogeisler8715
    @thiagogeisler8715 7 месяцев назад +6

    Thanks for all the advancement Java has made, I'm very happy. However, I believe it is urgent for Java to abandon these unpredictable timing garbage managers and adopt deterministic memory management with destructors and move semantics, inspired by C++ and Rust, as the NIM language did. Nim has a very low memory footprint and is also suitable for systems programming. Nim does this without the complexity of Rust or C++ with memory management called ORC.

    • @Ilumar589
      @Ilumar589 7 месяцев назад +15

      Reference counting memory management systems are not a magic bullet and will never get the throughput that java's G1 gets. If you want low latency use ZGC instead of G1, if you want low memory wait for Valhalla. No one thing is magic in programming. If you want control C style programming (check Zig or Odin if you want something modern) with custom memory allocators for specific situations is still the way to go, the rest is requirement or preference based. Either way what you suggested will never happen because it's not objectively better and even if it was they would never do such a radical change, they are only doing Valhalla because they realized it really is necessary for java to expand to other things than backend web dev

    • @thiagogeisler8715
      @thiagogeisler8715 7 месяцев назад

      @@Ilumar589 From what I've seen, NIM has a speed and memory footprint close to C, with the implementation of a memory management system called ORC. It's something impressive.

    • @thiagogeisler8715
      @thiagogeisler8715 7 месяцев назад +5

      Furthermore, I don't doubt the JAVA team at all, they are unstoppable and capable of surprising the world, as they have done several times.

    • @thanosfisherman
      @thanosfisherman 7 месяцев назад +4

      Yes Valhalla will be a game changer but they are taking an annoyingly too long to release.

    • @mamadouzo3265
      @mamadouzo3265 7 месяцев назад +1

      There is also GraalVm you can use to reduce java app starting time and footprint.

  • @pompiuses
    @pompiuses 7 месяцев назад +4

    Why is this beeing prioritized over null safety? In my experience far more developers, especially juniors, are complaining about that than somewhat improved startup times.

    • @bentels5340
      @bentels5340 7 месяцев назад +7

      Wrong question. Different group of people than the ones that are working on the language.

    • @gs-e2d
      @gs-e2d 7 месяцев назад +9

      This is very much required in cloud, otherwise go and other languages will eat java's lunch.
      currently java have high memory footprint, high time for peak performance and startup time, all this is very relevant in the cloud.

    • @Ilumar589
      @Ilumar589 7 месяцев назад

      It's not, null safety comes bundled with project Valhalla. It's a different team working on that

    • @pompiuses
      @pompiuses 7 месяцев назад +1

      @@Ilumar589 Sure, but all the brains going into other projects should be going into null safety instead. That's the number one wanted feature especially by beginning developers. Valhalla has been going on for 12 years now (if memory serves) so it clearly has no priority at Oracle. Valhalla will also not provide a general solution for a null aware type system, but only null safety for a new type called value objects (which is too little too late). Oracle is trying too hard to keep backwards compatibilty, it should be possible to opt in to features which is not backwards compatible.

    • @pompiuses
      @pompiuses 7 месяцев назад

      @@gs-e2d Yes, as mentioned in the presentation this has been adressed by GraalVM. Project Leyden only slighly improve startup times compared to GraalVM, and do very little to memory consumption. If startup time and low resource usage has high priority in your project then AOT compilation is the only way to go.