Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Validark
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
91.
▲
by
Validark
2y ago
Honestly a school shooting drill was probably near the bottom of the causes of psychological problems when I was in school.
92.
▲
by
Validark
2y ago
What can you do in Mojo that you can't do in Zig?
93.
▲
by
Validark
2y ago
I think if you integrated with the build system, yes, Zig can do things only when the file changed. But I'm not sure that Zig figured out incremental comptime yet. That's way harder to accomplish.
94.
▲
by
Validark
2y ago
By your definition practically any code is a compiler unless you literally typed out every individual thing the machine should do, one by one. "Understanding compilers is hard." I think this is just unnecessarily pessimistic or em
95.
▲
by
Validark
2y ago
Zig disallows ALL shadowing (basically variable name collisions where in the absence of the second variable declaration the first declaration would be reachable by the same identifier name). Generating a text file via a writer with the inte
96.
▲
by
Validark
2y ago
This is actually hilarious and I'm sad you are getting downvoted for it.
97.
▲
by
Validark
2y ago
It's cut off on archive.is too. Can Springer Nature not afford us all to be able to read the full article or what? Do they really need $70 for a single page of information again?
98.
▲
by
Validark
2y ago
Interesting point in theory but I'd love to get to the point where our problem is that we solved all the problems we already know how to solve.
99.
▲
by
Validark
2y ago
> As it would turn out, the Game Boy Advance has quite a bit of “weird memory” that you have to work around in weird ways. I know that this is a long shot, but it would be nice if there was some way to specify how memory in certain addre
100.
▲
by
Validark
2y ago
> Unfortunately, it only has support for one output. Some of the BIOS functions on the GBA that you might use inline assembly for output multiple values in different registers, which is problematic for Zig. This is currently being worked
101.
▲
by
Validark
2y ago
A good start to an article, but unfortunately it feels like it was cut off before the asserted argument was demonstrated to be true.
102.
▲
by
Validark
2y ago
Very interesting. As a Zig enthusiast I've long suspected that Ada has the ability to express more invariants and types that we will want in Zig (some, like ranges, are planned, last I heard). I'm definitely interested to learn mo
103.
▲
by
Validark
2y ago
I guess it depends how many different compilers you are targeting but generally speaking, compilers look for trivial implementations of popcount and can replace it with the single instruction. However, as someone already mentioned, this is
104.
▲
by
Validark
2y ago
AMD machines prior to Zen 3 had a micro-coded implementation of pdep and pext, so they're actually relatively expensive for those earlier Zen machines (as well as Bulldozer). Some people still have Ryzen 3000 series chips. On the Intel
105.
▲
by
Validark
2y ago
What does this mean?
106.
▲
by
Validark
2y ago
Woosh. It was most likely facetious. The fact that one is Amazon and one is Microsoft is not a massive difference.
107.
▲
by
Validark
2y ago
I believe I get the metaphor. Why is it confusing?
108.
▲
by
Validark
2y ago
Evil, yet beautiful. Hats off to you.
109.
▲
by
Validark
2y ago
Good for the authors for putting the idea out there I guess, but to me it seems pretty obvious that people who never look at their assembly would have no idea whether it matches their expectations. And it's not hard. Godbolt.org is fre
110.
▲
by
Validark
2y ago
For the original commenter to be wrong you'd have to argue that they've been underutilizing what's possible in the state of the art. Looking at the Wikipedia page, I don't get that impression. It sounds like giant engine
111.
▲
by
Validark
2y ago
One thing that I hate about the post-ChatGPT world is that people's genuine words or hand-drawn art can be classified as AI-generated and thrown away instantly. What if I wanted to talk at a conference and used somebody's AI trigg
112.
▲
by
Validark
2y ago
> tobacco use What's the worst part of a cigarette, the fact that it has tobacco, or the fact that it has like 100 different cancer causing toxins?
113.
▲
by
Validark
2y ago
It's insane to me that you'd throw away a whole language, toolchain, ecosystem, and community, just because you disagree with the caret operator not taking precedence over a unary minus. Do they not have parentheses on the keyboar
114.
▲
by
Validark
2y ago
This is probably the most overly pedantic, nitpicky reason for not using a program I've ever heard. I'm aware that there are two different conventions on this issue, so I just use parentheses to get the behavior I want. But, growi
115.
▲
by
Validark
2y ago
It's sad to think about how little of our resources are dedicated to work like this. Although I enjoyed the Marvel movies growing up, it would be nice if similar funding could be found for a project like the author describes (and, of c
116.
▲
by
Validark
2y ago
This is super awesome!
117.
▲
by
Validark
2y ago
“[s]cientific controversies must be settled by the methods of science rather than by the methods of litigation” Boom. And the researchers didn't accuse a person of fabrication, they accused the data of being fabricated.
118.
▲
by
Validark
2y ago
Considering the fact that we know the names of the individuals who came up with new ideas in physics, it's extremely rare. If every other college kid was in that category, then we could call it "human ability".
119.
▲
by
Validark
2y ago
It's silly to use Big-O to describe the number of comparisons when the goal is to analyze performance. Comparisons cost 1 cycle, and you can do many of them per cycle with instruction level parallelism and SIMD. The main bottleneck, th
120.
▲
by
Validark
2y ago
If the bit twiddling is independent in each u64, then probably. If it's treated as one giant bitstring, probably not.
More ›