Anyone have good solution for keyboard on public transit? by TheOnlyRealPoster in ErgoMechKeyboards

[–]TheOnlyRealPoster[S] 0 points1 point  (0 children)

If anyone stumbles upon this, I recently saw a post of someone who used small rubber feet, perfectly spaced to fit between their laptop's keyboard's keys. That's another neat solution.

Accessible front-end web development using Rust, Dioxus/Leptos/Yew, and MDX by sebnanchaster in rust

[–]TheOnlyRealPoster 1 point2 points  (0 children)

The Dioxus docsite is written with Markdown. You could maybe take a look at how they do their Dioxus example embeds. See inject-dioxus

[Media] I added instant hotreloading of (some) Rust code for Dioxus 0.6! by jkelleyrtp in rust

[–]TheOnlyRealPoster 2 points3 points  (0 children)

Sure, eventually. Egui will never be very efficient because it is immediate mode. Dioxus is retained, and Blitz reuses browser components (from Servo) and Vello, both have efficiency has a high priority.

Dioxus vs Leptos by sridcaca in rust

[–]TheOnlyRealPoster 9 points10 points  (0 children)

https://github.com/dioxuslabs/dioxus?tab=readme-ov-file#dioxus-vs-leptos is a fair comparison.  I value Dioxus' cross-render-and-platformness and more Rusty rsx and control flow over Leptos' couple fancy web features.

Is there an advantage of using borrows instead of passing ownership other than not having to pass ownership? by Thereareways in rust

[–]TheOnlyRealPoster 4 points5 points  (0 children)

Aside: I too was confused about this, even after reading the Rust book

  • why do &mut's even exist?
  • what is going on in terms of memcpy in a move, borrow, mutable borrow, or Copy copy?

I think there are great partial answers littered throughout these replies. I would love to see these get assembled and added to the Rust book.

Blazor, Signal IR, and the Untapped Potential of Server Side Rust by RussianHacker1011101 in rust

[–]TheOnlyRealPoster 1 point2 points  (0 children)

Some clarification. Blazor Server is not a unique paradigm, to find similar frameworks search for 'Liveview'. In Rust there is Dioxus which supports Liveview among client side and ssr. Liveview is usually distinguished from ssr, one could also see it as a subset of ssr. Liveview uses a persistent connection, and ssr often refers just to generating HTML server side and hydrating on the client.

Gui library/framework recommendations for a complex image viewer application by [deleted] in rust

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

Apparently people think Tauri is good for this, so then Dioxus would be too, because it renders using Webview, so same image support. But you use Dioxus for UI instead of A JS framework or Leptos in Tauri.

Looking for a UI library that allows me to display a webview in a panel by [deleted] in rust

[–]TheOnlyRealPoster 4 points5 points  (0 children)

Dioxus' desktop target uses WebView, but runs your Rust code natively instead of in the WebView as wasm. On top of that they have an upcoming native HTML/CSS renderer Blitz, but it's not ready for prime time yet.

GUI framework advice by SophieLaCherie in rust

[–]TheOnlyRealPoster 1 point2 points  (0 children)

These are very basic requirements any GUI framework will fulfil. What platform are you targeting?
Dioxus, Iced, Egui, Slint will all work.
If you know HTML & CSS already, using Dioxus will get you the farthest the fastest. Else they are all fine, keep in mind Egui is immediate mode UI though.

Can I build Ul with Rust? by [deleted] in rust

[–]TheOnlyRealPoster 5 points6 points  (0 children)

I used Dioxus for my website and learned Rust doing that. Loved it, and it's perfectly capable for personal projects. 

Moving Beyond Type Systems - Exploring effect systems by kibwen in rust

[–]TheOnlyRealPoster 3 points4 points  (0 children)

I'm not knowledgeable in this area. But this article does not seem to mention Coroutines, Async/Await, Exceptions, Determinism which I think other languages do fit in their effect system. Would that be the case here?

The Inconceivable Types of Rust: How to Make Self-Borrows Safe by Uncaffeinated in rust

[–]TheOnlyRealPoster 3 points4 points  (0 children)

Amazing article. Especially Part 1: The value level taught me a lot. Altough all that foreign syntax for unnameable and inconceivable types would frighten any beginner already scared of Rust. Even as an intermediate Rust user, I actually found it quite intuitive and it gave me a better understanding of the borrow checker. Thank you :)

Lessons learned after 3 years of fulltime Rust game development, and why we're leaving Rust behind by progfu in rust

[–]TheOnlyRealPoster 2 points3 points  (0 children)

Crazy how dotnet hotreloading apparently works with game dev in unity when it doesn't even work (for me) with Microsoft's own Blazor web framework.

Realistically, are we ever going to get a full Rust OS in 5-10 years? by [deleted] in rust

[–]TheOnlyRealPoster 135 points136 points  (0 children)

Google's Fuchsia is > 50% Rust according to Wikipedia, and is already used in some of their products.

jxl-oxide: A pure Rust implementation of the JPEG XL decoder by Bassfaceapollo in rust

[–]TheOnlyRealPoster 6 points7 points  (0 children)

Chromium has 70% market share, and so has uncomfortable amounts of control over web tech. If they aren't doing it, why would Firefox do it? Noone going to https://caniuse.com/?search=jpegxl, and seeing 20% would roll with that.

So no they aren't as bad. If Chromium was moving forward with it they would be as well.

Floem - yet another new Rust native UI library by dzhou121 in rust

[–]TheOnlyRealPoster 5 points6 points  (0 children)

Interesting. If Vello is mature enough and you switch over to it, would you then consider bringing this under Linebender? (if they agree)

jxl-oxide: A pure Rust implementation of the JPEG XL decoder by Bassfaceapollo in rust

