Readit News logoReadit News
_davide_ commented on Cancellations in async Rust   sunshowers.io/posts/cance... · Posted by u/todsacerdoti
0x1ceb00da · 4 months ago
tokio-postgres handles this by just dispatching the "ROLLBACK" command in impl Drop and ignoring the response. https://github.com/rust-postgres/rust-postgres/blob/a7a49a90...

Is this not enough? What could go wrong? If the network connection dies or the task is cancelled, I'm assuming the database server cleans up the connection state and does a rollback automatically.

And adding async Drop will probably add a whole new set of footguns.

_davide_ · 4 months ago
> What could go wrong?

LoL, an insane amount of things. TCP connections are an illusion of safely, for the purpose of database commits use UDP packets as a model instead, it'll be much closer to reality.

_davide_ commented on Gentoo Linux might be the best desktop Linux distro for advanced Linux users    · Posted by u/amano-kenji
merpkz · 4 months ago
I used Gentoo since about 2012 up until 2022 then switched to Debian mainly because lot less things used to break during updates and my old CPU ( i7 4790k ) became a bit dated to compile every new version of Golang, Rust and Chromium - just hours and hours of brutal grind. Since flatpak can provide up to date versions of a lot of desktop software on Debian there is very little point switching back. Maybe one day if I get my hands on some ridiculously powerful CPU like 7800 or 9800X3D then might try it again.
_davide_ · 4 months ago
I just got a Ryzen AI 395+ and compilation times are insane, kernel compiles in one minute! :D https://www.phoronix.com/review/amd-ryzen-ai-max-pro-395/5
_davide_ commented on Gentoo Linux might be the best desktop Linux distro for advanced Linux users    · Posted by u/amano-kenji
_davide_ · 4 months ago
I have been using Gentoo 10+ years, you can save time using other distros but you'll waste an insane amount of time as soon as you want to properly configure a yubikey or set up a modern compilation stack (or update specific drivers or fixing the kernel). Compiling everything seems like an overkill, but remember it's unattended time, just start the upgrade before dinner twice a week and you'll be good to go. (Failure to compile in Gentoo are extremely rare, less than once a year)

The upside is deciding exactly which packets you want and which versions, and whenever you want to customize( or fix) a specific thing it's trivial.

_davide_ commented on KDE is now my favorite desktop   kokada.dev/blog/kde-is-no... · Posted by u/todsacerdoti
kokada · 5 months ago
Yes, but I assumed that disabling the TV would set the monitor as the primary desktop and added the taskbar to it, but it didn't. Now I may have done something wrong, but I was just reporting my experience.
_davide_ · 5 months ago
Then it's likely that plasma just crashed :')
_davide_ commented on KDE is now my favorite desktop   kokada.dev/blog/kde-is-no... · Posted by u/todsacerdoti
_davide_ · 5 months ago
I have been using kde for 15+ years, except 4.0, which was painful, everything has been mostly a smooth experience.

> However, KDE considered my TV the primary desktop and put the task bar only in that monitor, and even disabling the TV didn't add the task bar to my monitor.

You can order the screens however you want; the first one will be considered primary.

_davide_ commented on Unexpected productivity boost of Rust   lubeno.dev/blog/rusts-pro... · Posted by u/bkolobara
_davide_ · 5 months ago
100% agree, in Rust things usually just work out on the first try!

Time spent debugging is halved and you can focus on the actual product

_davide_ commented on Show HN: FeOx – Fast embedded KV store in Rust   github.com/mehrantsi/FeOx... · Posted by u/mehrant
_davide_ · 6 months ago
Nice! On paper looks really promising! There is actual need for embedded databases as SQLite is painful for highly concurrent programs (I actually hit this issue in rust)
_davide_ commented on Denmark: Minister for Digitalization wants to phase out Microsoft   nordjyske.dk/nyheder/poli... · Posted by u/doener
samch · 8 months ago
So many of the comments are focusing on Office products. Okay, that’s fair. People can talk Calc vs Excel for example, and that’s fair. What I don’t get is how you replicate knowledge worker collaboration without using a major commercial provider like Google Workspace or M365. How do you handle the use cases solved by collaborative document editing, SharePoint / OneDrive, Teams with DLP, document classification, etc. I’m not affiliated with Google or MSFT, just genuinely curious how you replace the broader ecosystem around the core Office products using open-source solutions. Has anybody solved for this?
_davide_ commented on Bamba: An open-source LLM that crosses a transformer with an SSM   research.ibm.com/blog/bam... · Posted by u/shallow-mind
antirez · 9 months ago
Dear IBM name pickers: "Bamba", in Italian, means cocaine.
_davide_ · 9 months ago
When I read the title 'IBM crossed a transformer with an SSM and got ‘Bamba’' I laughed so hard I woke up my kid
_davide_ commented on Jetbrains actively deleting negative reviews for AI plugin   plugins.jetbrains.com/plu... · Posted by u/terminalbraid
_davide_ · 9 months ago
They recently released a huge bump of their AI package, they probably wanted to differentiate between the older and newer version...still they could have renamed the plugin, or at very least, mark older comments as "for an older version"

u/_davide_

KarmaCake day45April 1, 2017View Original