Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
cgh
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
121.
▲
by
cgh
2y ago
You return the type directly. You can then declare things to be of this type. Eg, from the Zig docs, here's how to construct a generic List type (note the comptime declaration of the generic parameter): fn List(comptime T: type) ty
122.
▲
by
cgh
2y ago
From the article: “…they do so using random User-Agents that overlap with end-users and come from tens of thousands of IP addresses - mostly residential, in unrelated subnets, each one making no more than one HTTP request over any time peri
123.
▲
by
cgh
2y ago
No, the eBeaver has never flown a commercial flight. Harbour Air is aiming for certification in 2026. Additionally, it only holds four passengers and is more a proof of concept than anything else. It is a cool effort but battery technology
124.
▲
by
cgh
2y ago
Paperclip 64 came with a physical dongle that you plugged into a joystick port. If the dongle wasn’t present, the software wouldn’t run. The software itself was impressive, a full-featured word processor with an 80 column display.
125.
▲
by
cgh
2y ago
Yeah, I'm not sure a lot of people read the article. This isn't really a back to basics, going back to C, forgoing complexity type of article, but instead it's about developing a new programming language called KC3 to make us
126.
▲
by
cgh
2y ago
You are normally a quality poster. This kind of thing is beneath you.
127.
▲
by
cgh
2y ago
Some years back, I was driving to the town of Apt, in a hilly area of Provence. I was on a secondary road and going roughly the speed limit, maybe a little more. I was passed on a curvy section of road like I was standing still by a woman w
128.
▲
by
cgh
2y ago
We have hundreds here that gather on the same river to catch salmon in the fall. It’s a big tourist attraction. Glad to hear they are thriving down south as well.
129.
▲
by
cgh
2y ago
From the article: "Similarly, paper mills – organizations that produce fabricated or low-quality manuscripts for profit – often rely on inflated co-authorship networks to boost the metrics of paying researchers..." The article ref
130.
▲
by
cgh
2y ago
From the article: "We are destroying software telling new programmers: “Don’t reinvent the wheel!”. But, reinventing the wheel is how you learn how things work, and is the first step to make new, different wheels."
131.
▲
by
cgh
2y ago
It’s a weird tagline because the books are basically sexless. But the first one was definitely fun and original so who cares. Unfortunately, the next two simply weren’t good. I wonder if the series will see a conclusion.
132.
▲
by
cgh
2y ago
"Trans vegan 'Siths' who kill people with katanas" is not a sentence I thought I'd ever read, let alone type, yet here we are, in the most ludicrous timeline.
133.
▲
by
cgh
2y ago
I'm not sure I understand. Anytype is type-checked at compile time, not runtime, so you already have these things. The downside of anytype is that it's non-documenting, in the sense that you can't read the function signature
134.
▲
by
cgh
2y ago
You can just used tagged enums and the inline else syntax, like this: const Animal = union(enum) { cat: Cat, dog: Dog, pub fn make_noise(self: Animal) void { switch (self) { inline else => |
135.
▲
by
cgh
2y ago
If you read the end of that interfaces article, you'll see a low-boilerplate way to get interfaces using tagged enums. There's no pointer casting etc. involved.
136.
▲
by
cgh
2y ago
His approval rating is historically low: https://news.gallup.com/poll/655955/trump-inaugural-approval... I wonder how his approval will compare with his first term. His final approval rating is the lowest of any p
137.
▲
How one YouTuber is trying to poison the AI bots stealing her content
(arstechnica.com)
2 points
by
cgh
2y ago
|
0 comments
138.
▲
by
cgh
2y ago
Denmark iodizes its salt. Therefore, C++ is unnecessarily complex.
139.
▲
by
cgh
2y ago
I think the English translation is The Chain of Chance. Great book.
140.
▲
by
cgh
2y ago
No Go. What makes this project impressive is how he avoided nearly all of the most popular mainstream languages in favour of eg COBOL and XSLT(!).
141.
▲
by
cgh
2y ago
AmigaBasic is quite different from Commodore Basic v2.0, and that’s within the same company.
142.
▲
by
cgh
2y ago
Isn't the cool part of this the assertion that the arrow of time flips at points of minimum and maximum entropy? In other words, it's two parallel timelines, not a continuous loop of entropic time. The article dedicates itself to
143.
▲
by
cgh
2y ago
Aid to Israel is mentioned as contributing to this supposed 1971 disaster. Combine this with the linked “discussions” referencing cryptocurrency and Zerohedge (a disinformation site) and yeah, no thanks.
144.
▲
by
cgh
2y ago
Eternal September but not just Usenet, everywhere.
145.
▲
by
cgh
2y ago
You were right to be concerned. From the article: "Plant-based protein powders were the most contaminated, containing five times more cadmium than their whey-based counterparts."
146.
▲
by
cgh
2y ago
Vizio did this back in the 2018 time frame (ask me how I know). It's a small Android tablet with the Vizio app on it. You can also just download the app onto your phone and use it that way. It was so unpopular that Vizio eventually rel
147.
▲
by
cgh
2y ago
We live north of you and grow enough raspberries and tomatoes to last almost until the following season. It’s a skill issue.
148.
▲
by
cgh
2y ago
Have you been following https://github.com/ziglang/zig/issues/16270 ?
149.
▲
by
cgh
2y ago
Bergmann’s rule: animals in colder climates have larger bodies than members of the same species (or subspecies) in warmer climates. Allen’s rule: limb lengths vary according to climate. Limbs are longer in warmer climates. Both rules observ
150.
▲
by
cgh
2y ago
When you read the article, did this argument occur to you in light of what they found with NUPR1?
More ›