eupolicy.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
This Mastodon server is a friendly and respectful discussion space for people working in areas related to EU policy. When you request to create an account, please tell us something about you.

Server stats:

215
active users

#rustlang

33 posts31 participants5 posts today

Adding lookbehinds to rust-lang/regex, systemf.epfl.ch/blog/rust-rege.

The feature of lookbehinds is very often absent in linear regex engines. These researchers bring them in the `regex` crate. The benchmarks show a reasonable and usable performance making it ready for real-world applications.

The article gives all pointers to the research article and the patches for `regex` (on github.com).

The prevention of unnecessary lookbehind scanning till the end of the haystack is neat!

The words 'Systems and Formalisms Lab' on three lines next to a red rectangle.
SYSTEMF @ EPFL · Adding lookbehinds to rust-lang/regex – SYSTEMF @ EPFL
More from SYSTEMF lab

Engine Data Displayed Live On Dash

In the auto world, there are lots of overarching standards that all automakers comply with. There are also lots of proprietary technologies that each automaker creates and uses for its own benefit. [Shehriyar Qureshi] has recently been diving into Suzuki’s Serial Data Line standard, and has created a digital dash using the data gained.

The project started with Python-based scanner code designed to decode Suzuki’s SDL protocol. Armed with the ability to read the protocol, [Shehriyar] wanted to be able to do so without having to haul a laptop around in the car. Thus, the project was ported to Rust, or “oxidized” if you will.

More after the break…

[Shehriyar] has installed the system in a Suzuki Baleno. The Raspberry Pi uses a VAG KKL interface to connect to the car via its OBD port and connect to the SDL line. It decodes this data, and processes it to pull out parameters like speed, RPM. It then drives an LCD display on the double-DIN stereo in the dash. A simple composite output allows the system to display live data while driving the vehicle. The UI uses the Ratatui library. The result is a display that both updates smoothly and rapidly. It has a great retro vibe that kind of reminds us of some interfaces seen in Hollywood movies. Despite being analog video, the results are pretty sharp.

We’ve seen a few great digital dashboards over the years.

Crazy news: Ratatui made it into a car dashboard suzui-rs — Suzuki Serial Data Line viewer in Rust Displays live car data, powered by Pi and shown on stereo over RCA Written in Rust & built with @ratatui.rs GitHub: github.com/thatdevsherr…#rustlang #ratatui #tui #car #suzuki

Orhun Parmaksız (@orhun.dev) 2025-07-14T12:27:41.398Z

hackaday.com/2025/07/20/engine…

Every time I read an article about shortcoming of a tool, I wonder how much of that is ego and how much of it is an actual shortcoming?

Maybe it's a sign my perfectionism is going down, but different tools being imperfect in different ways does not make them bad or less useful?

Like, I just read an article about the #rust borrowchecker not being able to prove a valid program because it doesn't look 'through' functions. And this making it 'worse' in user experience.

And this feels fairly off to me. Sure the checker could try to do whatever you wish it did. But it doesn't, and so you have to adapt.

Like, not everything needs to fit what you expect from a tool I think.

It is fair to not use that tool (i.e. Rust) if you find that annoying, but I struggle hard with this mindset. Where rather than adapting to use a tool to its fullest, people just bang their head against it repeatedly saying "look how bad it is".

I'm now officially a maintainer of rust's stdarch. My first larger PR brings our CI time down from 40m to 13m, by being more clever about how we compile the C++ code that we test our intrinsics against:

github.com/rust-lang/stdarch/p

Turns out over 3000 invocations of clang on a CI machine are not fast...

There is lots more to improve, but now we can do it with a substantially faster feedback cycle.

There are 3 main changes

emit the arguments (the arrays of inputs) inside of the test function, and rename the test function from main to run_{intrinsic_name}.
generate number-of-cores files, and ...
GitHub`intrinsic-test`: combine C files for faster compilation by folkertdev · Pull Request #1862 · rust-lang/stdarchBy folkertdev

So uh. #Rust #RustLang lower-level folks: does str::to_owned() actually make a full copy under the hood? I have always assumed it does, and that Cow is the only case where those semantics happen, but….

Thanks to EuroPython for putting on such a great event this week, where we were proud to have a booth! While in Prague, Rust Foundation Global Community Coordinator Ernest Kissiedu presented a lightning talk on the intersection of #rustlang and AI. Thank you to everyone who joined.

🐍 + 🦀

Today I wrote about 300 lines of Rust featuring "unsafe" that I thought about quite carefully.

Then I started adding safety comments. The act of needing to convincingly argue that something is true made me find and fix 3 bugs I had missed before.

Safety comments exist for a reason!
#rust #rustlang

Firefox 141 adds WebGPU support on Windows, boosting graphics performance via the Rust-based wgpu project. ⚙️
It brings faster, more efficient GPU access through a W3C-backed standard. 🌐

Linux and macOS support coming soon; Android is also planned. 🐧
Available now in Firefox Beta—can be enabled via about:config. 🧪

Progress is welcome, but Linux users are still waiting. ⏳

@itsfoss

news.itsfoss.com/firefox-webgp

It's FOSS News · Firefox Catches Up to Chrome With the Addition of This Feature But Leaves Linux Out (for now)Mozilla did a very good job with this. Now, bring it to Linux as well, please.
Replied in thread

@ashguy

... speaking of hard-earned skills, I just recently found out about #rustlang #clippy

I've got a mountain of clippy errors. all easily fixable - just numerous.

I just got two YubiKey 5C NFC keys - a main and a backup. Screw trying any other approaches. Physical key all the way