Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
chubot
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
88 ms
·
931.
▲
by
chubot
4y ago
You're correct and the grandparent is wrong. I'm seeing a lot weird hate for this book by people who haven't read it. I'm guessing there is someone with a ideological bone to pick that spread a mind virus about the boo
932.
▲
by
chubot
4y ago
Lua is more like a C library and less like a VM. (Similarly, LLVM isn't a VM, which is a common misunderstanding, given the name) As far as I know, people don't ship code to remote Lua VMs and execute it. There is no compatibili
933.
▲
by
chubot
4y ago
So Facebook doesn't have something like memegen? I worked at Google when it was created and "went viral". Before memegen there was a strain of what I would call inauthentic positivity I think memegen made it a lot more accep
934.
▲
by
chubot
4y ago
(story submitter here) This is true and should be acknowledged. To be honest, I submitted it because like many others I learned something from the author's blog, and followed it over the years I also submitted it under a title involvi
935.
▲
The last three years of my work will be permanently abandoned
(ericlippert.com)
707 points
by
chubot
4y ago
|
460 comments
936.
▲
by
chubot
4y ago
I think this is a compelling idea, and I did some experiments with it a few years ago, but I don't think it works. I think you have to rewrite all your code in C++ to get smaller pointers, e.g. see my comments on Zig and Sorbet (C++) i
937.
▲
by
chubot
4y ago
I agree that the x32 ABI is probably a technological dead end, but I don't agree with "just" use a custom heap. I tried in C++ and it's not easy. You lose a lot of type safety and you have to basically rewrite every li
938.
▲
by
chubot
4y ago
Yeah it sounds like x32 is really only practical for embedded systems, if anything Limited use of registers in x86 does sound like a good explanation for it being a wash in terms of speed It seems like there is very little language-level su
939.
▲
by
chubot
4y ago
Hm so then how do you compile for x32 and have 32-bit pointers without the other restrictions? It sounds like x32 is poorly supported by Linux and x86 would be better supported.
940.
▲
by
chubot
4y ago
This is dirt simple native C++ code compiled with -m32, with structs and pointers (which happens to be generated, but that doesn't matter here) I would expect that dereferencing a 32-bit pointer on x86-64 has zero overhead compared to
941.
▲
by
chubot
4y ago
FWIW I recently tried this on https://www.oilshell.org , thinking the code would be faster due to better cache locality. There are many pointer rich data structures and they should be packed much more tightly when pointers are 3
942.
▲
by
chubot
4y ago
Yeah that was my thought too when skimming over it ... A lot of it is just whole plant-based foods, and 90% of people will probably get all the benefit from just that, leaving aside all the supplements. The one thing I think is good is the
943.
▲
by
chubot
4y ago
I think you have to go to industry events like NAMM and so forth. You’re not going to find experts just giving away their knowledge on the Internet openly Same thing with medical tech, energy tech, etc. Web and to some extent games are a l
944.
▲
by
chubot
4y ago
This seems like an awesome way of writing faster interpreters – i.e. not in assembly, but in C++ snippets you stitch together with a tool. I did peek at the deegen tool a bit, and it seems quite large? https://github.com/lua
945.
▲
by
chubot
4y ago
A fundamental problem with Galactica is that it is not able to distinguish truth from falsehood, a basic requirement for a language model designed to generate scientific text Isn't this the same problem that Github Copilot has? Funda
946.
▲
by
chubot
4y ago
I’m ok with people working in soup kitchens or buying mosquito nets “feeling superior” What disturbs me is crypto scammers and the uninformed spouting off about “AI alignment” buying influence within the government, with stolen money Also p
947.
▲
by
chubot
4y ago
Hm I don't agree that example means it's "not uncommon" -- why would you want to hash the float rather than the bucket number? Hashing the floats themselves isn't going to give you a useful histogram. Is there a cod
948.
▲
by
chubot
4y ago
Meh using floating point as keys for maps in any language is just asking for trouble -- it’s not just NaN I don’t think there’s any real use case for it I’d say clear() is good for clarity, and that’s it
949.
▲
by
chubot
4y ago
The article doesn’t claim that; it’s closer to the opposite
950.
▲
by
chubot
4y ago
It says half of the workforce, not half of engineers
951.
▲
by
chubot
4y ago
Are you saying there’s only one chemical compound that matters in the taste or nutrition of truffles? What about sweet potatoes or lamb? Can they be represented by a chemical?
952.
▲
by
chubot
4y ago
Ugh ... yeah corporations were already "slow AI". The bureaucracy had a mind of its own, encoded in forms. Now when you add "AI" running on computers, it gets so much worse ...
953.
▲
by
chubot
4y ago
I like the idea of "anti-compression" There are a limited number of ideas with consequence, and we used to read carefully written books about them (or at least some people did) Now everyone just reads junk on the web that is recyc
954.
▲
by
chubot
4y ago
It's true, and the RPC comment is also very plausible It's definitely not as ridiculous as what lots of experienced engineers are oddly saying e.g. simply open up Twitter in Chrome's devtools and look at the networking tab --
955.
▲
by
chubot
4y ago
FWIW, to prevent the bug where a = b is slow for big types, Google's C++ style guide used to mandate DISALLOW_COPY_AND_ASSIGN (which used to be DISALLOW_EVIL_CONSTRUCTORS I think) on all types (most types?) Looks like that's been
956.
▲
by
chubot
4y ago
Parser generators aren't widely used for implementing shells (or JavaScript engines, or C/C++ compilers, for that matter). IMO they're nice for designing languages, but not necessarily implementing them. bash is actually one
957.
▲
by
chubot
4y ago
Yes a huge part of shell is parsing, and C is a bad language for that. If you want POSIX shell you'll have at least 5K lines of parsing code; if you want bash it's at least 10K lines. It's closer to 20K lines of C in bash it
958.
▲
by
chubot
4y ago
Wow ... so I'm assuming Lewis could smell this a mile away, given his history? (Liar's Poker, etc.) It's funny that they seemingly weren't in on it -- "No it's not at all like the other things you wrote about&
959.
▲
by
chubot
4y ago
There was an entire book about this that became famous during the 2008 financial crisis: Fooled by Randomness by Nassim Taleb https://www.amazon.com/Fooled-Randomness-Hidden-Markets-Ince... It's literally about how o
960.
▲
by
chubot
4y ago
As others said, it's not naive. This is a person that has different values than you have. He doesn't care about keeping his job, if it's not on his terms. And that worked for a long time. FWIW I read Manu's cartoons a
More ›