News for hackers. Stuff that matters.
Re:Lisp implemented in Rust macros by chickdilla on Saturday September 14, 2024 @11:51AM (#41540604)
One trick to get out of this is to wrap any function with an asynchronous interface with pollster::block_on which turns the call back into exactly how it would have run if it had been synchronous (which leads to no color leaking).
Re:Lisp implemented in Rust macros by xedrac on Saturday September 14, 2024 @01:14PM (#41541156)
Yes, easy enough but annoying. Going the other direction (async -> sync) is a bit more problematic though. Now you've got to wrap things in spawn_blocking(), which isn't nearly as benign.