janriemer

@janriemer@floss.social

Software Engineer with an incredible thirst for knowledge, who shares that knowledge with others, so that they can become their best selfs.

Interested in #Rust, #WebAssembly, #TypeScript, #OpenSource, #WebDev, #WebDesign and a lot of other interesting stuff.

Let's have some deep conversations about interesting topics. 🙂

I'm open-minded, but also hold strong opinions.

Dare to think for yourself.

Be kind.

Strive for excellence.

(moved from mastodon.technology - on Mastodon since Feb 2019)

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

janriemer, to CSharp

Collection expressions in 12

https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/collection-expressions

Basically allows to init collections with "[" and "]" syntax.

It allows you to e.g. do this:

IEnumerable<int> elements = [5, 12, 42];

janriemer, to LLMs
janriemer, to rust

If you're not yet convinced of 's strengths, you should give this talk a watch:

RustConf 2023 - Rust in the Wild: A Factory Control System from Scratch:
https://farside.link/https://www.youtube.com/watch?v=TWTDPilQ8q0
(or YT: https://www.youtube.com/watch?v=TWTDPilQ8q0)

Absolutely amazing presentation! So much ! I love it! ❤️

janriemer,

@mikkelens Yes, you're right, it is pretty abstract and more details would have been interesting.

But I guess this is a trade-off between zooming in on some details or zooming out and showing "the whole thing". There is only so much you can fit in a talk, unfortunately.😐

eichkat3r, to random German
@eichkat3r@hessen.social avatar

i'm a good noodle

janriemer,

@eichkat3r A good spicy noodle...🌶️ 🤤

janriemer, to random German

Lol, ich habe gerade "Hochzeit" (also "Heiraten") wie folgt gelesen:

"Hoch", also das Gegenteil von "Tief".😅

"Statisches Bundesamt: Weniger Hochzeiten in Deutschland". 📉

Ich glaube ich transformiere mich langsam zu einem LLM. 😬

janriemer, to rust

New release of 1.78 today, whoop! 🎉 :awesome:

Highlights (IMHO):

janriemer,

@matze 😅

janriemer, to rust

Tasks are the wrong abstraction - by Yoshua

https://blog.yoshuawuyts.com/tasks-are-the-wrong-abstraction/

"If we are able to bake concurrent and parallel execution directly into [], we no longer have to represent the computation as a type. [...] we would be able to solve the scoped parallel async execution problem directly from the language."

"The success of the Monoio and Glommio runtimes are putting into question whether work-stealing executors are the right fit."

This is what should focus on! Thank you, Yosh!❤️

MegaMichelle, to firefox
@MegaMichelle@a2mi.social avatar

My computer said it had to reboot for update reasons, so I rebooted it. Now Firefox has lost all my emotional support tabs 😩 😭

Whyyy, Firefox?

janriemer,

@MegaMichelle Oh nooees!!!😭

Can't you do

  • reopen recently closed windows

?

This option is in the history menu (Ctrl + H).

Edit: saw someone else making the same suggestion, but it apparently doesn't work for you in this case.

That's sad. :-(

janriemer, to ai

I'm predicting an winter coming in one to two years.

And with it, it will snow up the tech industry as a whole. ❄️

janriemer, to random
niklaskorz, to rust
@niklaskorz@rheinneckar.social avatar

I'm happy to announce I will be speaking at this year. My talk is about Linon, a graphical application I began writing during my MSc studies at @uniheidelberg for interactively exploring the visual effects of continuous refraction or distortion of light rays. The application is based on , making heavy use of compute shaders.

https://rustfest.ch/talks/interactive-exploration-of-nonlinear-ray-casting-with-rust-and-wgpu/

janriemer,

@niklaskorz @uniheidelberg

Wow, this sounds so interesting and absolutely mind-bending!🤓

Do you know, if the talk will be recorded? Would love to see it! 🙂

notgull, to random
@notgull@hachyderm.io avatar

Well, what I thought was a cold turns out to be a sinus infection. Just great. 🤒

janriemer,

@notgull Get well soon!🥺

njion, to random
@njion@bark.lgbt avatar

It's mind-boggling that not everyone thinks trains are cool as heck

janriemer,

@njion So true!

Among other things, they are by far the safest transportation medium for humans!

danielsreichenbach, to rust
@danielsreichenbach@mastodon.world avatar

I generally like but I think every project developer should be forced to use it on a Raspberry Pi with 4GB RAM... had to build Vaultwarden (https://github.com/dani-garcia/vaultwarden) on one, and man,,, after 15 minutes compilation is no longer running because the device went OOM and now is so hot the fan is louder that a datacenter server...

Just to be clear, I think this is a Rust problem, not a project problem.

janriemer,

@danielsreichenbach
Maybe try to reduce number of parallel jobs during build, like this:

cargo build --jobs 1

See docs:
https://doc.rust-lang.org/cargo/commands/cargo-build.html#miscellaneous-options

@chfkch @mo8it

skyr, to random German
@skyr@chaos.social avatar

Die Waage sagt: Hier ist kein Mehl 😉

janriemer,

@skyr Musst mal Deine Teekanne raufstellen - sollte 418 g wiegen. 😉

kubikpixel, to webdev
@kubikpixel@chaos.social avatar

Local-First Web Development

So, you want to build an app that has its data co-located with its UI? That works offline? That synchronizes between clients? And that lets its users own their data?

🧭 https://localfirstweb.dev


janriemer,

@to Yes, agree! It's a shame!😔

janriemer, to rust

C++ will be taken over by .

What will be the Rust-equivalent for ?

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

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

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

#C

janriemer,

@ntha @Aedius This!

Interoperability and existing ecosystems are so important when talking about adoption of a new technology!

It must be interoperable, otherwise it won't be adopted at scale.

janriemer,

@Aedius @ntha

Yes, you can definitely import JS into your Rust - see wasm-bindgen guide (which is used by wasm-pack under the hood):

https://rustwasm.github.io/wasm-bindgen/examples/import-js.html

janriemer, to rust

Currently reading "Asynchronous Programming in Rust" by Carl Fredrik Samson 📕

https://www.packtpub.com/product/asynchronous-programming-in-rust/9781805128137

I'm 1/3 through and so far I have to say it is really well written! :ferris:

⭐ ⭐ ⭐ ⭐ ⭐

#Rust #RustLang

janriemer,

"Now that we’re at the end I want to thank you for reading all the way to the end. I wanted this book to feel like a journey we took together, not like a lecture. I wanted you to be the focus, not me.

I hope I succeeded with that, and I genuinely hope that you learned something that you find useful and can take with you going forward."

I definitely learned a lot! And a journey it has been indeed! This book will be my go-to reference for all things #Async in #Rust!

Thank you, Carl Fredrik! ❤️

chriskrycho, to random
@chriskrycho@mastodon.social avatar

Currently mulling on options for small-but-realistic demos/practice sessions for async/.await in Rust which (a) actually show the value compared to alternatives like “just use threads” and (b) don’t get too swamped in domain details. 🤔

What are your favorite examples?

janriemer,

@chriskrycho I know, some time has passed between your question above and this toot, but I hope it is helpful nonetheless:

notgull has an excellent blog post about it - maybe it can give you some inspiration:

https://notgull.net/why-not-threads/

They specifically mention the example that async/await facilitates adding a timeout to an existing (async) operation.

Trying to do this with threads is apparently much more involved.

notgull, to random
@notgull@hachyderm.io avatar

Answering a frequently asked question: how do you do concurrent combinators in smol?

https://notgull.net/futures-concurrency-in-smol/

janriemer,

@matze Agree. Not sure, if you're already aware, but @carol and @chriskrycho are revamping the Async Rust book.

I'm so excited for this! :awesome:

https://floss.social/@carol@crabby.fyi/112038749879839366

@notgull

janriemer,

@carol @chriskrycho Oh sorry, then I totally misunderstood this.🤐

Sorry for the confusion and thank you for clarifying.

Still glad, you're working on improving async Rust docs (in whatever form😉)! :awesome:

@matze @notgull

janriemer,

@chriskrycho @carol

Yes, this reasoning and prioritization makes perfect sense! 👍

Thank you for the explanation. 🙂

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