Better HN
topnewbestaskshowjobs
Log inSign up

NohatCoder

1,253 karma · joined Sep 24, 2017 (9y ago) · 431 submissions

Submissions

comment 1y ago · link · parent

It may very well be, it is the type of optimisation where it is quite possible that some compilers may do it some of the time, but it is definitely also possible to write a version that the compiler can't grok.

comment 1y ago · link · parent

But you don't generally need to care if the shader code contains a few branches, modern GPUs handles those reasonably well, and the compiler will probably make a reasonable guess about what is fastest.

comment 1y ago · link · parent

The main problem is overwhelming voters, for a vote to be meaningful the voter has to understand the propositions that they vote for. Given the amount of legislation passed it is quite unreasonable to expect everyone to do the due diligence for every vote.

What might make such a system work in practice is to only let a small randomly selected group of people vote for each issue. You still get a similar representation as a full vote, but with each person having much fewer votes to attend to it isn't overwhelming.

comment 2y ago · link · parent

The Webassembly dev experience is awful, and it needs to be glued together with JavaScript anyway. 99% of web code doesn't care about the performance difference, and anything GUI is wasting more time jumping back and forth to JavaScript to save any time at all.

comment 2y ago · link · parent

Ah, buried in the post-article part. I was wondering how all of the models were seemingly capable of making legal moves, since last I saw something about LLMs playing Chess they were very much not capable of that.

comment 2y ago · link · parent

https://archive.ph/BgZZu

comment 2y ago · link · parent

To me at least, the great value of this site is that people can and do write their honest opinion. Maybe the style of the parent comment wasn't that good, but I agree with the take that there does not seem to be much of value in the project, it enables a style of game that has been done to death by amateurs and indies, and there are probably better tools out there for making that kind of game as well.

Braid features actual novelty in game design, enabled exactly by not using an engine with a fixed view on how a game works. I don't see how this compares.

comment 2y ago · link · parent

The plain servers aren't that bad, but then they get some extra billing in. Traffic is pretty nuts, if you sustain sending on that 10 Gb/s link it will cost you approx $160000 per month.

Then there are all the services that ain't plain servers, those are generally priced at at least a 10x markup, some of them much more than that.

comment 2y ago · link · parent

They are already on AWS, and that is the problem. Probably wouldn't cost 1/10 with normal server leasing, but they have to code their way out of any AWS specific services they rely on before they can switch provider.

comment 2y ago · link · parent

But do they make much of a difference? You have always been able to write:

    myArray.sort(function(a,b){return a-b})
People for some reason treat this syntactic sugar like it gives them some new fundamental ability.

comment 2y ago · link · parent

While this doesn't restore minified identifiers, like the LLM version claims to do, it tends to help a lot with understanding the code. Usually minified code still has the original identifiers in global function names, object attributes, DOM classes and a few other places where it is hard to guarantee no side effects of name mangling. This makes guessing the purpose of the remaining identifiers substantially easier to a human, and it is probably also the main reason why an LLM is capable of making reasonable guesses at what they could reasonably be called.

comment 2y ago · link · parent

To some people Facebook is basically the way of browsing the web, in particular when it comes to news that people don't actively search for.

comment 2y ago · link · parent

Obviously this always depends on what code you compare it to. I don't think there can be much doubt that a well written performance oriented framework-free implementation is in practice always going to be faster than anything using virtual DOM, as one can update simply the parts that need updating without creating the virtual DOM in the first place.

If you assume programmers who don't know what they are doing it is a very different question. Some people will manage to make a train wreck both with and without a framework. But if we assume that there is a skill level where people will manage to make something useful with a framework, but not without it, or vice versa, then I really do not know which way it swings.

comment 2y ago · link · parent

For anyone who can live without <> syntax I made DOM Maker, no compilation step, no injection vulnerability footguns, just make a bunch of function calls in a tree structure, and you get DOM with the same tree structure, complete with non-string event handlers.

Mostly I just do Vanilla.js, but the vanilla DOM creation functions turn really verbose, I got tired of that and created this to cut back on code size and increase readability.

There are other libraries that do something similar, but in my own very biased opinion this is one of the better.

https://github.com/NoHatCoder/DOM_Maker

comment 2y ago · link · parent

That doesn't really matter, everyone know what a Chromecast is, that is worth far more than a descriptive name.

comment 2y ago · link · parent

