Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
fpoling
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
18 ms
·
301.
▲
by
fpoling
2y ago
And Java has non-trivial advantage over Go of being arch-independent. So one can just run and debug on Mac Arm the same deployment artifact that runs on x86 server. Plus these days Java GC has addressed most of the problems that plagued Jav
302.
▲
by
fpoling
2y ago
Cancelling blocking IO is such a pain point in Go indeed. One can do it via careful Close() calls from another goroutine while ensuring that close is called only once. But Go provides absolutely no help for that in the standard library.
303.
▲
by
fpoling
2y ago
Actor model does not need CSP. Erlang uses single message passing queue per thread (process in Erlang terminology) with unbounded buffer so the sender never blocks. As the article pointed out lack of support for unbounded channels complicat
304.
▲
by
fpoling
2y ago
One of the often mentioned advantages of Go thread model is that it does not color functions allowing any code to start a goroutine. But with Context needed for any code that can block that advantage is lost with ctx argument being the colo
305.
▲
by
fpoling
2y ago
The only thing that changed was Context and its support in networking and other libraries to do asynchronous cancellation. It made managing network connections with channels somewhat easier. But in general the conclusion still stands. Chan
306.
▲
by
fpoling
2y ago
I once read a book from 1982 that was arguing about CSP implementation in Ada that it lead to proliferation of threads (called tasks in Ada) and code complexity when mutex -based solutions were simpler. Go implementations of CSP somewhat mi
307.
▲
by
fpoling
2y ago
Plus aircrafs can use Earth gravity map. Sensors became accurate enough to detect minuscule changes in gravity strength to position aircraft to few hundred meters.
308.
▲
by
fpoling
2y ago
Thanks, I stand corected. Rust does not allow to initialize globals with arbitrary code running before main even with unsafe. One more point to consider Rust over C++.
309.
▲
by
fpoling
2y ago
Java could have really nice security if it provided access to OS API via interfaces with main function receiving the interface for the real implementation. It would be possible then to implement really tight sandboxes. But that ship sailed
310.
▲
by
fpoling
2y ago
That will miss comments and documentation.
311.
▲
by
fpoling
2y ago
Most languages have that early init problem. C++ allows global constructors, Java has class statics, Rust can also initialize thing globally. Even C allows library initializers running arbitrary code. It was used to implement that attack ag
312.
▲
by
fpoling
2y ago
Rust does not generate machine code itself. It uses LLVM to do that and there is no proof that the transformations done by that continue to keep the borrow checker guarantees. One just assumes with sufficient testing all bugs will be discov
313.
▲
by
fpoling
2y ago
Opera browser was not profitable for like 15 years and still became rather profitable eventually to make an attractive target to purchase by external investors. And even if not bough it would still made nice profit eventually for the origin
314.
▲
by
fpoling
2y ago
At work we went back to a Docker build to make reproducible images. The primary reason is poor cross-compilation support in Nix on Arm when developers needed to compile for an amd64 service and derive image checksums that are put into tooli
315.
▲
by
fpoling
2y ago
The first principles here refer to the basic equations of the Standard Model. There were a lot of alternative theories in sixties and seventies but eventually they were disproven experimentally and only SM survived. But the problem with SM
316.
▲
by
fpoling
2y ago
So far nobody expected this effect so no attempts were made to derive at least the bounds on it from the first principles. With strong interactions it may require a lot (like many man-years) of efforts, but it will be eventually done if no
317.
▲
by
fpoling
2y ago
Rust compiler assumes that unsafe code still follows the borrow rules and optimizes code based on that. So if that is not the case, the consequences can be bad. For example, there was a bug in Rust OpenSSL bindings where OpenSSL had not doc
318.
▲
by
fpoling
2y ago
Strong interactions are notoriously difficult to calculate from the first principles. So typically it is not done, but rather theoreticians try to guess the result and use the experimental data to partially fill the calculation gaps. So I e
319.
▲
by
fpoling
2y ago
Thanks, I was mistaken. However any reasonable tolerance includes broad free speech so Popper was more generic.
320.
▲
by
fpoling
2y ago
Karl Popper pointed out that the free speech must defend itself. Otherwise a party that wants to put an end to it will use it for own propaganda and eventually get into power destroying free speech. Of cause it is hard to get the balance ri
321.
▲
by
fpoling
2y ago
This is poorly discussed in the article and AFAICS it reaches wrong conclusion. I think the energy comes from weakening of the magnetic field and the energy stored within it, not from slowing down earth rotation. Earth as the result may rot
322.
▲
by
fpoling
2y ago
If one needs location, then the magnetic field can be measured directly. It is already considered as a potential alternative for GPS, https://www.electronicdesign.com/markets/automation/article/... The main p
323.
▲
by
fpoling
2y ago
Flatpack does not require user namespaces. bubblewrap, the tool Flatpack uses to secure things, can be installed set-uid and can then setup the sandbox without the user namespaces. Chromium-based browsers also include own setuid tool to set
324.
▲
by
fpoling
2y ago
These days Unix sockets for system daemons should be placed under /run with permissions that only a particular daemon can access for binding. With systemd service and socket units it is trivial to do.
325.
▲
by
fpoling
2y ago
Russian business is very complex. Just consider that due to sanctions many companies needed to quickly learn how to operate with cryptocurrencies, find new trade partners etc. Or like building companies switched to Russian military contract
326.
▲
by
fpoling
2y ago
Russia has been spending all gains in economy on military for the last 15 years. Ability of local businessmen to quickly find new trading partners in Asia is one of the primary reasons Russian economy did not collapsed under suctions and th
327.
▲
by
fpoling
2y ago
> because this is death to entrepreneurship This does not follow. Even in highly corrupt authoritarian countries entrepreneurship can flourish. Just consider Turkey or Russia. In such places one quickly learn whom to pay with corruptio
328.
▲
by
fpoling
2y ago
US surely can remove TikTok from the mobile stores and can even force Apple/Google to release an OS update disabling TikTok. That will be sufficient.
329.
▲
by
fpoling
2y ago
Fedora updates kernel to the latest version typically within 6-8 weeks from the release.
330.
▲
by
fpoling
2y ago
Fedora often updates kernel and that already broke laptop support (Thinkpad X1 Gen 13 bought a year ago) for me twice requiring to revert to older kernel. Also few years ago a kernel update made a laptop that was 7 years old non-functional.
More ›