Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror

Comment Rust is better at some things than C and viseversa (Score 2) 179

Some of Rust’s strengths include the absence of a runtime and the lack of a garbage collector, which leads to more consistent performance. Compared to languages like Go, Rust may appear slower in some cases, but it avoids the performance hiccups caused by large garbage collection sweeps. It also tends to use less memory.

I’m okay with a small performance hit compared to C. I also believe that compiler improvements will help reduce this gap over time. Currently, the intermediate code generated by the compiler doesn't fully utilize all the context that Rust provides, which can limit optimization. Perhaps the money would be better spent improving the compiler rather than optimizing the code manually.

This Reddit thread has comments that provide more insight than the original post: https://www.reddit.com/r/rust/comments/px72r1/what_makes_rust_faster_than_cc/

Submission + - Welcome the Low Latency Runtime.... who thought Javascript could feel so native?

BitterEpic writes: Traditional JavaScript runtimes like Node.js rely on garbage collection, which can introduce unpredictable pauses and slow down performance, especially during cold starts in serverless environments like AWS Lambda. LLRT's manual memory management, courtesy of Rust, eliminates this issue, leading to smoother, more predictable performance.

LLRT also has a runtime under 2MB, a huge reduction compared to the 100MB+ typically required by Node.js. This lightweight design means lower memory usage, better scalability, and reduced operational costs. Without the overhead of garbage collection, LLRT has faster cold start times and can initialize in milliseconds—perfect for latency-sensitive applications where every millisecond counts.

For JavaScript developers, LLRT offers the best of both worlds: rapid development with JavaScript’s flexibility, combined with Rust’s performance. This means faster, more scalable applications without the usual memory bloat and cold start issues.

Still in beta, LLRT promises to be a major step forward for serverless JavaScript applications. By combining Rust’s performance with JavaScript’s flexibility, it opens new possibilities for building high-performance, low-latency applications. If it continues to evolve, LLRT could become a core offering in AWS Lambda, potentially changing how we approach serverless JavaScript development.

Would you consider Javascript as the core of your future workflow? Or maybe you would prefer to go lower level with quckjs?

Slashdot Top Deals

Genius is one percent inspiration and ninety-nine percent perspiration. -- Thomas Alva Edison

Working...