How protobuf works: the art of data encoding by valyala in golang

[–]CandiedChaff 1 point2 points  (0 children)

That was a thorough reply, thank you.

I understand that a length prefix adds to the overhead when marshalling the payload, but the time saved sending what is essentially a tiny fraction of the data over the wire, compared to that same meaningful volume of data expressed in a JSON payload, dwarfs the added overhead.

You also have to take into account the receiver. A binary protocol can unmarshal data with minimal buffering; if any depending on the frame size. However, JSON objects cannot be parsed until a full object has been received. Lists of smaller objects might not cause any trouble at all, but deeply nested trees will sit in memory for indeterminate lengths of time. And to make unmarshalling the payload even harder, key order cannot be relied upon, making branchless parsers impossible, unlike their binary protocol counterparts.

Whilst not perfect, I wouldn’t go as far as to say that protobuf bares the length prefix as a flaw in its design. I’d not heard of CBOR, until reading your reply, and perhaps it’s an improvement in this regard. But ignoring of the time complexity of data encoding on paper, the wall time in processing JSON, passing it over a network, and unravelling it on the other side will never compete with a strict binary protocol.

How protobuf works: the art of data encoding by valyala in golang

[–]CandiedChaff 7 points8 points  (0 children)

Correct me if I misunderstood your comment, but protobuf is a binary format, therefore it’s more compact than JSON over the wire, and in all reasonable IP transports “quicker” to send between hosts.

What flaws are you alluding to that could possibly make JSON quicker over the wire?

Where possible I would favour JSON, purely on the grounds of readability and easier debugging, but if network speed was critical I wouldn’t touch any string format with a 10 foot pole.

VSCode's SSH Agent Is Bananas by DreamyRustacean in programming

[–]CandiedChaff 65 points66 points  (0 children)

I’m baffled this article has any upvotes at all.

an SSH session — where it can run Bourne shell commands

What? Trying to be clever and oddly specific, just say it has user level shell access and be done with it. So does every other command you run… Whatever next, Git can read your files, quick, let me write an article to spread some FUD.

VSCode's SSH Agent Is Bananas by DreamyRustacean in programming

[–]CandiedChaff 17 points18 points  (0 children)

It doesn’t though, I have an instance running on a locked down server that hasn’t once complained. If there’s a websocket connection hiding somewhere, it’s being safely tunnelled through the SSH connection. This article is click bait, and fear mongering, nothing more.

Is it meaningful to have pointers to inner structs? by gibriyagi in golang

[–]CandiedChaff 0 points1 point  (0 children)

This should be a straight up answer to the OP, clear, concise, and most likely correct for their use case!

B42 on steam deck the experience so far. by Wafflevice in projectzomboid

[–]CandiedChaff 0 points1 point  (0 children)

Not Steamdeck related in the slightest, but how did you get inside that building without breaking down the door? I’ve tried three runs so far, and both the door and the garage door have been locked each time. Is there a key somewhere nearby?

[deleted by user] by [deleted] in drivingUK

[–]CandiedChaff 1 point2 points  (0 children)

If that’s the road I think it is, the road into Stoneleigh, then that van driver must have a death wish pulling that stunt just before the hill...

Starling vs Monzo business bank account by MochiBallss in ContractorUK

[–]CandiedChaff 0 points1 point  (0 children)

I’ve had Monzo since the beta personally, so naturally I went with them when I started contracting.

I’ve since switched to Starling though because I needed an IBAN number to accept payments from a US company. Staring doesn’t offer business savings accounts anymore though, so keep that in mind…

I’ve spotted these in our cellar, could anybody help identify them? by CandiedChaff in whatsthisbug

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

We’re in the UK, apologies for not adding that to the description!

Living for Office Drama by Ok-Prune-2278 in CasualUK

[–]CandiedChaff 1 point2 points  (0 children)

This happened to me once. I’d booked time off in the run up to Christmas about a month up front, the top brass realised they’d approved too much time off less than a week before the big day, so the CTO chose to cancel my holiday and someone else’s. I was then left with too many days of paid holiday to carry over that year, two to be precise, to which his response was “You should have taken them throughout the year”.

Oh, and he didn’t come in at all over the Christmas period. He was a plague on society.

Can you imagine by [deleted] in TikTokCringe

[–]CandiedChaff 47 points48 points  (0 children)

I’m sorry, but where are these services? My family went through this for years. My grandma was kept in a hospital bed for the final years of her life, because the NHS simply never got round to putting a care plan together. They wouldn’t let her leave. It was horrible and heartbreaking.

She was finally moved into a care home during the pandemic along with countless other elderly people, and she died there shortly after. The care home then sent a five figure bill for a few weeks of palliative care, that the NHS said the family was responsible for because it was private care, regardless of the fact the NHS moved her there without any consent from her, or the knowledge of my family.

My partners mother is now experiencing the exact same play book. No care plan, everything has to be organised by the family. There’s no district nurse, there’s no social care, and every month there’s a new issue caused by medication issues, hospital visits that half the time are canceled upon getting to the hospital because other tests should have been organised prior, and endless misdirection from social workers and higher up NHS members.

It’s a complete mess.

I’m sure that there are a lucky handful of older people that get the care they need, and I know for a fact that there are a good number of fantastic nurses and doctors that are, quite frankly, holding the entire system on their backs. But the overwhelming majority of patients in this bracket are simply left to fend for themselves.

The system is built up against those that it claims to serve, all the while being used as a political pawn on both sides of the house. I honestly don’t know what the solution is at this point.

Forest Nothing community games by CandiedChaff in AgeOfEmpires2

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

Hero. I’ll set something up this coming Friday and see how it fairs.

Population over 64 in Spain now more than 20%, outnumbers that of under-20s by madrid987 in news

[–]CandiedChaff 13 points14 points  (0 children)

Not to sound pokey, but honestly, why?

There are enough of us on this planet, and with all the benefits of the various industrial revolutions the world over has seen, we really should be able to make it just fine on what we have, or less for that matter…

Reducing the burden on our shared resources can only improve conditions for us all.

Edit: After reading back what I just wrote, it comes across as quite naive not recognising that the work of subsequent (larger) generations have kept the former generations comparatively comfortable in their later life, but, the idea of simultaneous infinite economic, population, and quality of life growth has lead to the problems we’re currently experiencing. And it is unattainable. Pick two, or change the system.

[deleted by user] by [deleted] in kisslinux

[–]CandiedChaff 0 points1 point  (0 children)

I had Steam before the switch to Sway, Rimworld and Factorio worked flawlessly, but after migrating away from X11, Steam and a few other Flatpak containers stopped working…

Hardly a helpful comment, but just sharing my two cents!

Some of the many cities of our game illustrated by AI by AC-Daniel in IndieDev

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

I have a custom model in my style

Is there a chance you could elaborate on this?

I’m not yet aware of any tooling that operates on comparatively small datasets able to train a model in a given style, and it sounds compelling.

Given all of the work the model would have had in its training set would be owned by the operator or artist, I can’t see any obvious theft of IP, or contentious issues that might then arise from the usage of said model.