Live data from Hacker News

Ask HN: New Programming Language?

news.ycombinator.com

21–30 of 99 posts

Re: Ask HN: New Programming Language?

#21

I'd like a language that, as much as possible, insulated me from async worries. I'm thinking of how garbage collection helps me forget about memory allocations. I don't want to have to pepper my code with 'async' and 'await' hints everywhere. I'd prefer to not have to figure out the syntax incantation for marshaling data across threads. If I'm not mistaken Go is the closest to this?

In my experience, Elixir (I haven't used Erlang much, so can't comment on that too) is the first language that removed async concerns. With the lightweight thread approach and message passing, things can get "embarrassingly parallel" very easily.

Re: Ask HN: New Programming Language?

#22
post #17

1. Placing language interop as a high priority via extendible interop framework. Right now if you look for interop chances are you’re only gonna get A—>B bindings (eg Python->Rust), not even A B. I’d want something where, for all A,B in the set of supported languages, A B interop exists. This ideal language could then have like some glue module to allow that. 2. Extensible reflection system like in Python 3. 1 offici…

GraalVM/Truffle aims to make high performance multi language interop a reality.

Re: Ask HN: New Programming Language?

#24
Gods no. No more. We already have hundreds (if not thousands) of programming languages for pretty much every niche out there (not to mention languages so flexible they can be adapted to meet any new niche).

What this kind of question tells me is that folks are tired of solving business cases, and long for technical challenges. There's nothing inherently wrong with this longing, but we have enough programming languages. Pick something else to solve. Please.

Re: Ask HN: New Programming Language?

#25
post #20

It's been a while i'm thinking about one: A Relational General Purpose Language. Not table oriented like SQL, but more OOP/Type oriented, I'm not sure exactly how I want it to be, but surely not table oriented. No concurrency or async to worry about, you write the relations (exactly like you dont worry about SQL on concurrency while writing an SQL query). Like a JIT/DB Engine, it has a runtime that analyze the data p…

Isn't that LINQ ?

https://docs.microsoft.com/en-us/dotnet/csharp/programming-g...

Re: Ask HN: New Programming Language?

#26

I want a programming language that can do a lot, from web, game and IoT, with type system like Haskell/TypeScript/Rust/Ocaml and simplicity of Go

To run with part of this: I want a language that can truly do almost everything, everywhere. Start with a FORTH-like base of primitives that can have different implementations (usually assembly, but also, say, JVM bytecode), and then aggressively build a rich language and standard library out from that so most users just see "enable the full standard library and get all the batteries included", embedded folks see "enable the minimal subset of the standard library and it's still a nice language", and porting consists of "implement these 10 functions and the language works, implement these 25 functions and the whole stdlib works". Also, enough community/commercial support that it actually has those parts implemented for everything from ESP32 to AMD64 OpenBSD to aarch64 Linux to Haiku to....

Re: Ask HN: New Programming Language?

#27
My dream feature would be for an interpreted language: when you start the program the interpreter would randomly choose one of the keywords in the language to be considered "hot lava", meaning when the program encounters that keyword the computer running the program would be shut down permanently. If this language were universally adopted it would only be a matter of time before all computers were rendered inoperable.

Re: Ask HN: New Programming Language?

#28

I want a programming language that can do a lot, from web, game and IoT, with type system like Haskell/TypeScript/Rust/Ocaml and simplicity of Go

Use Ruby with Sorbet as a type-checker

I'm testing that and Sorbet is very far from being a nice experience right now. Tooling is somewhat broken. srb rbi gems often marks gems as typed ignore, which in turns makes constants unavailable.

My biggest problem is that it's not possible to represent "duck typing" (structural typing), which is core to ruby. So an object that is "callable" (a lambda with no args, a block with no args or an object with call and no args) cannot be represented, since the expectation is that the object includes some interface (module), not that it has a method #call

Re: Ask HN: New Programming Language?

#29
post #20

It's been a while i'm thinking about one: A Relational General Purpose Language. Not table oriented like SQL, but more OOP/Type oriented, I'm not sure exactly how I want it to be, but surely not table oriented. No concurrency or async to worry about, you write the relations (exactly like you dont worry about SQL on concurrency while writing an SQL query). Like a JIT/DB Engine, it has a runtime that analyze the data p…

D (the Date And Darwen one, not the Walter Bright one)?

https://en.m.wikipedia.org/wiki/D_(data_language_specificati...

Re: Ask HN: New Programming Language?

#30

I want a programming language that can do a lot, from web, game and IoT, with type system like Haskell/TypeScript/Rust/Ocaml and simplicity of Go

In terms of the languages you listed there, sounds like V to me: https://vlang.io/

This sounds amazing, why there is no more traction for the language? What are the downsides?
Post reply on HN