Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jjnoakes
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
33 ms
·
391.
▲
by
jjnoakes
5y ago
> If you can’t trust the production machine to initiate regular backups by itself, why do you trust the production machine to allow access by the backup server? If production is compromised, you can't trust either. > Therefore, a
392.
▲
by
jjnoakes
5y ago
To pull backups, the backup system connects to the production system and grabs the data, storing it locally on the backup system. To push backups would be for the production system to connect to the backup system and send the data. The main
393.
▲
by
jjnoakes
5y ago
> Here's what happens, over the years, to such code: Over how many years? Some of my projects are 30+ years old and support a few dozen combinations of OSes, compilers, and architectures, and the method I described hasn't led t
394.
▲
by
jjnoakes
5y ago
They can be made to work by introducing stubs for every os/arch/compiler/dependency I support, but that's way more work for dubious gain. And who is to say I'm doing it wrong? Just because conditional compilation CA
395.
▲
by
jjnoakes
5y ago
> All undefined behaviour is well defined for each compiler This is not true. > what it really means is implementation defined Implementation-defined behavior is a thing in the standard and is separate from undefined behavior.
396.
▲
by
jjnoakes
5y ago
> Conditional compilation is an optimization, not a semantic intent. Why can't it have semantic intent? I frequently use it for cross-platform adjustments, and those don't usually compile on the defined-away platform.
397.
▲
by
jjnoakes
5y ago
In my opinion this is way too much gate keeping. Who defines which tools are "basic tools of the trade" and which are just bland infrastructure? And who decides how much of each tool one should know to move beyond "daily inco
398.
▲
by
jjnoakes
5y ago
"max" seems like an odd choice. Wouldn't that start to fail at large numbers? Edit: Nevermind, max is lexicographic, not based on string length. Brain fart.
399.
▲
by
jjnoakes
5y ago
It's all anecdotal. For example I know many folks who make $$$ doing the boring old thing because it is reliable, it gets results quickly with low risk, the engineers know the tech inside and out, and not many other folks want to work
400.
▲
by
jjnoakes
5y ago
The two are orthogonal. Even with generics, languages can have an "escape" type like interface{} which is used/necessary for when you do want (or require) run-time type checking.
401.
▲
by
jjnoakes
5y ago
Thanks for the info!
402.
▲
by
jjnoakes
5y ago
wikibob was probably looking more for public documentation about the why and how rather than confirmation that the statement is true.
403.
▲
by
jjnoakes
5y ago
Can anyone with some real experience with this comment on the debug visibility? In gdb or lldb or otherwise? How easy is it to see what is going on, partially expand macros, get at intermediate values, or evaluate things at the debug prompt
404.
▲
by
jjnoakes
5y ago
From all of the horror stories I've heard, it is not foolproof. For one, don't you get notified after the usage and charge happens? So one mistake that causes a large spike and the notification is too late.
405.
▲
by
jjnoakes
5y ago
> owning land you can live off of is a protection against all form of “dooms-day” scenarios I imagine that global warming, if it hits some threshold/tipping point that changes the climate enough to wreck the land, might be the one c
406.
▲
by
jjnoakes
5y ago
The problem is, UB is not guaranteed to segfault. A guaranteed segfault when a bug is hit would be great - but randomly getting one of (segfault, silent memory corruption, invalid instructions, ...) is not great, and most people would consi
407.
▲
by
jjnoakes
5y ago
NixOS probably helps with this, but it isn't a requirement - some devices already have a dual-root-type setup where they update the inactive root, boot into it, and the boot sequence doesn't mark it permanently active until it boo
408.
▲
by
jjnoakes
5y ago
Which GUI libraries don't let you separate the two? I usually don't have a problem but maybe I'm missing something.
409.
▲
by
jjnoakes
5y ago
The personal freedom to make choices for one's self should absolutely be up to the individual - but only insofar as those choices only affect the individual making them. Once you talk about things like being contagious and infecting ot
410.
▲
by
jjnoakes
5y ago
In that case, of course, the method of finding where the script lives would return something that indicates there is no script. But also in that case, the commands you are piping into the shell probably are not looking for the files they we
411.
▲
by
jjnoakes
5y ago
I feel like this is only a problem if the small functions share a lot of global state. If each one acts upon its arguments and returns values without side effects, ordering is much less of an issue IMO.
412.
▲
by
jjnoakes
5y ago
This is not correct. "Structuring" has a specific meaning and transferring $9,000 (or any other amount under $10,000) is not enough on its own.
413.
▲
by
jjnoakes
5y ago
The waitpid() call isn't quite as broken; I think there are only races there if there is any chance other parts of your process call waitpid() on the same pid and it gets reaped twice. Under normal operation (pid returned from fork, wa
414.
▲
by
jjnoakes
5y ago
> There are plenty of instances of catastrophic social division due to physical differences. Sure but the fault lies with society, not the individual with the differences (chosen, like masks, or not, like a physical characteristic).
415.
▲
by
jjnoakes
5y ago
I'm having trouble contrasting that to the many ways I can add 2 and 3, and this doesn't bother me: x = 2 + 3 x = 3 + 2 x = (2 + 3) x = (3 + 2) x = 2; x += 3 x = 3; x += 2 x = 2; x = x + 3 x = 3;
416.
▲
by
jjnoakes
5y ago
In javascript, what prevents the body of the map function from doing arbitrary stuff? Don't you have to read that to know for sure, just like a for loop? In some languages the map function may be restricted to not have side effects, in
417.
▲
by
jjnoakes
5y ago
Who gets hurt if I wear a mask?
418.
▲
by
jjnoakes
6y ago
The main difference is your mortgage was likely acquired long before the value reached that level. The choice was never between renting and buying a $1m home for a $500/mo difference.
419.
▲
by
jjnoakes
6y ago
As a user I much prefer a single binary to a docker image.
420.
▲
by
jjnoakes
6y ago
The comment author may think there was no reason but almost every time I see a comment complaining about being downvoted, I see a reason among those I listed above.
More ›