Hacker News new | ask | show | jobs
by cordite 4005 days ago
Is the simple--easy-to-learn--without-the-mistakes-of-C systems language becoming a hype now?

Not to be a downer, but that's what it seems like since Rust 1.0.

4 comments

> Is the simple--easy-to-learn--without-the-mistakes-of-C systems language becoming a hype now?

being easy to learn is not enough.

I think "scripters" like me definitely want a language that compiles to a binary (no VM) like C(so easy to deploy on a server or to distribute to third parties), with good a concurrency model(because concurrency is one of the most important thing in web apps today) but expressive yet statically typed. The language that can pull this off will be the next big thing, no question.

Go isn't(the next big thing). it could have been great, but its type system is just horrible once one digs a little bit. No co-variance or contra-variance so extremely limited polymorphism, devs having to do compiler's job with type assertions everywhere, a clunky error system(that could have at least benefited from some syntactic sugar to make it less verbose...). However Go concurrency model is excellent and set a standard

It started long before Rust 1.0, and not a moment too soon in my opinion.
It really started with the rise of llvm, which gave way to julia, rust, and many other languages. Nim and D seem to be two big exceptions.
I'd personally would like to see a C ABI compatible language, that

- keeps 90% of C, - adds a string type - adds Go like "classes" (e.g. making more concrete the classic C idiom of passing a struct to the "object" to manipulate a la Glib) - adds a foreach - adds a builtin, multi-purpose map, vector and set type (e.g. based on Glib) for quick work - adds closures a la Obj-C / Apple's C - adds a small, but handy standard library (all C classic stuff + all Glib style stuff). - compiles to C-ABI compatible static binaries

Sounds like you're interested in C++.
With C ABI compatibility (without name mangling and such), and with a much more streamlined feature set...
> Sounds like you're interested in C++.

C++ is good as long as you don't have to read and debug other people's C++ code. C++ went to far with features and it didn't even fix all C core's problems. I personally like Cyclone syntax and features.