Hacker News new | ask | show | jobs
by stjohnswarts 1358 days ago
why not rust?

(sorry, I had to)

2 comments

Rust isn't quite portable enough yet. There are lots of small environments or specialized toolchains that are based on gcc that'll compile bash just fine, but once you require Rust, you're eliminating architectures like Alpha (which includes familial descendents like the Shenwei architecture in the Sunway TaihuLight), m68k, SuperH and others.

Rust is getting better, but they're not quite there yet.

c2rust https://github.com/immunant/c2rust :

> C2Rust helps you migrate C99-compliant code to Rust. The translator (or transpiler), c2rust transpile, produces unsafe Rust code that closely mirrors the input C code. The primary goal of the translator is to preserve functionality; test suites should continue to pass after translation.

crust https://github.com/NishanthSpShetty/crust :

> C/C++ to Rust transpiler

"CRustS: A Transpiler from Unsafe C to Safer Rust" (2022) https://scholar.google.com/scholar?q=related:WIDYx_PvgNoJ:sc...

rust-bindgen https://github.com/rust-lang/rust-bindgen/ :

Automatically generates Rust FFI bindings to C (and some C++) libraries

nushell/nushell looks like it has cool features and is written in rust.

awesome-rust > Applications > System Tools https://github.com/rust-unofficial/awesome-rust#system-tools

awesome-rust > Libraries > Command-line https://github.com/rust-unofficial/awesome-rust#command-line

rust-shell-script/rust_cmd_lib https://github.com/rust-shell-script/rust_cmd_lib :

> Common rust command-line macros and utilities, to write shell-script like tasks in a clean, natural and rusty way

hey thanks for this I didn't know it existed. I'm still kind of a rust noob and working my way through Rust in action and various examples.