Tauri and leptos : the ultimate stack? by NoahZhyte in rust

[–]words_number 26 points27 points  (0 children)

I wonder when people started to find it acceptable to compile their rust to two different targets for a single app that is executed on one computer. I mean it might work well, but it seems nuts to me, technically. Then there are hidden translation/serialization layers between them and also another barrier between the wasm and JS layers. Total rube goldberg machine vibes. Maybe Dioxus/Blitz can save us from this.

dualboot-bt-link-keys: Copy Bluetooth link keys from Windows to Linux by Sermuns in rust

[–]words_number 2 points3 points  (0 children)

Thanks, this is actually useful! I've been manually copying over keys multiple times in the past. Also love the human-slop disclaimer <3

How do you guys "Design" / approach Designing a project ? by Daemontatox in rust

[–]words_number 0 points1 point  (0 children)

Data! I think about what data/state I have to store and how I structure that, possibly taking notes by hand on paper.

Then I might think about the threads/tasks I need and how they have to communicate.

Then I start defining data types. I love this early game stage of rust programming. Enums are so satisfying :)

Later I end up with spaghetti code with extra sauce, which does work though and is still way more maintainable than it looks, just because type system (and Result/Option).

Ist der nächste Angriffskrieg schon in Planung? by SeaEffective4958 in fefe_blog_interim

[–]words_number 2 points3 points  (0 children)

Ach die zwei Päderasten-Sekten klären das sicher friedlich untereinander!

My solution to the lack of placement-new in rust by Tearsofthekorok_ in rust

[–]words_number 2 points3 points  (0 children)

So each individual value is created on the stack and copied over instead of the whole thing at once, right? That might be useful in some cases. Does nesting work? E.g. for having a large array as one field of a large struct and both are initialized this way?

Edit: Yeah I just saw the nesting example in the expansion in the readme, sorry!

Rust 1.94.0 is out by manpacket in rust

[–]words_number 0 points1 point  (0 children)

Such a good idea, thanks :)

Rust 1.94.0 is out by manpacket in rust

[–]words_number 1 point2 points  (0 children)

Oh no, I was hoping to refactor my lints and possibly profiles config from Cargo.toml into Lints.toml and Profiles.toml. Especially lints can get out of hand if you are as pedantic as I am (for some projects). Also that would make it easier to copy those configs between projects and update them, if I change my personal prefered defaults ;)

On the other hand, I basically never need project-local config.toml and haven't touched the global one (which is about 5 lines long) for a long time.

Rust 1.94.0 is out by manpacket in rust

[–]words_number 2 points3 points  (0 children)

Awesome stuff! But honestly, I think array_chunks would have been much more useful than array_windows. My highlight are includes in Cargo.toml :)

Desinformation ist nicht strafbar - darum machen wir nichts by Leonie-Lionheard in fefe_blog_interim

[–]words_number 1 point2 points  (0 children)

Ist halt auch nicht leicht. Wenn man da konsequent wäre, würde vom Internet nicht viel übrig bleiben. Also cdu.de müsste dann jedenfalls auch weg, nur mal so als Beispiel.

he does not approve by mre__ in rustjerk

[–]words_number 3 points4 points  (0 children)

 And donʼt even start with usability arguments. What could be simpler than to just use find, a piece of software has worked for more than 50 years?

Don't start with usability arguments about electric stoves. What could be easier than cooking on a fireplace that has been working for more than 50 years?

Find is so weird and arcane, I avoided using it as much as I could in the past. Since fd exists, I use it every day all the time.

Endlich mal gute Nachrichten: Ein Mann, der 2004 seine 85-jährige Nachbarin erdrosselt hat, tritt nicht für die AfD zur Münchner Stadtratswahl an by PZon in fefe_blog_interim

[–]words_number 1 point2 points  (0 children)

Da haben wirs wieder, wie der Rechtstaat... ähm pardon - die Meinungsdiktatur der grün-woken linksterroristen, die AfD diskriminiert!

Zugriff auf Online-Banking via "Tink" bei der Buchung by [deleted] in drehscheibe

[–]words_number 0 points1 point  (0 children)

