Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
trealira
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
42 ms
·
631.
▲
by
trealira
3y ago
Yes, it's more like "the person who went to a state or community college and lives in their parents' house, commuting to save money." Not spending money on housing already cuts down a lot on the money spent on college.
632.
▲
by
trealira
3y ago
> A type-safe C successor that compiles directly to x86_64 assembly. ... > Warning > There is no safety measure regarding string literal manipulation. Doing this will most probably result in a segmentation fault. # String liter
633.
▲
by
trealira
3y ago
It's not about any OS in particular, but Per Brinch Hansen has a book called Classic Operating Systems: From Batch Processing To Distributed Systems , which showcases a lot of historically important essays in operating system history
634.
▲
by
trealira
3y ago
Yeah, I think a degree of complexity is required to achieve being the fastest compiled language. To achieve that, you need stuff like monomorphized templates, actual arrays and slices being distinguished from pointers, well-defined rules on
635.
▲
by
trealira
3y ago
You're right. I didn't make the connection. My bad.
636.
▲
by
trealira
3y ago
> If a million people professed to believe that, say, brainfuck was fit as a general purpose programming language that in and of itself would not make it so. No, but if millions of people actually did manage to use Brainfuck for general
637.
▲
by
trealira
3y ago
There was this "Child Tax Credit" during the pandemic: https://www.whitehouse.gov/child-tax-credit/ It sounds like you might have missed out on it due to not knowing about it, which would be unfortunate.
638.
▲
by
trealira
3y ago
"FS check" makes sense, but I had never made that connection to the name. So, while I have always been saying "FS tab", I've also always said "eff sick" because I didn't know how you were supposed to
639.
▲
by
trealira
3y ago
When you're learning to program, teachers will often tell you "The computer is dumb; it will do exactly what you say, and it can't read your intent." Implicitly, I think most people assume the same of compilers: they
640.
▲
by
trealira
3y ago
Public trust in government has been declining since the 1960s[1]. There's a book called Congress and the Decline of Public Trust , published in 1999, which talks about this trend[2]. You can borrow it hourly on archive.org. There'
641.
▲
by
trealira
3y ago
They had no problems denying it to slaves, either. And much of the holdup for adding new states to the US in the first half of the 19th century was the political question "will it tip the balance in favor of slave states or free states
642.
▲
by
trealira
3y ago
I don't think that it's accurate anymore. Democrats don't seem to be stupid, overly trusting, or disunited anymore. I mean, in a 50-50 senate, they've constantly had 49 votes for bills, usually with Manchin and all Repub
643.
▲
by
trealira
3y ago
They're saying it's a symptom of a dying democracy, not that democracy is associated with Machiavellianism. Edit: Also, a republic is a type of democracy.
644.
▲
by
trealira
3y ago
My university still has books that are from that era. A book from 1975 about teaching yourself FORTRAN IV, one from 1980 about learning IBM 370 assembly, a book from the 60s called LISP 1.5 primer. These books are still old enough to be &qu
645.
▲
by
trealira
3y ago
In the 1960s, there were still 70 year olds born in the 1890s, and 80 year olds born in the 1880s, so it still doesn't seem like a good decision even for something written back then.
646.
▲
by
trealira
3y ago
Hopefully, for the pacemaker, the authors of the code would be using a verified compiler like CompCert (although it's only verified for the compilation, not the parsing or the preprocessor), but you don't have control at every lev
647.
▲
by
trealira
3y ago
I remember Steve Maguire saying this in Writing Solid Code (that they're both necessary, and both types of testing complement the other). He criticized Microsoft employees who relied on QA to find their bugs. He compared QA testing t
648.
▲
by
trealira
3y ago
I'm pretty sure lowercase letters originated with the creation of the Carolingian miniscule script[1]. I had heard/read that it was created as a unification of handwriting under the Carolingian empire, but that may be untrue[2]:
649.
▲
by
trealira
3y ago
> Moreover, it is untenable to maintain a small island of "secure software" for "important things" in a vast ocean of careless and vulnerable code. Inevitably, the island gets infected, and not even air-gaps can save
650.
▲
by
trealira
3y ago
I see. I didn't realize that's what you meant by dependency-free. There's still a dependency on there being a C compiler, though.
651.
▲
by
trealira
3y ago
> (bc, unfortunately, needs to stay in C because it needs to have zero dependencies.) Couldn't you write it in Golang? That's also popular for creating standalone executables (ignoring the dynamically linked libc when necessary
652.
▲
by
trealira
3y ago
This doesn't necessarily seem like functional programming (although there's nothing wrong with functional programming). It makes sense to unify switch and try-catch statements, because they're both meant for selecting a path
653.
▲
by
trealira
3y ago
> I think people who write C nowadays tend to be working in the drivers and OS development spaces. I think it's also students; I think some people are still taught C as their first programming language. If you go on r/C_program
654.
▲
by
trealira
3y ago
Thanks for the link!
655.
▲
by
trealira
3y ago
> For reliable software in C++ it is pretty common to have alternative integer type implementations that provide different fully defined behaviors and guarantees than the default integer types. This became legitimately transparent around
656.
▲
by
trealira
3y ago
For the first two guys, the video's point is that their sexual harassment, spying, and dehumanizing comments towards women are played for laughs without it being obviously wrong. The humor is in them being bad at socializing; their beh
657.
▲
by
trealira
3y ago
It doesn't catch all signed overflow. If you define a function like this: int8_t abs8(int8_t n) { return (n >= 0) ? n : -n; } Even with `-ftrapv`, evaluating abs8(-128) will produce -128, because 127 is the maximum va
658.
▲
by
trealira
3y ago
Why isn't it possible in Go? If you can use pointers to structures in both Go and C, and you can access the fields of a structure through a pointer in both, then I don't understand why reading a structure field through a null poin
659.
▲
by
trealira
3y ago
> Doesn't OpenJDK install a SIGSEGV handler, and generate the exception from that on a null dereference? I thought I had read that they explicitly don't do that, but I can't find it anymore. You may be right. I should have
660.
▲
by
trealira
3y ago
It's only guaranteed because of the operating system's sandboxing. > It's closer to a NullReferenceException than it is to reading from a null pointer in C. No, it's exactly the same as a null pointer dereference in C
More ›