• 3 Posts
  • 40 Comments
Joined 16 days ago
cake
Cake day: June 13th, 2024

help-circle




  • Our 21-months old torpedo jumped my wife, who was quietly drinking tea in our sofa. Naturally, my wife did the only safe thing; a controlled spill of most of her tea on the side of the sofa that didn’t have the violence toddler attacking. Seeing this, said toddler commented “mommy spilled” and kept laughing like a maniac.

    She’s also very fond of pulling out the top of whomever is holding her, shouting BOOOOB.

    Today she also saw the sun in the morning after yesterday’s thunderstorm (it’s always bright outside here now as far as she knows since the sun sets long after her bedtime and rises long before she wakes up) and yelled “look! The lamp is on!”.



  • My first is one and a half and change now and after getting out of year one, which was absolute hell for me, I kind of understand where you are. I don’t feel exactly the same as you, but I do feel a lot more hope than I’d have expected.

    My kid is a lot like @MagikShel’s youngest it sounds like, and she’s often extremely angry about my general existence, let alone any of my attempts at parenting her but in a way that comforts me because I see someone able to fight for what she wants at an early age and I’m very proud of that.









  • 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.