Better HN
topnewbestaskshowjobs
Log inSign up

usrbinbash

4,687 karma · joined Dec 4, 2021 (4y ago) · 1,693 submissions

Submissions

comment 4y ago · link · parent

For the same reason why my reply to the question: "Hey, can you fix my printer" has always been: "No, I cannot."

Just because some things are very losely related, doesn't mean the skills between the two are transferable.

comment 4y ago · link · parent

> I'm curious, as a C developer, would you say that you prefer Go over Rust?

Not the guy you asked, but coming from a similar background: Yes, I absolutely would.

Reason: Rust is an amazing language: Amazingly safe, amazingly fast, amazingly complicated. And the last isn't an advantage but a huge showstopper. What do I get from Rust over Go? A bit more performance. Okay, but I also get that from C, so the real question is, what do I get from Rust over C? Memory safety guaranteed by the compiler. Cool. But in exchange, I have to learn a language easily as complex as C++, but completely different from C.

No thank you.

Bottom Line: For me, the advantages of Rust over C do not justify the added complexity, not even close.

comment 4y ago · link · parent

And if the government doesn't fund science, the only ones who fund it are private investors and companies, which...

a) Are more interested in doing research for their monetary interests. Therapies for a rare genetic disease? Bad luck, not enough money in ~20 patients / year. Better encryption? Where's the money in that? Studies about economic imbalance? Who cares.

b) Are more interested in applied rather than basic research. This is a consequence of a) really, but research that doesn't produce tnagible benefits we can use to make shareholders happy next quarter are not that interesting. Ironically, without basic research, applied research is completely impossible.

c) Are under no obligation to share their findings. Public Research == Public Results. Private Research == Intellectual Property.

comment 4y ago · link · parent

No inlining of assembly is required to vastly improve the performance of Go in many such benchmarks. Pool or Arena Allocation are commonly used techniques and whether or not they are "idiomatic" isn't even up for discussion any more since the stdlib includes the former.

comment 4y ago · link · parent

> But things also get complicated in Go when you start to use concurrency.

Things always get complicated when concurrency is involved. And Go handles this much better than most other languages, with language primitives (go, select, chan) dedicated to the task, and CSP being much easier to handle than memory sharing.

> event driven concurrency with callback functions (as in nodejs) is easier to wrap your head around then channels.

How so?

The code becomes non-linear, what bit of code is executed when and how its synchronized is suddenly up to the event loop, and entire libraries suddenly have to be written around a concept (cooperative multitasking) which OS design abandoned in the early 90s for good reason.

And this isn't even taking into account that the whole show is now much harder to scale horizontally, or that it is only suitable for io intensive tasks.

comment 4y ago · link · parent

> Is it impossible to imagine we might get better at animal agriculture now

Biochemistry is what it is.

So yes, as long as people insist on primarily eating vertebrates (cows, pigs, etc.), it is impossible.

With insect-based meat, the situation would be much different.

comment 4y ago · link · parent

Yeah, about such benchmarks:

https://studygolang.com/resources/12288

https://hacker-news.news/post/28293057

comment 4y ago · link · parent

> The implication being: the statements and solutions to these problems were not available when the Github training set was collected.

But similar ones were, because the amount of code puzzles suitable for such contests is finite. There are differences, but when you have seen a few string-compare problems, you have a pretty good grasp of what they look like, what common paths to solutions are, etc.

comment 4y ago · link · parent

If this happens to a bank (which rarely if ever happens, because few things in IT are as secure as banks), then the transfer can be traced, blocked, and reversed. Since the system is made up of points of control (aka. "gatekeepers"), and all flow, including withdrawal from the system (cash or spending) goes through gatekeepers, there are alot of points of control at whch flow can be controlled, analyzed, and even stopped.

Gatekeepers are not an evil to be overcome, they are an integral part to the security and stability of complex systems.

comment 4y ago · link · parent

The default for any data collection no matter what it is for, should be OFF.

End of discussion.

comment 4y ago · link · parent

I believe it does, because "reality is what it is and doesn't care about opinions" has an interesting implication:

It means, the more we rely on factual evidence and the more we act based on knowledge based on it, the better we can cope with the universe.

To my perception, a central problem of civilization is how much we value opinion, and how much we base our actions on it rather than on hard fact.

If humanity acknowledges that its opinions don't matter, and reality is indeed what it is, then our way forward as a species will become a lot easier.

comment 4y ago · link · parent

> That is true for easily testable truths.

It is true for everything in existence. It doesn't matter how complicated something is, or how difficult it is for humans to grasp: There is a single reality, and an explanation or assumption that does not explain it is either incomplete, approximative, or plain wrong.

comment 4y ago · link · parent

How exactly does WASM provide that better than, say, docker?

comment 4y ago · link · parent

> Civilization is not prepared for this era of cheap, easy disinformation at scale.

Yep, but that's the beauty of reality: It doesn't matter if we accept it or not. It doesn't matter if it's difficult or not. It doesn't matter if we are prepared to handle it. Reality remains inviolate regardless of what we think, want or like.

