Skip to main content

Search

Items tagged with: rustlang


Rustlantis: a fuzzer for the Rust compiler that already found 9 miscompilation bugs

ethz.ch/content/dam/ethz/speci…

Discussions: discu.eu/q/ethz.ch/content/dam…

#programming #rustlang


Is it true, that one of the major goals in the coming period is to change the code base to #rustlang?

Or did I misread something a while ago?


JetBrains has just published the results for their yearly #rustlang developer survey.

There's a lot of interesting data.
A data point some might find surprising: more than a third of Rust developers are using Rust for web development!

An exciting space to be in right now.

The full survey results can be found on jetbrains.com/lp/devecosystem-… including comments from me, Tim and Florian.


A while back I mentioned I was working on #rustlang support for @thunderbird - well, that work is now coming to a head.

Patches in flight for mozilla-central and comm-central that, if merged, will allow us to build Rust-based components in Thunderbird!

phabricator.services.mozilla.c…


The sudo-rs (safety-oriented and memory-safe implementation of sudo and su in #rustlang) underwent an 🔍audit by
ROSecurity (radicallyopensecurity.com/)
. You can read about the findings and what its changed over on our blog 👉

ferrous-systems.com/blog/sudo-…

👏 Thanks to @NGIZero and ISRG (abetterinternet.org/) for the funding.


En estos días fríos y un poco depresivos me ha dado por aprender #rust #rustlang y me está encantando, no solo por el lenguaje en sí, sino por los maravillosos recursos oficiales de aprendizaje que tienen. Los tres que tienen en su web son muy, muy buenos.

rust-lang.org/learn


You know how it's hard to learn something you can't see the point of?

I think this is why senior developers, particularly, flock to Rust.
We've been in the trenches, we've been paged at 4am, we've debugged the same missing semicolon or bad indentation errors a thousand times.

You tell me that with just a bit more syntax, Rust can fix my PTSD? I say SIGN ME UP! 🎉

A junior developer, the sweet summer child, only wants things to be easy NOW.

#RustLang isn't optimised for easy NOW.
It's optimised for easy FOREVER.

youtube.com/watch?v=2hXNd6x9sZ…


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

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

doc.rust-lang.org/std/option/e…

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`:
doc.rust-lang.org/std/cmp/trai…

#RustLang #RustTips #RustTip


In #Rustlang you can return std::process::ExitCode from main().

It's better than calling std::process::exit(), because it allows the program to run destructors, which may be needed to flush pending I/O or print buffered logs.

play.rust-lang.org/?gist=56c6f…

doc.rust-lang.org/stable/std/p…


Announcement: All-in-one JMAP, IMAP and SMTP server written in Rust

github.com/stalwartlabs/mail-s…

Discussions: discu.eu/q/github.com/stalwart…

#programming #rustlang #selfhosted


: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":

scientificcomputing.rs/

#RustLang #Rust #JuliaLang #ScientificComputing


Brace yourselves, `let else` formatting in `rustfmt` is coming 🦀

github.com/rust-lang/rustfmt/p…

#RustLang


Answer: 0231 🦀

0 gets dropped at the end of its statement.

1 will last to the end of the main scope.

2 is assigned to the underscore pattern making it temporary, and gets dropped at the end of the statement.

3 is treated as a value; the underscore prefix allows the unused… twitter.com/i/web/status/16668…

QT orhunp_: 🦀 #rustlang quiz

what is the output of this program?


Statement from Josh Triplett on the events that lead to the RustConf Keynote change, and next steps
hackmd.io/p3VG_bK9TXOvtgh1oA2y…
#Rust #RustLang


🦀 I wrote a proposal for an #[export] attribute in #rustlang to allow for *dynamic* linking between Rust crates, without losing memory safety at the linker boundary.

This will make other ABI work aimed at Rust FFI directly usable between Rust crates as well.

github.com/rust-lang/rfcs/pull…


Tl'dr #rustlang is a great collaboration opportunity for @gnome and @kde.

A long long time ago, #freedesktop initiative was created for precisely this goal. While in many ways it was a success story (especially in terms of establishing standards), it came short in one specific aspect: code collaboration.

Most freedesktop (all?) projects were and are almost exclusively developed and maintained by GNOME folks. That's not very surprising, given that C (being that lowest common denominator) had to be the programming language of choice. Just like most GNOME folks wouldn't want to touch C++, KDE folks don't particularly enjoy coding in C either. I know both have their reasons and the point here is not to play the blame game here.

There is not much point in dwelling in the past here but if we decide to write all future infrastructure/non-UI projects (that would have otherwise been written in C or C++) in Rust, there's a great potential for collaboration, I believe.

Talk is cheap, you could say and I agree. Hence why I've taken some steps in this direction already: github.com/dbus2/


I've spent a good part of my weekend working on upgrading the GStreamer Rust bindings on Servo. The presentation by Martin Robinson from @igalia at @rustnl was a real inspiration.

github.com/servo/media/pull/39…

I'm delighted with the revival of Servo and I believe it has a bright future.

#ServoBrowser #RustLang #GStreamer


Oxidizing GTK
events.gnome.org/event/101/con…

At the next GUADEC, there will be a presentation on an experiment
about integrating Rust in the GTK code base.

#Rustlang #GTK #GNOME #GUADEC #GUADEC2023


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


🆕🦀 Just moments ago, #rustlang 1.69.0 was released!

As usual, here's a thread with some of the highlights. 🧵

1/8

blog.rust-lang.org/2023/04/20/…


Over the Easter holidays I experimented a bit with building Rust code with meson instead of cargo.

Specifically I tried building a GStreamer plugin with a few dozen Rust dependencies, but the same applies in a similar way to GTK/GNOME applications or literally anything else.

A write-up of the results with a lot of details can be found here: coaxion.net/blog/2023/04/build…

#RustLang #GStreamer #GNOME #GTK #meson #cargo #BuildSystems


🦀 "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:
towardsdev.com/why-the-rust-co…

#rustlang #rust #cpp #carbon


📕 What's the most exciting thing you learned from Rust Atomics and Locks?

#rustlang
marabos.nl/atomics/


🆕🆕🆕🦀 In the last few weeks, #rustlang 1.68.0, 1.68.1 and 1.68.2 have been released!

Here's a thread with some of the highlights of Rust 1.68. 🧵

1/11

blog.rust-lang.org/2023/03/09/…


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

docs.rs/activitypub_federation…

:BoostOK: :ReplyOK:

#rust #rustlang


:youtube_logo: In today's video, I have some strange recommendations on how to learn #RustLang! :rust:
youtu.be/2hXNd6x9sZs


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.

github.com/petrochenkov/rfcs/b…

#rust #rustlang


Anyone able to help advise me on how to write serde binds for scim? I feel like im doing it a really bad way right now and would love some #rustlang advice. github.com/kanidm/scim/blob/ma…


#rustlang peeps, how do you distinguish between recoverable errors and fatal ones that should exit the call chain as quickly as possible? I know about the nested Result from sled.rs/errors but am wondering about other patterns.


🥺 The bottom emoji breaks rust-analyzer

fasterthanli.me/articles/the-b… #rust #rustlang


Watch Philip's talk at #FOSDEM, where he covers the API and prototypes for 'connectbyname', a library function that takes as input a DNS name and returns a TLS connection, as well as a new EDNS(0) option called Proxy Control option that allows stub resolvers to send requirements to a local proxy.

We're developing an #API in #rustlang that can internally use asynchronous #DNS lookups, implement Happy Eyeballs, support #DANE, SVCB/HTTPS, encrypted client hello, etc.

fosdem.org/2023/schedule/event…