@mo8it@fosstodon.org
@mo8it@fosstodon.org avatar

mo8it

@mo8it@fosstodon.org

A computer nerd passionate about #RustLang :ferris:

A #Rustlings maintainer 🦀

Working on my master's thesis in Computational Sciences in Mainz, Germany

I post about …
:ferris: #RustLang
:tux: #Linux
:opensource: #FOSS
📦️ #SelfHosting

This profile is from a federated server and may be incomplete. Browse more on the original instance.

mo8it, to rust
@mo8it@fosstodon.org avatar

Teaching Rust in 5 days :ferris:

https://mo8it.com/blog/teaching-rust/

A blog post about my experience teaching at my university 🎓

Highlight from the summary:

"If students without much experience (some of them had only one lecture about Python) can learn the basics in 5 days, then I think that developers should stop calling Rust complicated"

mo8it, to rust
@mo8it@fosstodon.org avatar

I am starting a Mastodon campaign :omya_mastodon:

Every time I see a post with only the #Rust tag, I will kindly ask the poster to use #RustLang instead 😇

My feed is full with unrelated content about the film, the game and of course photography of rusty metal 🤬

I will also only post using the #RustLang tag starting from now 😤

You can join me! 🤗

The goal is to let the usage of the #Rust tag vanish so people can only follow #RustLang 😃

mo8it, to foss
@mo8it@fosstodon.org avatar

I see many people using #Codeberg or self-hosted #Forgejo for #AdventOfCode and I love that 😍

Codeberg is booming, at least for personal projects 🚀

It is so "ironic" that Github, the leading platform for open source software, is proprietary… #FOSS gotta wake up one day!

I think that the planned federation will bring more collaborative projects over 🏃
Think of Mastodon for Git 🤩

#GiveUpGitHub #AOC #AOC2023

mo8it, to rust
@mo8it@fosstodon.org avatar

Now that the issue is resolved by removing the binary, I want to thank @decathorpe again, not only for reporting the issue, but also for all his efforts in the and communities ❤

For others: Please don't call things like this "drama" again. This is pushing back against mistakes that would affect the whole community. I love how much the community cares and that such problems are not ignored 🥰

We are not here to only get things done, we are building a future ❤

mo8it, to Blog
@mo8it@fosstodon.org avatar

#OxiTraffic, a self-hosted, simple and privacy respecting website traffic tracker 🌐

➡️ Demo: https://oxitraffic.mo8it.com

