Live data from Hacker News

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

news.ycombinator.com

121–130 of 182 posts

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

#121
post #31

Syntax like F# but with the ability to get performance like C++. Linear types seem to offer some hope of being able to have manual / non GC memory management in a functional programming language but I haven't really seen this done in a mature functional language. To really get good performance you probably need the ability to drop down and write more procedural style code in hot code paths and expose it with a functi…

Have you tried Rust? It checks a great deal of your boxes, don't be misled by the reputation of a "systems programming language"! I made a video explaining why rust is different here, if you're interested https://youtu.be/4YU_r70yGjQ

Loved this series of videos!

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

#122

Strongly typed Elixir would be it. Even better if it can be gradually typed like Typescript. Jose announced that they are working on it but I can’t wait :p

I think you mean statically-typed, I'd like that too so I picked F#. Elixir is already strongly typed (e.g. I think you can't use a number where a string is needed and doesn't automatically coerce). I'd also like higher performance numerics in Elixir.

TIL the difference between strongly typed and statically typed. I’ve been using them interchangeably. Thanks for letting me know!

I’ve tried F# briefly and quite liked it too. I would like to get into it more later.

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

#123

Earlier quoted context omitted.

I've worked with Python for years, and Go (golang) turned out to be everything I wanted Python to be. Admittedly, Go doesn't have enforced whitespace, but it has standardized code format, enforced by the `gofmt` tool, so in 99% of cases it looks as good as Python. The syntax is somewhat similar - there is a lot of type inference and duck typing, yet the type system is still static (which removes a majority of type er…

Go also has something other language lack... An adorable mascot. ;-)

What Linux had but MINIX lacked.

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

#124
post #77
post #57

Earlier quoted context omitted.

Rust has quite a few additional features though.

I couldn't agree more

From a golang mentality, I think perhaps he should have said: Rust has quite a few additional anti-features though.

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

#126

I want to write a program that has no mention of concurrency and runs efficiently on clusters anyway. So no threads, fibres, processes, actors, atomic, mutex, channels, queues, coroutines. Not in the language nor in a library. Push the concurrency and distribution machinery into the language runtime. Developer can neither see nor influence it. Program just runs faster when put on more parallel hardware. The price app…

Wasn't that the way OOP was supposed to work, back before people who didn't get it got their hands on it ? Isolated objects, messaging only, no notion of where the object resided. Just add idempotency guarantees and implicit parallelism for loops, and off you go. I can't think of any language that's actually like this though, so maybe it's harder than it looks.

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

#127

Earlier quoted context omitted.

> - Terminating. All programs terminate. How are you side stepping an NP-hard issue like the halting problem?

Also, how do you make servers and embedded systems?

You wouldn't. Not every language has to be a general purpose language.

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

#128
post #65

‘Growing a Language’ and the ‘Are We There Yet’ presentations changed the way I look at languages, so right now I would say my “perfect” high-level PL would be a Java-like language (possibly running on the JVM due to ecosystem-reuse and the killer GCs and performance) where immutable “objects”/values are the first-class citizens, but method implementations can use local, mutable semantics. I would also very much add…

Hm, a weaker type system? I dont really see much of a point in that, though type inference is quite good

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

#129
post #36

To me what matters the most isn't the language but the ecosystem: - versatility: create desktop apps, mobile apps, websites, CLI - quality of IDE / tooling - lots of libraries to deal with all sort of corner problems - lots of knowledge I can google - if used professionally: lots of talents available For the language itself, I only really care about one thing: statically typed, just because it eliminates all sort of…

- good quality standard library - good developer tooling, e.g. a language server - This is not yet possible, but a good optimiser which can turn an abstract representation of the code into optimal code for a given hardware (CPU or GPU). Currently we are far from this, there is probably a 10x improvement that current compilers can't achieve. See for example a FizzBuzz implementation achieving ~10x throughput improveme…

An actual functional lang server that doesnt randomly die on you and tries its best to infer your intent would be nice.

I like that last point too, as copilot I think is going in the right direction with "step 1" of full optimisation. Maybe step 2 would be some AI based optimiser scheme to transform IR into optimal cpu/gpu ISA. Though maybe stability would be a problem

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

#130

- One executable that is the runtime, accepting one argument: the source code file. - No linters. Code is auto-formatted. - No modules. Includes can be namespaced/aliased. - No package manager. Include by Git URL with tags. - No type annotations. Automatic type-checking. - No user-defined types. A few good types is better. - No null. Set membership with maps is better. - No exceptions. - No loops. List and map compre…

Can you elaborate on the no higher order functions, and the no modules but namespaces part?
Post reply on HN