I would take SML, freshen it up with some conveniences inspired by Haskell and OCaml, and add a mode with region-based memory management only, so it can be used without a GC. This so there is a simple but principled language targeting low-level programming. Rust is nice, but it has so many features and a syntax aimed at C++/Java folks.
Ask HN: New Programming Language?
71–80 of 99 posts
Re: Ask HN: New Programming Language?
#72I would want a language I can run natively on every platform with the syntax of Swift/Kotlyn.
Re: Ask HN: New Programming Language?
#73I would want a language I can run natively on every platform with the syntax of Swift/Kotlyn.
I'm not sure what you mean - Swift and Kotlin can both do exactly that. Swift works best on macOS, obviously, but it can run fine on Windows and Linux. Kotlin runs on the JVM, so it gets cross-platform support for free.
Re: Ask HN: New Programming Language?
#74It'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...
LINQ has multiples issues compared to what I want to do.
It's slow (at leat 1000x slower than a for loop)
There is no query optimizer by default, and even less a runtime query optimiser.
It's directly translated to procedural code, it doesn't get compiled and translated like a query engine will do in an SQL DB.
Re: Ask HN: New Programming Language?
#75It'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...
I will read it, but mind that, I said "general purpose" I don't want this to be a language used to be only used as a Database. The whole app should be written in it.
Re: Ask HN: New Programming Language?
#76Earlier quoted context omitted.
Isn't that LINQ ? https://docs.microsoft.com/en-us/dotnet/csharp/programming-g...
Not being familiar with LINQ, does it solve SQL's composability problems? I love SQL for what it can do, but I am constantly annoyed at how inconsistent it is and how terrible it is for generating queries via software. It feels ripe for a replacement that is semantically similar but syntactically different.
Re: Ask HN: New Programming Language?
#77Earlier quoted context omitted.
Isn't that LINQ ? https://docs.microsoft.com/en-us/dotnet/csharp/programming-g...
I'm a C# dev, I know well LINQ. LINQ has multiples issues compared to what I want to do. It's slow (at leat 1000x slower than a for loop) There is no query optimizer by default, and even less a runtime query optimiser. It's directly translated to procedural code, it doesn't get compiled and translated like a query engine will do in an SQL DB.
Also, I understood that it was translated to IEnumerable queries, so, wouldn’t EF optimize the query ?
Re: Ask HN: New Programming Language?
#78I've always been interested in what programming might look like if it evolved from a non-linguistic base. We tend to assume that having programming using a text-representation is the obvious move but what if a different set of historical/technological priors had led us to build programming abstractions upon something completely different?
I don't think there exists any timeline where we don't end up with something we would recognizably call a programming language.
Re: Ask HN: New Programming Language?
#79My wish list is a little more pedestrian: 1. High level like python, but strongly typed 2. "normal" c style syntax 3. First class support for "green thread" style concurrency, like erlang 4. First class support for dataframes and the best of python's various ML/data packages. 5. A really great ORM well integrated into the language, that can handle elastic and nosql as well as sql. 6. A batteries included web solution…
umm, Go?
Re: Ask HN: New Programming Language?
#80I would like to see an experiment where modules, their properties, and their dependencies are written down in a separate file. For example, it would tell module main depends on ui , utils and json , ui on graphics (a third party library) utils on encrypt and IO (which are part of the standard library of the language), json on Streams (another part of the standard library). It also could say graphics doesn’t use refle…
void constanttime doStuff(vector v)
However, it would likely require extensive dedicated support and would necessarily be limited (hello, halting problem!). I could see that working and be useful for common complexity values, e.g. O(n^k), O(log n) etc.