Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ryao
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
31 ms
·
421.
▲
by
ryao
1y ago
X11 was made in September 1987, long after the 70s. All of the older ways of doing graphics were killed by it due to technical merit.
422.
▲
by
ryao
1y ago
I find the Xorg X11 server works just fine with HiDPI displays, while Wayland has issues (mainly just zoom). Alan Coopersmith is not on the Wayland bandwagon as far as I know. We might get HDR from the Xorg X11 server one day. Once it is in
423.
▲
by
ryao
1y ago
They will accept IPv4 addresses in IPv6 addresses too: http://[::ffff:1.1.1.1]/ Sadly, cloudflare does not.
424.
▲
by
ryao
1y ago
Google Reader was fairly popular.
425.
▲
by
ryao
1y ago
I would argue that IBM failed with the BIOS, since they assumed nobody could make a compatible machine without their authorization since they controlled the BIOS and the idea of a clean room reimplementation never dawned on them. It did daw
426.
▲
by
ryao
1y ago
We should add those planets to the official list too. Gauss considered Ceres to be a planet and I believe him over living astronomers. The motivation for this dwarf planet nonsense was to try to keep the official planet list small so childr
427.
▲
by
ryao
1y ago
I have not pushed my local commits to GitHub lately (and probably should), but my experience with the Gemini API so far has been relatively positive: https://github.com/ryao/gemini-chat The main thing I do not like is
428.
▲
by
ryao
1y ago
You might as well add support for viewing this over telnet too.
429.
▲
by
ryao
1y ago
> I very much doubt it, when someone decides to make full of use of recent ISO C on a C library header file. I have tested this WRT _Generic as it was a concern. It turns out that GCC will accept it on older versions, which permits compa
430.
▲
by
ryao
1y ago
I have met a number of people who will not use the boost libraries. It has been so long that I have long forgotten their reasons. My guess is that it had to do with binary compatibility issues.
431.
▲
by
ryao
1y ago
C, unlike C++, does not really force new versions onto you, even if dependencies begin using them. That said, Linux switched to C11. Newer versions of C will gradually be adopted, despite the incompatibilities this causes for C++. As for WG
432.
▲
by
ryao
1y ago
> Sure, you could write C++ the way you describe but that is just poor code. C++ puts people into a sea of complexity and then blames them when they do not get a good result. The purpose of high level programming languages is to make thi
433.
▲
by
ryao
1y ago
Having worked on performance sensitive code (OpenZFS), I have found less to be more. While C code makes more heavy use of linked lists than C++ code, most of the C code I have helped maintain made even heavier use of balanced binary search
434.
▲
by
ryao
1y ago
Yet the C++ community is continually trying to get people to stay away from anything involving C. That said, newer C headers using _Generic for example are not usable from C++.
435.
▲
by
ryao
1y ago
Most C++ code I have seen uses the STL. As for “hyper optimized” data structures, you already have those in C. See the B-Tree code those binary search routine I patched to run faster. Nothing C++ adds improves upon what you can do performan
436.
▲
by
ryao
1y ago
What will you do when you want to use a 4K monitor? This is not to be dismissive. I am genuinely curious if HiDPI works on motif.
437.
▲
by
ryao
1y ago
Nice catch. I had goofed by omitting optimization when checking this from an iPad. That said, this brings me to my original reason for checking this, which is to say that it did not use a cmov instruction to eliminate unnecessary branching
438.
▲
by
ryao
1y ago
That does not show the comparator being inlined since everything was folded into a constant, although I suppose it was. Neat. Edit: It sort of works for the bsearch() standard library function: https://godbolt.org/z/3vE
439.
▲
by
ryao
1y ago
I have used the preprocessor to avoid this sort of slowdown in the past in a binary search function: https://github.com/openzfs/zfs/commit/677c6f8457943fe5b56d7a... The performance gain comes not from elimina
440.
▲
by
ryao
1y ago
Try putting objects into two linked lists in C using sys/queue.h and in C++ using the STL. Try sorting the linked lists. You will find C outperforms C++. That is because C’s data structures are intrusive, such that you do not have exte
441.
▲
by
ryao
1y ago
I doubt that because C++ encourages heavy use of dynamic memory allocations and data structures with external nodes. C encourages intrusive data structures, which eliminates many of the dynamic memory allocations done in C++. You can do int
442.
▲
by
ryao
1y ago
Do you know why he supports MacOS, but not Linux?
443.
▲
by
ryao
1y ago
> Seriously. That is a pretty bold claim that you should be able support with actual studies, if true The 85th percentile rule/principle has been understood for decades. Just search for information on it. You will find tons of resul
444.
▲
by
ryao
1y ago
Mandatory internet connections are not needed when navigation systems and infotainment systems are making internet connections increasingly common.
445.
▲
by
ryao
1y ago
Education is required in NY: https://dmv.ny.gov/driver-license/complete-pre-licensing-req... Other states could adopt the same requirements.
446.
▲
by
ryao
1y ago
It should be obvious that driving substantially slower than everyone else would make you a danger to others. Try driving at the speed limit on a high way in southern NY, especially in the left lane. You will have many near accidents and the
447.
▲
by
ryao
1y ago
Which vehicles have those in the U.S. aside from Tesla vehicles?
448.
▲
by
ryao
1y ago
I was comparing NYS’ standards for vehicles and drivers to Germany’s alleged standards. So far, no one has given a single example of German driver education being better than NY driver education. If you paid attention the remarks about the
449.
▲
by
ryao
1y ago
When I said that draconian measures were often opposite of what is needed to make roads safer, I was mainly referring to attempts to get people to drive slower on highways. Any attempt to force people to drive slower than the 85th percentil
450.
▲
by
ryao
1y ago
They also could introduce standards gradually by grandfathering older vehicles into the previous lack of standards, which is what NY did. Newer vehicles subject to the standards can be repaired to stay up to the minimum standard. This large
More ›