News for hackers. Stuff that matters.
Re:Rustgo: Calling Rust from Go with near-zero overhead by smegel on Tuesday August 15, 2017 @04:57PM (#15022473)
What has this got to do with Rust? Nothing. He could have called any C library and it would have been exactly the same. I am pretty sure there is a crypto library or two written in C.

He is just writing a more direct manual version of CGo in assembly that bypasses a lot of what CGo does, to be much faster.

> Before anyone tries to compare this to cgo

The only meaningful message in this blog is it possible to write a faster CGo, that's it. Comparing it to CGo is the only useful possible outcome, but...

> But to be clear, rustgo is not a real thing that you should use in production. For example, I suspect I should be saving g before the jump, the stack size is completely arbitrary, and shrinking the trampoline frame like that will probably confuse the hell out of debuggers. Also, a panic in Rust might get weird.

So when you actually fix all those things you might be back where CGo was at the beginning.

This guy comes across as a classic "but i wanna be cool" hacker who discovers that when you bypass all the normal protections in a library and make some kind of direct custom call, things can be faster.

I guess so what?

Re:Rustgo: Calling Rust from Go with near-zero overhead by legendiriz68 on Wednesday August 16, 2017 @04:34AM (#15025870)
Only comment which actually realized what the article was about and...downvoted. Thanks HN-retards.