#Rust 1.84 has been released. Beginning the migration to the much awaited next-gen trait solver. Cargo now takes Rust version into consideration for dependency version selection, the MSRV-aware resolver is opt-in for now but will be default for projects using 2024 edition.
#rustlang #programming
Posts by VirtualComputer
#Helix editor 25.01 has just been released bringing improvements to path and snippet completions, diagnostics (with support for inlining), tabular picker UI, macro keybindings, and commenting.
helix-editor.com/news/release...
#rust #rustlang #programming #helixeditor
Already testing the new release on some small services I'm running at home, other than the breaking changes to path parameters it's been a painless upgrade. I'm going to upgrade the Axum services at work in the coming weeks.
Celebrating the new year with the release of #axum 0.8.0, the most popular web framework for #Rust. Bringing path parameter syntax changes, Option<T> as an extractor, and removing the async_trait dependency resulting in a MSRV bump to Rust 1.75.0.
#rustlang #programming #webdev
I've only written projects in Rust either from the beginning or rewritten in parallel with an existing version, so it's quite inspiring to see a project successfully doing an in-place rewrite. Gaining insight into this process definitely helps with some things I'm working on.
🧵 2/2
Interesting blog post about the 2 year process of rewriting fish-shell in #Rust. Gradually replacing C++ components with Rust versions and using various techniques to maintain interoperability while the rewrite was underway.
🧵 1/2
#programming #rustlang #fishshell
Looks like #Linux 6.14 is getting the necessary abstractions for #Rust PCI / platform device drivers. Making it possible to implement real device drivers in Rust. We are at a tipping point for Rust drivers in Linux.
#rustlang
Impressive performance improvements between #Linux 6.6 LTS and 6.12 LTS.
Async closures (RFC 3668) for #Rust has finally been stabilized and merged into nightly! Assuming the merge doesn't get reverted, async closures will be released with stable Rust 1.85 late February next year. Looking forward to this one!
#rustlang #programming
#Rust based, memory-safe PNG decoders are outperforming established C-based PNG libraries, while bringing memory safety guarantees to the table. In the future they could help protect against malformed/malicious content targeting bugs in current decoders, especially in web browsers.
#rustlang
#Rust RFC 3681 for default field values in the type definition looks mighty interesting. It simplifies writing defaults for a type significantly in some cases. It's not implemented yet, but I'm looking forward to it hitting stable, even if it is far in the future.
#rustlang #programming
Development for the next-generation trait solver for #Rust is moving along smoothly, and will be used as the default for coherence checking from Rust 1.84. It will remove inconsistencies and theoretical soundness issues, and enable future type system improvements.
#rustlang #programming
New #Linux LTS kernel version promoted. Linux 6.12 is now the latest LTS version with a projected end-of-life of December 2026, the same EOL as many earlier LTS kernels. The EOL may be extended but it depends on the support from hardware/software vendors, testers, and the open-source community.
COSMIC Desktop Alpha 4 just got released and it's continually getting closer to being a daily driver with all these new features and fixes. I still haven't replaced KDE with it yet, but I'm really looking forward to the first stable release.
#rust #rustlang #cosmic #cosmicde #linux #system76
Combined with a proper CI/CD stack which notifies the ones involved about errors and prevents deploying broken builds and you're golden. 95% of the time it's not about pinning blame, but rather helping everyone improve.
As a bonus it helps onboard juniors and establish good practices from day 1.
2/2
Unfortunately some people have to be forced to use a strict compiler or linter to prevent them from doing stupid, fast and easy fixes. Even if they know better. Having tools which slap you and say "NO! That's stupid, do this instead" is very useful in a corporate context.
1/2
I fully agree with you. In this case we have to be 200% sure the data is correct and valid, while dealing with unsanitized user input. Most of my frustration is with the sanitization "layer", it should be implemented in something strict. Afterwards the data can and should flow freely.
There's always the possibility we could cook up our own monad data structures or converting things to #Typescript so we could use fp-ts or effect-ts. The only problem is the huge codebase. We are already considering converting it to #Rust, #Elixir with typespecs, or #Gleam.
#programming #rustlang
After working on a #Javascript Node backend project for a while it's so good to get back to #Rust. No need to check if a variable is null or undefined, if a string is a string, exceptions, and so on, all the time. Knowing what data type you're dealing with helps immensely.
#programming #rustlang
❗️Cargo in Rust 1.83 has changed default lockfile format to v4.❗️
Rust 1.78+ supports this format, if you need backwards compatibility with earlier versions consider setting MSRV (package.rust-version) to 1.82 or earlier in Cargo.toml.
Burned myself on this while testing 1.83.
#rust #rustlang
It's that time of the 6 week cycle again, a new Rust release!
Rust 1.83 brings new const capabilities and a trove of new stabilized APIs. A lot of new features are now available with compile-time evaluation.
blog.rust-lang.org/2024/11/28/R...
#rust #rustlang #programming
Imagine a future where we are developing on a #System76 computer running #RedoxOS with #COSMICdesktop and either a #alacritty or a #wezterm terminal with #zellij as the multiplexer and #helixeditor as the development environment.
Running #rustlang from top to bottom on your computer.
#rust
A bit late to the party, but Zellij has added a "non-colliding" by default mode. I can finally switch out tmux for Zellij, without setting up tons of manual key bindings to prevent collisions.
zellij.dev/news/collidi...
#rust #rustlang #zellij
Really looking forward to playing with the new features in Rust 2024 when it hits stable February next year. Some of them I know will come in handy at work.
blog.rust-lang.org/2024/11/27/R...
#rust #rustlang #programming #coding
Always exciting to see more infrastructure for Rust in newer versions of the Linux kernel!
www.phoronix.com/news/Linux-6...
#linux #rust
Is it really going to manifest into something if it's "years away" though? There's been rumors and reports of a Xbox handheld since the 360 era.