Live data from Hacker News

Ask HN: What would be your “perfect” programming language?

news.ycombinator.com

101–110 of 182 posts

Re: Ask HN: What would be your “perfect” programming language?

#101

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.

Sounds like Nim could be what you’re looking for?

https://nim-lang.org/

Re: Ask HN: What would be your “perfect” programming language?

#104
I just want something that will allow me to have what FlatAssembler does but in something higher level like C. I just want a flat binary, only to use the stack, no relocations, no data, rdata etc. Strings on the stack or heap.

Been 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?

#105
post #62

Earlier 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.

I meant to write that Go and Java’s Loom show us that other languages stuck with async have it worse than these two.

Re: Ask HN: What would be your “perfect” programming language?

#106
I was going to say "a better version of C#" but maybe an entirely different language would be better.

C# 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?

#107

TypeScript 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.

And trailing lambdas?

Re: Ask HN: What would be your “perfect” programming language?

#108
Fixity and associativity control at least at the haskell level. Notation comparable to Coq level. Generics without jvm limitations. Subtyping or subsets of inductive types. Rich signature overloading. No need for general recursion, loops etc. Pretty printing out of the box. Static literals (from the binary directly to memory).

Re: Ask HN: What would be your “perfect” programming language?

#109
Something that takes PL theory concepts and puts them into practice:

- 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?

#110

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.

Sounds like Nim could be what you’re looking for? https://nim-lang.org/

Maybe. I might have to try it out some day.
Post reply on HN