Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
_0w8t
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
35 ms
·
391.
▲
by
_0w8t
5y ago
I do not understand how Tesla was allowed to put de-fog button for the windshield in a submenu on the touchscreen. This is a critical safety feature. The only explanation is that it is not needed often in California.
392.
▲
by
_0w8t
5y ago
It is not the same. I have used one 5 years ago on Dell XPS 13. It still reflected more then on ThinkPad X1. And the whole experience was worse then on MacBook Pro.
393.
▲
by
_0w8t
5y ago
One cannot run 32-bit Intel binary on Apple silicon even via VM. I suppose VM vendors may eventually support that via emulation, but it will take a while.
394.
▲
by
_0w8t
5y ago
A touchpad on the latest ThinkPad X1 from Lenovo is much improved. While it still does not match Apple, a better keyboard more then offsets it. What is puzzling is the screen. Lenovo does not have high DPI mate screens and their non-mate sc
395.
▲
by
_0w8t
5y ago
This is even true on desktop with Apple deprecating and removing features with new OS releases. The assumption is that developers will take care about it. But for users of niche apps that are no longer supported by developers this is rather
396.
▲
by
_0w8t
5y ago
As another comment has written one needs Runtime.getRuntime().addShutdownHook(). The hook then, for example, closes the input stream to ensure that it’s reader is woken up from a blocking read and then waits until the already read data is w
397.
▲
by
_0w8t
5y ago
It is rather non-trivial to write a program to copy input to output if one requires proper handling of a termination signal when the code flushes the already read data without waiting for more and exits without loosing any buffered data. Kn
398.
▲
by
_0w8t
5y ago
On more serious note 22.0/7 or 3.1 in base 7 is a rather good approximation sufficient to quite a few problems and good to calculate things in one’s head.
399.
▲
by
_0w8t
5y ago
Imperial measures were not about scale. They were about picking something one can easily relate to and then use that to express the quantity. If one needs more then 2 digits, one pick up a new thing as a reference. For more precision halve
400.
▲
by
_0w8t
5y ago
The same is in Norway, although one have to justify it. For example one cannot get a visa to China if one has a stamp from Taiwan. So if one needs to travel to both often, then one can apply for the second passport.
401.
▲
by
_0w8t
5y ago
They are going to upgrade SE which will be the same size as the current SE 2020 as rumors suggest. And while Mini is smaller, SE still counts as a small phone.
402.
▲
by
_0w8t
5y ago
In Norway for the same reason one is supposed to pay for a doctor. That amount is limited to about 250 USD per year, anything above that is covered by the state. Still it is quite effective to prevent visiting a doctor for trivial issues. A
403.
▲
by
_0w8t
5y ago
As the author pointed out, Windows does not have API to convert a list of arguments into a string to launch a process. Here is how Chromium does that: https://chromium.googlesource.com/chromium/src/+/refs/
404.
▲
by
_0w8t
5y ago
For state machines nothing beats tail calls. Those are effectively a goto, but much more expressive and readable. Too bad those are not implemented in supposedly high-performance popular languages.
405.
▲
by
_0w8t
5y ago
I am aware of this. Plus there are constant power attacks when one disconnects the disk while the system is suspended when the key is unlocked on the disk. But this is a development machine and I figured out that surprisingly non-trivial ov
406.
▲
by
_0w8t
5y ago
With modern big SSD endurance is no longer the issue. You would need to write at max speed for many month before hitting the limit. I had a laptop with 512GB SSD that I used heavily for 3 years for development work and then for 2 years as a
407.
▲
by
_0w8t
5y ago
You are right, formally lz4 is significantly faster than SSD, see https://www.reddit.com/r/Fedora/comments/mzun99/new_zram_tun... . However, I did benchmark using stress-ng my laptop with Samsung 980 PRO
408.
▲
by
_0w8t
5y ago
Without double-accounting after the fork it is in general impossible to guarantee that no running program needs to be killed on OOM as the kernel does not know what the process is going to do after the fork. And fork still has legitimate us
409.
▲
by
_0w8t
5y ago
Steel and iron are also combustible even if that requires a high temperature. During bombing of Dresden in WWII that contributed to massive sustained fires.
410.
▲
by
_0w8t
5y ago
Wood is very predictable under fire. In addition it is a good isolator so the high temperature does not spreed that fast. So it is quite straightforward to engineer things to be safe and give enough time for firemen to arrive. Steel on the
411.
▲
by
_0w8t
5y ago
Overcommit on POSIX systems is a consequence of fork/exec architecture of starting new processes. Fork must double the memory accounting if one disables overcommit and for a memory hog that starts a helper process that may lead to OOM
412.
▲
by
_0w8t
5y ago
A fast swap like zram or modern SSD is very beneficial on a development machine as one allows to keep active file cache for much longer so grep and git on huge trees works instantly even if one have a lot of memory hogs like VMs or languag
413.
▲
by
_0w8t
5y ago
Modern SSD are much faster at read than lz4, the fastest compression algorithm, at decompression and just 2-3 times slower in practice when writing than lz4 at compression. And they do not tax CPU while doing that, which is important since
414.
▲
by
_0w8t
5y ago
Just using modules names as prefixes everywhere instead of importing individual symbols works when modules have short names. Which in turn requires that the modules should be relatively fat so relatively few of those should exist allowing f
415.
▲
by
_0w8t
5y ago
On Linux there are also zswap with a compressed cache in front of the real swap. Depending on workload either zram or zswap may work better under the memory pressure. Also, there is a matter of the compression algorithm selection. With mode
416.
▲
by
_0w8t
5y ago
Holding dumbbells at maximum weight for 3 seconds is tiresome. So this is extreme version of high intensity training when one always do exercises to the point of failure. It is surprising that doing just one repetition works. A typical reco
417.
▲
by
_0w8t
5y ago
Nothing like 100 meters, more like 15-20. I guess that was based on height of trees.
418.
▲
by
_0w8t
5y ago
Does it at least specify hashes for files from CDN?
419.
▲
by
_0w8t
5y ago
My father in Belarus in eighties and nineties used to travel few times per week about 35 milles in one direction by a local electric train with overhead wires (called "elektrichka" in Russian). Not a single time the train was can
420.
▲
by
_0w8t
5y ago
I think Darkness at Noon by Koestler is the best book about how system breaks man and forces into submission. The ending of 1984 is rather pale in comparison. There are also a few books by Russian authors on that topic, but Koestler’s work
More ›