Better HN
topnewbestaskshowjobs
Log inSign up

LessDmesg

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

Submissions

comment 6y ago · link · parent

I never could get Eclipse to work. To me, it was always a memory and CPU hog spending way too much time doing the simplest things. I do install it once in several years to find out if they fixed performance yet, but to no avail.

comment 6y ago · link · parent

You have some strange ideas about why people use C instead of C++ these days. People continue using C not because C++ lacks coroutines or something else (a strange argument for C which has almost no features to speak of), and not because they hate safety. No, people use C dor the sake of portability, for the sake of embedded systems, and for the sake of utter simplicity where that is required. Weaning them off C to C++ is impossible because C++ already doesn't fit their requirements. In fact, Rust is better suited to embedded devices than C++, so there's no real need to proselytize C++ to C programmers. Or to anyone, I would argue, because C++ is a terrible language nearly impossible to write safe software in, as well as an ergonomical, developmental and compilational pain in the ass.

In fact, I believe that in terms of developer time wasted as well user frustration, C++ is the most harmful language in the history of humanity. Someday I'll put together a page listing the dozens of C++'s design daults. Here's just a single article demonstrating how incompatible with simplicity and correctness C++ is: http://www.icu-project.org/docs/papers/cpp_report/the_anatom...

comment 6y ago · link · parent

Clojure has only one type. Lux lets you define and declare however many types you want, which is more humane. Clojure is a PITA language where they even have a compiler setting that warns you when the interop with Java requires reflection calls which slow down your code. So get this, Clojure takes away your right to define and see proper types, but it still forces you to declare a half-assed, counter-intuitive version of those types whenever you interop with Java (ie almost always), or your code is going to grind to a standstill. Yet when you deal with other people's Clojure code, you get no types, so it's back to guessing about what their code does. And all of that because Rich Hickey hasn't the slightest understanding of type systems (and I know, I've listened to several of his talks, this without falling asleep).

comment 6y ago · link · parent

Yeah, you're correct. The runtime matters more than tge compiler, though, so Haskell must be real close to C.

comment 6y ago · link · parent

Added to my bookmarks, thanks. I especially respect the guy after he lashed out at the PC virtue signaller in the comments. How insufferable do people need to get to bitch about gender in an article about programming languages?

comment 6y ago · link · parent

It's no wonder. C++ is deeply and irreparably broken, yet instead of fixing anything they just pile up more features in an effort to compete with Rust and Go. Modern C++ is like a 19th century horse carriage with a big subwoofer (but you have to bring a bunch of 9V batteries), huge hot-rod wheels (but no amortization so don't even think about going above 20 kmh) and an airplane engine from Rolls-Royce (which is there for the sake of heating only).

comment 6y ago · link · parent

Was because it never caught on. It's worked on by a single person not working full time... Pretty much deadware, unfortunately.

And the main Haskell compiler is implemented in C. In fact, Haskell is represented at one stage of compilation by a C-like language called Cmm. Would it be fair to say that Haskell was inspired by C? What are the main differences that make Haskell much better than C?

comment 6y ago · link · parent

Tl;dr should've just gone fully statically typed from the start. Integrating typed and unityped code is a pain and brings low performance. But Lispers believe in their (lambda x (x x)) and look down on static typing. There was one good Lisp, Lux lang, but it went unnoticed, which is a shame because it's much better than Clojure.

comment 6y ago · link · parent

The key of the matter is that California wants to tax, full stop. The socialist greenies running the state are neck deep in debt and making new exorbitant taxes is their only option. No wonder people are fleeing from the Californian dream in droves! https://www.nytimes.com/2020/01/16/us/california-congression...

comment 6y ago · link · parent

There is no reason. We identify things in terms of words, not positions on the stack. We think "multiply first vector's y coord by second vector's z coord", not "multiply item 15 on the stack by item 12 on the stack". Thus, stack-based languages lose out in usability and are really just a curiosity without much practical applications.

comment 6y ago · link · parent

No amount of new features will ever vindicate C++. The language is so complex and so flawed on every level that it can only be deprecated and migrated away from. The only way to save developer time and woes is not to produce any new lines of C++.

comment 6y ago · link · parent

Lisp syntax was a bad idea.

comment 6y ago · link · parent

Just use a finally block to free the array even in case of exceptions. Or does C++ not have finally blocks?

comment 6y ago · link · parent

Is it just me or something like Golang shouldn't be included in production builds at all?

comment 6y ago · link · parent

Corrected the name, but his surname is Poettering.

comment 6y ago · link · parent

> overflowing a variable

...can easily happen indeliberately. Just as any other exceptions. Which C can't even handle in a deterministic way because it doesn't have built-in exceptions, so you have to rely on libraries or remembering to check error codes. Not easy to reason about.

> typing is a non-issue

When all your function ptrs have to be cast to and from (void*) - hell yeah it's an issue.

> minor hassle

Then why are buffer overflow exploits in C programs on the news?

comment 6y ago · link · parent

When signing up for my current job, I didn't even bother bringing them my master's degree. Too bad because it's from one of top two tech unis in the country. Not to downplay the benefits of higher education, but it's certainly not a prereq for good employment these days.

comment 6y ago · link · parent

C is easy to learn but not to reason about. First of all, C is really C + macro-C, two separate languages that don't know about each other. Second, all the damn UB. Third, weak typing and fourth, memory errors. So no, reasoning about C is far from easy.

comment 6y ago · link · parent

If C is not low-level anymore andnot fast without a ton of optimizations, then let's see a truly low-level language that's as fast or faster. Let's see Erlang or whatever consistently beat C. That's supposed to be easier for a language that maps better to the modern hardware, right? So where is it?

comment 6y ago · link · parent

I did. Half expected to see an article on psychology of millenials.

comment 6y ago · link · parent

No, some atheists may allow for existence of an uncreated creator God. It's just that this hypothesis is so inconclusive, unprovable and uninteresting that most atheists don't opt to pursue it (or disprove it for that matter). Assume there is a God or even The God - then what? We've no way of knowing anything about it.

comment 6y ago · link · parent

Yes, religion will never die because it's primitive paleolithic thinking embedded in all of us. With education and development of critical thinking, however, anyone can get free of religion and become intelligent (though it IS a lot of work that most are too lazy for).

comment 6y ago · link · parent

Go is just a half-baked joke language. Neither generics nor proper error handling nor a proper type system - whoever uses that crap just because it was made by Google is wasting their time. The only thing Golang has been succesful at is proving Google is well-capable of releasing and marketing absolute unadulterated crap. Just use the JVM or .NET Core...

comment 6y ago · link · parent

No, corrupt politicians rely on the FBI and the deep state and corrupt media to try to impeach an anti-establishment president. Yet to a lot of people it's not obvious they're being immoral, because the bought and paid for media portrays the good orange man as "immoral".

comment 6y ago · link · parent

They're bad because the world isn't producing nearly enough electricity for us all to go electric. And producing more electricity IS going to be bad for the environment.

comment 6y ago · link · parent

Monads are still programmable semi-colons, though. Yes, there are a lot of things you can program into a line-end symbol. Yes, some of those things are general and work for any already modded semi-colon. But it's still just programmable semi-colons: implicit, uncomposable, and frankly better left alone.
12345
8