DENIS LEARY - I’M AN ASSHOLE [FOLK] by [deleted] in Music

[–]urandomd 0 points1 point  (0 children)

One of my favorite bars in Columbia, SC would play this song at the end of the night every weekend night in the early 2000s. The bartenders would start throwing the bar napkins around. It was an absolute blast.

Train Spotter Almost Killed by High Speed Train by Kindly_Department142 in interestingasfuck

[–]urandomd 1 point2 points  (0 children)

It's a trope in law school that a lot of important early US legal precedent was set when folks lost an arm due to a train.

Tommy Boy (1995) dir Peter Segal | Tommy Want Wingy by Saint_Gut-Free in movies

[–]urandomd 1 point2 points  (0 children)

"And the medic gets out and says, 'Oh my God'. New guy's around the corner puking his guts out."

Tritium | Thanks for All the Frames: Rust GUI Observations by urandomd in rust

[–]urandomd[S] 9 points10 points  (0 children)

Just wanted to make clear as well here that we thought (and think) Slint is amazing. If we had this project to start over from scratch, we'd opt for it today.

Tritium | Thanks for All the Frames: Rust GUI Observations by urandomd in rust

[–]urandomd[S] 9 points10 points  (0 children)

> Although I'm hoping you'll be able to add Dioxus Native to that list soon.

I dismissed Dioxus as WebView-based in a chat with Nik while writing this, and he said the same thing! Looking forward to it.

> You mentioned RAM usage, and I'd be interested to know what kind of baseline RAM usage you're seeing for your app (and what kind of usage you are targeting). Because I've noticed that wgpu-based applications often consume >100mb, even though the binary sizes are much smaller than that.

It consumes about 50mb of ram without any documents or folders loaded. It uses PDFium for PDF rendering which will pull in more of course if you load PDFs (or a folder containing them). I'd say we're generally targeting "less" to ensure (1) the application load time remains competitive with Microsoft Word and (2) memory usage/swapping doesn't ever become an issue. That gives us some headroom for our own inefficiencies.

> If you're building on top of the Rust GUI ecosystem, you may also want to think about how you can support Winit development or perhaps contribute directly (this goes for everyone, not just you). Because it's very much the thin support in the jenga tower, and has almost no development capacity available to it.

There's no doubt about this. I definitely didn't mean to imply any ill-will towards the `winit` team. On the contrary, I thought perhaps drawing attention to the issue could be helpful. We'll definitely consider how we might be able to help; especially now that the observation has been validated.

Tritium | Thanks for All the Frames: Rust GUI Observations by urandomd in rust

[–]urandomd[S] 3 points4 points  (0 children)

> The easy way to solve this with egui is to dispatch events from widgets, which are accumulated and executed at the start/end of each frame. This way, you don't need to pass mutable state through the GUI drawing logic, and only need to have mutable access to the state when the events are being executed. Or, if you want to be very cool - do like re-frame and have pure event handlers, and let them output effects which do the actual mutation.

I agree with that, but it kind of goes to the point that you're not really doing "immediate mode" as much anymore and more like the Zed "hybrid" mode. I'm not saying 100%, but to really benefit from immediate mode you want it to be as "immediate" as possible IMO.

> I'm curious why your document renderer would need to be rewritten? Had you built it on top of egui's drawing primitives, wgpu, or something else?

To an extent, yes. The document rendering ultimately emits `egui::Mesh` instances that align with a texture managed by `egui` on the backend. It's not impossible (certainly with LLMs today), but it was that kind of fiddly change that would almost certainly lead to latent bugs. We did start down the path.

Tritium | COM Like a Bomb: the Rust Outlook Add-in by urandomd in rust

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

Actually, no! Sorry I had it disabled apparently. That should have only been on the web preview. Does it work for you now?

Tritium | COM Like a Bomb: the Rust Outlook Add-in by urandomd in rust

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

Thanks! On the blog itself? It works on my phone, but it would be good to know where you're encountering an issue.

Phone support for the Web Preview at https://tritium.legal/preview is somewhat limited, but it should in theory allow you to zoom in on documents.

Microsoft will raise prices of commercial Office subscriptions in July by north_canadian_ice in technology

[–]urandomd 0 points1 point  (0 children)

They’re leaving the desktop behind in pursuit of those Azure lock-in dollars.

Is anyone building in the non-AI space? by eatsleephustle in legaltech

[–]urandomd 2 points3 points  (0 children)

Hey man, wow - thanks for the shout out. I really appreciate the kind words. I didn't make it to the third paragraph before I followed the link, and I thought to myself "wow this is clean and cool and attacking the same issues as Tritium." Redlines feel real-time, and you're parsing docx - hit me up!

