
doubleunplussed
994 posts

doubleunplussed
@doubleunplussed
Atomic physicist and embedded software engineer, general-purpose nerd. Forecasting, Linux, weight training, psephology, economics, Georgism, other nerdery
Melbourne, Victoria Katılım Şubat 2023
282 Takip Edilen63 Takipçiler

@HSVSphere They work well but I wish I didn't have to make two files - would be nice if the timer file could accept an executable path directly instead of pointing to another service file
English

@Aella_Girl I think it's because people who are not jaded and cynical seem happier.
But there's a presupposition that life experience inevitably leads to becoming jaded and cynical, which I think is totally unwarranted. We should push back more on that instead of sheltering people IMHO.
English

@doubleunplussed @achillghost he made it female to stop himself from self-inserting or seeing himself in the computer or whatever
English

Claude Plays Pokemon is on again with Opus 4.7!
What delightful fun. Good chance it beats it this time!
twitch.tv/claudeplayspok…
English

@sparr0 Not formal web-of-trust tech, but I genuinely am not bothered by skipping over potentially true cool things, in the knowledge that I have a pretty great internet information diet and someone I trust will inevitably bring anything actually legit to my attention later
English

@doubleunplussed Join the crusade for web of trust technology, so you can effectively prune fake video production and sharing from your online experience.
English

"it's actually just fake" should always be your go to explanation for surprising short-form video.
Even when there's absolutely no need for it to be fake, it's still usually fake!
Unfortunately you'll miss the rare non-fake thing, but what else can you do?
Michael Druggan@Michael_Druggan
@psypharmacopeia I suspect they could do better on day 1. They're purposely underperforming for the video
English

@aclamariun Its true you get what you train for, just that there's a lot of overlap - if you're absolutely huge then you're probably not as strong as you could be if you trained for strength, but you're still very strong!
English

@doubleunplussed Fake yes but big muscles don't equate to strength more reps stronger/smaller over more less reps more weight.
English

@OskaArcher @Bjoern_Peters Oh it's probably just that VIC has more renewables than average in the country.
In SA I am under the impression batteries are doing a lot for them, though I think it's mostly storing wind, not solar.
English

@OskaArcher @Bjoern_Peters Hm, I wonder how to reconcile that with my retailer (in Melbourne) claiming there's 64% renewables in the grid at 10pm (and forecast to increase later). Maybe they're counting carbon credits or something.

English

The second "copy" is atomic on any modern filesystem, it's done by renaming the temp file to the target filename. If it doesn't happen then the previous version of the file with that filename is still there and you don't have to do anything.
This is what atomic saving is in some apps, e.g. various text editors.
DBs provide lots of other functionality of course
English

@SheriefFYI you can just write everything twice. once on a temp copy, then copy to final location. if anything happens during the second write, you have a backup, and if anything bad happens during the first write, its a corrupt transaction, and the entire atomic transaction is undone.
English

Hi there. I'm aware of the problems actual dbs solve and I've used sqlite as a file format. Was just pointing out that if your data is small enough that you don't mind writing it out again, atomic saves don't need dbs. This doesn't negate that dbs do indeed provide lots of complexity that if you need it is hard to do yourself.
I'm not sure what you mean about transactions (other than saving itself being atomic), I know what they are and that dbs provide them, but are you imagining multiple programs having the same file open at the same time or something?
Or are you imagining that the db transactions are doing the work of managing concurrency in your app, instead of that being part of the app?
Or you're imagining that the db is actually your app's state, like it is for a lot of webapps, rather than there being a separate in-memory representation vs the save file? That that can be a clean design, though it's certainly not the only way to do things.
This reply is verbose but my previous comment very much wasn't - perhaps it should have been.
English

Lol yes now I'm doing all these stretches and things my physio gave me to fix all the injuries instead. They don't actually take that long though and there's no racking and unracking weight.
I didn't used to do warmup sets, but started using the MacroFactor workouts app which pretty consistently recommends 3 warmup sets - so I thought that must be the state of the broscience and followed along. Maybe it is if working out is your day job but yeah just takes too long.
English

@doubleunplussed SETS? Just do a 10min stretch and every muscle little run or dance thing.
English

@quangtung2912 @SheriefFYI True that it's less of a good idea the bigger the file is
English

@doubleunplussed @SheriefFYI If your file is big (100MB or more), doing updates frequently is not a good idea.
Also, you might want to do migration on your data, or add indexes here and there just to speed things up.
Or simply you don't want to build another UI or CLI just to view data in it
English

do you have any idea how much complexity you will have to wade through in order to implement your own custom file format that is resilient to things like power loss failures and also has transactions?!
eternal classic@eternalclassic_
@SheriefFYI i fail to see how sqlite is better than a custom binary format everything you listed can be implemented in a much safer solution with far less overhead
English

@BecomingCritter Small account, definitely a reply guy.
Am here to have interesting chats, and top-level tweets get zero eyeballs if you're a small account so whilst it's a shame I don't get to pick the topics exactly, reply guying is the way to go if you wanna actually talk to people
English

@akx @SheriefFYI For very large file formats that may be a problem otherwise seems like no big deal
English

@doubleunplussed @SheriefFYI Congrats, your saves now take double the disk space for a passing moment
English









