Readit News logoReadit News
e_y_ commented on From XML to JSON to CBOR   cborbook.com/introduction... · Posted by u/GarethX
aidenn0 · a month ago
Doesn't Cap'n Proto require the receiver to know the types for proper decoding? This wouldn't entirely disqualify it from comparison, since e.g. protobufs are that way as well, but they make it less interesting for comparing to CBOR, which is type-tagged.
e_y_ · a month ago
There's quite a few formats that are self-describing already, so having a format that can skip the type and key tagging for that extra little bit of compactness and decoding efficiency is a unique selling point.

There's also nothing stopping you from serializing unstructured data using an array of key/value structs, with a union for the value to allow for different value types (int/float/string/object/etc), although it probably wouldn't be as efficient as something like CBOR for that purpose. It could make sense if most of the data is well-defined but you want to add additional properties/metadata.

Many languages take unstructured data like JSON and parse them into a strongly-typed class (throwing validation errors if it doesn't map correctly) anyways, so having a predefined schema is not entirely a bad thing. It does make you think a bit harder about backwards-compatibility and versioning. It also probably works better when you own the code for both the sender and receiver, rather than for a format that anyone can use.

Finally, maybe not a practical thing and something that I've never seen used in practice: in theory you could send a copy of the schema definition as a preamble to the data. If you're sending 10000 records and they all have the same fields in the same order, why waste bits/bytes tagging the key name and type for every record, when you could send a header describing the struct layout. Or if it's a large schema, you could request it from the server on demand, using an id/version/hash to check if you already have it.

In practice though, 1) you probably need to map the unknown/foreign schema into your own objects anyways, and 2) most people would just zlib compress the stream to get rid of repeated key names and call it a day. But the optimizer in me says why burn all those CPU cycles decompressing and decoding the same field names over and over. CBOR could have easily added optional support for a dictionary of key strings to the header, for applications where the keys are known ahead of time, for example. (My guess is that they didn't because it would be harder for extremely-resource-constrained microcontrollers to implement).

e_y_ commented on The death of partying in the USA   derekthompson.org/p/the-d... · Posted by u/tysone
yubblegum · 2 months ago
Basically, the kids who were socially marginalized in the prenetworks era also did not get to see the parties the socially active kids were having, and would have wondered at it all. It would have certainly been also 'a new experience' for them! Except back then they didn't have a place like reddit to go to and wonder out loud.
e_y_ · 2 months ago
I never went to parties in high school, but based on my experience going to parties in college and as an adult, I imagine your individual experience at the parties would be very different depending on your social groups, social skills, and so on.

Although even as a non-participant, witnessing a party first-hand would be more informative than the filtered version you get from Hollywood.

e_y_ commented on Solar power has begun to transform the world’s energy system   newyorker.com/news/annals... · Posted by u/dmazin
pfdietz · 2 months ago
The guidance bit should be quite cheap now though, compared to decades ago. Some combination of MEMS backed up with GPS.
e_y_ · 2 months ago
Also depending on how many corners you're willing to cut. Half the cost but a 1% chance that it turns around and targets a friendly? Some countries would take that trade.
e_y_ commented on Many ransomware strains will abort if they detect a Russian keyboard installed (2021)   krebsonsecurity.com/2021/... · Posted by u/air7
gmargari · 2 months ago
2021
e_y_ · 2 months ago
I wonder if Ukraine has been removed from the exclusion list since then. A quick Google search says that the keyboards layouts are different from Russian keyboards.
e_y_ commented on Starcloud can’t put a data centre in space at $8.2M in one Starship   angadh.com/space-data-cen... · Posted by u/angadh
Robotbeat · 2 months ago
This isn’t true. The radiators on ISS are MUCH smaller than the solar panels. I know it’s every single armchair engineer’s idea that heat rejection is this impossible problem in space, but your own example of ISS proves this is untrue. Radiators are no more of a problem than solar panels.
e_y_ · 2 months ago
The heat load of the ISS is a handful of astronauts and some equipment and whatever it absorbs from the sun. Not an entire data center or a nuclear rocket which is where the radiator discussion comes into play.
e_y_ commented on Unexpected security footguns in Go's parsers   blog.trailofbits.com/2025... · Posted by u/ingve
e_y_ · 2 months ago
As someone who isn't a Go programmer, on the face of it using strings (struct tags) for field metadata seems pretty backwards compared to Rust macros (which parses the metadata at compile time) or Java annotations (which are processed at runtime but at least don't require parsing a string to break apart options).

The accidental omitempty and - are a good example of the weirdness even if they might not cause problems in practice.

e_y_ commented on SpaceX Starship 36 Anomaly   twitter.com/NASASpaceflig... · Posted by u/Ankaios
trhway · 2 months ago
> However, I still don't get the rationale of building a rocket with such a large payload

Operations cost. They are sublinear on payload/size. At least this is what Space X/Musk seem to go for.

e_y_ · 2 months ago
https://en.wikipedia.org/wiki/Big_dumb_booster

There's also many advantages to being able to lift something large/heavy in one go, rather than smaller payloads that need to be unfolded (like JWST) or assembled in space, which can drastically increase the development costs.

e_y_ commented on I convinced HP's board to buy Palm and watched them kill it   philmckinney.substack.com... · Posted by u/AndrewDucker
hnlmorg · 3 months ago
Those units weren’t unsold. They went for ridiculously low prices and everyone went nuts trying to buy one (edit: this isn’t even an exaggeration. People were buying up multiple tablets. Even buying non-discounted tablets then asking for price-matching afterwards)

Ironically this showed that there was demand for webOS. It was just priced wrongly from the outset

e_y_ · 2 months ago
The Slickdeals comment thread for the HP Touchpad firesale has over 285,000 comments

https://slickdeals.net/e/3220862-hp-touchpad-9-7-wifi-tablet...

e_y_ commented on 45-year mystery behind eerie photo from The Shining is believed to be solved   cbc.ca/lite/story/1.75073... · Posted by u/colinprince
frereubu · 4 months ago
I wonder if the "investigators" were subconsciously not that interested in actually solving the mystery, but were just enjoying the process. Can't remember what it was I was reading recently, but there was a character who deliberately did things the hard way, or in a convoluted way, because it satisfied something inside of him.

Edit: It was this article about an orchid collector: https://www.susanorlean.com/articles/orchid_fever.html

e_y_ · 4 months ago
Have you seen Adaptation (2002)? It has a wildly meta, fictionalized/comedic portrayal of Susan Orlean's book and the creative process of screenplay writing
e_y_ commented on A Letter to the American People   18f.org/... · Posted by u/erentz
Waterluvian · 6 months ago
Am I being too cynical if I read from this that they were fine with it until they got fired?

Honest question. I’m really not sure if I’m just becoming too cynical.

e_y_ · 6 months ago
Yes. These people are the rank-and-file, doing good engineering work until the USDS got hijacked by Elon's crew.

It's also harder to speak out when you're a US government employee, but now that they've been fired ...

u/e_y_

KarmaCake day421June 14, 2016View Original