Re:Rustgo: Calling Rust from Go with near-zero overhead
by pjmlp on Tuesday August 15, 2017 @03:28PM
(#15021511)
There is also gccgo, taking advantage of GCC's backend.
There is some ongoing work into an LLVM based compiler for Go, and LLVM now has Go as official supported bindings.
Re:Rustgo: Calling Rust from Go with near-zero overhead
by tptacek on Wednesday August 16, 2017 @10:17AM
(#15027622)
Go can and should fix the integer problem here. George Tankersley had a whole talk at Crypto Village this year about what a nightmare it is to write competitively fast curve code in Go.
This is for a few reasons:
Rust has support for 128-bit integers (i.e. u128) which allows for faster arithmetic when operating on what are effectively multi-u128 bignums in an elliptic curve library.
LLVM is generally more sophisticated about optimizations. It wasn't until recently that go had an SSA-based compiler, so its optimizer isn't nearly as sophisticated as LLVM's, which has been developed for many years now.