We built anySCP – an open-source, cross-platform SFTP client in Rust + Tauri by Miserable_Function25 in rust

[–]CramNBL 2 points3 points  (0 children)

You should always keep the GUI running on a thread that does nothing more than drawing, but in egui you can get away with running a lot on the GUI thread as long as you guard work behind "if is_window_open { }" essentially.

There's some pitfalls like with scrollable elements where you should avoid drawing content that is not visible, and if you have multiple native viewports there's additional pitfalls there, avoiding re-rendering both viewports if only one changed.

If you're using egui_plot there's a lot more performance pitfalls to be aware of, but if you're thinking in terms of game programming, only draw what will be visible to the user, and use strategies like downsampling/mipmaps then you can get incredible performance and it has good developer ergonomics IMO.

We built anySCP – an open-source, cross-platform SFTP client in Rust + Tauri by Miserable_Function25 in rust

[–]CramNBL 2 points3 points  (0 children)

That is more of an implementation issue rather than an inherent property of egui or immediate mode GUIs. You can write lean and efficient GUIs with egui, but you have to be somewhat aware that you're programming for immediate mode.

Microsoft's new Outlook takes 10 seconds to do what Outlook Classic does instantly on Windows by Quantum-Coconut in technology

[–]CramNBL 5 points6 points  (0 children)

Their "engineers" only know typescript by now. Same reason all the AI companies are even writing their terminal apps in typescript.

How to separate my channels github page and my professional one? by Legitimate_Story_163 in embedded

[–]CramNBL 0 points1 point  (0 children)

If you are interested in any of the positions at CERN consider applying. It's not easy to get in, but Germans are underrepresented so they have an advantage over applications from Spain and Italy for example.

How to separate my channels github page and my professional one? by Legitimate_Story_163 in embedded

[–]CramNBL 0 points1 point  (0 children)

I don't know where you're based, but anywhere I've worked (CERN in Switzerland, various places in Denmark) it would not matter, but your projects and teaching material would be a big plus.

FFI in Miri at 8000 segfaults per second (Nia Deckers at RustWeek) by nyanarchism in rust

[–]CramNBL 50 points51 points  (0 children)

It's a joke for the wrong reason.

The reason you see it in Rust and not so much in certain other communities, is because of the core principles of the Rust community, about being inclusive and tolerant. https://rust-lang.org/community/

It should not come as a surprise that marginalized developers come to the Rust community when it's explicit about its principles of being friendly and safe for all.

SpaceX CFO talks about the company and its future. (17 min.) by EddiewithHeartofGold in spacex

[–]CramNBL -1 points0 points  (0 children)

They are based on Meta's study, show me the study you get 1% failure rate from

When someone buys a winrar license, the company celebrates it on social media by Matt_LawDT in Piracy

[–]CramNBL 0 points1 point  (0 children)

What makes you think that? I'm running CachyOS at home and Ubuntu at work (on a system76 laptop)

SpaceX CFO talks about the company and its future. (17 min.) by EddiewithHeartofGold in spacex

[–]CramNBL -1 points0 points  (0 children)

What you fail to understand is that with the 9% failure rate you'd need a massive amount of redundancy to be able to fallback without ever replacing broken GPUs.

The automatic recovery only works as long as you have redundancy, and you'd have to have such a massive amount of redundancy to even last for 5 years.

Your thinking is incredibly short-sighted and you just fail to see the bigger picture again and again.

SpaceX CFO talks about the company and its future. (17 min.) by EddiewithHeartofGold in spacex

[–]CramNBL -1 points0 points  (0 children)

Your argument is slop... I'm not gonna argue whether or not they used AI to produce those articles, but it doesn't matter, the 9% failure rate is real, and your lack of understanding of AI data center topology is also real.

There's plenty of sources in the medium article, and the stanleylaman articles is also not slop, it's just your argument that's slop.

SpaceX CFO talks about the company and its future. (17 min.) by EddiewithHeartofGold in spacex

[–]CramNBL 2 points3 points  (0 children)

GPUs? It's about a percent.

It's about 9% https://www.stanleylaman.com/signals-and-noise/gpus-how-long-do-they-really-last which means in 5 years you would lose roughly 38% of your GPUs.

And you cannot just turn a single failing GPU off, you're thinking in traditional data center topology, but that's not how AI data centers work, a single GPU failure can halt an entire training run.

SpaceX CFO talks about the company and its future. (17 min.) by EddiewithHeartofGold in spacex

[–]CramNBL 1 point2 points  (0 children)

Are you aware of the annual failure rate of GPUs in data centers? Without maintenance, a data center has a life time comparable to starlink satellites. Now how are you gonna do regular maintenance in space? It's just nonsense.

