sigmoid.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A social space for people researching, working with, or just interested in AI!

Server stats:

588
active users

#rustlang

91 posts77 participants0 posts today

I'm toying with some new ideas for registering functions in Roto and it's starting to look quite nice! Here's a before and after screenshot. The advantages are:

1. You no longer need to pass the runtime around everywhere. You can create the module structure separately and pass it to the runtime as a single unit.
2. You can write doc comments as doc comments instead of strings.
3. There's no proc macro anymore (the new `item!` macro is declarative).

@nlnetlabs

The #Rust based Binder driver has hit linux-next and thus is slated for inclusion in #kernel 6.18. Congrats to Alice and everyone who helped making this possible!

From the patch description (git.kernel.org/pub/scm/linux/k):

""We're generally not proponents of rewrites (nasty uncomfortable things that make you late for dinner!). So why rewrite Binder?

Binder has been evolving over the past 15+ years to meet the evolving needs of Android. Its responsibilities, expectations, and complexity have grown considerably during that time. While we expect Binder to continue to evolve along with Android, there are a number of factors that currently constrain our ability to develop/maintain it. Briefly those are:

1. Complexity: […]
2. Things to improve: Thousand-line functions, error-prone error handling, and confusing structure […]
3. Security critical […]

The biggest change is obviously the choice of programming language. We decided to use Rust because it directly addresses a number of the challenges within Binder that we have faced during the last years. […]""

Replied in thread

@bortzmeyer Oh, the team is yelling across the room that we're down to 284 crates being compiled in a clean Cascade build now. 😅

And yes, we're very careful with choosing our direct dependencies. The Rust community is doing their best to not fall victim to npm-style supply chain attacks with initiatives like `cargo-vet` and `cargo-crev`. It's on our radar!

If you're working in the command line daily, here are some tools that made my life better:

- github.com/ajeetdsouza/zoxide for switching directories with more comfort
- github.com/eza-community/eza for more pleasant directory listings
- atuin.sh for helpful history
- github.com/BurntSushi/ripgrep for faster search in files
- github.com/junegunn/fzf for finding files faster
- starship.rs for fast helpful shell prompts

And give fishshell.com a try while you're at it, it's great.

Dioxus looks really interesting, especially if you want to build an application in Rust and have it run on multiple platforms. Since I may have this requirement in the future, I think now is a good time to take a closer look at it and improve my Rust skills. :) dioxuslabs.com/ #rust #rustlang

dioxuslabs.comDioxus | Fullstack crossplatform app framework for RustA fullstack crossplatform app framework for Rust. Supports Web, Desktop, SSR, Liveview, and Mobile.
Replied in thread

@uecker @fcalva @kernellogger "You have the guaranteed memory safety only if you rewrite everything in Rust. And even then, only if you do not use unsafe (and none of your dependencies)."
Rust std-lib uses unsafe. With that restriction you wouldn't be allowed to use Rust at all. Here is an explanation why std-lib uses unsafe Rust: stackoverflow.com/questions/73

Stack OverflowWhy does the Rust standard library have so much unsafe code?I was looking at String in the standard library and there was so much unsafe code like this one: #[inline] #[stable(feature = "rust1", since = "1.0.0")] pub fn remov...