HNHacker News
TopNewBestAskShowJobs

NohatCoder

1,247 karma · joined September 24, 2017

submissionscomments
NohatCoder··on Is WebAssembly magic performance pixie dust?
I really think WebAssembly missed the target. What we really needed was a language doing away with the dynamic nature of JavaScript, while adding 64 bit integers and generic SIMD instructions, and keeping high level features like strings and automatic memory management.

Instead we got the most bare-bone language imaginable, making everyone have to reinvent the wheel for everything. That is not actually fast. If WebAssembly had stuff like basic string manipulation, browsers could easily map that directly to efficient implementations. But with the current rules everything has to be provided as basic instructions that must be compiled under much stricter security rules.

WebAssembly is not assembly, it is an intermediate representation shared between two compilers, and it is actually pretty bad at that.

NohatCoder··on Is WebAssembly magic performance pixie dust?
Yeah, and most of the time if "JavaScript is slow" it is because of DOM manipulation or network latency, WASM can't even do those things.
NohatCoder··on NFTs Are a Pyramid Scheme and People Are Already Losing Money
The climate impact of baseball cards is significantly lower.

It turns out that when you take stupid and scale it up massively, it becomes even more stupid.

NohatCoder··on A Short Cautionary Tale About Refactoring
Try to actually design the test that would have caught this. There is no way in this universe that one can blindly rely on tests when refactoring.
NohatCoder··on Why are tar.xz files 15x smaller when using Python's tar compared to macOS tar?
A quick note on compressing XML. XML files typically have a high compression ratio because they consist of mostly redundancy, but compressing redundancy isn't free, you still end up with some overhead in the compressed file due to the redundancy. So if you pack the same data in a denser format, and then compress that, you typically end up saving a good chunk of space relative to the compressed XML file.
NohatCoder··on Why are tar.xz files 15x smaller when using Python's tar compared to macOS tar?
Your difference might be mainly single threaded vs multi threaded decompression. This doesn't typically transform into a real-world speedup when browsing the web, as one will typically run multiple decompression streams in parallel anyway. Zstd is definitely an improvement on Gzip, but not by that much.
NohatCoder··on Write site-specific extensions to replace sites' JavaScript code
You have not actually suggested any concrete statements. I still have no idea what he has said about Prism, the best I got is that he linked to an article from his website.

The Right to Read is certainly interesting, maybe not the best written short story, and it is still quite far from having come true. But it is a nice bucket list of things to be aware of while shaping the future, so points for that one.

NohatCoder··on Write site-specific extensions to replace sites' JavaScript code
Modifying and improving websites this way is great, I have done it myself. But the article suggests to reject the default behavior of well working sites solely because of the license of the code, that is where the ratio of ideology to real-world benefit goes haywire.
NohatCoder··on Write site-specific extensions to replace sites' JavaScript code
Groups of people have invented and used gender neutral pronouns long before their/them became mainstream. So most likely these are the words that the author have used for many years, and they don't want to change.
NohatCoder··on Write site-specific extensions to replace sites' JavaScript code
Can you give an example of a widely mocked Stallman statement that has been proven true?
NohatCoder··on New Model M Is an American-Made Keyboard That Puts a Spring Back in Your Typing
Wow, they actually have a pure Danish model. That afaik makes them the only boutique keyboard company that doesn't try to sell Danes a combined "Nordic" keyboard where you have to manually ignore the Norwegian and Swedish markings.
NohatCoder··on Compilers are hard
For added easiness, outputting high-level language code instead of machine code is a "cheat" that is often good enough, and you can typically borrow a lot of the high level features with relatively little effort. Say you want to run a domain specific language in your program? Include V8, and write a compiler that turns the DSL into JavaScript. You get much better performance than a simple interpreter, sandboxing, and somewhat useful error messages.
NohatCoder··on Libyear – a simple measure of software dependency freshness
Yes.

Are software metrics still useless?

Also yes.

