Python, but with static typing and compiled to native code. I love Python's syntax. It's usage of whitespace forces people to have some semblance of proper formatting. Overall, I find Python code extremely easy to read. But my god is it slow, and I've always assumed a lot of its slowness is due to being interpreted and the duck typing.
Ask HN: What would be your “perfect” programming language?
101–110 of 182 posts
Re: Ask HN: What would be your “perfect” programming language?
#102Re: Ask HN: What would be your “perfect” programming language?
#103Re: Ask HN: What would be your “perfect” programming language?
#104Been trying to hack Zig a little bit to get what I want but still needs some post-processing.
Anything comes to mind?
Re: Ask HN: What would be your “perfect” programming language?
#105Earlier quoted context omitted.
Why async/await? As go and soon java with loom shows it is quite a misfeature, if anything. Otherwise, I like your idea on checked exceptions, I think they are a very good feature, but somehow got a bad name and thus not experimented with as often. Your last point sounds quite macro-ish, so I guess the LISP-fanatics will come in in droves and tell you that they already have that in their language :D But relatedly, tr…
How is async/await a misfeature in Go? I can see the problem in js with 'function color' but everything in Go are goroutines not just some.
Re: Ask HN: What would be your “perfect” programming language?
#106C# uses stack and heap for memory management, which is to say this is an entire language designed around memory management. Should memory management be a core of a modern programming language? Available memory has expanded like 1000x in the lifetime of this language.
Re: Ask HN: What would be your “perfect” programming language?
#107TypeScript without the BC shit (and a native JIT compiler). Basically I wish for a TypeScript that’s maintained like Swift where the primary goal of the latest version of the language is for it to be the best possible language ever.
Re: Ask HN: What would be your “perfect” programming language?
#108Re: Ask HN: What would be your “perfect” programming language?
#109- dependent types
- algebraic effects
- linear types
- algebraic data types
- higher kinded types
- homoiconicity (so it'd have to be Lisp-like, but typed)
- borrow checking, and beyond, such as region borrow checking
- cross-platform, JITed, as well as ahead of time compilation in release mode
- static metaprogramming
Re: Ask HN: What would be your “perfect” programming language?
#110Python, but with static typing and compiled to native code. I love Python's syntax. It's usage of whitespace forces people to have some semblance of proper formatting. Overall, I find Python code extremely easy to read. But my god is it slow, and I've always assumed a lot of its slowness is due to being interpreted and the duck typing.
Sounds like Nim could be what you’re looking for? https://nim-lang.org/