Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
fpoling
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
17 ms
·
331.
▲
by
fpoling
2y ago
While Go rules effectively prevents usage of defer in loops, it is useful occasionally to write: if complex_nested_condition { defer cleanup() }
332.
▲
by
fpoling
2y ago
It is very hard to clone a single modern SIM card or security chips in modern phones, the cost is significantly higher than 10K USD. So an off-line bank card or phone app holding, for example, up to 1K USD equivalent should be entirely poss
333.
▲
by
fpoling
2y ago
Original Fortran did not modified the code. Rather each function had a global variable storing the address to return that the caller had to set.
334.
▲
by
fpoling
2y ago
Depth is easy to miss when the parser calls a lot of functions that call each other and that have vastly different stack usage. A more reliable check is to compare an address of a thing on the stack at api boundary with the current address
335.
▲
by
fpoling
2y ago
Simple counting would not uncover the error. The company was required by support contracts to have some equipment in store in case of failures to quickly replace what failed. And the error was related to not updating in one Excel sheet info
336.
▲
by
fpoling
2y ago
25 years ago a small Norwegian company in oil industri replaced a big Excel that it were using to manage its inventory with Access database and discovered that they have like extra 200K USD in equipment. The reason for the saving was enforc
337.
▲
by
fpoling
2y ago
It has been always necessary to fake the user agent for browsers. Too many sites would complain otherwise. 25 years ago it was necessary to pretend to be MSIE. Then IceBrowser, a Java based browser, was doing that. But one of the customers
338.
▲
by
fpoling
2y ago
Poland was already pissed off with US arm industry under Biden with slow deliveries of US weapons and started to order more and more from South Korea. I guess it will only accelerate.
339.
▲
by
fpoling
2y ago
I think physicists should appreciate more the question of time series A versus time series B raised by John McTaggart. Essentially it points out that modern physics or math is incapable of describing the notion of time flow. Time in physics
340.
▲
by
fpoling
2y ago
It is unclear how much Apple have to pay to Qualcomm in patent fees. It can be still substantial.
341.
▲
by
fpoling
2y ago
It is not any fossil fuel, it is specifically oil and gas. Coal is not a problem for energy independence as it is much more evenly distributed on Earth. What Germany has done with its reliance on Russian gas is truly insane. Not only they c
342.
▲
by
fpoling
2y ago
Fission reactor has to be big and has to deal with storage of a lot of nuclear waste and must implement a lot of expensive measures to stop runaway reaction in case of unexpected events. Fusion has none of this. Assuming Q >> 1 will b
343.
▲
by
fpoling
2y ago
Server hardware is reliable. For connectivity price-wise I think the sweet spot presently is to host own hardware in the data center and have a system administrator that lives not far away. I worked before for a company that was doing thing
344.
▲
by
fpoling
2y ago
The need to expose SSE instruction to system languages tells that compilers are not good at translating straightforward code into optimal machine code. And using SSE properly allows often to speed up the code by several times.
345.
▲
by
fpoling
2y ago
These days even if one writes in machine code it will be quite far away from the real silicon as that code has little to do with what CPU is actually doing. I suspect that C source code from, say, nineties was closer to the truth than the m
346.
▲
by
fpoling
2y ago
If Apple users really appreciated backward-compatibility, the would be a significant market for 3-rd party emulators and VMs to run old software using no longer supported hardware or software API. It is not there. There are VMs, but they ar
347.
▲
by
fpoling
2y ago
One can ssh into untrusted remote host with little risk for local machine security. That is, if the remote site is compromised one cannot use it general to compromise the local machine. At best the attacker can try to exploit bugs in termin
348.
▲
by
fpoling
2y ago
It is much more profitable to invest into financial industry in US than into manufacturing. So the latter attracts top talent.
349.
▲
by
fpoling
2y ago
Even if hydrogen is required as a precursor for methanol production, transportation and storage (especially long-term) of methanol is vastly cheaper than hydrogen.
350.
▲
by
fpoling
2y ago
CO2 emissions from the gasoline does not account for the energy necessary to refine the oil to produce it. These days refineries use electricity for that so if that comes from a coal plant, it adds like 25% of CO2 emission. So the best seda
351.
▲
by
fpoling
2y ago
Those can run on methanol or synthetic fuels. For the source of carbon atmospheric carbon capture can be used.
352.
▲
by
fpoling
2y ago
VSCode assumes that the remote side is trusted. So if VM is compromised, VSCode on the host can be compromised as well. For this reason I run VSCode inside the VM.
353.
▲
by
fpoling
2y ago
The article is about how to squeeze absolute maximum in performance from the hardware. So you need a language that allows a relatively low-level access to hardware. And big plus of Rust is that it has standard SIMD libraries while C++ will
354.
▲
by
fpoling
2y ago
Well, one can always emulate that in Rust with array indexes. And it will be closer how the actual CPU works where a pointer is just an offset into a memory chunk. Perhaps this is the reason performance oriented articles prefer Rust. In all
355.
▲
by
fpoling
2y ago
Technically one does not need the second stack to implement this. One can use the main stack to place all dynamically sized things. The trick is then on the return copy the dynamically sized thing to insert it before the caller return addre
356.
▲
by
fpoling
2y ago
Explicit language support is very nice as the compiler can and do a lot of optimizations and free the space as early as possible on all control paths and ensure full memory safety. For example, when a function returns a thing on the second
357.
▲
by
fpoling
2y ago
LSP optimizes writing the code. Yet debugging, reviewing and reading other people code take significantly more time than writing. If code is organized badly and go-to-definition or even moving the mouse to trigger the tooltip is required wh
358.
▲
by
fpoling
2y ago
I dislike this style in Go. It adds a lot of noise to the source and essentially builds a stack trace manually. In Go 1.23 there is errors.Wrap() that adds the error stack automatically so maybe at some point Go will consider again adding s
359.
▲
by
fpoling
2y ago
Zig runtime optionally records few last points in sources where the error is propagated to the caller so you get stack traces. If you need more than that and error codes, then either log as the sibling suggested or use custom return types.
360.
▲
by
fpoling
2y ago
I bought Toyota Yaris Hybrid in 2012. Toyota at that time claimed it should be 4.4 l/100. My average after 4 years before I sold it was 5.1. So my usage was just 15% off. And this was in Norway with a lot of driving in mountains. On th
More ›