Better HN
topnewbestaskshowjobs
Log inSign up

LessDmesg

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

Submissions

comment 6y ago · link · parent

Saved! Nice book.

comment 6y ago · link · parent

Birds are dinosaurs, the only surviving clade of them. You don't have to watch Jurassic Park to see a living dinosaur, just look at a pigeon or crow!

comment 6y ago · link · parent

Nope, the anthropic principle does not imply that probability is 1. It's not even really a principle, just a post-factum observation. There may have been no one on Earth to write this stuff on a smartphone, ever. There might have even been no life in our Universe, ever. We shouldn't take these things for granted.

comment 6y ago · link · parent

Agreed. Birds have an inheren limit on head weight, which limits their brain size. They do manage to use what they have quite well (parrots are also remarkable in that regard), but the limit is there. Ultimately intelligence is a tough nut to crack for such a stupid and limited thing as evolution: some have a big brain but no hands, some have hands but cannot have a big brain because space is used for something else (e.g. bears), some have hands and space for brains but cannot increase head weight because not erect walking etc. Once you're erect, there's a tendency for arms to atrophy (think T-rex and ostriches). Jaws and the nasal cavity tend to take up space too, so an intelligent species needs to have weak olfactory sense and be a meat/fruit feeder. It's a miracle that a species like ours could combine all the necessary, quite fragile, ingredients to develop intelligence.

comment 6y ago · link · parent

I know about CLOS, multi-methods, the meta-object protocol. It's a nice, dynamic OOP system (though I'm not a fan of dynamic languages). The thing is, CLOS isn't Lisp-specific: it can easily be recreated in a language with a normal syntax, e. g. Smalltalk. So there's no reason, ultimately, to sacrifice readability and maintainability to the demons of Parenthethes and Pervathive Macroth like the Lithp acolytes would have us do. Lisp is just a bad tradeoff from the get-go: reading code is more important than writing, language simplicity is more important than extensibility, and macro-writing is secondary to regular code writing.

comment 6y ago · link · parent

I've done it, now I hate Lisp. I've read On Lisp and Let Over Lambda, I've used Clojure in production, and I still hate Lisp, any and all of them. What am I doing wrong? Perhaps it's that reading code is more important than being clever when writing it. Or maybe that Lisp syntax doesn't pass the squint test[0] because it makes the wrong tradeoff of catering to the machine instead of us good ole' humans?

When I make my own language, I'll make sure to make macro calls as clumsy and hideous as possible to discourage their unexpanded use. I'll also make the whole language available at compile time but without syntax manipulation (a la Zig) to make most macros unnecessary.

So no, Lisp is far from "the language to end all languages" or whatever it is you smug Lithp weenies imagine it to be.

[0] https://www.teamten.com/lawrence/writings/the_language_squin...

comment 6y ago · link · parent

It's not meant to be portable. It's just that C is a low-level, weakly-typed language where everything is bytes and bits, and every pointer may be null at any moment. Disregarding type-safety is OK for C, so it's handy to conflate 0 and false (after all, bools are isomorphic to positive numbers modulus 2). It's these other languages who are in the wrong because any high- or medium-level language must have proper Option and Bool types without null or false infecting every type out there.

comment 6y ago · link · parent

malloc() isn't O(1), but allocations in a normal GC are O(1).

comment 6y ago · link · parent

It's not so hard as it is hard to read because of the formalism. Instead of introducing lambda calculus and the fraction-like thingies with Greek letters, CS scientists should just use Python and write an implementation on the fly.

comment 6y ago · link · parent

Because it's too heavy on the "fight the compiler" security stuff. Rust is well-designed all around, but no fun to program in.

comment 6y ago · link · parent

I started reading but stopped when I saw "succ n" and "prev n". Unary numbers are so academic and disconnected from reality that I lose interest in any paper that uses them. Lambda calculus makes me yawn too. Guess I'll be making a programming language on my own to see how far I get without reading TAPL or any CS papers :-)

comment 6y ago · link · parent

You must be trolling... Templates in C++ ARE for metarogramming. The fact that they work as a glorified text substitution (and they are only coming around to fix them in 2020) leaves no apology for the tool.

comment 6y ago · link · parent

Just a few days ago I've read accounts of C++ projects compiling for hours because C++ has a buggy compilation process, e.g. it copies and pastes every header everywhere instead of only one copy. Don't blame developers for obviously flawed language standards.

Templates are of course type unsafe, I'm not sure why you're lying while also admitting that they will only become type-safe in C++20.

