Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jzwinck
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
31.
▲
by
jzwinck
3y ago
If you don't like returning an interface because the caller can't tell what it does, why is accepting an interface any better? Don't you end up in the same conundrum of not knowing whatever it is that you need to know about f
32.
▲
by
jzwinck
3y ago
What makes QUIC less efficient in CPU and memory usage?
33.
▲
by
jzwinck
3y ago
I agree with this, and I will take it a step further: people who want the compiler to know the ranges of their variables to enable better optimizations should use the various "assume" attributes/builtins which have existed fo
34.
▲
by
jzwinck
3y ago
Doesn't the same footgun apply to function call arguments which are evaluated in an unspecified order? f(a++, b++) That footgun doesn't seem to have very much impact in the real world that I've seen. Largely because
35.
▲
by
jzwinck
3y ago
Passing a message via a shared memory queue (twice) is not 1000x slower than a non-inlineable function call.
36.
▲
by
jzwinck
3y ago
Instead of literally loading the plugin into the same address space as the host process, you could launch it as a separate process and use sockets or shared memory to communicate. With a slight shift in API design this might actually be bet
37.
▲
by
jzwinck
3y ago
Eurostar would prefer business travellers. It may get its wish when it moves to Amsterdam Zuid station in 2036 (nearer the new business district, farther the stroopwafels).
38.
▲
by
jzwinck
3y ago
You asked about: > a script that counts the number of lines in files versioned by git I'm saying that is not a realistic production program that most of us would need. If you want it as a personal utility to use in your own shell, a
39.
▲
by
jzwinck
3y ago
What bash is unavoidable? The aliases and functions you define in your personal shell, sure. But what else?
40.
▲
by
jzwinck
3y ago
Toy examples should not guide larger decisions. And even if that trivial script you describe is really what goes into production today, tomorrow someone will modify it and introduce a quoting bug or a poorly-done command line option facilit
41.
▲
by
jzwinck
3y ago
What is faster? According to https://github.com/kostya/benchmarks#json nothing is.
42.
▲
by
jzwinck
3y ago
Clients could use the same certificate for every server, so there is only a one-time setup. Analogous to how clients need to be "configured" with an IP address, the certificate could be given to them by their internet gateway if d
43.
▲
by
jzwinck
3y ago
One way could be to require signing with a TLS certificate whose hostname resolves to the source IP(s).
44.
▲
by
jzwinck
3y ago
NASA have a history of reusing bits and pieces when they develop new vehicles and systems. If someone learns how to control Voyager there may not be much left to figure out if they want to control New Horizons etc.
45.
▲
by
jzwinck
3y ago
Sometimes they are. It depends on how the capture was generated. If you look in the options of Wireshark there is one to detect bad checksums, so clearly there is a way to capture them. Here is one such way: https://stackoverflow
46.
▲
by
jzwinck
3y ago
Wireshark is great but it does not show you every byte the network carried. For example it never shows Ethernet preambles, only sometimes shows Ethernet frame checksums, and never shows interpacket gaps (which are a required part of the Eth
47.
▲
by
jzwinck
3y ago
I agree but it's Daniel not Doug.
48.
▲
by
jzwinck
3y ago
Not literally atoi() because most people don't use that anymore, but the C++ std::from_chars() uses SIMD in GCC 12+, thanks to some of the same people behind the OP: https://lemire.me/blog/2022/07/27
49.
▲
by
jzwinck
3y ago
Bananas also serve another important function which ensures their continued success as an export product: https://www.europol.europa.eu/media-press/newsroom/news/65-t...
50.
▲
by
jzwinck
3y ago
While we are recommending other motorcycle museums, I thoroughly enjoyed Museo Piaggio in Italy. It has quite a large collection, and it's free. It's easily reached by mass transit.
51.
▲
by
jzwinck
3y ago
No.
52.
▲
by
jzwinck
3y ago
Compile with -fno-math-errno. Almost nobody checks errno for math functions, and disabling it can give a huge speedup.
53.
▲
by
jzwinck
3y ago
Lack of a debugger should not be a problem, as we all know printf is the best debugger. Unfortunately this system's printf implementation has numerous known and unknown output bugs, so what it tells you requires many years of training
54.
▲
by
jzwinck
3y ago
Thank you for the thorough answer. That is all quite methodical and impressive, bringing together good ideas from disparate projects into a single solution with new benefits. For people like me who have battled this demon before, it would h
55.
▲
by
jzwinck
3y ago
Does this work with files compressed using the usual gzip command line program? I thought you had to write "sync points" inside a gzip file to support reading from locations other than the start. If you somehow bypass that require
56.
▲
by
jzwinck
3y ago
I lived in Asia for many years and worked with people from many places there. It's common to hear "How should I address you?" This is equivalent to the people here suggesting a "nickname" field (good idea). There ar
57.
▲
by
jzwinck
3y ago
std::optional is not a pointer. And it has a safe dereference method called value() if you want the extra runtime check which operator* skips.
58.
▲
by
jzwinck
3y ago
I was curious so I read about how that one works. It does exactly what one would need for a sailing race. It is the only mechanical watch I've seen which has a "sync" button to lock on to the race pre-start signals. That'
59.
▲
by
jzwinck
3y ago
What do they use m4 for?
60.
▲
by
jzwinck
3y ago
There is no practical Pandas DataFrame binary format on disk. They have "tofile" which is not portable across machines. They have "to_hdf" which produces files no other library understands in an intuitive way. They mostl
More ›