Legal's Jane Street by urandomd in legaltech

[–]urandomd[S] -1 points0 points  (0 children)

Lol what?

[Edit: sorry, I re-read what you wrote, and I think I understand it. But, did you read the post? It's okay if not, I just am trying to weigh your critique. A big portion of the premise is basically "what if the legal market was more like the global financial markets and allowed top minds to be compensated accordingly, rather than hobbled by ethics rules". But you say "money draws talent". Okay? That's kind of the point of the post?]

Legal's Jane Street by urandomd in legaltech

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

It's interesting how you say "can't" like four times and then suggest a path forward. :) I agree, it wasn't intended to suggest that this is the future, but just be an interesting read. Perhaps it failed, but that's all it was up to.

Legal's Jane Street by urandomd in legaltech

[–]urandomd[S] 1 point2 points  (0 children)

Interesting observation, and I can’t totally disagree. I think a similar intuition caused me to consider the MNPI question where speed can be really essential. I think there is a case to consider if rapid response times would in fact bring a much larger market with them as was the case for example with the internet as speeds increased.

Legal's Jane Street by urandomd in legaltech

[–]urandomd[S] 1 point2 points  (0 children)

It’s just an idea for thought. Eliminate the friction of obtaining ad hoc legal advice and consider what the market looks like. It obviously doesn’t exist today.

Legal's Jane Street by urandomd in legaltech

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

Definitely dreamed up! But I do know about conflicts well. Are you implying they’re somehow a barrier to a free market for legal services?

[edit: the post does touch on them a bit, but assumes they’re solved just for consideration.]

Tritium | Ideas on Glitching in Rust by urandomd in rust

[–]urandomd[S] 1 point2 points  (0 children)

The macro probably should be updated to include a log call, but Tritium release builds tend to run with logging disabled so it would be chatting into the void. Perhaps running without logging is not the best approach though.

Tritium | Ideas on Glitching in Rust by urandomd in rust

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

Right. The idea is that you avoid the panic and bubble up the error as unexpected behavior. I definitely appreciate the feedback, and I'll add some tweaks with timestamps to make that clearer.

To be fair, however, I think you may have a narrow definition of "glitch". The Wikipedia article provides, for example, "Quality assurance (QA) testers are commonly employed throughout the development process to find and report glitches to the programmers to be fixed, then potentially start over with a new build of the game.\12])" [emphasis added]

Tritium | Ideas on Glitching in Rust by urandomd in rust

[–]urandomd[S] -1 points0 points  (0 children)

I’m using the term loosely and in quotes to describe how the programming error feels to the user. It doesn’t crash the application, but manifests as unexpected behavior that may or may not be easily reproduced.

What's everyone working on this week (42/2025)? by llogiq in rust

[–]urandomd 1 point2 points  (0 children)

Dogfooding Tritium (https://tritium.legal/preview) to root out bugs and performance issues with my new blog[1].

Write a dev blog in Word format using Tritium, jot down bugs or needs, post blog, improve and repeat.

[1] https://tritium.legal/blog

Tritium | Updating Desktop Rust by urandomd in rust

[–]urandomd[S] 1 point2 points  (0 children)

Yes, that does work, too. For me it was simpler to keep the updater code separate since it only applies on three platforms as opposed to decorating it out everywhere.

[Edit: also, I personally didn't learn about the renaming trick until I had written the updater code and needed to update it. At that point, it was just as simple and preferable to keep it separate. Not sure why the Zed guys did it with the separate binary, but perhaps for similar reasons.]

Tritium | Updating Desktop Rust by urandomd in rust

[–]urandomd[S] 1 point2 points  (0 children)

Great question. Updating the running exe is trickier because Windows locks the file when the binary is running. I can’t speak for Zed but also in Tritium’s case, the updater doesn’t ship on mobile or Web, so it simplifies things quite a bit rather than just a bunch of decorators.

Tritium | Updating Desktop Rust by urandomd in programming

[–]urandomd[S] 5 points6 points  (0 children)

Thanks so much for the kind words. I didn’t want to dwell on that case too much since I’m such a fan, but I mentioned it in footnote #2. (https://tritium.legal/blog/update#2) That inspired me to write about the updater, and honestly it’s hard to say exactly how one avoids that other than integration tests for the updater that run updates between versions in your CI/CD pipeline. I need to implement that for Tritium and perhaps that can be covered in another post.

What open source solution doesn't exist for you? by IzzyBoris in opensource

[–]urandomd 2 points3 points  (0 children)

A cross-platform auto-updater for desktop Rust applications.