Skip to main content

Search

Items tagged with: Rust


Did you know that a lot of things in #Rust directly implement the `Ord` trait?

For example `Option<T>` where T: Ord

https://doc.rust-lang.org/std/option/enum.Option.html#impl-Ord-for-Option%3CT%3E

So you can do:

assert_eq(max(Some(0), Some(1)), Some(1))

assert_eq(max(Some(0), None), Some(0))

assert_eq(min(Some(0), None), None)

There are a lot of other things that implement `Ord`:
https://doc.rust-lang.org/std/cmp/trait.Ord.html#implementors

#RustLang #RustTips #RustTip


Oort seems like a pretty fun Rust programming game. The idea is that you get to program ships to engage in space combat. Similar to other games such as Space Traders.

The idea is pretty cool, but it uses a web editor to input the code and it is not accessible, so I can't use it. Pity.

#a11y #games #rust


I've written a #tutorial on how to program #accessible #native #gui #windows applications in #rust using the native-windows-gui library: https://modulus.isonomia.net/tech/nwg/

Also available in Spanish: https://modulus.isonomia.net/tech/nwg-es/

#a11y #programming


Bueno, ya he sacado tutorial. Aquí os explico como programar una aplicación de #gui nativa para #windows con #rust, y #accesible. https://modulus.isonomia.net/tech/nwg-es/

#a11y #programming


Quick screenshot of a #thunderbird experiment I'm hacking on, something of a side-project for me.

Shown here, a replacement of the C++ based main entry (nsMailApp.cpp) with a prototype entry written in #rust
-O2 <- -ORIIR


I'm looking for a new job, or contract work, for the first time in a while - boosts appreciated!

I'm a polyglot programmer, with a wide range of experience behind me, from developing firmware that runs on 8-bit AVR, to highly distributed systems across hundreds of nodes, I covered pretty much the whole landscape.

I had my fair share of Ops experience too, and worked in (technical) Customer Service aswell.

I speak many languages (#C, #Rust, #Lua, #Python, #JavaScript, some #Go among them), but I pride myself in being able to pick up a new language at a decent level between signing a contract and starting on the job.

I'm a #Linux guy through and through, and have very little experience (or desire) to work with anything else, save maybe for the BSDs. I worked with containers, databases (relational and otherwise); in the cloud and on premises. I can debug, I can mentor, I can teach, and build, and integrate (continuously, even!). I'm not afraid of git rebase, nor of a crowd to speak in front of.

I live in Hungary, and am seeking remote work. I cannot relocate.

If you are someone looking for something like that, or know someone who is, please get in touch. My CV - with contacts - is available here.

#GetFediHired


From one of our wonderful translators: "I wanted to thank all developers of Deltachat for making such an incredible and simple multi-device supporting app! (Yes, I spent 2 days fresh-installing my double-booted main PC, so I really love all the time the multi-device backup option saved me!) You rock! 🤩" .... Shout out to our friends at https://n0.computer/ who just published hole punch support https://github.com/n0-computer/iroh/releases/tag/iroh-v0.5.1 .... The lib we use for multi device setup in #deltachat #rust core


What good is a queue you can't call "push" on, or a mutex you can't "lock?"

It turns out that some common API patterns are bug generators in async Rust code. In the 0.3 release series, I've taken a pass over the OS APIs in lilos (my async embedded OS ) and tried to make the whole OS strictly cancel-safe.

As a side effect, I replaced both "push" and "lock" with subtly different operations that are much harder to use incorrectly. Details in my latest post:

https://cliffle.com/blog/lilos-cancel-safety/

#rust

#rust


Just published #rust @hyper_rs v1.0 RC4.

We'll let this one bake a few weeks, and if all is well, this could be the last one!

https://github.com/hyperium/hyper/releases/tag/v1.0.0-rc.4


Are you interested in working on GNOME, writing Rust apps, or working with Fonts? If so, you may be interested in taking a look at https://gitlab.gnome.org/GNOME/gnome-font-viewer/-/merge_requests/49 :)

This port may take a while, and I greatly appreciate any help available. I've laid out a list of tasks to be done before merging, and if anyone wants to take something on let me know and we can work together.

If you want to help with the effort, please join #fonts:gnome.org on Matrix :) (https://matrix.to/#/#fonts:gnome.org)

(boosts appreciated)

#GNOME #Rust #Fonts #gtk-rs #gtk4 #libadwaita


I wanna do some #SQL in #Rust. Maybe use an #ORM, unless everyone thinks ORMs are dumb.

What crates should I use?

What would Ferris do?

#sql #rust #orm


:ferris: vs :julia:

My talk about "Rust vs Julia in scientific computing" is confirmed!

I am very excited about it :D
Only 7 minutes, but that is fine for the first public talk :)

