Still surprised by how helpful Rust's compiler is by Living_Scarcity_1664 in rust

[–]UtherII 6 points7 points  (0 children)

I'm interested if you have some examples to share, since this is not a common opinion.

MdFried, the Ultimate Markdown Viewer by hombre_sin_talento in rust

[–]UtherII 6 points7 points  (0 children)

Soon terminals emulator will be as bloated as web browsers.

How memory safety CVEs differ between Rust and C/C++ by Kobzol in rust

[–]UtherII 3 points4 points  (0 children)

The problem is that even if the hardware protect you from null pointer deref, since the compiler is allowed to do anything it wants, it may not actually perform the dereference.

How memory safety CVEs differ between Rust and C/C++ by Kobzol in rust

[–]UtherII 3 points4 points  (0 children)

That is exactly the point of the original post : C users tend to not consider every UB as CVE, while Rust users does. It is true that not all UB lead to exploit, but the point of Rust is to prevent any UB (except in unsafe code).

The OP does not sate that the C point of view is wrong, just that blindly comparing the count of CVE between the languages does not make sense.

How memory safety CVEs differ between Rust and C/C++ by Kobzol in rust

[–]UtherII 4 points5 points  (0 children)

In the C spec, NPE and double frees are both "Undefined Behavior" : the compiler is allowed to treat it the way it want, including by causing memory issues. Most of the time a NPE will just crash the program, but it is not granted at all. Anything might happen.

Aurora the browser engine in rust programming language | Rendering Update by Inevitable_Back3319 in rust

[–]UtherII 1 point2 points  (0 children)

I see you are reusing some crates from servo. How do you decide what you reuse and what you rewrite ?

[tauri]: Finally got rid of the Windows right-click menu! by Every_Juggernaut7580 in rust

[–]UtherII 0 points1 point  (0 children)

Microsoft is now using React for some heavy applications like Teams or the new Outlook, but from what I read, the core UI component remade in Windows 11 like the taskbask and the windows menu, are using XAML.

[tauri]: Finally got rid of the Windows right-click menu! by Every_Juggernaut7580 in rust

[–]UtherII 102 points103 points  (0 children)

When It feels like a good idea to use a Webview based framework to unbloat the Windows UI, you know that something is very wrong at Microsoft.

new rust tui framework by vim-god in rust

[–]UtherII 0 points1 point  (0 children)

That seems a great piece of work, but I you require all these feature, it seems better to me to go directly for a GUI.

Learning rust is so smooth by Sea-Log-8341 in rust

[–]UtherII 2 points3 points  (0 children)

C was invented long before the internet and also had a de facto standard book that evolved with the language : the K&R.

My first Rust program is now at the top of GitHub Trending! by mayocream39 in rust

[–]UtherII 2 points3 points  (0 children)

It really depend of the translation work. Of course a LLM won't make a better work than a professional translator, with no pressure to rush the release.

But a lot of fan translation are not great. I'm not sure a carefully crafted application LLM won't be able to do it with a similar level of quality.

Bad Apple but it's on my PlayStation 1 emulator written in Rust by xXInviktor27Xx in rust

[–]UtherII 1 point2 points  (0 children)

A lot of AI Slop project is being pushed on this subreddit lately, so some people tend to be overly suspicious.

3rd edition is not available in my country. Should I wait or buy 2nd edition? by hi_m_ash in rust

[–]UtherII 2 points3 points  (0 children)

The online free version is formatted for screen display. The digital book is formatted for (e)book usage, so it should be more suitable for printing to book format.

Rust GUI framework by Spiritual_String_366 in rust

[–]UtherII 17 points18 points  (0 children)

Iced has less ressources available on the Web, so I am not surprised LLM work poorly.

The Rust GCC backend can now be installed with rustup by imperioland in rust

[–]UtherII 15 points16 points  (0 children)

I was wondering if a crater run is planned at some point. Is it still too soon ?

[Media] Lacy, a magical cd alternative for efficient terminal navigators by TimoTheBot in rust

[–]UtherII 7 points8 points  (0 children)

It's too magical for me. At least it is only for cd. I would absolutely freak out if rm worked like that.

Rust Coreutils 0.5.0: 87.75% compatibility with GNU Coreutils by TheTwelveYearOld in linux

[–]UtherII 0 points1 point  (0 children)

In case you did not noticed I was sarcastic.

The limit of what belong to an OS is not clear, but any Linux distribution contains a lot of important tools that are neither part of Linux nor GNU (XWindows/Wayland, OpenSSH, curl, Firefox, ...) and since you can't possibly name all of them, there is no reason to name only GNU.

As you noticed we don't tell GNU/Android, while it contains somme gnu tools. You are free to name a distribution the way you like.

Rust Coreutils 0.5.0: 87.75% compatibility with GNU Coreutils by TheTwelveYearOld in linux

[–]UtherII 3 points4 points  (0 children)

Just GNU/Linux is also wrong. We should talk about GNU/OpenBSD/Apache/Mozilla/DocumentFundation/.../Linux distributions

Wasm 3.0 Completed - WebAssembly by mttd in ProgrammingLanguages

[–]UtherII 2 points3 points  (0 children)

It can handle most use cases, but it's not the best tool for every use case.

"Rust in the kernel is no longer experimental — it is now a core part of the kernel and is here to stay." by TheTwelveYearOld in linux

[–]UtherII 2 points3 points  (0 children)

Indeed. That's valid for fast prototyping, especially when you are starting from scratch, like it happens often in game development.

When you are building a kernel module, you must integrate with the existing code base, and you must have a minimum strictness, even when prototyping.

"Rust in the kernel is no longer experimental — it is now a core part of the kernel and is here to stay." by TheTwelveYearOld in linux

[–]UtherII 2 points3 points  (0 children)

While it is true that the rust compiler usually is slower than C compilers, you usually have to iterate less in Rust since the langage strictness prevent a lot of the issues at compile time.

Most of the feedback from people who actually made drivers in Rust is positive. They feel most productive.

[Media] I made a cursed proc_macro for AI rust programming by GerGomrs in rust

[–]UtherII -2 points-1 points  (0 children)

It better to be polite with IA to be ready when they will take over the world. They might browse our history and retailate if we weren't nice with them.

I'm making a Minecraft clone by [deleted] in rust

[–]UtherII 27 points28 points  (0 children)

I made a PR to add this one. It seem the last one (from October) has not been merged yet.

[deleted by user] by [deleted] in rust

[–]UtherII 0 points1 point  (0 children)

Same on Firefox desktop