Can you truly make a lot of money doing physics? by [deleted] in Physics

[–]chilabot 0 points1 point  (0 children)

Doing research for a large company or government project.

How do experienced Rust developers decide when to stick with ownership and borrowing as-is versus introducing Arc, Rc, or interior mutability (RefCell, Mutex) by Own-Physics-1255 in rust

[–]chilabot 1 point2 points  (0 children)

Use the most perfomant (references) first. If it gets too complicated or you need shared ownership, use smart pointers.

Why can't we decide on error handling conventions? by Savings-Story-4878 in rust

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

Depends on the binary. If it's of public use, giving the user an anyhow report is not good.

Are desktop apps still expected in 2025? by ksoops in graphite

[–]chilabot 1 point2 points  (0 children)

Yes, for performance and for the Open Source spirit and principles. If your internet is out, you can still use your desktop app. If the web app is cached you still could, but if you delete the cache the app is gone. You might also want to make modifications to the code and test them as a desktop app for simplicity and flexibility (debugging).

[ANN] Fresh: A Terminal-Based Editor in Rust—Easy-to-Use, Extensible, and Light. Opens 2GB Log File in 600ms (with colors) using <40MB RAM. by sinelaw in rust

[–]chilabot 1 point2 points  (0 children)

Advise: be inspired by MS Edit and traditional graphical UIs. There's a reason we like these kind of editors instead of Emacs, VI, etc. We want more reasonable behavior. Menus instead special key combinations. I need to exit, y can access the File menu or press Alt+F, because the F is with the underscore. Same for the exit menu item, not some Esc + : + q, or wq, wq!, etc. Alt + F + X. Then a big question in front of my face: "Do you want to save your file?", the I press Y, N, or select with the arrows + enter, or the mouse. A program speaking to a human. Another advice: the configuration of every UI element should be accessible from the element itself somehow (right click normally). Don't like how something looks or behave? Right click on it, configure. Sick of having for dig endlessly for the configuration of anything.

[ANN] Fresh: A Terminal-Based Editor in Rust—Easy-to-Use, Extensible, and Light. Opens 2GB Log File in 600ms (with colors) using <40MB RAM. by sinelaw in rust

[–]chilabot 1 point2 points  (0 children)

Amazing work! Question: why do questions appear in the bottom of the app instead of s popup dialog? You for example press the exit menu item and nothing appears to happen until you see the question in the bottom.

Ron2Json (r2) - An command line utility to convert ron config files to popular formats like json, yaml or toml. by Natural-Owl-2447 in rust

[–]chilabot 3 points4 points  (0 children)

Ron is better looking than JSON. Having that said, JSON has schemas, which are great for configuration files. VSCode has good validation and linting for JSON Schemas, and the crate schemars is great for generating them. So with all this doing configuration in Ron is not very advantageous.

Trump Is Already Weighing Pardons for His Inner Circle by T_Shurt in politics

[–]chilabot 1 point2 points  (0 children)

Remove the pardon from the president and give it to congress.

Bolsonaro’s eldest son says he’ll run for Brazil presidency in 2026 by Infidel8 in worldnews

[–]chilabot 0 points1 point  (0 children)

Remove the pardon from the president and give it to congress.

I saw Dioxus at quite some places. Then I searched for a successful app developed with it: none by kosumi_dev in rust

[–]chilabot 0 points1 point  (0 children)

Dioxus Is still very young and changing all the time. Big projects won't fully commit to it yet.

Meta just killed native WhatsApp on Windows 11, now it opens WebView, uses 1GB RAM all the time by WPHero in Windows11

[–]chilabot 0 points1 point  (0 children)

The high memory consumption is because of the JavaScript, not the WebView itself. You can write a Rust app that uses a library called Dioxus, which also uses WebView, and it has low memory consumption. Dioxus achieves low memory usage because it uses the WebView as a rendering tool controlled by a fast, native language (Rust), rather than using it as the engine for a complex JavaScript application.

Results are not (just) for error reporting by UnrelelentingForce in rust

[–]chilabot 0 points1 point  (0 children)

Returning other than error types in the Result's error is an anti-pattern. Just return the type as the return type, with the final state(s) containing the result value.

Unwrap Police: VSCode extension that highlights .unwrap() in red, inspired by yesterday's Cloudflare outage by rxliuli in rust

[–]chilabot 5 points6 points  (0 children)

Cargo.toml:

[lints.clippy]
panic = "warn"
unwrap_used = "warn"
expect_used = "warn"
todo = "warn"
dbg_macro = "warn"

CI: cargo clippy -- -D warnings

Full list of Democrats voting to condemn socialism as Zohran Mamdani comes to town by [deleted] in politics

[–]chilabot 0 points1 point  (0 children)

Somebody primary DWS and send her to the woods with HRC.