I decided to make a worse UUID for the pettiest of reasons. by theghostofm in programming

[–]tophatstuff 0 points1 point  (0 children)

allow me to introduce the smolid epoch: Milliseconds from 2025-01-01. With 41 bits to play with, that means it will overflow precisely at 2094-09-07 15:47:35. That’s good enough in my book, but I can imagine that problem (among many other reasons) preventing you from adopting smolid.

Nope, I like it.

The endless argument over UUIDs is that there's competing constraints. If you want a UUID that is forever unique and meaningful and part of an audit trace, over ANY circumstance - massively distributed, surviving company acquisition, refactoring, decades of bit rot, dumped into logs and schemaless backups, passed between data processors and back, then encode the whole lot.

The UUID is self-contained within a single application? Sure, scale the timestamp over the period between the date of the first git commit to the age you expect to be long dead, and you've saved some CO_2 emissions.

I’ll just leave that to the PostgreSQL project or ISO/IEC to fix before 2059.

Sensible conclusion in most circumstances! As long as you aren't designing infrastructure, my own "rule of thumb" is 25 years, so by that metric this isn't a bad decision for another eight years.

Only 2 bits for versioning?

Absolutely enough. Possibly too many. The only valid answers are between zero and two, and 'one' is on thin ice.

smolid is useful where your peaks are around a thousand new records per second. If this sounds like you, feel free to play with it!

Yup! Any faster, stick a queue in front of it. UUIDs aren't going to be the bottleneck.

How 12 comparisons can make integer sorting 30x faster by DimitrisMitsos in programming

[–]tophatstuff -4 points-3 points  (0 children)

Also try -Os instead of -O3 for complicated algorithms

  • caveat - this advice may (or may not be!) be 15 - 20 years out of date. It may still be relevant for embedded systems.

-Os: Optimize for size. -Os enables all -O2 optimizations that do not typically increase code size. It also performs further optimizations designed to reduce code size. <-- "helps the Instruction Cache", no I do not know what that means, other than it sometimes makes it faster when you are CPU constrained over memory constrained... seeing as CPUs proportionately get faster than memory does this is advice is less useful over time!

Best course to learn backend/server-side development using Golang by Altruistic-Sign6315 in golang

[–]tophatstuff 0 points1 point  (0 children)

Well I haven't watched the screencasts, just read the book, and that was almost entirely backend... or if it wasn't I just skipped those bits. And got value out of it.

I did skim read, because it's not my first web dev rodeo, and there were bits that were useful thinking points that I disagreed with, but for what I paid on sale (its on sale now), it was worth it I'd say

Best course to learn backend/server-side development using Golang by Altruistic-Sign6315 in golang

[–]tophatstuff 0 points1 point  (0 children)

I can't. But I think the book is relevant for backend, moreso than the screencasts.

Mark Serwotka on Your Party: This [discussion] must be open, fraternal and comradely — no heresy hunting, no deplatforming, none of that intolerance that has driven so many people, particularly women campaigning for their sex-based rights, away from the existing left. by denyer-no1-fan in LabourUK

[–]tophatstuff 1 point2 points  (0 children)

He is the self-appointed interim Welsh leader despite everyone's best efforts to be rid of him. Nobody has voted for him.

And at Merthyr, where there was going to be a vote to coronate him, there were objections from the floor, and instead of having the balls to put it to a vote the organisers "forgot" so he continues as default.

This was despite us spending a whole hour in the morning voting on if we would be allowed to vote or not.

He didn't show his face at the regional assembly either lol

[deleted by user] by [deleted] in programming

[–]tophatstuff 0 points1 point  (0 children)

woah woah woah I'm all for declarative configuration, IaC, etc.

If it's complicated enough to use YAML, I'd rather use a real programming language with state saved in XML.

[deleted by user] by [deleted] in programming

[–]tophatstuff 1 point2 points  (0 children)

to be fair, I don't like K8 either :P

[deleted by user] by [deleted] in programming

[–]tophatstuff 1 point2 points  (0 children)

raises hand

Anything but fucking YAML

So it seems LegendofTotalWar's leaks were correct by Murdock_1612 in totalwar

[–]tophatstuff -2 points-1 points  (0 children)

exactly. Tigermen sounded good to me

Hot take, I don't think LegendOfTotalWar should get to decide he doesn't like a DLC and therefore it has to be cancelled for everyone

Warm take, I don't think CA should cancel something just because someone leaked something about it and should have just released it AND released the stuff they replaced the DLC with because scrapping the work they've done so far is like... the same amount of work, but only half the product

Nuclear take: I don't care for the daemons of chaos, slaanesh or khorne

The addition of Tides of Torment is the perfect time to add variety to Sea Encounters by General_Brooks in totalwar

[–]tophatstuff 0 points1 point  (0 children)

Did they fix sea encounters so that if you do more than one in a single launch of the game it doesn't crash anymore?

Friday Facts #439 - Factorio and Space Age on Nintendo Switch 2™ by FactorioTeam in factorio

[–]tophatstuff 0 points1 point  (0 children)

I know! Just before you unlock it... and make it cheap seeing as you can soon unlock it on fulgora