NohatCoder··on The Remarkable Number 1/89 (2004)
Cool thing is, this is not a special property of 1/7. 100 / 7 is 14, with a remainder of 2, therefore the series starts with 14, multiplies by 2, and divides with 100 in each iteration. For instance 10 / 7 is 1, with a remainder of 3, therefore 1/7 is also equal to 0.1+0.03+0.009 etc. And 1/8 is 0.1+0.02+0.004 etc.
NohatCoder··on Grubhub sued for listing restaurants without permission
If you register officiallegostore.com, put the Lego logo front and center, and start selling Lego, used or otherwise, I can assure you that you will get in trouble.
NohatCoder··on Image Scaling Attacks
Most often scaling and filtering is an integrated process, when one says bilinear it is usually implied that it is combined with nothing else.
NohatCoder··on Image Scaling Attacks
Bilinear and trilinear with mipmap is still relatively poor. 3D also use anisotropic filtering, that eliminates a lot of artifacts, even in 2D scenarios.
NohatCoder··on Image Scaling Attacks
It is a very common, and often overlooked issue in image processing. Bilinear is widely used, and not particularly good. For large factor downscaling it is reminiscent of nearest pixel.
NohatCoder··on Rob Pike's Rules of Programming (1989)
That is a great word.
NohatCoder··on Nvidia is reportedly in ‘advanced talks’ to buy ARM for more than $32B
Maybe it just dawned on them that calling upon the wrath of an army of angry gamers isn't such a good idea.
NohatCoder··on Why I’m Writing a Book on Cryptography
It is easy. The + symbol doesn't mean plus (except when it does), and that is how it is all the way through.
NohatCoder··on Why I’m Writing a Book on Cryptography
There is no such thing as ready-made solutions in cryptography. There are libraries, but without a strong understanding of the problem domain people will invariably use them wrong.
NohatCoder··on It's time to take alternatives to dark matter seriously
The question is how the f do we know the mass of a galaxy in the first place? We can't have the discrepancy until we have two distinct methods of measuring the mass of a galaxy.
NohatCoder··on Carving out a niche as a small artist on Spotify
Actually that makes it slightly more than $1/100 plays.
NohatCoder··on Those who exercise free speech should also defend it even when it’s offensive
>All speech besides threats of violence needs to be free, or we can't progress as a society.

The problem with that simple rule is that there is no simple way to distinguish threats. Take a statement like "I don't think black people deserve to live", technically not worded as a threat, but the sentiment is no different. Similar examples varying in strength, obfuscation and contextual meaning can be produced in unlimited quantities. No hard rule can deal with all this, so have to debate what should and should not be allowed.

NohatCoder··on Scientists baffled by decision to stop a pioneering coronavirus testing project
>This isn't rocket science, it's basic regulatory compliance

You think rocket science is harder than regulatory compliance? At least the rules of physics don't change all the time.

The majority of US health regulations have been written by medical corporations in order to keep competition out. While no regulation is certainly bad, current regulation for a large part simply drives up prices and lowers availability. Far more people in the US are killed by red tape than medical quacks.

NohatCoder··on Ampyx Power: Wind energy systems using tethered wings above 200 meters
The kite goes sideways relative to the wind, spooling out the tether, generating power, and speeding up. Just like a high-speed sailing boat it can reach several times the speed of the wind this way. Then when time comes the kite turns into the wind, letting the tether spool back in at no real energy cost (but not generating power during this period). The kite then turns again to repeat the process.

Note that while there are several different techniques, they all rely on the kite moving fast, this allows it to sweep a large area relative to its size, thus working around the fundamental limit that you can't extract more energy than some percentage of the directed kinetic energy contained in the air molecules moving through the swept area.

NohatCoder··on Ampyx Power: Wind energy systems using tethered wings above 200 meters
Then you have to connect them all with sea cables, those add up if you need another km for every base you install.
NohatCoder··on Ampyx Power: Wind energy systems using tethered wings above 200 meters
I wonder how closely these can be deployed? Safe operation might require large distances between base stations. If they can't beat conventional wind mills in power per area, that may be a deal breaker in many scenarios.
NohatCoder··on GM’s CEO Offers to Make Ventilators in WWII-Style Mobilization
Tubes down the lungs is definitely a bit tricky, not all patients will require that model though. As for careful monitoring, that is something the machine does on its own, as long as it has been configured correctly for the individual patient.
← PreviousPage 10 of 14Next →