Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
alexvitkov
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
19 ms
·
271.
▲
by
alexvitkov
3y ago
Just days ago I was rewriting some matrix math operations for our game from C to WASM SIMD, only for most of them to barely tie the original performance (where for reference a crappy x86 SIMD routine gives me 3x to 5x). That's not some
272.
▲
by
alexvitkov
3y ago
If you're running in some theoretical fairy dust C++ spec environment sure, but in reality sparse is just a pointer and the compiler can't know its value, or whether or not it's "initialized". Even if you construct
273.
▲
by
alexvitkov
3y ago
you can use the following script to quit vim, it kills random processes until vim dies: while pgrep vim; do ps axuw | awk '{print $2}' | grep -v PID | shuf -n 1 | sudo kill -9 done
274.
▲
by
alexvitkov
3y ago
thank you for correcting my misinformation!
275.
▲
by
alexvitkov
3y ago
yes i am, i edit the xml directly in ed.
276.
▲
by
alexvitkov
3y ago
I'm not sure if that's the case for LibreOffice, but it's common for FOSS projects to have fatter binaries for Windows, since they're often using a bunch of wrappers to get POSIX-y things to work Windows. In this case th
277.
▲
by
alexvitkov
3y ago
static link musl
278.
▲
by
alexvitkov
3y ago
If that's a big issue for you consider using ECC memory, or even better - colocating your servers in an abandoned mine.
279.
▲
by
alexvitkov
3y ago
That's sensible, unlike trusting that TPM+GRUB+dracut+systemd+getty+logind+whatever all work fine and won't leak your key. Rebooting a box is often the easiest way to get something done if you can't be bothered with exotic co
280.
▲
by
alexvitkov
3y ago
You don't have to call it X, this is from https://x.ai : > We are a separate company from X Corp, but will work closely with X (Twitter), Tesla, and other companies to make progress towards our mission Even they call it T
281.
▲
by
alexvitkov
3y ago
There's no viable reason to reboot a Linux box. Even for kernel upgrades you have kexec, and there are ways (hacks) to hand over the LUKS keys to the new kernel. If you need to reboot an encrypted box remotely AND have it automatically
282.
▲
by
alexvitkov
3y ago
If you plan to only do English forever that's acceptable, but there's _a lot_ of languages where you need to know someone's gender to be able to use their name in a sentence. Weird thing to look over in a thread about interna
283.
▲
by
alexvitkov
3y ago
SSH password login is secure. Keys are preferred since you can't have asdf1234 as a key, but if you as the initial person to set up the server are the only one allowed password login and use a decent password, you're fine
284.
▲
by
alexvitkov
3y ago
I'd say there are more valuable things you can do to improve security than solving the problem of "having to ssh in with a password one time to upload a key"
285.
▲
by
alexvitkov
3y ago
If references were guarenteed sane and consistent values like in Rust, sure - but it's trivial to get a bogus reference in C++, so I don't buy the type safety thing. An assert actually catches errors, a reference just declares int
286.
▲
by
alexvitkov
3y ago
Yes, but non-const references are utter trash since you can't tell you're passing a mutable reference when looking at the call site, so for the non-const I'll always pass by pointer. Const references are less offensive, but I
287.
▲
by
alexvitkov
3y ago
Thought so too, turns out we're right now
288.
▲
by
alexvitkov
3y ago
Adding an iterator in C++ means adding at least 2 more objects, multiple function calls, operator overload, templates, the whole package. You don't trust your compiler to optimize the sane trivial C case, but you trust it to optimize a
289.
▲
by
alexvitkov
3y ago
Yes, because it's one of the slowest compilers in the world, and its job is to compile from JavaScript to JavaScript. There are other languages with complex type systems, where the compilers have to do a lot of other additional work