Search
Items tagged with: rustlang
Had a long day in the #Rust mines today (and I think I made solid progress on making things ergonomic for the Bluetooth library constellation). But I'm still spinning on it a bit.
So let's a #rustlang survey!
When making a new public struct / enum in a rust crate, what traits do you #[derive] by default (multiple choice)
Feel free to discuss in replies.
- Debug (95%, 22 votes)
- Clone (39%, 9 votes)
- PartialEq (30%, 7 votes)
- Eq (26%, 6 votes)
- Hash (21%, 5 votes)
Wonderful piece
http://www.catb.org/esr/structure-packing/
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!
acabo de notar que un cosito que hice y que recién desplegué anda cómodo con 7 Mb de ram. Está hecho en #flask.
También tengo uno en #nodejs corriendo tranqui con 30 Mb y el buen @climaenelcerro (hecho en #rustlang) está comodísimo también con una decena de megas.
Listo el nuevo diseño de #Ferris ✨
Ya quiero hacerlo parche 🪡
Recuerden que si quieren algún bordado pueden mandar mensaje o DM a https://t.me/paurinari
Ready the new design of #Ferris ✨.
I already want to make it patch.
Remember if you want some embroidery you can message or DM me at https://t.me/paurinari #MastoArt #art #SupportSmallBuisness #ArtShare #Mexico #Rust #rustlang #crab #design
Ansible author has Rewritten it in Rust?
JetPorch - JetPorch Documentation
the Jet Enterprise Professional Orchestrator, aka Jetwww.jetporch.com
I created smallest Static Site Generator in Rust optimized for article writing😀
https://github.com/fromgodd/yachiru
Discussions: https://discu.eu/q/https://github.com/fromgodd/yachiru
GitHub - fromgodd/yachiru: Just another static site generator -> あなたが恋しいです。
Just another static site generator -> あなたが恋しいです。. Contribute to fromgodd/yachiru development by creating an account on GitHub.GitHub
If you want your #Rustlang code to be fast and compact, avoid code that could panic.
Returning from a function instead of panicking is always going to optimize better.
https://rust.godbolt.org/z/MKW1xjrrx
This is because the optimizer fully understands function returns, and is able to reorder or coalesce them together. Panics have unique locations and major side effects that can't be touched by the optimizer, so in addition to adding extra unwinding code, panics prevent optimization of code around them.
Prefer ?
over .unwrap()
. Prefer iterators or a.get(…)?
over a[…]
.
Compiler Explorer - Rust (rustc nightly)
/// The optimizer can merge all four bounds checks pub fn check_four(s: &[u8]) -> Option { Some(*s.get(0)? + *s.get(1)? + *s.get(2)? + *s.get(3)?) } /// The optimizer has to emit separate code /// for every panic that might happen.rust.godbolt.org
daktilo — Turn your keyboard into a typewriter!
https://github.com/orhun/daktilo
Discussions: https://discu.eu/q/https://github.com/orhun/daktilo
#linux #programming #rustlang #unix
GitHub - orhun/daktilo: Turn your keyboard into a typewriter! 📇
Turn your keyboard into a typewriter! 📇. Contribute to orhun/daktilo development by creating an account on GitHub.GitHub
Are you a #rustlang #fuzzing nerd? Would you be able to help with fuzzing librsvg?
https://gitlab.gnome.org/GNOME/librsvg/-/issues/1018 has a bunch of tasks that I'd love for someone to explore.
Make fuzzing good and easy (#1018) · Issues · GNOME / librsvg · GitLab
With !890 librsvg now includes two minimal...GitLab
Check out Tiny Glade's - a small relaxing castle doodling game - latest trailer!
@h3r2tic:
> The Future Games Show's Tiny Glade trailer is now live, so you can check out our 🥔 Global Illumination in action! Also featuring: an astronomical model for the movement of the sun & the moon 🤓 and some custom shadow TAA:
https://youtube.com/watch?v=2-Pmal2UupI
The game's targeting a release in 2024 so please don't forget to support this great #RustLang #gameDev team by wish-listing Tiny Glade: https://store.steampowered.com/app/2198150/Tiny_Glade
Tiny Glade - Future Games Show 2023 Trailer
Tiny Glade is coming in 2024 💚🐑Tiny Glade is a small relaxing game about doodling castles. Explore gridless building chemistry, and watch the game carefull...YouTube
Rust Language Cheat Sheet - https://cheats.rs/
Rust Language Cheat Sheet
A single-page Rust resource for people who like high information density.cheats.rs
Blinking a LED using the STM32 DMA peripheral (and without using the CPU)
https://lab.whitequark.org/notes/2023-07-22/blinking-a-led-using-stm32-dma/
Discussions: https://discu.eu/q/https://lab.whitequark.org/notes/2023-07-22/blinking-a-led-using-stm32-dma/
Blinking a LED using STM32 DMA â whitequark's lab notebook - discu.eu
Discussions and related articles for «Blinking a LED using STM32 DMA â whitequark's lab notebook»discu.eu
#RustLang vs Julia in Scientific Computing
https://mo8it.com/blog/rust-vs-julia/
Rust vs Julia in scientific computing
Does Julia solve the two-language problem and when is Rust the actual solution?mo8it.com
Chess implemented entirely in the Rust (and Typescript) type systems.
https://github.com/Dragon-Hatcher/type-system-chess
Discussions: https://discu.eu/q/https://github.com/Dragon-Hatcher/type-system-chess
#programming #rustlang #typescript #webdev
GitHub - Dragon-Hatcher/type-system-chess: Chess implemented entirely in the Rust and TS type systems.
Chess implemented entirely in the Rust and TS type systems. - GitHub - Dragon-Hatcher/type-system-chess: Chess implemented entirely in the Rust and TS type systems.GitHub
Open source Elasticsearch alternative in Rust for logs. 140x lower storage cost
https://github.com/openobserve/openobserve
Discussions: https://discu.eu/q/https://github.com/openobserve/openobserve
GitHub - openobserve/openobserve: 🚀 10x easier, 🚀 140x lower storage cost, 🚀 high performance, 🚀 petabyte scale - Elasticsearch/Splunk/Datadog alternative for 🚀 (logs, metrics, traces).
🚀 10x easier, 🚀 140x lower storage cost, 🚀 high performance, 🚀 petabyte scale - Elasticsearch/Splunk/Datadog alternative for 🚀 (logs, metrics, traces). - GitHub - openobserve/openobserve: 🚀 10x ea...GitHub
#RustLang functions on Amazon RDS for #PostgreSQL
Build high-performance functions in Rust on Amazon RDS for PostgreSQL | Amazon Web Services
Amazon Relational Database Service (Amazon RDS) for PostgreSQL now supports trusted PL/Rust, allowing developers to safely build high-performance database functions in the Rust programming language.Amazon Web Services
Rust like Enums in Java
Discussions: https://discu.eu/q/https://openjdk.org/jeps/405
JEP 405: Record Patterns (Preview) - discu.eu
Discussions and related articles for «JEP 405: Record Patterns (Preview)»discu.eu
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: https://coaxion.net/blog/2023/04/building-a-gstreamer-plugin-in-rust-with-meson-instead-of-cargo/
#RustLang #GStreamer #GNOME #GTK #meson #cargo #BuildSystems
#rustlang #linux
Debian -- Details of package lsd in sid
ls command with a lot of pretty colors and some other stuffpackages.debian.org
https://maxwellrules.com/programming/rusty-python.html
Discussions: https://discu.eu/q/https://maxwellrules.com/programming/rusty-python.html
#programming #python #rustlang
Maxwell Rules - Extending Python with Rust - discu.eu
Discussions and related articles for «Maxwell Rules - Extending Python with Rust»discu.eu
Advent of Code 2022 Day 6 | Kotlin
Take part in Advent of Code 2022 in Kotlin and win prizes! Learn more in the blog post → https://blog.jetbrains.com/kotlin/2022/11/advent-of-code-2022-in-kot...YouTube
https://blog.uberspace.de/freelance-job-c-cpp-rust/
Boosts very welcome! #rustlang #jobad #job
Freelance-Softwareentwicklerin, C/C++/Rust (d/w/m)
This job posting is written in German. However, we all speak English here. Feel free to apply even if you don't know German. Translating this post is left as an exercise to the applicant.luto (Behind the Asteroid)
(From Pantheon S1E5.)
Step 1, @eliza complains: https://nitter.net/mycoliza/status/1592248742060920832
Step 2, we fix it: https://github.com/rust-lang/rust/pull/104469
Step 3, it lands on nightly: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=043ea14f2d5e54113fc40b5b175d18ed
From now on, obligations introduced by trait bounds will check whether the type is longer than 50 chars, and if it is, dump it into a file so that the CLI output doesn't become an unreadable mess.
#rust #rustlang
Make "long type" printing type aware and trim types in E0275 by estebank · Pull Request #104469 · rust-lang/rust
Instead of simple string cutting, use a custom printer to hide parts of long printed types. On E0275, check for type length before printing.GitHub
(Nitter addon enabled: Twitter links via https://nitter.net)
https://diziet.dreamwidth.org/13476.html
#Rustlang will complain about:
let range_a = &mut vec[0..10];
let range_b = &mut vec[10..];
Because the first mutable borrow is for the entire `Vec`. Rust doesn't understand that the ranges are non-overlapping. The solution is to use `.split_at_mut()`:
let (range_a, range_b) = vec.split_at_mut(10);
If you want to completely split a Vec into sub-ranges, see `vec.chunks_mut()`.
Try it: https://is.gd/Q5c8vD
https://rust-unofficial.github.io/patterns/
Introduction - Rust Design Patterns
A catalogue of Rust design patterns, anti-patterns and idiomsrust-unofficial.github.io
- Generic associated types (GATs)!!!
- let-else statements
- break from labeled blocks
- std::backtrace
- split debug information on Linux
- MIR inlining during optimized compilations
- complete RLS deprecation
https://blog.rust-lang.org/2022/11/03/Rust-1.65.0.html
#opensource #programming
Announcing Rust 1.65.0 | Rust Blog
Empowering everyone to build reliable and efficient software.blog.rust-lang.org
https://github.com/weiznich/diesel_async
Discussions: https://discu.eu/q/https://github.com/weiznich/diesel_async
#programming #rustlang
GitHub - weiznich/diesel_async: Diesel async connection implementation
Diesel async connection implementation. Contribute to weiznich/diesel_async development by creating an account on GitHub.GitHub
Aber bei Linus weiß man nie, daher wollte ich nicht wetten.
(Nitter addon enabled: Twitter links via https://nitter.net)