P99 CONF: Coding for Speed: Rust vs Zig vs.... JavaScript ???

Поділитися
Вставка
  • Опубліковано 25 лис 2024

КОМЕНТАРІ • 13

  • @10e999
    @10e999 Рік тому +27

    IMO, Zig is the most exciting and promising language in the space of high-performance programming.

  • @CompletelyCovered3
    @CompletelyCovered3 Рік тому +8

    Jarred was just getting warmed up at the end. The talk favored Rust for the most part, but Jarred is doing great stuff with a pre-v1.0 language.

  • @dmitryg1769
    @dmitryg1769 Рік тому +10

    I would really love to see something like Zig's comptime in Rust.
    Rust attribute macros as compiler time reflection emulation that operate with tokens are total hell

    • @r2com641
      @r2com641 8 місяців тому

      Rust is total hell itself

  • @coder415
    @coder415 Рік тому +16

    priority of rust is safety, priority of zig is extreme performance via allocators cache friendly data structures simd etc... different philosophies different tradeoffs

    • @__jan
      @__jan Рік тому +13

      Rust's priority is correctness, but it's not prescriptive, that's why unsafe exists. People write extremely performant software in Rust just fine all the time. Custom allocators, cache-friendly data structures, and SIMD - all of that is available.

  • @PaulSebastianM
    @PaulSebastianM 11 місяців тому +4

    I find it more and more obvious that Rust is the metaphorical C++ successor and Zig is the not so metaphorical C succesor. But with C it's a bit harder to decide for me. There are a number of C replacements that feel equally good.

    • @PRIMARYATIAS
      @PRIMARYATIAS 10 місяців тому

      Odin lang and Nim lang.

    • @catsby9051
      @catsby9051 9 місяців тому +2

      @@PRIMARYATIAS Nim is not a replacement for C. It uses a garbage collector which immediately disqualifies it.

  • @kanji_nakamoto
    @kanji_nakamoto 9 місяців тому +1

    Jarred Sumner is in a different level. Legend!

  • @r2com641
    @r2com641 8 місяців тому +3

    Working with rust is not productive for a project, and its safety is not provided when you code on low level metal layer anyway, so zig all the way ⚡️

    • @Heater-v1.0.0
      @Heater-v1.0.0 4 місяці тому +3

      How so? I find working in Rust as productive as my old days of C and C++. When coding in any language one needs "unsafe" to do get any I/O. Without any I/O a program would be useless. On bare metal that typically means you need "unsafe" only for some small parts of code that hit peripheral registers and such. As such "unsafe" is confined to clearly delineated, small, blocks of code it is easier to verify than have the entire application be "unsafe". Hence correctness is more easily achieved. I know nothing of Zig, sounds great, but when making language comparisons we should at least be factual rather than purely emotive.

  • @surajmandal_567
    @surajmandal_567 10 місяців тому +3

    Yeah in two weeks we learn how to write hello world.