Circular references deserves more comment: there is a difference between unmanaged and managed memory. C is unapologetically unmanaged, which cements its position on the embedded scene. But C++ has tried to be the in-between language: you have your raw pointers, and you have your refcount GC (“smart pointers"). And the thing that strikes me is the Cppistas have overwhelmingly chosen GC, but their language's GC is the worst kind, with circular references, performance costs (yes, smart pointers have a lot) and ultimately without memory safety (as raw pointers are still there). They've truly chosen tge worst of both worlds yet don't have the integrity to admit that the future is with managed, traced GC. C++ is like driving a car from the fifties and bragging about how comfortable and modern it is with that new internal combustion engine!

comment 6y ago · link · parent

Because C++ is one of the most complex languages in the world, hence a pain to interop with. C FFIs, on the other hand, are ubiquitous.

comment 6y ago · link · parent

> modern C++

> pleasant

Nice joke. Hour-long compilations, type-unsafe templates with unreadable errors, and circular references are considered pleasant now?

comment 6y ago · link · parent

So what if China isn't running death camps per se? The problem is that it's running something of the magnitude of Nazi Germany and getting away with it. No sane government would go 100% Nazi overnight, but if they see that being 50% Nazi is OK, then they might raise it to 75% etc. It's a game like all authoritarian politics. They're probing ground, and many other authoritarians around the world are looking at the result. This is why it's important that China gets called out for its atrocities, and called out hard.

comment 6y ago · link · parent

Monads are not a superior abstraction. Their composition is not commutative and, worse, not even closed (a composition of two monads may not be a monad). Monad transformers are clumsy syntax-wise and have a performance penalty. When I used Haskell, monads were the most meh part: not a pain, but not anything too cool either. Just some syntax sugar to remove a repetitive wrapping function from a few lines of code.

comment 6y ago · link · parent

This actually gladdens me instead of saddening. Monads are just a big can of giving your code implicit magic superpowers: a way to make write-only code that doesn't look like Perl. I would rather have my semi-colons good old unprogrammable no-ops than guess which monadic mess is behind them. Explicit is better than implicit.

comment 6y ago · link · parent

"Bad use of header files" is the fault of C++, not the developers. Until Stroustrup fixes the header processing behavior (it's 2019 already...) C++ will not become a sane language to use for new development.

comment 6y ago · link · parent

Zig is beautiful, I'm having high hopes for it.

comment 6y ago · link · parent

D is pretty much the opposite of Go, a pinnacle of feature bloat instead of stripped down simplicity. A C++ killer that turned into a kind of C++ with GC.

comment 6y ago · link · parent

I've never taken anti-depressants and don't understand why so many people do. If you can't calm down your own mind, then you've got a problem no pill is going to solve - and the fact that people abuse these pills or keep taking them habitually proves this.

comment 6y ago · link · parent

It's an option that only works if there are buyers for that debt. That isn't always going to be the case. For instance, all new debt issued by Italy has been scooped up by ECB for years... The US is still a much more credible sovereign but that's just for now.

And no, governments don't always pay, they happily and often default - just remember Greece of recent years. And there is a word for stopping to pay for things the people want: austerity. Haven't heard of that happening around the world recently, I presume? The US economy is still the strongest in the world, but the debt crisis will get it too, no doubt.

comment 6y ago · link · parent

Federal debt is 20T, so what? At least corporations can be held responsible in court. When the federal government defaults on its debt (yes, that's a "when" not an "if") it's going to take a whole army to make it pay.

comment 6y ago · link · parent

This so much! Go would be a great language if it had generics and no "interface {}". I'd use that over any flavor of Rust any day.

comment 6y ago · link · parent

Like the relationship between Descendent Studios and publisher Little Orbit. A virtually finished game gets frozen with no end in sight, developers work for free, and the publishers aren't available for comment...

comment 6y ago · link · parent

> 66% of current mexican Y chromosomes are of european ancestry, while 90% of mexican mitochondrial dna comes from native ancestry

That's some damn good virility on the part of Spanish men. Must've been having endless binge coochie-coochie with the local senoritas))

comment 6y ago · link · parent

The thing that's wrong with Forth is it promotes eschewing verbal identification of variables for the sake of positional. This is promoted as good mental exercise, but is just bad language design. As Rich Hickey said, we humans prefer to identify things in terms of keywords, not positions. For any method with more than a couple parameters, kwargs are more convenient than positional arguments or, worse, implicit args on the stack. This is why concatenative languages are doomed to be just a forgotten cul-de-sac off the highway of the history of programming languages.

comment 6y ago · link · parent

As my physics lab teacher taught us, all breakthroughs in physics happen after new better measuring instruments become available. Modern cosmology is starved of such new equipment, hence devoid of any real progress, having to wallow in theoretical bogmires instead. I would suggest all those funds and scientists be instead diverted to researching nuclear fusion, which is the more pressing goal for humanity right now.

comment 7y ago · link · parent

Sounds like fearmongering with no basis. There are lots of areas which would benefit from warming and become food producers (Siberia and Canada come to mind). As for Southeast Asians: they're already used to living on water, with stilt houses, rice terraces etc. Humans can cope, as tgey always have. Overall, there will be more water, more warmth and more civilization.
1
45678