Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
haberman
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
34 ms
·
421.
▲
by
haberman
5y ago
I saw similar results in malloc()-heavy benchmarks. libc on macOS seems to have a fair number of performance traps; as another example, I found that timegm() on macOS is 100x slower than Linux, and 1000x slower than a reasonably optimized
422.
▲
by
haberman
5y ago
> I can find references in the latest IPCC report to increased frequency of droughts, heavy rain, and heat waves, but I can't find much mention of extreme cold events I believe my quoted text above states that the frequency and inte
423.
▲
by
haberman
5y ago
Seems like selection bias to me. You can also Google "does global warming cause warmer winters" and get: "How Warming Winters Are Affecting Everything": https://www.npr.org/2020/02/18/8031
424.
▲
by
haberman
5y ago
I searched the latest IPCC report with non-expert eyes and it seems to say the opposite: https://news.ycombinator.com/item?id=28963266
425.
▲
by
haberman
5y ago
> 2. Winters get colder on average I have never heard this. Do you have a reference? I am no expert, but I looked for any statement about winter temperatures from the latest IPCC report. I found this in TS.2.6: > Warming of th
426.
▲
by
haberman
5y ago
I was under the impression that CadQuery sort of obsoletes OpenSCAD. CadQuery uses an more capable geometry kernel: https://github.com/CadQuery/cadquery
427.
▲
by
haberman
5y ago
I always thought it was strange that "integrated graphics" was, for years, was synonymous with "cheap, underperforming" compared to the power of a discrete GPU. I never could see any fundamental reason why "integrat
428.
▲
by
haberman
5y ago
I think Zig is great and I'm following it with interest. But I think people should be aware that it is not really stable yet, at least in my experience from trying it earlier this year. I ran into a compiler crash: https://
429.
▲
by
haberman
5y ago
> Emulation just means "to imitate another system". Is an AMD CPU an Intel "emulator"? If one piece of hardware aims to be compatible with another, pre-existing piece of hardware, I wouldn't call it an emulator.
430.
▲
by
haberman
5y ago
A key result of the SipHash paper is that the SipHash authors broke common hash functions so completely that they can generate seed-independent multicollisions. That means that certain inputs will collide regardless of what the seed is.
431.
▲
by
haberman
5y ago
Lua uses "chained scatter" (linked list, but links point to other entries in the same table, to maintain locality): https://github.com/lua/lua/blob/master/ltable.c This is a good visual depicti
432.
▲
by
haberman
5y ago
I've recently had a similar idea for when you want to track metrics of a Git repository over time (code size, line count, etc). I would love to create some a script to take a measurement of the current tree, then run a tool that runs m
433.
▲
by
haberman
5y ago
You are welcome, hope you find it useful!
434.
▲
by
haberman
5y ago
I don't believe musttail has been considered by the C++ standards committee, has it? Right now the Clang attribute is a Clang-only non-standard extension. I believe the backend issues mostly center around DSOs. I am hoping that the d
435.
▲
by
haberman
5y ago
Yes I think there are some bugs to be worked out still. I implemented Clang's [[clang::musttail]] attribute on top of the existing LLVM "musttail" attribute, but it does appear that there are some issues with the existing at
436.
▲
by
haberman
5y ago
I'm excited for the release of [[clang::musttail]], an attribute that I implemented to bring guaranteed tail calls to C, C++, and Objective-C: https://releases.llvm.org/13.0.0/tools/clang/docs/Releas
437.
▲
by
haberman
5y ago
The people reverse engineering the M1 found that it uses an architecture that will likely make it easier (not harder) for Linux to support new generations of Apple hardware as it is released: https://news.ycombinator.com/ite
438.
▲
by
haberman
5y ago
Python is difficult to optimize due to complex language semantics. This excellent talk describes how the semantics of the "add" operation are much more complex than generally described. a+b is not just a.__add__(b), you have to r
439.
▲
by
haberman
5y ago
> but if Tail Call Elimination is required in the implementation of a language as it is in Scheme This is also supported as a non-standard extension in C, C++, and Objective-C as of Clang 13: https://clang.llvm.org/docs&
440.
▲
by
haberman
5y ago
> There is no ROM programmer software. This was a misunderstanding on my part, when you wrote: > This can be done with a ROM programmer. Trust is now reduced to hardware and people who checked the software. I thought you were referrin
441.
▲
by
haberman
5y ago
I don't think I'm understanding your threat model. It feels like you are waving away the trust chain required to obtain and execute trusted ROM programmer software. How can you verify that the software you are running is the sam
442.
▲
by
haberman
5y ago
From step 2 to 3 you need some combination of hardware and software that you trust to take the bytes you typed in, run them exactly as you typed them, passing input and output between your program and a data store without modifying them. T
443.
▲
by
haberman
5y ago
> You're scandalized a civil liberties organization opposed putting a minority's liberties to a vote? That is a very creative way of framing a charter amendment that proposed to build 2,000 units of emergency housing for the ho
444.
▲
by
haberman
5y ago
The statement about voting rights is particularly rich, given that the ACLU just won a lawsuit in Seattle to remove Charter Amendment 29 from the ballot for this fall's election. https://www.aclu-wa.org/news/tran
445.
▲
by
haberman
5y ago
I've run into this too. My solution was to add some code in entrypoint.sh that looks for the UID/GID of mounted files, then creates a group and user to match. We can then exec the real command as that user.
446.
▲
by
haberman
5y ago
I've always wished that qemu had a way of running in terminal, using stdin/stdout for input, without creating a separate window. I just found this, which looks like it has some promising recipes for doing that: https://
447.
▲
by
haberman
5y ago
> Marie Kondo, the decluttering phenom who encouraged millions to “spark joy” by throwing out heaps of perfectly good things, was met with substantial ridicule when she began selling “essentials” like silicone head massagers and $61 pape
448.
▲
by
haberman
5y ago
> But yes, the serialized dict-of-arrays-of-dicts type stuff can be approached in a few ways, none of which are particularly beautiful. For what it's worth, this sounds somewhat similar to protobuf (which also supports dicts, arrays
449.
▲
by
haberman
5y ago
> The silver lining of using this complicated DCP interface is that DCP does in fact run a huge amount of code – the DCP firmware is over 7MB! It implements complicated algorithms like DisplayPort link training, real-time memory bandwidt
450.
▲
by
haberman
5y ago
Not to mention cruise control has the same "vulnerability": https://www.youtube.com/watch?v=f1q0FihkTfk Is there any evidence that drivers are abusing Autopilot etc. any more than cruise control and causing a high
More ›