HNHacker News
TopNewBestAskShowJobs

h91wka

371 karma · joined November 23, 2017

submissionscomments
h91wka··on How South Korea Reined In The Outbreak Without Shutting Everything Down
> note that you're agreeing with me here

I am not. My point is that solving the problem of mask shortage by allowing the infection to spread at full speed is like setting your home on fire to deal with a clogged pipe.

h91wka··on How South Korea Reined In The Outbreak Without Shutting Everything Down
> This was a coordinated (dare I say "propaganda") campaign by US and other government officials in order to try to avoid mask shortages[1]. A noble goal, sure -- but the net result is that people are now misinformed about the efficacy of masks.

There's nothing noble about it. This is extremely short-sighted. What is easier to solve, shortage of masks, or shortage of ICU beds and medical personnel?

I would imagine that a face mask is a relatively low-tech good that can be mass-produced at scale. You cannot ramp up production of ICU beds and nurses and doctors. If this is true, then the consequences of this "noble" decision will make Chernobyl blush.

h91wka··on How South Korea Reined In The Outbreak Without Shutting Everything Down
My key takeaway from this entire situation is that authorities in Europe and USA don't understand how exponent works. Every country that is now suffering from the pandemic went through "c'mon, it's just 10 cases" phase. We had ~two months to observe how the situation unfolds in Asia, yet learned nothing. As for me, back in late February when I checked the dashboard and saw that ~10 cases were registered in my country, I decided that "nope, I am not going to use public transportation any time soon".

It should be mandatory for any politician or government clerk to take an exam in differential equations. There _was_ time to prepare, and there was a chance to contain the situation.

h91wka··on Ask HN: How to self-study physics?
Short answer: not every physicist works in a lab. Theoretical & mathematical physics are entirely about working with mathematical models of phenomena that other people observed in a lab. It's enough to understand that any theory is rooted in the experimental, and should be falsifiable by it.
h91wka··on Unsupervised learning of probably symmetric deformable 3D objects from images
Please fix the title of submission. It is " Unsupervised Learning of Probably Symmetric Deformable 3D Objects from Images in the Wild". No anime examples to be found in the paper :(
h91wka··on WolframScript enables Wolfram Language code to be run from any terminal
This article pales in comparison with a presentation where he described a new Wolfram language feature (that was basically reflection) as New Kind of Programming no less. My theory is that this kind of marketing is very efficient against old-school professors who used to know Fortran, and are now in charge of spending.
h91wka··on WolframScript enables Wolfram Language code to be run from any terminal
Maple's PDE solving abilities always made me want to yell "witchcraft!".
h91wka··on WolframScript enables Wolfram Language code to be run from any terminal
P.S. I actually remembered one area where Maple is still absolutely superior, that is plotting. It doesn't require to explicitly set argument range, it tries to find features of the function and adjusts the range to include them. AFAIK, Mathematica still doesn't do this.
h91wka··on WolframScript enables Wolfram Language code to be run from any terminal
MapleSoft Maple was on par with Mathematica, when I worked with both (ca 2010). Not sure about current state of affairs. Maple's embedded programming language is also quite a bit nicer.
h91wka··on TornadoVM: Running Java on GPUs and FPGAs
> as properly organized C++ codebase doesn't have problem

I'm still having hard time to believe that kernels optimized for SIMD architecture will be useful on CPU and vice versa. And OpenCL people advertised this, if memory serves me well.

h91wka··on TornadoVM: Running Java on GPUs and FPGAs
> You don't need to be a genius to run a multiplication of two arrays on a GPU.

You don't need to be a genius, but you need to know a lot about low-level stuff. "Simple" matrix-vector multiplication is a task where quirks of hardware already make quirks of the language fade in comparison. You need to find out how to split your task into blocks to minimize access to global memory, you need to manage your shared memory, etc, etc. _Somewhat_ performant matrix-vector multiplication algorithm looks nowhere close to textbook definition because of this. So sticking Java or whatever popular language on the problem is not going to make it much more accessible, as you still need very specific knowledge to not waste electricity by writing an algorithm that is 5-10 times slower than it should be, because all it does is waiting for global memory.

h91wka··on TornadoVM: Running Java on GPUs and FPGAs
Same goes for GPGPU
h91wka··on TornadoVM: Running Java on GPUs and FPGAs
> just to avoid the need of a "host" environment / CPU?

Why would you need to avoid that?

h91wka··on TornadoVM: Running Java on GPUs and FPGAs
No. Language was not a problem at all. For people who are accustomed to writing code for modern CPUs, switching languages is no big deal: they all perform as good as compiler and language runtime are designed. That's because CPUs are forgiving to the programmer, and they employ a lot of techniques to run _arbitrary_ code well. GPUs were super "dumb" at the time, but they had truckload of ALUs, and people wanted to maximize usage of ALUs at all costs. Because running a power-hungry cluster on a task for one month or two months actually makes a lot of difference. So you choose a tool that gives _the most control over tricky hardware_. And this is going to be a vendor-provided tool. So, if CUDA was based on Forth or Unlambda instead of C++, people would've used it anyways.

OpenCL advertised "write once, run everywhere" approach, it was completely bonkers when it comes to HPC. Optimizations that one applies on different hardware make code look completely different. It has its niche, but not in HPC. I am no longer in this industry, so maybe things changed. But at the time, some teams picked up OpenCL and quickly dropped, as it didn't give enough bang for a buck, and tooling didn't compare with rather polished CUDA stuff.

h91wka··on Mozilla’s plan to fix internet privacy
1) Aforementioned companies don't market themselves as "privacy-centered" 2) If you re-read the original post, you'll notice that I was talking about trends. Increasingly aggressive telemetry and "interest-based" features is a relatively recent trend in Firefox, so give it some time before comparing it with megacorps that developed such stuff for years.
h91wka··on Mozilla’s plan to fix internet privacy
And why do you think this whole "interest based" business exists?
h91wka··on Mozilla’s plan to fix internet privacy
> More reasons to trust Mozilla?

