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, (edited ) to Futurology

We, as a society, really need to stop thinking that

popular == good/best

because it is very often simply false.

janriemer, (edited ) to gamedev

Wow, this is awesome! :awesome:

CC0 Textures and 3D Models by sharetextures

https://www.sharetextures.com/

โ€œAll of our content is copyright-free. It means, you can use them anywhere you want which includes commercial projects too.โ€

janriemer, to ai

Don't be fooled by all the headlines that was the main cause of all the recent layoffs in the tech industry.

This is not the main cause!

The main cause is that starts to see the lies of and their mass manipulation of people!

1/2

janriemer,

They are telling a story, so that people get even more and investors think: "Oh wow, with you can actually save money by not needing so much people. This is awesome. I'll invest in that!"

Don't believe this crap!

2/2

janriemer, to random German

Strom aus Kartoffel produzieren. ๐Ÿฅ” โšก

notgull, to random
@notgull@hachyderm.io avatar

I thought the rain would wash the bugs off of my windshield. I thought wrong ๐Ÿ˜ซ

janriemer,

@notgull Wish, we could hope for this with software as well. ๐ŸŒง๏ธ ๐Ÿ˜”

outfly, to space
@outfly@mastodon.social avatar

Hey folks!

This is the new account for , an atmospheric, open world, realistic, 3D that throws you into the Rings of .

https://yunicode.itch.io/outfly

Imagine a blend of and , where you are free to explore the breathtaking expanse of the system and discover what life could be like after hundreds of years of space colonization.

A work in progress, but worth checking out :)

forever, built with and .

janriemer,

@outfly This looks so cool!๐Ÿ˜

chriskrycho, to random
@chriskrycho@mastodon.social avatar

An aside from one of my @lambda_conf talks:

> If you want to โ€œget goodโ€ at software, practice reading and working on โ€œlegacyโ€ code. The more inscrutable the better.

Comments like // MAGIC!!! tell you itโ€™s going to be great. ๐Ÿ˜‚

15% off conf. tickets: https://www.eventbrite.com/e/lambdaconf2024-tickets-540887036687?discount=ChrisKrycho15&is=65a1176ea09e0ae892aa4e47

janriemer,

@chriskrycho 100% agree!

Little anecdote:
Recently, I had to write such comment myself - it starts with "Warning: This is a huge hack!" and continues for ~15 lines.

The hack basically (ab)uses a bug in the compiler of a proprietary PL (shh, don't tell anyone๐Ÿคซ), so that standard code/logic of the app is not executed (normally you can only add your own code/logic before or after the standard logic has been executed, but standard logic must be executed).

Biggest I've ever pulled off.๐Ÿ˜„

janriemer,

@chriskrycho Haha, nice! In the end, code and comments are a knowledge base aren't they!?

janriemer,

@chriskrycho Urgh, yes, the why is so important!

Funny enough, I recently had a discussion about exactly this topic (git commit messages and what they should contain) here:

https://fosstodon.org/@badrihippo/112264521169826597

Actually, the whole thread is worth a read IMO (it has started on the topic of AI generated commit messages).

janriemer,

@chriskrycho ๐Ÿ™‚

> Sometimes I write them as a plan before I start [...]

Oh, I haven't even thought about this before! This is brilliant!

Also read your blog posts about Jujutsu (very well written, btw) and got me interested, but I yet have to actually try it out.

janriemer,

@chriskrycho Yes, absolutely! I think, we are fully in agreement here.๐Ÿ™‚

janriemer,

@guenther ๐Ÿ˜ฌ

GregMorenz, to random
@GregMorenz@hachyderm.io avatar
janriemer,

@GregMorenz ๐Ÿ˜ฎ

I love the comment, though! ๐Ÿ˜„

This seems like a gnarly thing to figure out properly... ๐Ÿ˜ฌ

chriskrycho, to rust
@chriskrycho@mastodon.social avatar

A victory! I have about 2K words of the async-await chapter drafted. Itโ€™s still all in suuuuuper early draft mode, but I managed to get past that first big roadblock and decide on how I want to introduce things. ๐Ÿš€

janriemer,

@chriskrycho So excited for the new edition of the book! :awesome:

Thank you, Chris, for all the hard work you put into this. โค๏ธ

This will be so valuable to the Rust community!

shuttle, to random
@shuttle@mastodon.online avatar

How do you leverage Rustโ€™s concurrency features in your projects? Any particular strategies or libraries that have been invaluable?

janriemer,

@shuttle crossbeam-channel with actors!

Or, in more general terms:

  • threads should own every value
  • communicate between threads via sender-sharing, not memory-sharing

Multithreading in Rust is a bliss!

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

janriemer,

@alcinnz

> Its like if JavaScript was allowed to stay itself!

That's a beautiful way to put it!

I don't know Lua (I should look into it!), but I once saw something that, at first sight, looked like JavaScript, but also not quite...something was slightly different...

...well, it was Lua! โœจ

So I totally get what you are saying.

janriemer,

@mo8it

> I mean, you get problems if you try to launch a threadโ€ฆ

Which specific problems are you refering to?

As far as I understand, you can spawn threads in JS environments (e.g. in the browser) with no problems (using Web Workers and SharedArrayBuffer under the hood).

Only spawning them in non-JS environments is currently not supported, if I'm not mistaken. For this, we'll need the thread-spawn proposal implemented, right!?

https://github.com/WebAssembly/shared-everything-threads

#WASM #WebAssembly #WASI

janriemer,

@mo8it Thank you for sharing, Mo!

Hmmm...that's unfortunate and sad. ๐Ÿ˜”

You might need to set appropriate headers in your server config (due to Spectre attack mitigation). See details in the last paragraph of this section:

https://web.dev/articles/webassembly-threads#sharedarraybuffer

It basically says you need to cross-origin isolate your site. Details at MDN:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer#security_requirements

Also, as a baseline requirement, you need to be in a "secure context":
https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts

Hope, this will solve your problem. ๐Ÿคž

janriemer, to rust

Clippy's lints for dealing with in :

https://rust-lang.github.io/rust-clippy/master/#/async

(Note, that this is just a search for the term "async" in the Clippy docs - there is no special "category" involved here).

janriemer, to random

Doomscrolling...

...but in an actual ebook/pdf ๐Ÿ“–

janriemer,

Doomscrolling...

...in the 5.4 release notes.

https://dev.epicgames.com/documentation/en-us/unreal-engine/unreal-engine-5.4-release-notes

You can hardly see the scrollbar anymore - that's how long those release notes are!

Absolutely mind-blowing! ๐Ÿคฏ

chrisbiscardi, to rust
@chrisbiscardi@hachyderm.io avatar

This Week in Bevy is very exciting this week. A tool for HDRis, Nannou's progress on their Bevy backend, Ludum Dare entries, and Bevy running on an ESP32!

https://thisweekinbevy.com/issue/2024-04-22-ludum-dare-nannou-and-esp32s

#rustlang #bevyengine #gamedev

janriemer,

@chrisbiscardi Thank you, Chris, for maintaining This Week In Bevy! โค๏ธ
It's an absolute gem! ๐Ÿ’Ž

alper, to rust
@alper@rls.social avatar

Trying to get my head around how to organise a project where you have to deal with "crates", "packages", "modules" and "libraries" each of which means something slightly different.

I guess the reason why so many Rust source files are 1000+ LoC is because figuring out how to split them up is too much of a pain.

janriemer,

@alper Glad it helps you (and thank you for getting back to me)! ๐Ÿ™‚

Yes, I agree, modules are not that well explained in the book (other topics are, though, IMO).

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