3 ms·
> I would particularly love it as an embedded language, rather than one needing a full-blown application. Given the existence of [0], I imagine this is doable.
by Gaelan 6y ago
> I would particularly love it as an embedded language, rather than one needing a full-blown application.
Given the existence of [0], I imagine this is doable.
[0]: https://docs.rs/inline-python/0.6.0/inline_python/ https://docs.rs/inline-python/0.6.0/inline_python/
- mckirk 6y agoThat inline Python is the closest thing to black magic I've seen in a while. I guess I have to find an excuse to play around with Rust some time soon, it seems like such a cool ecosystem.
- iudqnolq 6y agoIf you like that sort of thing you'll enjoy following the creater on twitter. Here's another of her creations > Did you know you can just fork() the @rustlang compiler from your proc_macro? > Unfortunately rustc is multithreaded and fork() only forks one thread. We'll just assume the other threads weren't doing anything important. > In today's rustc, this means we're only missing the main thread in the fork. But that one was only going to call exit() after joining our thread anyway, so not very important. It just means the process always exits with a success status. So instead we grep the output for "error". https://mobile.twitter.com/m_ou_se/status/1368844186607357957 https://mobile.twitter.com/m_ou_se/status/136884418660735795...