Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Joker_vD
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
43 ms
·
181.
▲
by
Joker_vD
4mo ago
> It can read past the end of the src-buffer, when sizeof src < sizeof dest and src is not nul-terminated. So basically, don't invoke a function "strscpy — Copy a C-string into a sized buffer" on something that is not a
182.
▲
by
Joker_vD
4mo ago
It's not a header file, it's just a header, strictly speaking: the standard explicitly allows it to not be an actual file, and indeed there are implementations that don't have standard headers available as actual on-disk fi
183.
▲
by
Joker_vD
4mo ago
Well, with C language it's pretty much the same. You are supposed to "just" never write (or rather, most of the time, to just not execute) anything that is UB. And lots and lots of people to this day continue to believe that
184.
▲
by
Joker_vD
4mo ago
Strict POSIX conformance is arguably worse. I mean, have you seen what it advises for shebangs? First of all: The shell reads its input from a file (see sh), from the -c option or from the system() and popen() functions defined in the
185.
▲
by
Joker_vD
4mo ago
Yes, and ADM-3A also had "↑" on the "K" key, because \013 is vertical tabulation (VT), and "→" on the "L" because \014 is form feed (FF). It all makes perfect sense. If terminfo database is to be beli
186.
▲
by
Joker_vD
4mo ago
> Going from A to B then B to C is the same as going from A to C. Not really, no. Not all forces are conservative.
187.
▲
by
Joker_vD
4mo ago
The US legal system never ceases to amaze me. Why indeed should a state enforce a law? Like, one of those anti-discrimination laws?
188.
▲
by
Joker_vD
4mo ago
It's quite amusing how easily people fall into the trap of Malthusianism when talking about water/electricity consumption of certain industries.
189.
▲
by
Joker_vD
4mo ago
You have very interesting ideas on how the world should be run. A pity that others ignore them and just do whatever suits them better.
190.
▲
by
Joker_vD
4mo ago
"AI right are human rights!"
191.
▲
by
Joker_vD
4mo ago
> If you build flattened a vector of them Well, yes, it's an old way to represent ASTs: allocate them all sequentially from a huge arena (worked especially nicely for BCPL). Except the author actually uses their home-grown vecte<
192.
▲
by
Joker_vD
4mo ago
> What LispE proposes is to turn each instruction of the language into a derived class that exposes an eval method. Every class has its own override of eval . And since all these classes derive from a single mother class with an ori
193.
▲
by
Joker_vD
4mo ago
> Nothing is really "free". There are economies of scale though, plus expertise. That's why we normally buy clothes instead of spinning, cutting, and sewing textiles ourselves.
194.
▲
by
Joker_vD
4mo ago
> I wonder whether those that used punch cards said the same about those punch cards? Oh, absolutely. One statement/line per card, the first 5 columns reserved for labels (how's that for significant whitespace?), the 6th to s
195.
▲
by
Joker_vD
4mo ago
> As a small challenge you could try expressing the contents of your comment using visuals only. Hah! That's a trick question, isn't it, because HN filters out emojis?
196.
▲
by
Joker_vD
4mo ago
> This isn't "the market working as intended", this is an exhaustion fight to the bottom where the one with most money gets to stay in the market. That's, uh, pretty much exactly how oligopolistic markets function. &g
197.
▲
by
Joker_vD
4mo ago
Yes, but why C had that syntax? Oh, right, because it didn't use if-then[-else]-end for the conditional statement, and reusing if(cond)[-else] with prohibited braces would be awkward. Oh, and Lua most famously does not accept express
198.
▲
by
Joker_vD
4mo ago
Well, I believe there could be some complications with parsing related to the fact that Lua grammar doesn't really requires semicolons between the statements. But other than that, yeah, detecting "if" in the expression positi
199.
▲
by
Joker_vD
4mo ago
I can (in fact, must when using MSVC) statically link kernel32.lib on Windows as well. It's not a C runtime/standard library, of course, but who ties their OS's user-level API to a particular implementation of a standard li
200.
▲
by
Joker_vD
4mo ago
I don't think a file can actually take less than 4 KiB of disk space on most popular file systems. Can it?
201.
▲
by
Joker_vD
4mo ago
> Whether it should still mean the same If we abstract ourselves from the politics, then yes, of course it should. I mean, the amendment could've simply been "The right of the People to keep and bear arms shall not be infring
202.
▲
by
Joker_vD
4mo ago
> It allows citizens to beat arms, but for what purpose ? To form state-level militia. It even starts with a sunset condition: "A well-regulated Militia, being necessary to the security of a free State, ..." — so arguably, sin
203.
▲
by
Joker_vD
4mo ago
Huh. So in open mode, ex basically works as if ed appended "p" to every text-editing command? Combined with "list" and "number" options, that sounds like a much more pleasant to use version of ed, even on a d
204.
▲
by
Joker_vD
4mo ago
What is open mode?
205.
▲
by
Joker_vD
4mo ago
I've seen "slave nodes" renamed to "children nodes". Because a node that exists solely to support another, more important node, has to carry out the orders it receives from that node, must not do anything on its own
206.
▲
by
Joker_vD
4mo ago
> In 1992, you could make things run significantly faster by just waiting until it was 1994. In the late 90s a couple of companies, including Microsoft and Apple, noticed (just a little bit sooner than anyone else) that Moore&#
207.
▲
by
Joker_vD
4mo ago
Not to be confused with "Ponytail", an award-winning puzzle-platform game by Jonathan Blow.
208.
▲
by
Joker_vD
4mo ago
> I'm just saying it shouldn't be required. I'm still not entirely sure why you want to use instructions from the privilleged subset of your ISA instead of plain old "call fun_addr". > And where are LoadLibrar
209.
▲
by
Joker_vD
4mo ago
> It allows me to write freestanding programs without any C libraries. KERNEL32.dll is not a C library (for once, its exported functions don't even use any of the default C calling conventions on x86). > I created an entire lisp
210.
▲
by
Joker_vD
4mo ago
Those are not a compatibility layer with the OS. Heck, the all barely even provide proper access to the file system, ffs! The "msvcrt.dll" in the System32 folder is an ancient leftover from Microsoft-internal version of MSVC 6.0 o
More ›