I think Cliqz incident and Shield Studies AR Game incident prove that you can trust Mozilla as much as any other huge corp.

h91wka··on I Was Wrong about Nix
Some language-specific build systems get their ability to work with the online repositories deliberately broken.
h91wka··on Mozilla’s plan to fix internet privacy
Does concept of "estimation" ring a bell to you?
h91wka··on Mozilla’s plan to fix internet privacy
It's funny how Mozilla preaches privacy, but if you open `about:config' and count

1) parameters that include word "telemetry"

2) everything that looks like a unique token

3) "mozilla.org" URLs

you'll see that the sum is steadily going up with every release. It leaves me under impression that Mozilla is trying to follow Facebook and Google. Lately they removed setting to use a custom page for the new tabs, leaving only choice between blank page and Mozilla-provided "interest based" homepage. I am still using it as the main browser, though, as "lesser evil", but discrepancy between Mozilla's slogans and actual features is pretty chilling.

h91wka··on I Was Wrong about Nix
I have to do a bit of DevOps at work, and I absolutely hate every second of it, hence I tried Nix, and I think it is absolutely awesome. As a software developer, I find the ability to take a cryptographically consistent closure of a program's environment and deploy it in a reproducible way across your dev, loadtest and prod machines _the only reasonable way_ to do things. Not to mention that Nix community is very knowledgeable and open to patches and suggestions.

However after a brief investigation period I abandoned this idea altogether, here's why.

In my opinion, Nix is only worth climbing its steep learning curve when you really utilize its "reproducible environment" concept. As a counterexample, take your home PC environment, which is 1) unique 2) quickly changing. You don't need to reproduce it very often (how often do you upgrade your laptop?). You don't really want a hash-perfect reproducibility there, and a simple Ansible script will work just fine. So, the target of Nix should be "serious enterprise", where you deploy hundreds of machines, right? Well, "serious enterprise" where I am at (banking) will _never_ adopt Nix. There are two main reasons why:

1) NixOS doesn't follow standard Linux filesystem hierarchy. They get around this by patching everything, both manually and automatically. nixpkgs repo contains thousands of patches. To put it in the perspective, OS is one of your trust anchors. I don't want to sound as "no one got fired for choosing IBM" guy, but legal people will scream bloody murder if they see extensive level of patching going on in the distro, for a variety of reasons, not necessarily tied to security. Some of their patching goes very deeply, BTW, and straight up changes behavior of the software.

2) Secrets management: it doesn't exist in Nix. nix store itself is world-readable. There are fundamental problems with some cryptographic algorithms that require entropy, and therefore go against "reproducible environment" concept.

YMMV, but for me Nix didn't do the job, although I studied it deeply, and contributed some patches to nixpkgs. It looks like a futuristic research project. On the outside it is brilliant, but in brutal reality you need to run the ugliest scripts to patch shebangs and what not.

h91wka··on Lumen – Elixir and Erlang in the Browser
Interesting project... I wonder does it have same kind of processes preemption based on reductions like BEAM?
h91wka··on Lilith: x86-64 OS written in Crystal
If it's off-putting to _puritan_ newcomers, then good riddance, I guess.
h91wka··on Message DB: Event Store and Message Store for PostgreSQL
Incorrect. Kafka is a message _storage_. The server can be seen as a distributed persistent append-only log. All broker logic is encoded in the client. Source: maintainer of one of client implementations.
h91wka··on Half-Life: Alyx
Too late. Now I am only feeling disappointed that "after another Half-Life is released" meme has become obsolete.
h91wka··on Why functional programming matters (1990) [pdf]
> This couldn't be further from the truth.

In imperative languages you don't need Edward Kmett to invent lenses for you.

h91wka··on Why functional programming matters (1990) [pdf]
In imperative languages you don't need Edward Kmett to invent lenses for you.
h91wka··on Why functional programming matters (1990) [pdf]
> The best way to tell if someone has no idea what they’re talking about and are just mindlessly repeating other ideas is when they say the phrase “easier to reason about.”

"easier to reason about" is not someone's opinion, it's math. Please educate yourself on formal verification methods before drawing broad conclusions including substrings like "no idea" or "mindless repeating".

h91wka··on Why functional programming matters (1990) [pdf]
Purely functional algorithms and data structures are typically slower. Imperative code is also more concise than equivalent functional code.

The only real benefit of functional programming is that it makes code much easier to reason about. But this difference is so great, that in most cases I am ready to pay the price.

P.S. Just to clarify my position to the commenters who want to convert me: I write code in functional languages most of the time for the living, so I know well enough how ST monad works, about "O(log n) == O(1)" meme, and so on. But I also have some background in HPC, where I used imperative languages. So I have plenty of experience in both paradigms, and I know exactly what are their weak and strong parts.

h91wka··on Stanisław Lem
...and Roadside Picnic.
← PreviousPage 3 of 5Next →