An implementation of a LRU cache
You didn't seem to click the commit the guy linked with the rust code https://github.com/jeromefroe/lru-rs/pull/121/commits/416a2d...
It has nothing to do with opting out. Zig, Rust and no language saves you when you write incorrect unsafe code. My original point is disqualifying c tools is misleading and everything suffers from incorrect unsafe code
A static analysis file format checker. (by ronomon)
Wow, that's saying something!
I'd love to rewrite it in Zig some day to benefit from the checked arithmetic, explicit control flow and spatial safety—there are no temporal issues for this domain since it's all run-to-completion single threaded.
Got to admit I'm a little embarrassed it's still in C!
Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.
Empowering everyone to build reliable and efficient software.
The headline feature of rustc memory management is the use of arenas: https://github.com/rust-lang/rust/blob/10f4ce324baf7cfb7ce2b...
//! The arena, a fast but limited type of allocator.
General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
Borrowchecker in Zig
Somebody implemented part of it in the past, but it was based on the ability to observe the order of execution of comptime blocks, which is going to be removed from the language (probably already is).
It's not a complete solution, among other things, because it only works if you use it to access variables, as the language has no way of forcing you.
Unsafe marker trait for types that deref to a stable address
Unsafe Rust is an esoteric language without iron-clad guarantees, and type-level programming and async Rust is an esoteric metalanguage (https://hirrolot.github.io/posts/rust-is-hard-or-the-misery-...). For example, matklad made a recent blog post on "Caches In Rust" (https://matklad.github.io/2022/06/11/caches-in-rust.html). The cache is built around https://docs.rs/elsa, which is built around https://docs.rs/stable_deref_trait/latest/stable_deref_trait..., which is unsound for Box and violates stacked borrows: https://github.com/Storyyeller/stable_deref_trait/issues/15
There is a recurring trend of sound C programs turning into unsound Rust programs, because shared mutability is often necessary but it's difficult to avoid creating &mut, and Stacked Borrows places strict conditions on constructing &mut T (they invalidate some but not all aliasing *const T).
A distributed financial accounting database designed for mission critical safety and performance to power the future of financial services.
It's a pleasure. Let me know if you have any more questions about TigerBeetle. Our design doc is also here: https://github.com/coilhq/tigerbeetle/blob/main/docs/DESIGN....
Clean code begins in your IDE with SonarLint. Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.
Some Thoughts on Zig
9 projects | news.ycombinator.com | 21 Jul 2022
Rustup on Windows will soon give the option to auto install Visual Studio prerequisites
3 projects | reddit.com/r/rust | 11 Jun 2022
Comparing Hare to Rust and Zig
2 projects | news.ycombinator.com | 3 May 2022
What do my fellow RIT students think of this article? I can't even remember the last time where there was interesting developments in computer technology.
3 projects | reddit.com/r/rit | 18 Mar 2022
Toward a better list iterator for the Linux kernel
4 projects | news.ycombinator.com | 10 Mar 2022