Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Arch-TK
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
32 ms
·
421.
▲
by
Arch-TK
2y ago
http://blog.llvm.org/2011/05/what-every-c-programmer-should-... In a real world program removing all UB is some cases impossible without adding new breaking features to the C language. But, taking a real world pro
422.
▲
by
Arch-TK
2y ago
Both are wrong, one is wrong-er. y-m-d h:m:s all the way.
423.
▲
by
Arch-TK
2y ago
Wow, it's a website which has more than a screen-full of stuff on it at one time and scrolling doesn't introduce a seconds-long loading animation. I wonder if modern web developers of modern web applications could somehow harness
424.
▲
by
Arch-TK
2y ago
In my experience, trying to tell an average person the kinds of things that companies can do with their data, which the companies themselves have admitted to and written into privacy policies, just gets you labelled as a conspiracy theorist
425.
▲
by
Arch-TK
2y ago
That would be horrendous and would play right into the advertiser's hands which want you to "just click accept". Cookies should be categorised as essential and non-essential and the website should specify which laws it is con
426.
▲
by
Arch-TK
2y ago
Not really. In embedded environments you're constrained by toolchain and platform but it's still a bad idea to rely on any behaviour which your compiler doesn't provide a definition for (which might be more behaviour than wha
427.
▲
by
Arch-TK
2y ago
I see, AI has learned how to write terrible commit messages, another thing I'm better at than AI, score!
428.
▲
by
Arch-TK
2y ago
If you develop C or C++ haphazardly in such a way that you leave a bunch of UB on the table during development then there's little to no chance that you'll have actually erased all presence of it by the end of development. There c
429.
▲
by
Arch-TK
2y ago
I think unless your code is guaranteed to never interact with any untrusted input it is nowadays an increasingly unacceptable compromise to just accept that your program might have serious flaws which can lead to remote code execution or wo
430.
▲
by
Arch-TK
2y ago
That's the appendix containing documented UB. The standard also explicitly states that any behaviour not explicitly defined by the standard is undefined meaning that there are things which aren't in that list. And I can confirm, t
431.
▲
by
Arch-TK
2y ago
I have memorised the UB rules for C. Or rather, more accurately, I have memorised the subset of UB rules I need to memorise to be productive in the language and am very strict in sticking to only writing code which I know is well defined (a
432.
▲
by
Arch-TK
2y ago
But not self hosted GitLab.
433.
▲
by
Arch-TK
2y ago
I am all for a "Please put everything in random sub directories of /" config option for the installer of your linux distribution of choice where / is your home directory, PATH, configuration directory and everything else
434.
▲
by
Arch-TK
2y ago
I thought my comment addresses this specifically. Yes, it's bad. If you predate the specification then see options 2 (check), 3 (document) or 4 (come up with a new spec for opting in).
435.
▲
by
Arch-TK
2y ago
Yeah but even if the viability decline was quite slow on the moon, you would still have to refresh _eventually_, at least that's how I understand what you wrote. Are we going to have robots on the moon doing the refreshing? That would
436.
▲
by
Arch-TK
2y ago
Something this doesn't answer: Can I make my package green without having to compromise my integrity by utilising proprietary git hosting?
437.
▲
by
Arch-TK
2y ago
I'm sorry, I'm not sure what you mean by "reposting this on a discussion". I've had plans for a while to put together a more complete blog post attempting to characterise the Unix command-line UX from my perspective
438.
▲
by
Arch-TK
2y ago
> ~/.cargo/ This reminds me... STOP putting your shitty dot-directories full of a mix of config, cache and data in my god damned home directory. Concerned that not doing this will break things? Just check if you've dumped
439.
▲
by
Arch-TK
2y ago
Don't seed banks need regular refreshing?
440.
▲
by
Arch-TK
2y ago
Yes and my point is that the kinds of people who over-rely on AI and can't seem to get anything done without it are the kinds of people who previously over relied on stack overflow and copy paste. The kinds of people who would have in
441.
▲
by
Arch-TK
2y ago
> I worry overall that this could signal the complete end of new programming languages except in a few special cases. I don't think anything has changed in this regard. Yes we have a small number of success stories like elixir or ru
442.
▲
by
Arch-TK
2y ago
If your program, especially if it accepts paths, flakes out over a path with a ISO/IEC 8859-1:1998 filename, it sucks. It's 2024, programs shouldn't be that unreliable. args_os is not an escape hatch, it's a pre-requisit
443.
▲
by
Arch-TK
2y ago
Clap handles the option/argument parsing as one who is used to unix tooling might expect, but why does it deviate so heavily when it comes to the auto-generated doumentation and error messages? Those also form part of the unix user exp
444.
▲
by
Arch-TK
2y ago
> Which deviations are you concerned about? This is the list I came up with the last time I looked at clap: * Colours - But can be turned off by removing the color feature. * Plain weird help formatting...: Example: $ clap-brightne
445.
▲
by
Arch-TK
2y ago
I dislike clap too, it requires too much work to configure it in a sensible way (sensible being defined as working like most unix utilities have worked for the entire time I've used them), it comes with very "modern" defaults
446.
▲
by
Arch-TK
2y ago
8000 hours isn't unheard of. It's definitely above average dedication. But it's surprisingly common.
447.
▲
by
Arch-TK
2y ago
Even people who know about the solution might find it drops out of their brain in a moment of panic. I locked myself out of my house recently, and it was only after scaling to the 1st floor, breaking in through an open window, and breaking
448.
▲
by
Arch-TK
2y ago
It's not unthinkable that whatever transducer takes rotation and turns it into a signal which is processed by an MCU and translated into CAN messages could get stuck producing one signal and trigger such a scenario without the car'
449.
▲
by
Arch-TK
2y ago
It's not the late 2000s anymore, this is a flagship product.
450.
▲
by
Arch-TK
2y ago
The control loop is handled by the OS? What if the (relatively complex and therefore much more likely to crash) OS crashes? Why would there not at least be some kind of basic thermal throttling implemented in hardware as a fallback? Oh wait
More ›