Search
Items tagged with: Rust
i've been using relm4 for a while and i'm really happy with it. i love the #elm architecture - your app's state is a struct (or object), your user interface is rendered by a function that takes your state and returns a tree of widgets (or similar), widgets emit messages, messages modify state. i find it so much cleaner and easier to wrap my head around than traditional imperative methods or MVVM.
what are some other nice cross-platform #desktop app frameworks that use this architecture? i'm mainly familiar with #relm4 and #iced in #rust.
#programming #gui #linux
me: what i like about #rust is how easy it makes it to write highly performant code, even when multiple threads are involved
also me whenever i have to think about ownership and lifetimes for more than two seconds: https://turbo.fish/::%3CHashMap%3CString,%20Arc%3CRwLock%3CThingy%3E%3E%3E
thought i found a really weird bug in jiff and spent a good ten or so minutes tracking it down, stepping through functions, etc. eventually i realised i was actually looking at a memory corruption bug in papaya!
do i get a prize for discovering my first memory safety issue in a #rust dependency?
GitHub - BurntSushi/jiff: A datetime library for Rust that encourages you to jump into the pit of success.
A datetime library for Rust that encourages you to jump into the pit of success. - BurntSushi/jiffGitHub
Developing apps is even more rewarding with Nextcloud Hub 10! 🧑💻
Now built into Nextcloud: develop apps in any dev language using our AppAPI and deploy via #Docker!
🔗 Read more with other improvements in our blog:
https://nextcloud.com/blog/nextcloud-hub10/
Nextcloud Hub 10 – your unified, modular digital workspace - Nextcloud
Welcome Nextcloud Hub 10 - reinforced performance, deeper integration, and dozens of new features that will make your day easier!Mikhail Korotaev (Nextcloud)
Hmm.
It looks like Microsoft wanted DEV_BROADCAST_HDR to be a discriminated union, but with the different variants having different sizes, presumably so that they could introduce new variants later without breaking existing code.
This is the correct way to accomplish that.
#Rust does something similar for trait object downcasting: check if the desired type is the same as the actual type, and if so, cast the pointer.
Check: https://doc.rust-lang.org/1.85.0/src/core/any.rs.html#225
Cast: https://doc.rust-lang.org/1.85.0/src/core/any.rs.html#294
The drama surrounding Rust in the Linux kernel has taken a new turn.
https://news.itsfoss.com/rust-kernel-policy-linux/
After Recent Kernel Drama, Rust for Linux Policy Put in Place
The recent Linux kernel drama over Rust code has resulted in the creation of a Rust kernel policy.Sourav Rudra (It's FOSS News)
some of the more modern (usually rust-based) tools described on https://terminaltrove.com/categories/. He interfaces are more intuitive and they are also a *lot* faster.
Rust FTW!
(psst: anyone wanna contribute some @tldr_pages?)
#terminal #terminal_apps #rust
Categories - Terminal Trove
All categories on Terminal Trove, showcasing CLI, TUI, and more developer tools.terminaltrove.com
New tool from me: I wrote a local aligner that can do approximate reference-based alignment and find genes in a query microbial genome, without a separate indexing step or any temporary disk space usage.
Written fully in Rust and there will be a browser version out later: https://github.com/tmaklin/kbo 1/3
#rust #rustlang #bioinformatics
GitHub - tmaklin/kbo: Spectral Burrows-Wheeler transform accelerated local alignment search.
Spectral Burrows-Wheeler transform accelerated local alignment search. - tmaklin/kboGitHub
Spacedrive is an open source cross-platform file explorer, powered by a virtual distributed filesystem written in Rust. It is still in Alpha 0.4.2.
https://www.spacedrive.com/
https://github.com/spacedriveapp/spacedrive
#spacedrive #file #sharing #Rust
Spacedrive — A file manager from the future.
Combine your drives and clouds into one database that you can organize and explore from any device. Designed for creators, hoarders and the painfully disorganized.www.spacedrive.com
Just released nix-weather, a #rust cli-tool to check how many of your NixOS system’s build dependencies are in a binary cache.
$ nix-weather -n myhost -c /etc/config/
Found Nix Requisites in 8 seconds
Checked 2789 packages in 1 seconds
Found 2676/2789 (95.95%) in cache
This is useful to e.g. “check the weather” before going for an update. If the dependencies you want still haven’t been cached, it can be useful to know you can postpone an update to a later day when the weather is better on the cache.
Feel free to try it out from the GitHub mirror (it’s likely faster than my forgejo instance, and I’d appreciate saving the bandwidth).
https://github.com/cafkafk/nix-weather/releases/tag/v0.0.2
Release v0.0.2 · cafkafk/nix-weather
Changelog Copied from source https://git.fem.gg/cafkafk/nix-weather/releases/tag/v0.0.2 Features Add count Add basic timers to show how long operations took --timestamp flag --config flag Flake + ...GitHub
rust9x 1.76.0 is close! Now with unwinding, backtrace support and thread parking working :V
GitHub - ruffle-rs/ruffle: A Flash Player emulator written in Rust
A Flash Player emulator written in Rust. Contribute to ruffle-rs/ruffle development by creating an account on GitHub.GitHub
Redox OS: Unix-Like OS Written In Rust
Redox OS is the other project that Jeremy is involved , but I'm not super familiar and maybe some of you aren't either so I was very curious what it was all ...YouTube
i'm working on a little #rust library that lets you define a set of rules and then simulate a cellular automaton. here it is running game of life in a terminal, but you can have arbitrarily many¹ rules and states. i'm planning to make a web app out of this, so you can play around with cellular automata in your browser :3
¹ it's actually just 232, thanks for pointing out that very relevant distinction
Multiplayer voxel RPG 'Veloren' v0.15 is out adding the first world boss
Free, open source and continuing to expand! Veloren is a multiplayer voxel RPG inspired by Cube World, Legend of Zelda: Breath of the Wild, Dwarf Fortress and Minecraft. Version 0.15 is out now and sounds fun.Liam Dawe (GamingOnLinux)
There are a couple of 'good first tasks' like https://phabricator.wikimedia.org/T319102 which could use your attention! 🦀
✨ The policy may or may not get passed.
But people are already using it as a point against using Rust. Some questioned whether they should continue learning Rust.
#rustlang #rust #programming #developers
Why such lame outcome is expected? Because #Google has a history of abandoning stuff once money is sucked from it.

(cons cat (cons cat nil))
In Rust:
Box<(Cat, Box<Cat>)>
#lisp #rust #RustLanguage #RustCataStructures
Hi! 👋
Like others, the birdsite used to be my primary platform, and now I'm seeing if the Fediverse can fill that void. I'm a big fan of western animation, and I'm hoping that the thriving #MastoArt community will eventually lead to more activity in the related hashtags (#amphibia, #bigcitygreens, #closeenough, #craigofthecreek, #owlhouse, #summercampisland, etc.). I'm also a former indie game developer, current professional Web Developer, and I tinker with #rust as my new favorite language.
https://blog.rust-lang.org/2021/12/08/survey-launch.html
Launching the 2021 State of Rust Survey | Rust Blog
Empowering everyone to build reliable and efficient software.blog.rust-lang.org