On the other hand, Go has an excellent garbage collector, and really seems to fill the niche for low-level libraries and programs.
It's also quite a joy to program in, and I'm a JavaScript developer, so I'm coming from the other side of the spectrum.
I'd argue that Go is much closer to Javascript than it is to C/C++.
I think Niklaus Wirth would disagree.
Have you ever used a language with a decent type system though? I couldn't stand to use Javascript or Go at this point.
Of course. I've used C pretty extensively, Java enough to hate it, and C#.
I consider myself a javascript developer because that's what I've done my best work in and that's what I enjoy the most.
I wouldn't really consider any of those decent (certainly not C or Java), unless C# got sum types when I wasn't looking.
Re:Crystal: Fast as C, Slick as Ruby
by banachtarski on Thursday August 04, 2016 @01:17PM
(#12227045)
He said decent type system, not static one.
How can someone enjoy javascript ? Even closures are not done right and now they added classes. Just what we need sigh
I agree, classes are silly in JavaScript. It just masks the prototype and creates ambiguity; using the prototype effectively is part of being a good JavaScript developer.
I understand the hate and everything but honestly I think it presents a fun and refreshing way of solving problems.
Also npm is pretty awesome, aside from how massive the node_modules folder gets.
C, Java, and C# have decent type systems, especially compared to JavaScript.
They wouldn't say C is "weakly typed" if its type system was decent :)
No sum types, no higher-kinded types, huge verbosity in declaring a new type. I'm talking something like OCaml/F#/Scala/Haskell.
Re:Crystal: Fast as C, Slick as Ruby
by mike_hearn on Friday August 05, 2016 @09:01AM
(#12231928)
The type systems of Java and C# are OK. C is not even in the same league.
So basically C/C++ replacement is the only niche that is left to fill. It would be even better if new language could replace even GC-languages, so I can can write fast low level libraries or websites in single language, without sacrificing productivity. That would be the Holy Grail I guess.