It is probably easier to add more functionality to existing ALUs. Various instruction sets have added "free" bonus operations, but one could go a step further and allow any two functions from a wide set to be combined, the intermediate value would not hit the registers, and thus save a store and a load relative to two individual instructions.

comment 2y ago · link · parent

It is not a problem that different CPUs have different execution time, the problem is if the same CPU, running the same instruction has a timing difference depending on the data it operates on. In this regard CPUs have actually gotten better, specifically because it is a feature that AMD and Intel has pursued.

comment 2y ago · link · parent

You pretty much answered your own question. ~20 years ago and back. But I think it is also worth pointing out that it has gotten worse, those 20 years has been a steady trickle of new foot guns.

comment 2y ago · link · parent

We had ~30 years of "undefined behaviour" practically meaning "do whatever the CPU does". It is not new that people want predictable behaviour, it simply wasn't a talking point as we already had it.

comment 2y ago · link · parent

The cryptographic constant time requirement only concerns operations that are influenced by secret data. You can't learn the contents of say a secret key by how long it took to load from memory. But say we use some secret data to determine what part of the key to load, then the timing might reveal some of that data.

comment 2y ago · link · parent

There is the difference that this mistake is much simpler. A lot of business people will understand that having a litigation team without even the most basic Streisand filter is a newbie mistake. How they should have/could have protected themselves against the big breakdown is a lot more complicated, even for tech people.

comment 2y ago · link · parent

Telephone roaming charges in the EU.

comment 2y ago · link · parent

Yeah, if he had made $107M instead he would have had the lawyer power to go free.

comment 2y ago · link · parent

Being pessimistic is not the same thing as not trying. On the contrary, if you want to make the future better, focusing on what looks to be going wrong is often the best place to spend your effort.

The optimists in this context are people who don't believe in problems like climate change or the fall of democracy, and therefore do nothing to prevent them. Their optimism is what will destroy society.

comment 2y ago · link · parent

It is beyond me how a CEO can serve at any board, at all, let alone the CEO of one billion dollar corporation serving at the board of another billion dollar corporation.

There are potential issues with non-compete agreements, any and all deals between the companies, hiring and compensation of executives, board members actually having the time to do the job of a board member, and or course also sensitive information leaking to where it shouldn't.

comment 2y ago · link · parent

To all the downvoters: Just because something is obvious to you doesn't mean that it is obvious to everyone else. Three character abbreviations can make context discovery really difficult as simply plopping the abbreviation into Google will quite often produce mostly unrelated results.

comment 2y ago · link · parent

Having written a fair amount of SPA and similar I can confirm that it is actually possible to just write some JavaScript that does fairly complicated jobs without the whole thing ballooning into the MB space. I should say that I could write a fairly feature-rich chat-app in say 500 kB of JS, then minified and compressed it would be more like 50 kB on the wire.

How my "colleagues" manage to get to 20 MB is a bit of mystery.

comment 2y ago · link · parent

At toy scale, yes, just like quantum computers. And since we haven't seen any news of working boson sampling with thousands of photons I assume that it stops working when you try to scale up, just like quantum computers.

New fundamental physical principles are at this stage required in any case, quantum mechanics and general relativity don't fit together, meaning that at least one of them need to be overhauled into something that explains the same observations but doesn't have quite the same maths. The lacklustre performance of quantum computers could be a hint to what needs overhauling.

comment 2y ago · link · parent

Yes, there are people who don't agree with your consensus, that is part of my point, the consensus is not all that universal. And the other part of my point is that if you only count people who have a full time job developing quantum computers as experts then you get a massive bias in opinion, as the sceptics are more likely to pick different jobs.

As for my own belief, I don't know how it will pan out, but I'm inherently sceptical of people who are too certain that it is one way or another, the hard evidence simply does not exist yet.

I'm personally most inclined to believe that the universe is computationally classical, and while quantum physics necessitates that there must be quite a lot more information and processing happening than a Newtonian model requires, it is still a finite, thus putting a finite limit on what speed-up we can gain from a quantum computer. Most likely this pans out as the error correction limit being impossible to reach, but there is also the possibility that more complicated quantum states result in higher per-gate error rates.

I'm open to other conjectures, but if you want to dispel mine I would like to see some hard evidence.

comment 2y ago · link · parent

The strong expert consensus has been reached between a lot of people who would be out of a job if their consensus was the opposite.
12345
15