Search
Items tagged with: rust
please, instead of reading the blog post by someone getting "scared" by "rust's dependencies" after running some line count tool, read this more informative article instead
@mattgodbolt sold me on #Rust (by showing me C++)
collabora.com/news-and-blog/bl…
Matt Godbolt sold me on Rust (by showing me C++)
Looking at C++ from another angle can create new possibilities using Rust.Collabora | Open Source Consulting
New Blog Post:
Rust's Error Messages are Great
Examples of some of the best parts of #rust error messages. (You don't need to know rust to understand them.)
alanwsmith.com/en/2w/dt/w8/ce/
[cc: @mahryekuh who inspired this post by asking if there were error messages I liked.]
Today my #rust compiler told me "expected future, found a different future".
And I'm like: me too buddy, me too
agree with Rust, #Perl 🧅& Python🐍 are equal in quality & older.
I do wish #Rust had the #Python tutorial.
Up to date and covers the basics with the latest version. This point is so important, have correct usable documentation at each release. No half completed information allowed. 🐍<docs.python.org/3/tutorial/ind…>
The Python Tutorial
Python is an easy to learn, powerful programming language. It has efficient high-level data structures and a simple but effective approach to object-oriented programming. Python’s elegant syntax an...Python documentation
I’ve spent most of my day trying to not have ‘rustup target add aarch64-apple-visionos‘ tell me to go fish. (I get an ‘toolchain 'stable-aarch64-apple-darwin' does not support target 'aarch64-apple-visionos'’ error.)
’rustc --print=target-list’ lists it, but ‘rustup target list’ does not.
I know it's a Tier 3 target, so is there something I need to do to force it somehow?
#rust #rustlang
This week, I was writing #Rust code to parse the From: line in an email. I wanted to use a library, because email header parsing is notoriously difficult to get right. This library clearly was built expecting multiple addresses to be given on the From: line.
"What nonsense is this?"" I thought. And went to the RFCs, and sure enough, that's supported in RFC822, RFC2822, and RFC5322.
And then 2 days later I found a use for it. And it seems to work.
new security milestone reached: #chatmail relay servers are hardened to only transfer end-to-end encrypted e-mail with metadata minimization. No cleartext message can enter or leave the secure chatmail network anymore.
We now talk about "chatmail relays" rather than servers as they only ephemerally store messages until delivery. Dirt cheap to run.
We opened up our #rust "chatmail core" infrastructure library and set up an overview of the community driven ecosystem ...
Chatmail
Chatmail provides FOSS infrastructure for interoperable, secure, speedy and reliable end-to-end encrypted messaging. Check out clients as Arcane Chat, Bots or Delta Chat today!chatmail.at
So, we did a thing.
github.com/systemd/systemd/pul…
Support for Go library and utilities by Foxboron · Pull Request #36914 · systemd/systemd
This PR introduces two new changes. A Go Library systemd is an important set of libraries and utilities on modern Linux systems. The need to remove C in favour of memory-safe alternative is of peak...GitHub
Long shot but worth it. I think I may have found my blocker for using #NixOS on my laptop/dev machines and am looking for help.
In short, I have multiple #Rust projects that build on the CLI just fine but not in VS Code/Rust Analyzer. I didn't spot this until very recently when I realized problems in my own code weren't being highlighted but compiled crates worked just fine.
Seems RA can't find some libraries but to the best of my abilities I've made those libraries available to the shell. I also launch code .
from the terminal so it should have the environment set up correctly without need for Nix-specific extensions.
It's been suggested I not use the code-fhs Nix package, but that means starting from scratch and fixing existing extensions which work.
Please don't suggest abandoning VS Code or substantially changing my accessible workflows unless you also have 12 extra hours per day for me. Also please don't suggest abandoning Linux entirely--this issue is NixOS, not Linux.
More context: discourse.nixos.org/t/rust-pro…
Rust project builds from the command line, but not in VS Code
Hey folks, seems like every time I think I’m starting to figure things out, I hit a new wrinkle. 🙂 I’ve been trying to move various projects to devshells.NixOS Discourse
Hi, anybody here is experienced in Rust (perhaps even also in creating bindings for a C library/API) and would like to mentor a #GSoC contributor for OpenPrinting? The contributor will work a total of 3 months full-time (or 350 hours) in the time from May to November this year on the project and they will get a stipend from Google.
Only additional requirements are a minimum age of 18 and not to want to participate as GSoC contributor this year or in any later year.
#OpenPrinting #Rust #CUPS
Wow. #Rust is an unserious language. Unless you bend over backwards to fight the compiler and avoid the standard library, you cannot write code that doesn't try to terminate the calling process on arbitrary error conditions. news.ycombinator.com/item?id=4…
Terminating the process is never an appropriate action in a library. The library has no way to know its caller's uptime constraints. Libraries should only return error codes to callers. Only applications can decide whether to bail out or not.
Last week we had our first! Thunderbird + Rust office hours with our back-end developer @brendan and Sr. DevRel Engineer @linuxflower giving us a great introduction to the past, present, and future of oxidization in Thunderbird. Watch the recording on our @tilvids channel and find out how to get involved!
the clarification is in a blog post, that may not be legally binding. so in my eyes any clarification outside of the ToS is worthless.
If #Mozilla wants to offer AI services or collect and use their users data, this should be a separate opt-in ToS in my opinion, not the terms of the base application.
But TBH #Mozilla is doing too much dumb management decisions these days, so I'm considering to stop recommending it. (colorways, firing #rust and #servo teams, ads for temu and so on)
** Announcement ** Check out all the selected speakers for RustWeek 2025!
See rustweek.org/speakers/
Also see the schedule for both conference days:
Tue: rustweek.org/schedule/tuesday/
Wed: rustweek.org/schedule/wednesda…
cargo clean
and do the entire build again. What a waste.
You're invited to our inaugural Thunderbird + Rust Office Hours! Join us on Wednesday, February 19 at 20:00 UTC. Find out all the info on our Developers mailing list: thunderbird.topicbox.com/group…
Happy I Love Free Software Day! 💕
Unfortunately, this year I could not join nor organize any in-person celebration, BUT of course I want to share my gratitude to the many, countless #FreeSoftware services I don’t merely use, but actually depend on.
Last year, I decided to focus only on #YunoHost, because it would have been crazy to list all the projects I use and I love.
This time, even if I will most certainly forget someone, I am challenging myself to mention all the #LibreSoftware my life is powered by.
Without further ado, THANK YOU to:
- @yunohost, for powering Nebuchadnezzar
- @fedora, for running my beloved #Framework laptop
- @frameworkcomputer, for designing and building repairable, #Linux-friendly and truly open hardware
- @gnome and @GTK, for being just gorgeous
- @calyxos (thus @LineageOS), for powering my #Fairphone5
- #Obtainium, for making me directly download apps on my phone, and @fdroidorg for distributing them
- #AuroraStore, for proxying the download of apps I am doomed to get from Google Play
- @element, for developing #Synapse, even though the new proprietary Synapse Pro is VERY PROBLEMATIC AND DISAPPOINTING
- #Fractal, for being the most beautiful and awesome #Matrix client ever
- @signalapp, for keeping me connected with the people I love
- @Mastodon, for also maintaining a feature-packed experimental fork (#GlitchSoc), that is what Pan runs
- #Tuba and #Moshidon, for being the most beautiful and awesome #Mastodon clients ever
- #Firefox, for still remaining the best possible #browser choice, despite #Mozilla’s governance messiness
- @openstreetmap, for allowing us to find the right path, both literally and metaphorically!
- @organicmaps, for being the simplest, cleanest, yet feature-rich #OSM client and navigation app
- @protonvpn, for making me browse safely from/to anywhere in the planet and @protonprivacy #ProtonMail, for hosting my email, despite the latest alarming political statements…
- @libreoffice, for allowing me to draft documents with ease, the last of which was my #CV
- #LanguageTool, for preventing me from making embarassing spelling mistakes
- @photoprism, for safely storing and indexing all my photographic memories, on Aby, and for providing stellar and friendly support too!
- #Actual, for moderating the very likely risk of ending up completely broke, since it forces me to manage my finances consciously and coherently
- @readeck, for storing and sorting ALL my varied and overwhelming inputs
- @nextcloud, for storing and synchronizing my data, for its #calendar, its #tasks, and all its awesome apps
- #Rustdesk, for preventing my friends and family members from going crazy, by allowing me to remotely connect to their devices and directly address the issues they have
- #Listmonk, for sending out my newsletter
- @eleventy, for powering all the websites I maintain, above all the virtual representation of my mind, and for being the only reason why I resist and try to continue learning #JavaScript
- @forgejo, for giving us a chance to truly control and collectively develop the sources of our software, but most importantly @Codeberg, for RESISTING, RESISTING, RESISTING, despite the hatred and attacks nazi assholes throw at them
- @musicbrainz for keeping music knowledge open and free, and @ListenBrainz for scrobbling the crazy music I listen to
- The @fsfe, for promoting this celebration and fighting the good fight!
Lastly, but most importantly, the biggest thank you goes to all the free software libraries and dependencies the above mentioned #software are made of/built with, including #C, #JavaScript, #Python, #Rust, and all community-maintained programming languages.
I am super sorry if I forgot someone!
#OpenSource #ILoveFS #SoftwareFreedom #Fairphone #Android #LineageOS #FSFE #OpenStreetMap #PhotoPrism #LibreOffice #Readeck #Eleventy #11ty #GNOME #Signal #forgejo #Codeberg #MusicBrainz #ListenBrainz #MetaBrainz
Nebuchadnezzar
Information and insights concerning the configuration and maintenance of Tommi’s server.Tommi (Tommi’s mind)
I'm currently looking for a remote software development job
I have plenty of experience making software using all sorts of languages, frameworks and tools. Tho I have the most experience with Rust, C++, C#. I also usually do native cross platform applications and backend.
You can find my full CV on my website luna.graphics
#GetFediHired #JobSearch #RemoteWork #Rust #Rustlang #CPP #CSharp #Backend
Interested to take a little tour through how #deltachat apps and the #rustlang core library are wired together?
@treefit and @WofWca provide a deep-dive into the history of apps migrating from a C-Foreign-Function-Interface to a #Rust based JSON-RPC mechanism, with entertaining horror stories like how an iOS release some years ago could delete profiles without the user intending it 😬
The post also highlights a few areas where folks interested to help could start ... delta.chat/en/2025-02-11-why-j…
Delta Chat: From C- to JSON-based APIs of the Rust
Foremost this is a quite technical post. Read our other blog posts if you want something more targeted at end users. If you have not yet looked at the Delta Chat source code, you might not know tha...delta.chat
✨ My first technical blogpost is out now. ✨
If you ever wanted to learn a bit about how
#deltachat works internally and why we have two ways to communicate with our #rust core, then this is the introduction to read
delta.chat/en/2025-02-11-why-j…
#jsonrpc #cffi #c #rust #deltachat_desktop #deltachat_core
Delta Chat: From C- to JSON-based APIs of the Rust
Foremost this is a quite technical post. Read our other blog posts if you want something more targeted at end users. If you have not yet looked at the Delta Chat source code, you might not know tha...delta.chat
We've got some exciting job openings at #Thunderbird! We're hiring for a Sr. UX Design Specialist, A #Rust /C++ Software Engineer for the desktop app, and......a Senior #iOS Engineer to join our mobile team to help us bring Thunderbird to your iPhone and iPad!
Help us spread the word!
mozilla.org/careers/listings/?…
Mozilla Careers — All open positions at Mozilla
We have a mighty mandate, serving hundreds of millions of people. Add a culture of exploration, and there is always a new way to learn and grow here.Mozilla
This marks my very first technical blog post, Interning at @servo has been an absolute joy—I’ve learned so much about browsers, Rust, and the open source community, and I’m beyond grateful!
chickenleaf.wordpress.com/2025…
Half-Cooked and Still Stirring
Browsers are simply so much cooler than I ever gave them credit for. It is about halfway through my Outreachy internship, and I have still not fully processed how mind blowing it is that these thin…panic at the kernel
anyone interested in helping out with maintaining the message parser for #deltachat desktop?
It's #test_driven_development like a #coding_puzzle, written in #rust with the #nom parser combinator library.
Repo: github.com/deltachat/message-p…
We have some bugs that I currently don't have the capacity to fix.
GitHub - deltachat/message-parser: Parsing of Links, Email adresses, simple text formatting (markdown subset), user mentions, hashtags and more in DeltaChat messages.
Parsing of Links, Email adresses, simple text formatting (markdown subset), user mentions, hashtags and more in DeltaChat messages. - deltachat/message-parserGitHub
Spent the last 6 hours trying to get a hello world equivalent gui window with a button on rust under windows.
This task which one might think is simple ended up taking literal hours and still hasn't been achieved because: the tutorials for gtk on windows and rust suggest putting msys2 bin directory on the path. This causes rust to fail to build correctly because it uses the wrong gcc and linkers.
Afterwards I managed it by using the appropriate environment variables.
But then I found out the dynamically linked libarries weren't found. I tried getting a way to copy them but it turned out to be too much work so I just moved the executable to the same dir.
Only to find out that gtk4 has no accessibility on Windows. Not bad accessibility, not accessibility that needs to be turned on. No. Accessibility. At all.
So then I decided to try Qt, which wants me to create an account to get an installer. Absolute no.
Got the 1.5gb sources and trying now to get an off-line installer out of it.
To get a fucking window with a button in it.
I don't think it's unreasonable for me to say this state of affairs is complete bullshit, and that most people with a normal level of motivation would have found plenty of opportunities to have given up. I still might.
(Not using NWG because tying the data to the GUI elements is non-trivial, it seems to require copying a lot and using twice the memory.)
Came across this Hacker News comment by @rain which succinctly describes one reason #Rust's approach to ownership and borrowing is valuable: news.ycombinator.com/item?id=3…
> Which popular GC languages have mutexes owning the state they guard, such that it is structurally impossible to access that inner state without holding the lock? To do that you must have single ownership.
Posting for the benefit of anyone else who, like me, is sometimes swayed by the backlash against Rust.
“We need to get one thing out of the way: Rust is cool. It’s fun.
“It’s tempting to try to sweep this under the rug because it feels gauche to say, but it’s actually important for a number of reasons.
“For one, fish is a hobby project, and that means we want it to be fun for us. Nobody is being paid to work on fish, so we need it to be fun. Being fun and interesting also attracts contributors.”
daniel.haxx.se/blog/2024/12/21…
dropping hyper
The ride is coming to an end. The experiment is done. We tried, but we admit defeat. Four years ago we started adding support for an alternative HTTP backend in curl. It would use a library written in rust, called hyper.daniel.haxx.se
Another cool #Rust project!
"Binsider offers powerful static and dynamic analysis tools, similar to readelf(1) and strace(1). It lets you inspect strings, examine linked libraries, and perform hexdumps, all within a user-friendly TUI."
devclass.com/2024/12/12/sqlite…
SQLite re-implemented in Rust to achieve asynchronous I/O and other changes • DEVCLASS
Turso, a developer focused on database solutions, is re-implementing the SQLite database engine in Rust, in order to […]Tim Anderson (DEVCLASS)
I can't wait to see how people use default field values in #Rust!
It felt like an eternity to land this (specially if we count the years of discussion before the, I believe, 3rd RFC was accepted), but as of next nightly you will be able to write
struct Foo {
bar: Type = Type::const_method(),
}
Foo { .. } // implicit `bar: Type::const_method()` call
The main difference between github.com/rust-lang/rust/pull… and derive(Default) is that the latter doesn't support having mandatory fields.
#RustLang
Introduce `default_field_values` feature by estebank · Pull Request #129514 · rust-lang/rust
Initial implementation of #[feature(default_field_values], proposed in rust-lang/rfcs#3681. We now parse const expressions after a = in a field definition, to specify a struct field default value. ...GitHub
Borrow checker complaines only if lifetime is involved!?
I try to solve https://adventofcode.com/ using Rust to reactivate and improve my skills. Today I ran into an issue with the borrow checker which I did not understand.The Rust Programming Language Forum
Rust 1.83 just got released!
This time, nice const improvements.
Check out the release post: blog.rust-lang.org/2024/11/28/…
Announcing Rust 1.83.0 | Rust Blog
Empowering everyone to build reliable and efficient software.blog.rust-lang.org
Once more for the evening crowd (or folks in other timezones): Unsafe for work - how to treat and communicate unsafe Rust
Unsafe for work
Before we start, have a look at this image. It is from a German book from the early Nineties, and it features some very interesting cover artwork. A knight with a cape and a big bushy mustache rides a friendly green dragon.oida.dev