Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jchw
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
79 ms
·
871.
▲
by
jchw
1y ago
> This attitude is why modern software is dogshit slow. Bullshit. Here's my proof: We don't even do this. There's a ton of software that isn't safe from undefined behavior and it's still slow as shit. > Peop
872.
▲
by
jchw
1y ago
I do use Ninja when I use CMake, but honestly that mostly comes down to the fact that the Makefiles generated by CMake are horrifically slow. I don't particularly love CMake, I only use it because the C++ ecosystem really has nothing b
873.
▲
by
jchw
1y ago
> Divide by zero must be undefined behavior in any performant language. On x86 you either have a if before running the divide (which of course in some cases the compiler can optimize out, but only if it can determine the value is not zer
874.
▲
by
jchw
1y ago
There does not need to be an additional cost for this. Most users will do this: 1. Check if there is a value 2. Get the value There is nothing theoretically preventing the compiler from enforcing that step 1 happens before step 2, especiall
875.
▲
by
jchw
1y ago
This is a bad answer too, IMO. I think there is a solid case for the existence of undefined behavior; even Rust has it, it's nothing absurd in concept, and you do describe some reasoning for why it should probably exist. However, and h
876.
▲
by
jchw
1y ago
Assertions are debug-only. Exceptions are usually not guaranteed to be available and much of the standard library doesn't require them. You could std::abort, and that's about it. I think the issue is that this just isn't part
877.
▲
by
jchw
1y ago
The reason it works this way is there's legitimately no easy way around it. You're not guaranteed a reasonable zero value for any type, so you can't do the slightly better Go thing (defined behavior but still wrong... Not gre
878.
▲
by
jchw
1y ago
I believe the latest versions of GCC, Clang, MSVC and XCode/AppleClang all support std::expected, in C++23 mode.
879.
▲
by
jchw
1y ago
Google has been doing a very similar, but definitely somewhat uglier, thing with StatusOr<...> and Status (as seen in absl and protobuf) for quite some time. A long time ago, there was talk about a similar concept for C++ based on exc
880.
▲
by
jchw
1y ago
I do use OrbStack but that doesn't do much good for native Nix on Darwin stuff.
881.
▲
by
jchw
1y ago
You know, I thought UEFI actually was doing the same thing, but I am mistaken, at least for anything resembling modern UEFI. Apparently, modern UEFI just doesn't bother supporting classic Video BIOS option ROMs at all, only supporting
882.
▲
by
jchw
1y ago
You can always ignore the BIOS routines and directly touch hardware registers/etc. so as long as you know precisely what hardware you are dealing with. Of course, this is what modern OSes do for most hardware after bootstrapping since
883.
▲
by
jchw
1y ago
Sorry for your situation, or I suppose, glad to hear it's better. My understanding as a layperson is that antibiotics can be a nightmare for the gut: I don't think it's particularly likely, but you are a lot more likely to
884.
▲
by
jchw
2y ago
For Norm, just the crude nature of a lot of his jokes felt like something that was very "American", at least certainly in the 90s and 2000s. His delivery, on the other hand, always felt fairly unique to me. It's also possible
885.
▲
by
jchw
2y ago
Even as a U.S. citizen this hits me frequently. A lot of amazing comedians I didn't realize were Canadian for a long time, as a U.S. citizen. Norm Macdonald comes to mind, but he's far from alone.
886.
▲
by
jchw
2y ago
*only solution = only exceptions Not sure how that happened.
887.
▲
by
jchw
2y ago
As far as I know virtually all of the EFI vars will be stored on battery-backed NVRAM, so the usual solution is to just clear that, by removing the CMOS battery. I am pretty sure the only solution are things you definitely can not read or w
888.
▲
by
jchw
2y ago
> Unless you think LLMs deserve more rights than actual flesh and blood humans, yes. Either that or get bigtech to stop what they're doing, but we both know that's not going to happen. > If LLMs get to do it, so do humans. I
889.
▲
by
jchw
2y ago
> Without a CLA, that's not doable without the approval of all the contributors. Three things: - libogc is BSD 3-clause[1], which is GPL-compatible[2][3]. That means that while you can't just strip off the existing BSD license,
890.
▲
by
jchw
2y ago
> The argument is that so far society at large seems to have decided that what bigtech has done with LLMs is not wrong. Everyone is happily using it, pretty much every company is touting their new "AI" features, and lawsuits ha
891.
▲
by
jchw
2y ago
> Alright, my point is that any harm done here is significantly less than what the bigtech LLMs are doing. If plagiarizing code is bad then so is both building & using LLMs. If building & using LLMs is fine, then so is plagiarizi
892.
▲
by
jchw
2y ago
I'm gonna walk through this because I have a bit of experience here on the computer side of things, but I'm not really making an excuse for the fact that the PC version of this is less user-friendly; from my perspective, I fully r
893.
▲
by
jchw
2y ago
> I asked first and I don't want to influence your response. So, go ahead. You first. It's simple: I'm not dodging the question, it's just that I don't know . It's complicated. It's easy to punch someo
894.
▲
by
jchw
2y ago
> I'm specifically asking you (and other HNers) what definition of harm you think applies here. I'm still waiting. Well, now I asked for yours, and I'm also still waiting. > As for not condoning plagiarism, grow up. We&
895.
▲
by
jchw
2y ago
I'm more curious what your definition of harm is. (To be clear, this is a completely pointless tangent, "harm" has nothing to do with whether or not you should condone plagiarism. But you seem rather interested in discussing
896.
▲
by
jchw
2y ago
Also worth noting: the version of GPL used by RTEMS seems to be one with a compiler exception, so it probably wouldn't have been an issue for HBC.
897.
▲
by
jchw
2y ago
They just "froze" upstream development, but it was purely performative; there isn't actually active upstream development. If you wanted to fork it and continue development you certainly could.
898.
▲
by
jchw
2y ago
FWIW, whether you agree with the accusation or not, it isn't anonymous. The commit history makes it obvious that it's marcan (Hector Martin) making the accusations. Whether it's really worth all of the hooplah or not is going
899.
▲
by
jchw
2y ago
What is harm? Does infringing someone's copyrights not count?
900.
▲
by
jchw
2y ago
> The point is that nobody is being held to anything. Who will make a case in court? There is nobody to enforce the law, [...] Lawsuits are very expensive for all parties no matter what, there is clearly no intent to try to engage legal
More ›