Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jabl
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
40 ms
·
631.
▲
by
jabl
4y ago
That is undoubtedly true, but while we're waiting for the widespread acceptance of a C string library that defines a separate string type, or for the world to be rewritten in Rust or other safer languages, it's still possible to m
632.
▲
by
jabl
4y ago
Admittedly the name is poor, but memccpy has been in POSIX since forever (the opengroup.org manual mentions it's from "Issue 1" which I believe refers to the X/Open Issue 1 from 1985), so I guess the C committee thought
633.
▲
by
jabl
4y ago
As mentioned in the article linked above https://saagarjha.com/blog/2020/04/12/designing-a-better-str... , memccpy() comes relatively close and is slated to be part of C23.
634.
▲
by
jabl
4y ago
A funny thing that made the rounds on social media over here a few years ago was somebody buying a translated copy of Moby Dick. Turned out it was evidently translated by Google translate or some similar service, and it was atrocious. Liter
635.
▲
by
jabl
4y ago
> It was a great experience, however as one the persons responsible to optimize Tcl code into C modules, and part of the .NET migration team, I learned to never consider languages without a JIT/AOT compiler for nothing serious beyon
636.
▲
by
jabl
4y ago
CVS also had the capability to automodify these RCS tags, so it might be they started with CVS.
637.
▲
by
jabl
4y ago
IIRC Arsdigita took on VC money, forced out the original management, decided to rewrite ACS in the language du jour (Java), which as a side effect pretty much ended Arsdigita involvement in OpenACS. AOLserver and OpenACS both being stranded
638.
▲
by
jabl
4y ago
> I note the reference to OpenGL, but that has been dropped in Mac OS. I wonder if the Inkscape peeps have plans to address that. I'm not familiar with Inkscape internals so I don't know how it renders the main window canvas, b
639.
▲
by
jabl
4y ago
As a small nit on the benchmark code, should use CLOCK_MONOTONIC rather than CLOCK_REALTIME.
640.
▲
by
jabl
4y ago
It's a shame that -fno-math-errno isn't the default. It pessimizes many common operations, as can be seen in the article. Also e.g. a simple sqrt() call like #include <math.h> double mysqrt(double d) { return sqrt(d); }
641.
▲
by
jabl
4y ago
> Modern jet turbines are running within a few % of maximum thermodynamic efficiency. Indeed they are marvels of engineering. But that doesn't make them "sustainable". It just takes a lot of energy to push something throug
642.
▲
by
jabl
4y ago
The architecture of AOLserver was ahead of its time back in the day. Using threads rather than processes like Apache meant that all the threads could share a connection pool to the database. And the built-in Tcl support, while idiosyncratic
643.
▲
by
jabl
4y ago
This presentation from a few years ago says their x86 porting approach is based on utilizing LLVM (and clang for C++) rather than writing an x86 backend for their existing compiler. Has this been done by now, and is it the way it was eventu
644.
▲
by
jabl
4y ago
As mentioned, non-reflective surfaces are good emitters as well as adsorbers. So the argument, AFAIUI, is that a surface which is non-reflective in the infrared will radiate away more heat during the night. Crucially including heat that has
645.
▲
by
jabl
4y ago
Seems like a slamdunk example of choosing boring technology. https://boringtechnology.club/
646.
▲
by
jabl
4y ago
Large turbines running at close to rated power actually have pretty good efficiency. Turbines are bad at scaling down to smaller sizes due to e.g. boundary layer friction, and also part load efficiency is poor. Recuperators help somewhat, t
647.
▲
by
jabl
4y ago
> Invading Ukraine wasn’t about denazification, or nato threat, or anything except naked imperialism. I agree. An additional reason AFAICS is that a slavic country, similar to Russia in many ways, making moves towards becoming a liberal
648.
▲
by
jabl
4y ago
Many were optimistic after the fall of the USSR ("end of history" and all that) that Russia would develop into a liberal democracy that would concentrate on improving the lives of its citizens, and engage in mutually beneficial pe
649.
▲
by
jabl
4y ago
C23 follows C++ in requiring signed integers to have two's complement representation. I think by this point it's pretty much settled that it's the "optimal" way to implement signed integers. Now if we change to non-
650.
▲
by
jabl
4y ago
White is highly visible (except maybe in a snow storm!) and a fairly popular vehicle color. There was a study in Australia about this: https://www.monash.edu/__data/assets/pdf_file/0007/216475/An...
651.
▲
by
jabl
4y ago
Yeah, matte colors seems to be a trendy thing these days. Or IIRC I read somewhere, the current trendy matte colors aren't as much matte as lacking the highly reflective metal flakes of the popular "metal colors". So it'
652.
▲
by
jabl
4y ago
> Interestingly, the paper mentions that the reactions do produce (some) hydrogen, which could perhaps be recaptured. The hydrogen is used for reducing the iron oxides, that's the whole point of the process! That is, FeXOY + H2 =>
653.
▲
by
jabl
4y ago
Something close to this international orange / safety orange is used for safety equipment on ships. Lime yellow has become popular on fire trucks, ambulances, and similar. See https://www.apa.org/topics/safety-desi
654.
▲
by
jabl
4y ago
There are some very promising alternative battery chemistries out there, graphene-aluminium being one of them. Sodium is another that is perhaps closer to commercialization (there's some chinese EV already that has them).
655.
▲
by
jabl
4y ago
I have a Toyota Verso, and the backup camera is close to the tailgate handle, beside the license plate. No moving parts etc, and rain per se isn't a problem, however it tends to get dirty in foul weather. I have a habit of just wiping
656.
▲
by
jabl
4y ago
I'd really like to meet the marketing genius who decided to name the car "BZ4BX". Really rolls off the tongue, that one.
657.
▲
by
jabl
4y ago
It's a really minor point, but this is one thing I like about Rust syntax for conditionals vs. C/C++. It always requires the {} around the block, so it has no special rule for single-statement conditionals like C. At the same time
658.
▲
by
jabl
4y ago
I've always thought that much of the skepticism is due to working in the industry, so HN'ers know how the sausage is made.
659.
▲
by
jabl
4y ago
There has been a huge amount of work done on Linux over the years to increase parallelism in the VFS and in the common filesystems like ext4, XFS and btrfs. I would guess that macOS, being targeted at desktops and the typical workloads bein
660.
▲
by
jabl
4y ago
Most Linux network drives support NAPI since a couple of decades. No panacea of course, but still, far from having one interrupt per packet.
More ›