3 ms·
What you've just described is a hodgepodge of stuff thrown together. That's a lack of language design with a surplus of features. My readings on older reports f
by nickpsecurity 10y ago
What you've just described is a hodgepodge of stuff thrown together. That's a lack of language design with a surplus of features. My readings on older reports for language designs showed the art was figuring out just how much power to include in the language & keeping it all consistent/sensible. One can overdo it.
An example of a clean, carefully-thought language that's low-level, consistent, and very powerful is PreScheme:
https://en.wikipedia.org/wiki/PreScheme https://en.wikipedia.org/wiki/PreScheme
Modula-3, a C++ and Java competitor, was another where they made careful tradeoffs of features, safety, compile speed, run speed, and ease of learning/reading.
https://en.wikipedia.org/wiki/Modula-3 https://en.wikipedia.org/wiki/Modula-3
There's also some dialects of Haskell and ML focusing on system level. Didn't hit those levels of maturity though. What I'd like to see is someone take the Nim tech, subset it, change inconsistent stuff to be consistent... basically clean it up into a coherent picture... then deploy that as a new language. It could be pretty awesome if it happens. Right now, it's too complex and incoherent except for people, as you said, willing to do a huge learning curve.
Note: Nim is so huge now that it might be easier to add Ada static checks and Rust dynamic/concurrency checks to PreScheme instead of fixing Nim. You'd have a low-level, safe LISP. Put a 3GL front end on top of it for more adoption. That's what Julia people did.
- 3pt14159 10y agoWell I don't have a negative view of Nim in general, and I wouldn't describe it as a hodgepodge. I would describe Nim as a language that doesn't hold you back and doesn't save you from yourself. Personally I refrain from using most of the complex stuff, but when I need it I love how it is there for me. For example, the shared objects make it very easy for me to just roll things in Nim then link them to Ruby through the FFI. Will your average developer need these features? No. But the average developer writes ASP, PHP, or JavaScript. I'd rather be formidable even if it means doing the work.
- nickpsecurity 10y ago"and I wouldn't describe it as a hodgepodge. I would describe Nim as a language that doesn't hold you back and doesn't save you from yourself." That's kind of vague. When I say hodgepodge, I mean they threw in all kinds of capabilities into the language without integrating them into a consistent whole. The examples I gave leave no surprises. What you see reading others' code is even expected. You could do about anything in a variant of PreScheme that you could do in Nim given almost any language feature gets ported to a LISP as a library. Except, it's all consistent in its style, syntax, and techniques for doing whatever it does. Nim seems to lack that very-significant property that affects uptake, ease of formal analysis, and maintenance burden. So, the language is powerful. People are doing neat things with it. Just lacks design traits that have historically been important for programming languages in terms of getting and keeping developers/users.
- semtele 10y ago> What I'd like to see is someone take the Nim tech, subset it, change inconsistent stuff to be consistent... Here's someone who planned to create cleaned up subset of Nim: http://www.13rhinos.de/ http://www.13rhinos.de/ I have no idea about viability of this project but it was his recent plan.