The talk will be recorded and I will write a blog post about it. Stay tuned :D

You can still register to the free online conference "Scientific Computing in Rust":

https://scientificcomputing.rs/

#RustLang #Rust #JuliaLang #ScientificComputing


Really happy to see these results on the perception of googlers on quality of the #Rust development experience, an area I'm highly passionate about. I'd like to take this as an opportunity to encourage the 9% (and the other 91% as well) to file tickets when we don't meet the bar we've set for ourselves.
https://opensource.googleblog.com/2023/06/rust-fact-vs-fiction-5-insights-from-googles-rust-journey-2022.html?m=1
#rust


I've decided to open source Ebou, the cross platform Mastodon Desktop Client.

You can find the repository here:

https://github.com/terhechte/Ebou

It also supports Windows, although this is beta and Windows binaries are not included yet (you'll have to compile it yourself). Attached is a Windows screenshot. Linux should be easy to support, too.

I'm open sourcing it because I think there's great value in a high quality cross platform Mastodon desktop client and I can't pull this off alone.

#rust

#rust


It looks like someone (!) forgot to talk about the new xmpp-rs 0.4 release post !

https://xmpp.rs/blog/release-xmpp-0-4/

This is a big article trying to make intelligible many changes including low-level crates included in the project

#XMPP #Rust


I love it when I get #Rust errors that I worked on and forgot about
#rust


fwiw i highly recommend that, if you're interested in the future of #rust, you join the Rust Zulip chat [1]. even if you have nothing to say and just want to lurk.

it's a productive and friendly space for the most part, and a super good way to stay informed on what's happening.

1: https://rust-lang.zulipchat.com

#rust


Exciting times are ahead! We're starting to see new programming languages evolve the ideas popularized by #Rust. Children of Rust, if you will.

https://inko-lang.org/

Inko seems to trade off a little performance to get a compiler that accepts more code as valid, but still keeping strong safety guarantees. An easier-to-write language than Rust perhaps.

I'm looking forward to seeing more languages that make coding easier while not compromising on safety and reliability. :blobcatthumbsup:

#rust


Snapshot, the new Camera (photo/video) app is available on Flathub 🎉 📷

It looks fantastic, here is a picture of Hermine sleeping next to my desk.

https://flathub.org/apps/org.gnome.Snapshot

Made by @maximiliano 🎩

#Flatpak #Flathub #GNOME #LinuxMobile #Linux #Rust #Gtk


One thing I particularly like about Rust — which I’m very new to — is how thoughtfully the compiler errors and warnings have been designed. It not only diagnoses and explains the problem: it provides a possible solution. Genius.

This is the essence of good design: it’s compassionate, anticipating the needs and wants of another person. I can’t think of another language that does anything like this. Certainly not Swift, not that I’m bitter.

#rust #swift


Microsoft is rewriting parts of GDI in Rust, as evidenced by a new file called "win32kbase_rs.sys" which contains a complete reimplementation of the REGION type in rust, and a vive ID called "Rust_GDI_REGION".

#rust #rustlang #microsoft #windows


This is an actual case where a rewrite in #rust would be appropriate.
#rust


Happy Monday! I am looking for work.

I am looking for a role related to compilers ideally, but I'm also capable in numerical computing and back-end roles. I have experience with #Rust 🦀 and #Python 🐍 .

I have a deep knowledge of Python from working on #mypy and CPython itself. The quantum compiler I worked on was a mixed Python/Rust codebase.

I'm looking for remote/hybrid near SF Bay Area.

Github: https://github.com/ethanhs

(boosts appreciated)

#fedijobs #getfedihired #fedihired #jobseeker


🦀 "Why the Rust Community Should Be Worried About the New Carbon Language"

👉 should we?

👉 If we some language can do what Rust can do but more simpler, we should be happy to switch but is that the case here?

Article:
https://towardsdev.com/why-the-rust-community-should-be-worried-about-the-new-carbon-language-3a0ab07d6ce5

#rustlang #rust #cpp #carbon


squee. I finally got around to enabling the #rust #cargo sparse protocol and I. am. in. love.

in ~/.cargo/config.toml, put:

[registries.crates-io]
protocol = "sparse"

The speed difference for 'cargo update', particularly on a smaller project, is amazing and delightful.

https://blog.rust-lang.org/2023/03/09/Rust-1.68.0.html#cargos-sparse-protocol


If you ever wanted a clean guide on how to make Mastodon in rust from scratch,

https://docs.rs/activitypub_federation/latest/activitypub_federation/

:BoostOK: :ReplyOK:

#rust #rustlang


Exciting news about #AccessKit: Talon (https://talonvoice.com/) is one of the first real applications to use AccessKit. In the current beta build (for Patreon supporters), the Talon app core has been ported from Qt to #Rust using the #egui toolkit, and it's now accessible with AccessKit on Windows and macOS (Linux AccessKit support is close, but waiting on a bug fix). #accessibility


Just discovered that there is a "voldemort case" in a Rust RFC. It's when you have a private type in a public API. You can reach the type but can't name it.

https://github.com/petrochenkov/rfcs/blob/9901089b2467b0813456479ba03642e9f0ac0912/text/0000-type-privacy.md#lint-3-voldemort-types-its-reachable-but-i-cant-name-it

#rust #rustlang


New post! I documented my weekend efforts to run #Rust on classic Mac OS in case it's useful to others or if anyone has ideas of additional things to try.

https://www.wezm.net/v2/posts/2023/rust-on-ppc-classic-mac-os/

#VintageMac #RetroComputing


Is there a high-level, statically typed language in the #GTK ecosystem?

#Rust, while better than C is overly obsessed with memory to use it daily.

Looking at bindings
https://www.gtk.org/docs/language-bindings/

things like #JVM and #.NET are missing, leaving the choice of unhelpful type systems, or caring about unneeded details, or both... Not a good outlook for quickly building apps.
#gtk #rust #jvm


fish shell's "rewrite it in #rust" PR has been merged a few minutes ago! (h/t @codl)

https://github.com/fish-shell/fish-shell/pull/9512


🥺 The bottom emoji breaks rust-analyzer

https://fasterthanli.me/articles/the-bottom-emoji-breaks-rust-analyzer #rust #rustlang


✨ GStreamer Rust bindings 0.20 and Rust plugins 0.10 release is out

This release features the addition of a few convenience APIs, the addition of bindings for some minor APIs and a lot of internal changes to improve performance and code generation.

https://gstreamer.freedesktop.org/news/#2023-02-13T10:00:00Z

#GStreamer #Rust #RustLang


As part of the optimizations, there are a lot fewer temporary allocations now, e.g. for NUL-terminated strings.

Also, in addition to better performance, the code generation improvements also reduce the binary size considerably.

Some GStreamer plugins saw reductions of 15-20% 🥳

#GStreamer #Rust #RustLang


First steps with #Rust, great initiation!
#rust


For me this is the last nail in the coffin for #Go.

I've never bought much into the language. I've been impressed by its constructs to natively manage and synchronize asynchronous operations, but its rigidity when it comes to programming paradigms (no proper object-oriented and functional constructs in the 21st century, seriously?) means that I see it as a language that seriously limits expressivity, and doomed to generate a lot of boilerplate. It's a language very good at solving the types of problem that are usually solved at Google (build and scale large services that process a lot of stuff in a way that the code looks the same for all the employees), and little more than that.

After #Rust really took off, I didn't see a single reason why someone would pick Go.

And now here we go with the last straw: Google has proposed to embed telemetry collection *into the language toolchain itself*. And, according to Google, it should be enabled by default (opt-out rather than opt-in), because, of course, if they make it an opt-in then not many people will explicitly enable a toggle that shares their source code and their usage of the compiler with one of today's biggest stalkers. If they make it an opt-out, well, many people won't even notice, and you can grab more data points from people, whether they know/like it or not.

If you build open-source projects in Go, it's time to drop it and start considering alternatives. The market for modern compiled language is much more competitive now than it was a decade ago. We knew already that we couldn't trust a programming language developed by the largest surveillance company on the planet.

https://www.theregister.com/2023/02/10/googles_go_programming_language_telemetry_debate/
#rust #go