• 1 Post
  • 34 Comments
Joined 20 days ago
cake
Cake day: June 13th, 2024

help-circle





  • Amanda@aggregatet.orgtoTechnology@lemmy.worlddon't use ladybird browser lol
    link
    fedilink
    English
    arrow-up
    23
    arrow-down
    2
    ·
    22 hours ago

    This framing made me read the comment in the link as a transphobic joke (“ha ha I won’t accept your change of gender ie will misgender you”) which would have been a pretty smoking gun if left there, and in case anyone else makes the same incorrect interpretation I’d like to warn them that they’re talking about grammatical gender, in the PR.

    I think it’s a stretch to call this transphobia; if anything it’s good ol’fashioned sexism, but a pretty tame one.












  • The only part of a JIT compiler I don’t understand how it works is the part that swaps in compiled routines during interpretation. That’s the point I’m unsure of how to write in Rust because it seems like it would require very custom control flow. It might be that you can handle this by storing your compiled instructions somewhere using the C calling convention and then having Rust call your compiled function like a C function.

    In essence, what you have is a Rust program that has to produce machine code (easy!), store it somewhere in RAM (also easy, I think), and then somehow call it (how???). The final part seems like the difficult one since passing execution into arbitrary memory they just wrote is just the sort of thing programs aren’t normally supposed to do.