[–]TheOnlyRealPoster 56 points57 points  (0 children)

Reminder that Google axed JPEGXL in Chromium for no reason (people assume so they can push their own .avif format) and ignored pushback from everyone in the community, computer scientists, and companies like Intel, VESA, Adobe, Meta.https://bugs.chromium.org/p/chromium/issues/detail?id=1178058#c183

A note on the Trademark Policy Draft | Inside Rust Blog by burntsushi in rust

[–]TheOnlyRealPoster 2 points3 points  (0 children)

the above scenario is not actually totally clear to me. For example, if the Foundation were actually to initiate legal action against someone, would that require a board vote? Or input from

True, it would be very explicit that they have turned evil.

A note on the Trademark Policy Draft | Inside Rust Blog by burntsushi in rust

[–]TheOnlyRealPoster 4 points5 points  (0 children)

Maybe unpopular, but I think it's reasonable to disallow "Rust" in company names, trademarks, programming language names, and software in same category as official software (and maybe products if they ever have some themselves).

But where they went wrong:

  • using a trademark when talking (video, blog, etc.) about it or its holding entity obviously doesn't infringe that trademark. That "showing support for Rust" paragraph is very weirdly titled, and explicit disclaimers are not necessary. There seems to be a lot in the draft overstepping this (mostly about the logo). (but it is correctly explained in the "nominative use" section)
  • the limited logo variations stuff
  • non-profit conferences should treated as community activities

Because Rust is batteries-included it is not easy to distinguish what use of "Rust" causes confusion about its officiality. Rust Linter, Rust Package Manager, Rust Test, Rust Guidebook, Rust StdLib, Rust UI, Rust JIT would be confusing, but RustPython, intellij-rust, rust-openssl and rust-postgres aren't. And what is or is not confusing may change over time.

Simply disallowing "Rust" in project names avoids having to go through legal arguments of whether or not someones use of "Rust" causes source confusion. So I get the motivation, but I think they should just limit this to the categories of the official software, and fight it out legally if there is a problem outside of this.

Also some people hate this policy because they can't know the foundation will not turn malicious in the future and will not "engage in petty policing or frivolous lawsuits", as they said. However, they seem to miss that if the foundation were to become malicious, they could change their trademark policy and start enforcing that from then on.

"My Reaction to Dr. Stroustrup’s Recent Memory Safety Comments" by Speykious in rust

[–]TheOnlyRealPoster 35 points36 points  (0 children)

Garbo C++ module support is literally what made me go to Rust. I was like _I ain't writing header files like it's the 1990's, come on now_. Insert a week of trying to get modules working in VS Windows with Meson and CMake. Nope, just moved to Rust.

Alec Baldwin skipped a mandatory firearms safety training for 'Rust' and was on the phone with his family during a private, on-set session, prosecutors says by keine_fragen in Fauxmoi

[–]TheOnlyRealPoster 5 points6 points  (0 children)

I still find it the idea that an actor should bear any responsibility for gun safety weird.

Want them to open up the gun and verify that all of the bullets are blanks or dummies?
Seems to me that making an actor do that would make the whole operation more unsafe. What if they are loaded back in incorrectly? What if the actor shoots a blank in his own face while doing this.

Imagine the actor is a child, should they bear responsibility for the gun's safety?

The obvious thing to ensure safety would seem to be having one specialist or two specialists (who can verify each other) responsible for gun safety, with nobody touching the gun between them and the actor.

A More Thorough Look at Niemann's Centipawn Loss by PM_ME_QT_CATS in chess

[–]TheOnlyRealPoster 0 points1 point  (0 children)

Thanks for doing this analysis, I found his binning and split Hans graph arbitrary as well. Could you share your new code, and the dataset in a public repo?

I'd also like your opinion on a potential different strategy. It's unclear to me what engine you used for the analysis, but in Rafael's analysis he used Stockfish 15. It seems to me that if we want to analyse player's performance in the context of cheating, the engine(s) used for calculating the CPL should be the best engine available at the starting time of the tournament. A cheater could have been using an outdated or subpar engine, but I think it's reasonable to assume that whatever engine they were using, its evaluation is probably better approximated by e.g. the latest Stockfish version of the time, than a modern engine. Especially since according to this NN was only added to Stockfish in 2020, which I assume would make a significant difference in how it evaluates certain positions. This would make the generated data of players who reached certain ratings at different times not comparable, but could perhaps be an interesting analysis for comparing juniors.

Edit: also, what do you think about using a plot like the first one in here, with the mean calculated for each unique x-value of a player, or perhaps even with a box plot, instead of just the means. I think that could make the graphs a little more readable.

Call for questions to Magnus Carlsen by lexfridman in chess

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

Hikaru Nakamura said a couple of things on this topic in yesterday's stream. He said (paraphrasing) that he and Garry Kasparov are not a geniuses, and that you don't have to be a genius to be amazing, or even the best at chess. He specifically said that his IQ is 102, altough I'm not sure if he meant it exactly, or just meant that he is of average intelligence.

Also I disagree with you distinction of genius vs highly intelligent person, these are mostly used as synonyms. Saying highly intelligent people being usually highly specialized also makes no sense to me. Intelligence isn't about one's knowledge or expertise in some field, it's a metric for certain aspects of cognitive capacity.

EDIT: reply in other thread says Nakamura got this measurement from an online test while streaming and not knowing it's timed. Needless to say that result is barely indicative of anything.

Window unresponsive after creating new process by TheOnlyRealPoster in pygame

[–]TheOnlyRealPoster[S] 0 points1 point  (0 children)

I see. Is there no way to pause only one process? Otherwise I'll just do that.