home.social

#cranelift — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #cranelift, aggregated by home.social.

  1. A Function Inliner for Wasmtime and Cranelift, fitzgen.com/2025/11/19/inliner.

    A great article about the new function inliner inside Cranelift. The article mentions a nice algorithm to partially keep parallelism during the compilation time for the inliner (that’s the most interesting part).

    #compiler #cranelift #WebAssembly

  2. Profiled my JIT Rust aarch64 emulator:

    - Around 7-8% of time is spent executing translated guest code
    - #cranelift codegen takes 45.7% of time
    - its register allocator, regalloc, takes an additional 19%
    - Basic runtime logic such as MMU virtual address translation takes only 2% (with TLB caching)

    This results in taking almost 40 seconds to boot to Linux prompt. QEMU takes a few seconds.

    Replacing the JIT is tempting...

    #Rust #arm #arm64 #aarch64 #emulation #emulator #simulans

  3. 📅 In an absolutely riveting journey through the Go compiler's underbelly, one brave soul dares to wade through the treacherous swamps of *source code* to reveal that—surprise—documentation is apparently optional in 2024 🧐. Meanwhile, #LLVM and #Cranelift sip tea as they bask in their luxurious piles of clear, accessible #documentation 📜💁‍♂️.
    vnmakarov.github.io/2024/09/24 #GoCompiler #SourceCode #HackerNews #ngated

  4. 📅 In an absolutely riveting journey through the Go compiler's underbelly, one brave soul dares to wade through the treacherous swamps of *source code* to reveal that—surprise—documentation is apparently optional in 2024 🧐. Meanwhile, #LLVM and #Cranelift sip tea as they bask in their luxurious piles of clear, accessible #documentation 📜💁‍♂️.
    vnmakarov.github.io/2024/09/24 #GoCompiler #SourceCode #HackerNews #ngated

  5. 📅 In an absolutely riveting journey through the Go compiler's underbelly, one brave soul dares to wade through the treacherous swamps of *source code* to reveal that—surprise—documentation is apparently optional in 2024 🧐. Meanwhile, #LLVM and #Cranelift sip tea as they bask in their luxurious piles of clear, accessible #documentation 📜💁‍♂️.
    vnmakarov.github.io/2024/09/24 #GoCompiler #SourceCode #HackerNews #ngated

  6. 📅 In an absolutely riveting journey through the Go compiler's underbelly, one brave soul dares to wade through the treacherous swamps of *source code* to reveal that—surprise—documentation is apparently optional in 2024 🧐. Meanwhile, #LLVM and #Cranelift sip tea as they bask in their luxurious piles of clear, accessible #documentation 📜💁‍♂️.
    vnmakarov.github.io/2024/09/24 #GoCompiler #SourceCode #HackerNews #ngated

  7. Exception handling in the Rust compiler: a blog post by @bjorn3 on support for unwinding on panics in the Cranelift backend.
    A walkthrough of the implementation: tweedegolf.nl/en/blog/157/exce

  8. this I think is the final missing piece to have an entire toolchain written in Rust, others being compiler (rustc and cranelift) and platform access things (rustix and eyra/mustang)

    fosstodon.org/@rustnl/11467593

    #cranelift #rustc #rustlang

  9. Managed to have local variables using cranelift but I hit a limitation of debuggers and DWARF and formal parameters found in registers.

    I may try consider pessimising the code when enabling debug support if I don't manage to identify the call sites.

    #pasko #cranelift #debugging #compilers

  10. Woah!

    (I need to improve the locations, it jumps like crazy all around the place 😅 . The garbled terminal is caused by gdb's tui not liking input / output)

    #pasko #debugging #debugger #gdb #cranelift

  11. I want to keep using Rust nightly + cranelift because of the faster compile times but anywhere aws-lc-rs is involved, there are build failures.

    https://github.com/rust-lang/rustc_codegen_cranelift/issues/1520

    Sadly have to disable it for now.

    #rust #cranelift

  12. @dan_ballard one thing that can help today with trust is looking for "cargo vet" reviews by trusted projects, this being an example github.com/bytecodealliance/wa
    @Mara

    #cranelift #rustlang

  13. I haven't been so excited to multiply two numbers in 20+ years.

    I think I might be able to work with this.

    #Cranelift

  14. Why does #Cranelift look so nice and simple to use, what's the catch

  15. Series on Cranelift Code Generator.
    https://www.youtube.com/playlist?list=PLIUa1VcxJuwlJB4ZrahFGRNGyFx-S8tzJ

    Looking to do a post/talk next month for the Rust meetup on using PEG parser for a toy language (Brainfuck/Lox) and then use Cranelift to compile that.

    #rust #cranelift

  16. More hacking with cranelift.

    Making better use of `Variable`s for better code generation and also extending the dump code so I can see what value maps to each source variable.

    #cranelift #pascal #pasko

  17. I learned yesterday how to annotate the IR dumps so less guessing is required when looking at them now.

    #cranelift #rustlang #pascal #pasko

  18. I wanted to toy with Cranelift (cranelift.dev/) so I gave myself an excuse to do so 😀

    Still a lot of work to do but slowly being able to compile more interesting Pascal programs.

    #rust #cranelift #pascal #compilers

  19. There are many dreams in my mind floating. One of which is learning machine language of a processor and then contributing to some compiler backend like #llvm or #Cranelift.

    #programming #programming_dreams #rust #compiler #dreams #dream #wish #computers #computation #mcu #microcontroller

  20. Did you ever wanted a calculator that’s also incredibly overbuilt but jit compiles expressions into machine code for maximum calculation perf?

    Yep me neither but here you go

    github.com/JonasKruckenberg/ji

    #compilers #cranelift