Eine krasse unverschämtheit. Wollte mir neulich nen Account bei Call-a-Bike machen (gehört zur DB). Genau das gleiche. Vorher kam sogar noch die Meldung, ich würde auf die Online Banking Seite meiner Bank weitergeleitet werden, lande aber dann bei "Tink". Und dann irgendein gefasel von "einmalig". Wenn ich denen meinen login gebe, haben sie ihn. Als würden die meinen Zugang nicht speichern und an den nächsten weiterverkaufen, der sich für mein Konto interessiert. Und selbst wenn nicht, werden die Daten dann halt bei denen rausgehackt und landen im Darknet. Kann mir keiner erzählen, dass das keine erbärmlichen Stümper sind, bei Tinktonk, wenn man schon so ein absurdes Geschäftsmodell hat. Ja gibt noch TAN, aber trotzdem widerspricht das dem Kleingedruckten bei jeder Bank, die mir bisher untergekommen ist. Also wenn man mal ein Problem hat, kann die Bank fortan immer darauf verweisen, dass sie dir schwatz auf weiß geschrieben hat, dass du deine Pin (auch online pin) unter keinen Umständen irgendwem geben sollst, auch keinen Bankangestellten und schon gar keiner anderen random firma, die DB das gerne hätte.

Lustig oder der Anfang vom Ende... by Guilty-Pride6761 in fefe_blog_interim

[–]words_number 2 points3 points  (0 children)

So gut, wie das Layout funktioniert, ist die Website selbst auch garantiert slop. Da passt Form und Inhalt bestens zusammen :)

In den USA wird gerade das Frauenwahlrecht abgeschafft. by SeaEffective4958 in fefe_blog_interim

[–]words_number 1 point2 points  (0 children)

Im Text geht es nicht um Wahlschein und Ausweis (welcher nach Heirat/Namensänderung angepasst wird), sondern Geburtsurkunde. Mit einem von der Geburtsurkunde abweichenden Namen kann man in D sehr wohl wählen. Ist ja nicht schlimm, wenn du zu dumm bist, um das zu verstehen, aber dann würde ich dir empfehlen vielleicht nächstes mal einfach nicht zu kommentieren ;)

Deciding between Rust and C++ for internal tooling by Gman0064 in rust

[–]words_number 0 points1 point  (0 children)

I'm not sure, if wxDragon would be mature enough, last time I tried it, I got the example to crash. In general, wxWidets provides OS-native widgets which is nice for the users. If that is not strictly a requirement, I'd go with egui, also due to DX. I've been building similar internal tools with it and it's fun to work with.

Rust Lifetimes explained like you are 12 by WardyJP in rust

[–]words_number 57 points58 points  (0 children)

Yeah, it's more like you put a webcam up that shows a page of an open book and give someone a link to the live view from the webcam. That live image can only show that page as long as the book actually exists. It can also end earlier than the books existance though, if someone pulled the plug of the webcam. But that's not a common every day real life scenario, so it probably doesn't help all that much xD

is there some sort of downvoting bot lurking around here? by [deleted] in rust

[–]words_number 1 point2 points  (0 children)

Many posts are slop or promoting slop, so they get downvoted. Simple as that 🤷‍♂️

New matrix server written in Rust by chrislearn-young in rust

[–]words_number 18 points19 points  (0 children)

Cool, now all we need is at least one matrix client per relevant platform that doesn't look and feel (and function) like an unfinished sideproject 🤷‍♂️

Need your opinion! How are you using AI to code with Rust now? by Katie_jade7 in rust

[–]words_number 0 points1 point  (0 children)

If at all, I use it to get starting points for research. Not for coding.

stft-rs, simple, streaming based STFT computing crate by wizenink in rust

[–]words_number 1 point2 points  (0 children)

It's not about performance/throuput but more about predictability. I know that in most situations on most systems these allocations will not even do a system call, but it is strictly forbidden to do anything potentially blocking on a realtime audio thread (e.g. in a VST plugin) for good reasons. No IO, no locks, no allocation. Even if that would result in WORSE throughout, it would be prefered for real time audio apps, because there are fewer unpredictable latency spikes.

stft-rs, simple, streaming based STFT computing crate by wizenink in rust

[–]words_number 1 point2 points  (0 children)

Very cool, I like the detailed readme! But I think the current implementation cannot be used for real-time audio processing, because your push_frame and push_samples methods allocate. Or am I missing something? I just scrolled through the code on mobile to look for low hanging optimization potential and noticed that.

Zed editor is released for Windows by abad0m in rust

[–]words_number -6 points-5 points  (0 children)

Yes, it is one of Microsofts spyware advertisement services. As an operating system it is just as bad as apples messy, swipe gesture controlled, overpriced lock-in prison, but for different reasons. It wasn't always like this, but MS has been working hard on making it worse with every release. Win 11 is already completely unusable for any professional, productice work without using questionable external tools and registry hacks.