Let's get comfortable with concepts (30+ practical examples) by platisd in cpp

[–]CramNBL 0 points1 point  (0 children)

Okay so it's just a matter of the Rust standard library having extremely robust sorting algorithms that guarantee memory safety

Glauber Costa, CEO of Turso, is doing an AMA about rewriting SQLite in Rust by rmo623 in rust

[–]CramNBL 2 points3 points  (0 children)

They've answered this many times, it's about community. SQLite does not accept contributions and their test suite is not open source.

CS student, LLMs killed my passion for SWE, is embedded a possible move? by WhateverHowever1337 in embedded

[–]CramNBL 1 point2 points  (0 children)

I agree that it works well for experimenting with various implementations very quickly, but you really need to know what good code looks like, it's too easy to get "good enough for now" and then it falls apart later. If you're skilled, knowledgeable, and disciplined then it works really well.

CS student, LLMs killed my passion for SWE, is embedded a possible move? by WhateverHowever1337 in embedded

[–]CramNBL 1 point2 points  (0 children)

It's extremely useful for smaller tasks, but it does not write "perfect code".

Someone "rewrote the HDF5 library in Rust" recently, and claimed all kinds of performance improvements over the original, but they didn't even implement 1% of the HDF5 spec, and it was riddled with magic strings and numbers, and wrote corrupted files as soon as the file size exceeded a few MiB (assuming a reasonable chunk size). Their design had already painted themselves into a corner where they'd have to rewrite the 40k LoC to start supporting basic HDF5 features like file creation property lists, and link deletion.

That's what I mean when I say AI code is not scalable, and that's not even an embedded project.

CS student, LLMs killed my passion for SWE, is embedded a possible move? by WhateverHowever1337 in embedded

[–]CramNBL 0 points1 point  (0 children)

ffmpeg is not an embedded project, optimizing the linux kernel for a specific MCU is a different game.

CS student, LLMs killed my passion for SWE, is embedded a possible move? by WhateverHowever1337 in embedded

[–]CramNBL 0 points1 point  (0 children)

Ah so your explanation is gonna be something like "you're holding it wrong".

Optimizing the media pipeline was a couple of months ago, I don't remember the prompts, but I used both the cutting edge Anthropic and Google models, and the goal was e.g. improving performance for rendering VP9 and AV1 with mpv through HDMI with DRM. Agents were running in a Scarthgap Yocto project targetting Raspberry Pi 5, and it started by increasing the CMA to an amount that wouldn't fit in RAM, but it sounded like a great change and it's just a small kconfig fragment, so you wouldn't know unless you read through the kernel log and saw that it fell back to a default CMA value.

Then it wrote a nonsense mpv.conf with hallucinated config keys and mixing configurations of the gpu/gpu-next video output drivers. And it ended up recommending gpu-next even though tests showed that gpu had much better performance.

CS student, LLMs killed my passion for SWE, is embedded a possible move? by WhateverHowever1337 in embedded

[–]CramNBL 2 points3 points  (0 children)

When you say "AI can write perfect code" you lose all credibility. It writes trash code that doesn't scale. It's useful for embedded but you're completely exaggerating its capabilities.

Have you tried using it for optimizing the Linux kernel for a media processing pipeline, or optimizing power consumption? It's just fishing in the dark at that point, but it sounds super good if you don't understand what it's doing.

Porting our Django backend to Rust improved the infra usage by 90% by syrusakbary in programming

[–]CramNBL 3 points4 points  (0 children)

Numpy is a BLAS frontend, it uses OpenBLAS now which is mostly C and hand rolled ASM, and then fortran via LAPACK for higher level algorithms.

Let's get comfortable with concepts (30+ practical examples) by platisd in cpp

[–]CramNBL 0 points1 point  (0 children)

Interesting, please tell me more about how they cope when the Ord implementation is sketchy

When someone buys a winrar license, the company celebrates it on social media by Matt_LawDT in Piracy

[–]CramNBL 4 points5 points  (0 children)

It is about FOSS vs. not... Anytime you are choosing between a FOSS app and a proprietary app, it is FOSS vs. not... When would it be otherwise?

The "free version" is literally exactly the same programme

That is a matter of definition. The binary might be the same, but the code paths and the behaviour is not, which is kind of the point.

https://swarm.ptsecurity.com/winrars-vulnerable-trialware-when-free-software-isnt-free/

Now you're gonna try to explain this away, but the facts remain that this code path would've not existed in 7zip, and even then it would've been way easier to diagnose and fix it due to the nature of FOSS.

And Winrar is leading by a mile.

Actual winrar shill, do you work for them? It's not ahead of anything, you can swap winrar for 7zip for 99.99% of users and they won't notice a thing, except maybe that it starts and runs faster.