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
Ask HN: What would be your “perfect” programming language?
121–130 of 182 posts
Re: Ask HN: What would be your “perfect” programming language?
#122Strongly 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.
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?
#123Earlier 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. ;-)
Re: Ask HN: What would be your “perfect” programming language?
#124Re: Ask HN: What would be your “perfect” programming language?
#125But also a better package system than the current state of Hackage. Otherwise, Haskell is perfect.
Re: Ask HN: What would be your “perfect” programming language?
#126I 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…
Re: Ask HN: What would be your “perfect” programming language?
#127Re: Ask HN: What would be your “perfect” programming language?
#128‘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…
Re: Ask HN: What would be your “perfect” programming language?
#129To 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…
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…