Instead of emitting one giant crate containing everything, we tweaked our SQL-to-Rust compiler to split the output into many smaller crates. Each one encapsulating just a portion of the logic, neatly depending on each other, with a single top-level main crate pulling them all in.

  • @gressen@lemm.ee
    link
    fedilink
    36
    edit-2
    26 days ago

    They changed the graphic already but holy AI on a stick! Now his arm is still behind the saw but his fingers are already gone. Lol

  • @BB_C@programming.dev
    link
    fedilink
    726 days ago

    Cool and all. But missing some experiments:

    • cranelift
    • multi-threaded rustc
    • undoing type erasure after the split
    • lto = "off"
    • strip = false (for good measure)
    • [PRIORITY] a website that works with Tridactyl✋
    • @bodaciousFern@lemmy.dbzer0.com
      link
      fedilink
      2
      edit-2
      25 days ago

      multi-threaded rustc

      I am still quite ignorant of the workings of rust/rustc (I’ll learn it tomorrow, I swear!) but I’m surprised that multi threaded compilation isn’t available by default. make/gcc have had it for several decades

  • @thingsiplay@beehaw.org
    link
    fedilink
    426 days ago

    Impressive improvement! But why did they choose Rust to compile on demand in the first place, if compile time was that important?

  • @sga@lemmings.world
    link
    fedilink
    English
    223 days ago

    i don’t really know how much could they optimise more, but they can predict it by fitting the number of cores with the amount of time taken, that is amdahl’s law.