We, as a civilization, can either accept that as a fact, and increase our chances of making it to a level of evolution and capability where maybe one day we can build Dyson Spheres and travel to other Galaxies, or we can pretend that our opinion matters alot.

The universe and reality won't care.

comment 4y ago · link · parent

Almost nothing human technology does is "CO2 Neutral".

The question isn't CO2 neutrality, but "How much worse is the alternative". And when the alternative is to burn Coal, Oil and Gas, Nuclear power wins by a landslide.

Secondly:

Fossil Fuels have to be mined, transported and stored as well. The components of Wind and Solar energy farms have to be constructed from resources which have to be mined and processed. Power plants, be they coal, nuclear, solar, whatever, need to be constructed and maintained.

comment 4y ago · link · parent

Sadly that won't change as long as the red herring "BUT CHERNOBYL BLEW UP!" still works in public opinion.

https://en.wikipedia.org/wiki/Nuclear_and_radiation_accident...

comment 4y ago · link · parent

The good thing is: Our opinions don't matter in the face of reality.

Gravity is an attracting force.

Uracil pairs with Adenine.

sqrt(9) == 3

No amount of public opinion, support or refusal will change that, because the universe simply doesn't care how many "Likes" an idea has.

comment 4y ago · link · parent

Can we prove there is no teapot on an orbit around the sun between earth and mars, too small to be detected by telescopes?

The question isn't "Can we prove that we are not in a simulation", the question is "How likely is it that we are in a simulation".

And the answer is: We don't know.

Sure, there are hypotheses about how super evolved species (Matrioshka-Brain-Capable) would simulate multiple universes, so its likely that ours is not the real one, but this assumes that we know anything about what a species on that level of scientific capability would do...which we don't.

comment 4y ago · link · parent

It replaced them from something VMs were unsuited for to begin with (running isolated environments which don't need sepearately emulated hardware).

comment 4y ago · link · parent

> WebAssembly itself is independent of the web or the browser.

Sure it is, but let me, a backend developer, ask a question:

Why would I want to use WASM for anything running on my server, when I can just write it in Golang, and get actually native performance (not "near-native"), plus real GC, on top of an already thriving ecosystem of libraries and tools?

And lets replace Golang with Rust, C, C++, or Java, or even with a more dynamic language like Python or node if its not performance-critical...the question remains.

My point is, why would I use WASM for something other than what it was originally designed for (running things in the browser), when I already have a big collection of really powerful, established, stable, well supported backend Languages?

What does WASM bring to the backend-table that the current tools cannot provide, or provide badly?

comment 4y ago · link · parent

> Even python is a bit of a PITA to package and run where interpreters already exist

That's mostly a result of everything and everyone having a different opinion where python modules should live in the filesystem, and the default behavior of a lot of package managing software to replace python installations between versions instead of shoving them into different packages and be done with it.

> The advantage of a VM or vm-like container is exactly that you don't need to care about that stuff as much.

The same advantage exists for compiled languages, provided that dependencies are either staticaly compiled, unambigously listed, or shipped with the software as a package.

A similar effect is achieved in Python Projects by virtualenving everything, essentially stuffing all dependencies, including the correct version of the interpreter, in one location as a single package.

comment 4y ago · link · parent

> I don't understand why this is a C problem

Because it isn't a C problem. C has been basically stable for decades.

C++ is free to overload itself by piling ever more stuff onto itself, but any problems this language has, are not problems of C, or problems C needs to fix.

comment 4y ago · link · parent

Mine has a little compartment where I put in a block of pressed powder (a "tab") and then close it.

If I want more, I put in 2 tabs.

If I want none, I put in no tab.

If I want my dishes to smell like soup, I put in a buillon cube. (Not recommended by whoever built the Dishwasher)

comment 4y ago · link · parent

So what is the <title> then again exactly?

Because my takeaway from the article is this: C++ piled loads and loads and them some loads of stuff onto a slim, easy, comprehensible language, is now a gigantic pile of complexity. that has precious little to do with its roots any more...and every attempt to solve its problems includes piling on more complexity.

So, how is that a problem of C?

C is not responsible for C++, simple as that.

comment 4y ago · link · parent

WebAssembly will not displace Server Side languages.

"oh but it compiles once and then runs everywhere!!!!"...ceased to be an argument over 15y ago, when it became clear that the "backend" is synonymous with linux, and almost every machine has the same architecture. Plus, the time required by the compilation step is not prohibitive in a CI/CD pipeline.

comment 4y ago · link · parent

Oh, I have seen worse things in student dormitories.

Ever seen someone use the coffe-maker to cook instant ramen?

comment 4y ago · link · parent

> Maybe a new cleaning powder comes with a new algo.

Or it is treated by the same algorithm like all the other cleaning powders, which is: "mix with water then spray through nozzles". Strangly enough, this has worked great for decades without firmware updates. For the longest time it even worked without firmware.

comment 4y ago · link · parent

And now for the grand question:

    Why the heck does a dishwasher need firmware updates?
And in case the answer is "because its on WiFi and thus needs security updates":

    Why in the flying heck does a D I S H W A S H E R need to be on WiFi?
1
434445
57