I just published version 0.6 with a #Docker image! 📦️
(You don't have to use Docker though)

Do you have a #blog?
I can host it for you if you want to test it with your website :blobcatheart:

Of course, it is written in #Rust 🦀
Check out the README, I spent a lot of time on it 😇
https://codeberg.org/mo8it/oxitraffic

Boost? 🔃🥰

#SelfHosted #IndieWeb #FOSS #Analytics #Traffic #RustLang #Axum

mo8it, to foss
@mo8it@fosstodon.org avatar

I joined the Codeberg e.V. to support :blobcatheart: (only financially for now)

You can do so too and support maintaining a free (as in freedom) code collaboration platform:
https://join.codeberg.org

No more code stealing to improve a proprietary AI! needs a better home 🏠️

mo8it, to bevy
@mo8it@fosstodon.org avatar

Who is also attending the online #Bevy Meetup tomorrow? 😃

https://meetup.com/bevy-game-development/events/298399958/

Great talks by great people are scheduled. Don't miss them 🏃‍♂️

Thanks to @rusticorn for organizing it! :blobcatheart:

#RustLang #Rust

mo8it, to rust
@mo8it@fosstodon.org avatar

New #HelixEditor release 🎉

https://helix-editor.com/news/release-24-03-highlights/

Helix is a modal terminal editor with an awesome out-of-the-box experience 🤩

Release highlights:

  • Jumping
  • Block comments
  • Improvements to tree-sitter injections

It is also the first release with tiny contributions by me 😇 (since it is written in #RustLang 🦀)

mo8it, to rust
@mo8it@fosstodon.org avatar

Finally, the video with the powerful quote by Google is uploaded!

"Rust teams at Google are as productive as ones using Go, and more than twice as productive as teams using C++" 🤯

https://youtu.be/QrrH2lcl9ew

Rust isn't just about memory safety, Rust isn't just about performance, Rust is also about productivity, reliability and correctness!

I found the video to send to people when I want to convince them of Rust 🦀

mo8it, to rust
@mo8it@fosstodon.org avatar

Typical "before vs after diving into #Rust" experience 😂

It was my experience too 🙃

A rant on my tiny talk about #RustLang vs #JuliaLang in scientific computing.

The same person commented again some days later saying that they love Rust now 😅

https://youtu.be/0JkbNFpXlXc

Give Rust a serious try by starting with the Rust book before judging 😇

Meme originally posted by @AstraKernel

A meme about hating Rust and then loving it after trying it.

mo8it, to rust
@mo8it@fosstodon.org avatar

Faster Rust Serialization 🚀

https://mo8it.com/blog/faster-rust-serialization

A blog post about avoiding allocations and improving the performance of serialization in !

It doesn't only apply to JSON, but to any serializer.

The example in the blog post shows a speedup of up to 2.25x 🤯

Feedback welcome :blobcatheart:

mo8it, to bevy
@mo8it@fosstodon.org avatar

I am following this fantastic #XPBD tutorial in #Bevy by @johanhelsing and I highly recommend it after learning some of the basics of Bevy 😍

https://johanhelsing.studio/posts/bevy-xpbd/

The tutorial isn't complete yet, but the first 6 parts are already a lot of material!

The attached GIF is the result of the first part ✨

@johanhelsing thank you for this treasure 🥰

PS: I know there is the physics library bevy_xpbd, but I want to implement XPBD from scratch for learning :D

#RustLang #Rust

video/mp4

mo8it, to rust
@mo8it@fosstodon.org avatar

Free Course in Mainz, Germany :ferris:

I am happy to announce that I will give my Rust course again 😍

📍 Where: In person at the university of Mainz
📆 When: 11.03. - 15.03.2024 from 10 until 17 o'clock
📚️ Content: My modified version of and : https://comprehensive-rust.mo8it.com
🏃 More info and free registration: https://fachschaft.physik.uni-mainz.de/rust (scroll down for the English version)
🗣️ Language: English unless all speak German

mo8it, to bevy
@mo8it@fosstodon.org avatar

Progress with my physics from scratch in 😇

I was asked to simulate one sphere and plot its energy to validate my physics implementation.
But since I use , I thought why not simulate 10000 spheres instead? 😂

I don't understand the energy spike at the beginning, but at least the energy is stable later.

A grid of 100x100 spheres bouncing on the ground without friction. A plot shows the potential, kinetic and total energy. The system gains some energy at the beginning, but oscillates then around 1.3x of the initial energy. At least it is stable.

mo8it,
@mo8it@fosstodon.org avatar

I fixed the problem with the energy 😅

I also ported the code to use f64 everywhere instead of f32 for physics.

2^14 spheres this time ✨

I also made the repository public but it will not be published as a library. It is just my educational progress with my thesis:
https://codeberg.org/mo8it/master-thesis

A grid of 128x128 spheres bouncing on the ground without friction. A plot shows the potential, kinetic and total energy. The total energy relative to the initial energy is at 1.0 with a slight decay over time.

mo8it, to rust
@mo8it@fosstodon.org avatar

I am very excited to announce that I am now one of the maintainers of 🦀

Thanks to the maintainer Liv (shadows-withal) for trusting me 🥰

I have two big ideas ✨

  1. Easier installation with Cargo
    https://github.com/rust-lang/rustlings/issues/1919

  2. Making Rustlings a TUI using Ratatui
    https://github.com/rust-lang/rustlings/issues/1920

You are welcome to give feedback on these ideas 😃 (But they are not planned until Liv approves them)

If you have any other ideas for improving Rustlings, I am waiting for your repo issue 🤗

mo8it, to rust
@mo8it@fosstodon.org avatar

performance tip 🚀

If you want to update the value of a String, it is more efficient to recycle the existing allocation with clear and write* instead of reallocating with format! ♻️

shows that the method with format! has one allocation while the other one doesn't 😃

Divan output:

mo8it, to bevy
@mo8it@fosstodon.org avatar

I am so proud of my physics from scratch in #Bevy 🤩

It is SDF (signed distance function) collision handling (without a physics engine/crate).

It is obviously not working well. I am just getting familiar with Bevy and implementing physics from scratch for my master's thesis 😇

#RustLang #Rust

Two nails reacting to a collision while one is moved. The left nail is fixed during collision handling, an approximation for infinite mass. The right nail is translated and rotated as a reaction to a collision.

hds, to rust
@hds@hachyderm.io avatar

Join us next week at Rust for Lunch! The virtual meet-up that fits into your lunch-break.

https://lunch.rs/meetups/2024-02-20/

We’ll have a talk from @mo8it on Faster Rust Serialization.

See you there?

mo8it,
@mo8it@fosstodon.org avatar

🚩 SAVE THE DATE

My online talk about how to speed up serialization with by up to 2.25x 🚀

What to expect:
🙂 A simple example with JSON
🧐 How serialization in serde works
🛠️ Manually implementing the Serialize trait
🌟 Serialization with the newtype pattern
⏱️ Benchmarking with divan
🤔 Discussing the overhead of allocations

On Tuesday, 20 February at 13:00 CET

https://lunch.rs/meetups/2024-02-20

Boost? 🥰

@hds

mo8it, to rust
@mo8it@fosstodon.org avatar

v6 beta is here! 🤩🎉

Russtlings is an official Rust project offering a set of interactive exercises to practice 🦀

I have been working on the rewrite for about a month 😇
Now I hope to find some people willing to test the beta release and provide some feedback 🥰

You want to test it? 😃 Here are the instructions:
https://github.com/rust-lang/rustlings/tree/v6#getting-started

Issue for feedback ✍️
https://github.com/rust-lang/rustlings/issues/1960

A tiny demo of Rustlings v6 (beta) in Zellij

mo8it, to rust
@mo8it@fosstodon.org avatar

Announcing axum-ctx: Axum error handling library inspired by anyhow :ferris:

Documentation with examples 📚️
https://docs.rs/axum-ctx

The first screenshot shows the code without axum-ctx, the second one with it ✨

It lets you write concise "one-liners". Any chaining fans here? ⛓️🤩

I will write a blog post about it. But first, I would like to get some feedback here 🥰

#RustLang

With axum-ctx

mo8it, to linux
@mo8it@fosstodon.org avatar

roomlab is an awesome wiki about some and topics:

https://roomlab.eu 🐧✨

by @potatomeow

janriemer, to rust

C++ will be taken over by #Rust.

What will be the Rust-equivalent for #JavaScript?

I mean #TypeScript is a very good first step, but it's basically the C++ for C.

So in short:
C => C++
JavaScript ≈> TypeScript
C++ => #RustLang
JavaScript => ???

I think it will be a looong way to go, but maybe, maybe we'll see more and more #WebAssembly in the #frontend, but not quite sure yet.

#WASM #ProgrammingLanguage #CPlusPlus #C

mo8it,
@mo8it@fosstodon.org avatar

@janriemer I can't point to anything specific and don't have enough experience in WASM anyway.

I just found out that I can't run my program with egui in the browser, most probably because I spawn threads in it. But the debugging experience was… there was none. The error that I got said nothing, similar to the experience with a SEGFAULT. Something went wrong, no idea what.

Don't get me wrong, WASM is the future, but not the present for me.

mgeisler, to github

Awesome! #github doubles the number of CPU cores in the machines we use for our #gh Actions! It's for free for public (typically #opensource ) repositories.
https://github.blog/2024-01-17-github-hosted-runners-double-the-power-for-open-source/

mo8it,
@mo8it@fosstodon.org avatar

@mgeisler Github, the lovely donator to #OpenSource?

Nothing is for free 😉

Github's free CI is one of their lock-in mechanisms 🔒

Our collective knowledge in public code is their AI business now 🧠

#GiveUpGitHub #Github #FOSS

d33pjs, to web

"Quick" Question: If you would build a new #web #application, what would currently be "the best" development language and/or #framework (#webframework) for that?

"Best" as in reliable, #secure, easy to get personal and future proof?

Would it be #python with #django or #rubyonrails or #php #symfony or something completely different?

mo8it,
@mo8it@fosstodon.org avatar

@d33pjs For the backend, I would go with #Axum in #Rust. I have multiple backends written in it and the result is a single binary that has the highest performance and uses under 12MB of RAM!

I used Flask before and I can't imagine going back to Python. It is very slow, consumes a lot of RAM and isn't reliable because of the missing strong type system that Rust provides.

I have an Axum tutorial to get a taste 😇
https://mo8it.com/blog/getting-started-with-rust-backends/

#RustLang

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • mdbf
  • ngwrru68w68
  • modclub
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • DreamBathrooms
  • JUstTest
  • GTA5RPClips
  • tacticalgear
  • normalnudes
  • tester
  • osvaldo12
  • everett
  • cubers
  • ethstaker
  • anitta
  • Leos
  • cisconetworking
  • provamag3
  • lostlight
  • All magazines