News for hackers. Stuff that matters.
Re:Writing Python inside Rust by ogoffart on Sunday April 19, 2020 @04:25AM (#22914393)
I'm using this to write Qt bindings: https://github.com/woboq/qmetaobject-rs/

> Is it just about convenience so you don't need to bother with putting your C++ code in a different file?

Yes, mostly. I find that having the code in place makes a big difference. I do not like useless levels of indirection and context switches while coding. This way is much better then having to edit three files (the .cpp, the ffi module, and the caller) each time I want to do a call into C++ while making sure they are in sync.

Re:Writing Python inside Rust by marvy on Sunday April 19, 2020 @11:08PM (#22920788)
That actually makes sense! Cool!