Better HN
topnewbestaskshowjobs
Log inSign up

LessDmesg

45 karma · joined Oct 12, 2019 (7y ago) · 233 submissions

Submissions

comment 7y ago · link · parent

Human civilizations have always blossomed in warmer climate. All this scaremongering about global warming ending human civilization and destroying nature is just laughable.

comment 7y ago · link · parent

You're right. Lisp syntax makes the totally wrong tradeoff of being slightly easier to parse for the machine, and much harder for the human. An eloquent name for it is that Lisp fails the squint test https://www.teamten.com/lawrence/writings/the_language_squin...

comment 7y ago · link · parent

It's not about performance. Unary numbers are extremely cumbersome and confusing for proofs, because people are used to working with integers using arithmetic, not pattern matching. "x + 5" is infinitely better than "Succ(Succ(Succ(Succ(Succ(x)))))“. I suspect that dependently-typed languages will get at least a 50% boost in mindshare once they ditch the unary and rewrite the tutorials with regular numbers.

comment 7y ago · link · parent

It's all in the books. Gang of Four, etc. Learn from good books instead of bloggers who have a type called "Backend" and make brilliant discoveries that DI and nominal typibg are bad despite the whole industry using them successfully.

comment 7y ago · link · parent

I hate the flavour of OOP present in C++/Java/C# as much as the next man, but the principles are sound. Defining the interface at the user side is like a conflict of interest, like a kangaroo court. It's just bad architecture.

comment 7y ago · link · parent

This is wrong, bad advice, for the same reasons that structural typing is wrong and nominal typing is right. It goes against all OOP and modularity principles. Interfaces should never be declared at the use site because an interface is a contract promised by the implementor.

As for the example, it feels contrived and unprofessional. There should never be a monolithic "Backend" type. Functionality should be separated into services, each one with an interface, and each one injected dynamically for easy testability and upgradeability.

comment 7y ago · link · parent

We need another breakthrough though - a massive increase in power production. Current power grids are totally incapable of providing sufficient energy should all cars become electric.

comment 7y ago · link · parent

So there are no unbiased sources on why carbon dioxide is evil? You do understand that CO2-hate is like a religion, don't you?

And I have in fact gone to the IPCC's site and skimmed over a report. It was filled with phrases like "could reach ... by 2100" and "is projected to reach...". So no hard science, just empty speculation.

comment 7y ago · link · parent

Insufficient, will never be met, and who cares. Humans don't affect climate anyway.

comment 7y ago · link · parent

I think what he meant was that we have no proof that "singularity" even exists. Cosmologists have a penchant for coming up with infinities: infinite density in the moment of “Big Bang", infinite time dilation at an "event horizon" etc, but in actual observation nothing infinite was ever seen. A particle's field is represented with an 1/r2 function but somehow there are no infinite fields in real matter - black holes may turn out to be something similar too!

comment 7y ago · link · parent

Order of headers should not matter in any sane language. This just proves that C++ is not a sane language. Yet Bjarne Stroustrup keeps getting engineering awards! If I were king of programming languages, I would forbid any new lines of C++ to be brought into this world, and install mandatory programmes for rewriting legacy C++ code in sane languages.

comment 7y ago · link · parent

Classical Latin didn't have a phonetical alphabet, though. Long and short vowels were not distinguished, letter "u" didn't exist, and Greek borrowings were written non-phonetically (e.g. the "ph").

comment 7y ago · link · parent

You're not quite right. Classical Latin had a lot of things that virtually no modern language has: a fully developed passive conjugation, a fully developed conjunctive, and - the cherry on the cake - a rigorously expressed separation between phases (consecutio temporum). Latin is quite magical, and even if it was actually more crude than some of its contemporaries like Ancient Greek and Sanskrit, it's still sweeter than virtually all modern languages, some of which don't even have a past perfect tense or more than one conjunctive form.

comment 7y ago · link · parent

Even Haskell doesn't get it right: there are no exhaustiveness checks on pattern matches (something OCaml has), and while sum types provide closed unions, getting open unions is clunky (have to use typeclasses). OOP languages are imperfect in the opposite direction: open unions out of the box (inheritance) but no closed unions and no pattern matching. Seems language authors on the whole are bad thinking design spaces through. "The user might want any of three simple things X, Y, or Z, so let's choose the one that our language will support well, the one it will kind of support, and the one it won't support whatsoever just for the hell of it".

comment 7y ago · link · parent

Having switched recently from Firefox to Brave, I must say it's a pretty nice browser but with some unwanted quirks.

1) It tries to also be a bit-torrent client but the downoad doesn't even survive a tab closing. Pretty frustrating to lose a big long download that way. 2) new tabs have a weird eye-bleeding background and there's no way to change it

1
45678