Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
crabbone
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
87 ms
·
961.
▲
by
crabbone
3y ago
Nothing can be further from the truth. Kubernetes has nothing to offer to anyone that wants to work with storage (but there's a myriad of CSIs). Here, let me give you an example of a system that offers storage in a similar way to how K
962.
▲
by
crabbone
3y ago
Not going to work really. The way it works in real life if, say, you want to serialize a list of varint is that you'd need some small memory chunk (let's call it staging) where you write individual integers (although, this is a ba
963.
▲
by
crabbone
3y ago
I didn't know. Didn't do enough research. Guess, next time I'll try AMD.
964.
▲
by
crabbone
3y ago
I just bought my wife a new (well, refurbished) ThinkPad. I went through its BIOS menus to... well, just in case there's anything weird. Also, you know, to disable "secure" boot. And, dear lord... there's so much Intel
965.
▲
by
crabbone
3y ago
Nothing will go to stdout! Nothing is the best thing you can have when it comes to program output. Easiest validation! This is also how all Unix commands work -- they don't write to stdout unless you tell them to. But, if there
966.
▲
by
crabbone
3y ago
Remember FLV? What about MP4? Surprise! Both use length prefixing, and stream perfectly fine. Length-prefixing is not a problem for streaming. Hierarchical data is, but even then, you have stuff like SAX (for XML). The problem with Protob
967.
▲
by
crabbone
3y ago
> serialize incrementally You cannot do it in Protobuf anyways (you need to allocate memory, remember? and you need to know how much to allocate, so you need to calculate the length anyways, you just throw it away after you calculate it,
968.
▲
by
crabbone
3y ago
Precisely. This is also unique to Protobuf (at least, I don't know other formats, and I had to implement a handful, that do that).
969.
▲
by
crabbone
3y ago
> you will see that the notion of submessages are explicitly supported. This is misinterpreting what actually happens. "Message" in Protobuf lingo means "a composite part". Everything that's not an integer (or
970.
▲
by
crabbone
3y ago
This is nothing general. Just someone who created Protobuf "forgot" to do it. There was no reason not to do it given how everything else is encoded in Protobuf. My guess is that Protobuf was first implemented then designed. And
971.
▲
by
crabbone
3y ago
This is not a "variant". Top-level "message" has no length. Implementations that add length are free to do it in whatever way they like, but that's not part of the format because the format itself doesn't hav
972.
▲
by
crabbone
3y ago
Oh... Protobuf... I had a displeasure to implement the binary encoder / decoder and IML parser. This is such a clown fiesta with so much advertising around it... I think some venerable Google's guru blessed it at some point or so
973.
▲
by
crabbone
3y ago
Does pmem count as RAM?
974.
▲
by
crabbone
3y ago
> The second problem with writing logs to stdout Who on Earth does that? Logs are almost always written to stderr... In part to prevent other problems author is talking about (eg. mixing with the output generated by the application). I
975.
▲
by
crabbone
3y ago
This shows you either didn't read what you replied to or don't understand the subject. This file is the public interface of the Linux system to everyone who wants to get information about users on the system. It doesn't matt
976.
▲
by
crabbone
3y ago
So what if they do? This file is a public interface exposed by Linux to other programs. So what if Linux caches its contents when eg. Python interpreter on launch will read this file. And it's not coming from some "fake"
977.
▲
by
crabbone
3y ago
You would have to lock the file, or guarantee consistency in some other way. Right now, I don't believe Linux does anything about consistency of reads / writes to that file... which is bad, but we pretend not to notice. So... the
978.
▲
by
crabbone
3y ago
Yes, of course I do, but there's always some degree of mutability. Eg. typically you'd mount some local volumes into container for example... But even with "escape hatches" programming in container is very painful and u
979.
▲
by
crabbone
3y ago
This sounds painful for no reason. Especially the debugging part. Why would you want that? Is it really such a strain to install the tools you need for development on your computer? I can understand wanting an immutable system for a serv
980.
▲
by
crabbone
3y ago
Here are some: * Doesn't scale. Having passwords in a plain text file is not a scalable solution for users directory. Can probably go up to a hundred users, but not much more. * In computer clusters you want user identity to "st
981.
▲
by
crabbone
3y ago
Not really. There are languages which put at least some effort into parallelism / concurrency (and Go would be one of those along with Java, Erlang, Ada, Clojure, even C++ to some extend). Then there are languages which outsource every
982.
▲
by
crabbone
3y ago
It's possible to have more than one worst. In a totally-ordered collection this happens if you have two or more equal elements, which happen to be worse or equal to any other element. In a partially-ordered collection, there could be
983.
▲
by
crabbone
3y ago
> Soo....not the worst? :) Yeah... I know, it's hard to imagine that there could be more than one worst. But, as I have to practice these things with my 4 year old, I become more patient with adults who don't get the concept t
984.
▲
by
crabbone
3y ago
I have to keep hard copies anyways. Plenty of places don't take digital copies and have no process through which they would. So, digital documents are only a convenience for the rare situations when someone will take them. And if I
985.
▲
by
crabbone
3y ago
I only have a handful of documents that are about that age: my birth certificate and high-school graduation diploma. Here's an interesting aspect of these: I did lose my college papers a while ago, and when I asked my college if they c
986.
▲
by
crabbone
3y ago
Worthless article. Zero useful description of what it's trying to sell. A bunch of disjoint historical facts about relational databases that have nothing to do with the product being sold take about 2/3 of the article. Also the a
987.
▲
by
crabbone
3y ago
Having built complicated storage systems during work hours I had a strong urge to build a home NAS. What stops me is that I have this Documents directory on my laptop, which was salvaged from another disk that failed about three years ago,
988.
▲
by
crabbone
3y ago
Asyncio is about reading from multiple sockets. It is not a tool for dealing with concurrency in general in programming.
989.
▲
by
crabbone
3y ago
MPI is not in the "standard" library, or am I behind the moving fast and break things?
990.
▲
by
crabbone
3y ago
> For those, Python actually comes with pretty decent tools: the pool executors. Delusion level: max. You have to be in a very, very bad place when this marginal improvement over absolute horror-show that bare Process offers seemed "
More ›