Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
OskarS
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
51 ms
·
601.
▲
by
OskarS
6y ago
That is a very neat trick indeed, I'll have to remember this one!
602.
▲
by
OskarS
6y ago
Potato, potahto :)
603.
▲
by
OskarS
6y ago
Yeah, if Apple says "This is our official package manager, and you can use it to install OpenSSL/nginx/whatever", like or not, they are on the hook if it breaks, and they have to fix it. Like, companies are going to be l
604.
▲
by
OskarS
6y ago
I mean, I don't run any billion dollar companies, so what do I know, but Apple donating a couple of million to ensure that Homebrew stays active seems like a no-brainer investment to me. Yeah, Homebrew has been doing this work for free
605.
▲
by
OskarS
6y ago
> It’s Weird that Apple doesn’t do this themselves. It’s not like they don’t have a cash. I can understand them not wanting to do it themselves. I don't think they want to take on the responsibility for maintaining all those package
606.
▲
by
OskarS
6y ago
I thought it was like the compiler flag, -O3. ”With full optimization”, basically.
607.
▲
by
OskarS
6y ago
Now I suddenly wonder what sarcastic assembly looks like! XOR swaps instead temporary variables everywhere? Jump tables for simple if/elses? Moving the stack pointer up and down for no reason, just because you can?
608.
▲
by
OskarS
6y ago
I generally don't like the "steve is typing" notifications that all modern communication apps ahve (it's the weirdest feeling is seeing one of those and then see it disappear without the person sending a message), but fo
609.
▲
by
OskarS
6y ago
It happens occasionally. An example would be that there are a couple of libraries that do "generic collections" in C using the preprocessor (instead of using templates). So, you could imagine something like this: #define VEC
610.
▲
by
OskarS
6y ago
It's blows my mind that something like this hasn't been in the standard library for, like, 20 years. Like, why can't i do this? std::string str = "Values: "; for (auto &[key, val]: dict) { str.ap
611.
▲
by
OskarS
6y ago
This is another excellent reason for using ledger: you are in total control of your financial data. It’s just text-files, you don’t have to share them with any service, they are not in some weird binary format, and you can use standard tool
612.
▲
by
OskarS
6y ago
The file format for ledger is very simple, it's literally just a list of transations formatted like this: 2021/01/12 Grocery store Assets:Checking Expenses:Groceries $50 This transaction means th
613.
▲
by
OskarS
6y ago
I can really recommend doing this for your personal finances! Tools like ledger are really powerful, and properly accounting is a great way to save on money. I can very easily go into my personal ledger and (say) get a report on "How m
614.
▲
by
OskarS
6y ago
> People are not making up illness for the fun of it. Their ailments are very real and they have a cause. I have absolutely no doubt that their problems are real. I fully believe that these patients are honest and that they really suffe
615.
▲
by
OskarS
6y ago
There is no way to eliminate these doubts. If you made a magical cure that totally eliminated the bacteria that causes Lyme disease, then these patients would take it, and it would almost certainly not work (because "chronic Lyme"
616.
▲
by
OskarS
6y ago
Multiprocessing and parallel programming is a different thing from async/await, which primarily has to do with with green threads and coroutines. You're right that the ideas go way back (hell, Knuth was writing about coroutines in
617.
▲
by
OskarS
6y ago
Of course you can, you just add a record whenever you do the jump, exactly like what you’re describing with inlined calls. It’s not hard to implement, it’s just that nobody does it, because it’s dumb. You seem to have a very Java-centered v
618.
▲
by
OskarS
6y ago
> It doesn’t necessarily change the semantics, but it does change what kind of programs are sure to crash your machine, and what kind are going to run fast, which is also an important property of programming languages. Yeah, this is exac
619.
▲
by
OskarS
6y ago
So you’re saying inlining doesn’t count as an optimization, then?
620.
▲
by
OskarS
6y ago
How does it change the semantics of Scheme? It avoids blowing the stack for sure, but the stack size isn’t part of the semantics of Scheme. If you imagine a computer with arbitrary amounts of memory, then the language behaves identically wi
621.
▲
by
OskarS
6y ago
What about California and Hawaii or Alaska then? Where do you draw the line?
622.
▲
by
OskarS
6y ago
Does this cache build artifacts in any way? So if several developers are working on the same code-base, they can share build artifacts based on, like, the hash of the inputs? That would require reproducible builds, but that's probably
623.
▲
by
OskarS
6y ago
> Adding “auto” is just a me-too to the “var” of C# and Java. I get the "C++ is so full of nonsense, and they keep adding more of it!" attitude, and I largely agree with it, but "auto" is a bad target. auto makes a lo
624.
▲
by
OskarS
6y ago
I always found it surprising that Java implemented method overloading, but not operator overloading for arithmetic/logical operators. It's such a useful feature for a lot of types and really cleans up code, and the only real reaso
625.
▲
by
OskarS
6y ago
Of course you can always use an intermediate file, the point is that sponge is a very convenient way to just do it in a single command, without having to use intermediate files. You don't have to use pipes either, you know. You can jus
626.
▲
by
OskarS
6y ago
> There is no reason in principle why a shell could not implement digital signatures. They currently don't, though, which is the point :) The reason in principle this might not work is that different distros and os's trust diff
627.
▲
by
OskarS
6y ago
Not easily, and probably not in a way that would work on all different systems (different distros/os's trust different keys).
628.
▲
by
OskarS
6y ago
sponge rules, but you need to be careful. Lets say you wanted to search/replace a file with sed and sponge, then this does not work: cat file.txt | sed "s/a/b/g" | sponge > file.txt Because bash open
629.
▲
by
OskarS
6y ago
Binaries we download and run (as well as packages from package managers) are generally cryptographically signed by people you trust. Shell scripts you curl into bash are not. It is generally MUCH easier to compromise a website and insert yo
630.
▲
by
OskarS
6y ago
Yes! Drove me nuts!
More ›