Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
wahern
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
38 ms
·
511.
▲
by
wahern
1y ago
By tagged they mean have an identifier. Compare > struct { ... } foo; and > struct bar { ... } foo; The latter has an identifier, bar; the former doesn't. The standard uses tag to refer to the identifier name, if an
512.
▲
by
wahern
1y ago
This is gonna haunt me. Digging through some old code of mine (circa 2009) I found this bit: #elif _MSC_VER >= 1310 #define typeof(type) __typeof(type) So somehow I had the impression Visual Studio .NET 2003 (7.1)[1] added __
513.
▲
by
wahern
1y ago
FWIW, as far back as 2015 my feature check library documents Visual Studio as supporting "__typeof".[1] Note the leading but not trailing underscores. Perhaps I was mistaken, but I usually tested that sort of thing. It's also
514.
▲
by
wahern
1y ago
> Also hard not to feel like this is reaching hard to try and recreate xslt. I was never a fan of XML, but XSLT was (is!) a killer redeeming feature of the ecosystem. And it's still widely supported in browsers! It was such a shame
515.
▲
by
wahern
1y ago
FreeBSD literally has Capsicum: https://en.wikipedia.org/wiki/Capsicum_(Unix) That might be the most pure capability system out of all of them, though it's not something that works without application modification
516.
▲
by
wahern
1y ago
To be added to POSIX usually requires common existing availability of a feature, if not literally at least substantially similar and not too difficult to add a POSIX-compliant mode. Fortunately this has become easier to achieve now that mos
517.
▲
by
wahern
1y ago
Correct me if I'm wrong, but I think this limitation wrt Makefiles is entirely a choice by CMake, or at least a lack of volunteers for adding support to the Makefile generator. Ninja itself doesn't have any support for C++ modules
518.
▲
by
wahern
1y ago
It's a matter of praxis. Targeting portable constructs is (IMO) a useful methodology for achieving the abstract goal. It doesn't have to be strict, but it provides a quantifiable, objective metric (i.e. amount of non-portable cons
519.
▲
by
wahern
1y ago
People are too quick to [ab]use GNU Make features. IME, learning how to make do with portable make constructs can help discipline oneself to avoid excessive complexity, especially when it comes to macro definitions where GNU Make's Lis
520.
▲
by
wahern
1y ago
This stood out to me: > For comparison, Bitcoin mining did only about 2^111 bit operations in 2022. ("Only"!) Anyone have a source for this? Google results suggest in 2022 Bitcoin miners reached ~209 quintillion hashes (209 ex
521.
▲
by
wahern
1y ago
Reminds me of the paper, "Stereotype accuracy: One of the largest and most replicable effects in all of social psychology": https://gwern.net/doc/psychology/cognitive-bias/2016-jussim.... TL;DR: Gro
522.
▲
by
wahern
1y ago
Much of the majority and most of the dissenting opinions in the recent SCOTUS case are exactly about that--is it sex discrimination?: https://www.supremecourt.gov/opinions/24pdf/23-477_2cp3.pdf All the opinions ar
523.
▲
by
wahern
1y ago
> Now that SCOTUS has green-lit denying healthcare on the basis of assigned gender at birth, the gates are wide open. Yes, we're at a juncture. But my point is I don't think bans for adult care are inevitable, nor that strict p
524.
▲
by
wahern
1y ago
The glass-is-half-full take is that no states have prohibited gender affirming care for adults. All the present bans in the U.S. only proscribe treatments for minors. But one would be forgiven for not knowing this because it's not how
525.
▲
by
wahern
1y ago
Unless the majority of Rust builds on Linux statically link musl libc or use no_std, then it's pervasively true. And it's true on most non-Linux targets, including the BSDs and macOS. It's the same situation with Go.
526.
▲
by
wahern
1y ago
> Most shells dynamically link to a runtime your OS provides "for free" Rust binaries also dynamically link to and rely on this runtime.
527.
▲
by
wahern
1y ago
Reminds me of Ben Underwood, the blind kid who used echo location around the house, playing basketball, riding his bike around the neighborhood, etc: https://www.youtube.com/watch?v=fnH7AIwhpik https://en.wikiped
528.
▲
by
wahern
1y ago
Buffer overflows are more a library problem, not a language problem, though for newer ecosystems like Rust the distinction is kind of lost on people. But point being, if you rewrote bzip2 using an equivalent to std::Vec, you'd end up i
529.
▲
by
wahern
1y ago
I never said I didn't like the idea. I neither like it nor dislike it. I just meant to point out that the conclusions are in large part a consequence of the the way the question is framed, and the framing is largely cultural determined
530.
▲
by
wahern
1y ago
A huge number of people feel this way, especially post Gen-X generations--Millennials, etc. From the paper: > moral authorisation has to come before the imposition. What's the expression... tell me you're a Millennial without t
531.
▲
by
wahern
1y ago
Camus didn't consider his views existentialist, but I consider them as such. Likewise, for me authors like Baudrillard and Benedict Anderson (political scientist) have written works that I think well capture the substantive gist of pos
532.
▲
by
wahern
1y ago
> the only thing real in hyper-reality is that the symbols hide the absence of facts What's a fact? Concepts like justice and fairness are fundamentally cultural constructs, and yet they've always been a core concern of human s
533.
▲
by
wahern
1y ago
Plastic, in the industrial/commercial products context, was always a very broad term. In addition to being a broad technical term in industry, it quickly became a moniker for the mid-century industrial chemicals revolution similar to t
534.
▲
by
wahern
1y ago
Not practically, but literally: Note that conversion from a void * pointer to a function pointer as in: fptr = (int (*)(int))dlsym(handle, "my_function"); is not defined by the ISO C standard. This standard require
535.
▲
by
wahern
1y ago
Closer to the truth is that the brain never completely forgets something, in the sense that there are always vestiges left over, even after the ability to recall or instantly draw upon it is long gone. Studies show, for example, that after
536.
▲
by
wahern
1y ago
If you don't specify a target, make builds the first target declared. This is traditionally "all", and it's common to define "all:" as the first target in a Makefile (it doesn't need a recipe--a bare "
537.
▲
Source Code Sandboxing
(kristaps.bsd.lv)
2 points
by
wahern
1y ago
|
0 comments
538.
▲
by
wahern
1y ago
Sales != profits. I infer they're actually losing money from this bit: > Whole Foods is "growing meaningfully faster" than the broader industry with a "really good profitability trajectory," he added.
539.
▲
by
wahern
1y ago
All of those modern algorithms, even relatively older ones like CHD, can find a perfect hash function over millions of keys in less than a second.[1] Periodically rebuilding a function can be more than fast enough, depending on your use ca
540.
▲
by
wahern
1y ago
In rural Georgia my father's wife, still 15+ years my senior, would always "yessir" and "no sir" me, just as she did with everyone else (ma'am for women, of course). And this was in the past 10 years. Even my h
More ›