Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This just makes the beauty of Rust so much more clear. Compatible C structs without going through this headache. It also points out another reason why Go is not a "systems" language.


I never understood why they didn't take the FFI route that Delphi, Pascal dialects, Modula-2, Modula-3, .NET, D, Ada, Rust and many other languages do, for describing bindings to other languages.

When I asked about why going cgo instead, the general reaction was "go away we know better", as usual.

EDIT: Typo (way => away)


You could do that in Common Lisp for about 3 decades now. I remember doing this 10 years ago, from the REPL no less.

https://common-lisp.net/project/cffi/manual/html_node/defcst...




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: