Live data from Hacker News

Ask HN: New Programming Language?

news.ycombinator.com

51–60 of 99 posts

Re: Ask HN: New Programming Language?

#51
post #35

If someone would combine the syntax of Ruby (it's fun to read and write) with the performance and static binaries of Go, I think it would be very popular. I would like to enjoy writing Go as much as I enjoy writing Ruby. But Ruby apps are slow and hard to deploy. Combining their strengths would be great IMHO.

Have you heard of https://crystal-lang.org/ ? I've never used it personally, but it seems to be "statically compiled Ruby syntax"

Thanks for the links everyone. I wasn't aware of Crystal. I'll check it out.

Re: Ask HN: New Programming Language?

#52
I'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?

Re: Ask HN: New Programming Language?

#53

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?

Go quite literally has a syntax incantation for marshaling data across threads (channels). The novelty of Go is that it's language-level as opposed to library-level. It's nice, but in practice I don't think it makes a huge amount of difference.

Java also has some basic thread synchronization primitives built into the language. It's way easier than you probably think. And it gets even more interesting with the upcoming project loom, which gives you the same programming model for lightweight and real threads.

Async programming is a pox on the industry. It's very useful in rare situations that require extremely high performance, but for general business processing, function coloring adds a ton of accidental complexity.

Re: Ask HN: New Programming Language?

#54

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

This is what Ada does.

A very strong type system, makes native binaries, has low level control, but it writes and reads super simply. Generics are at the module ("package") and function level, not at the type level, and can take other packages as parameters.

Re: Ask HN: New Programming Language?

#55

Some ideas... Language that represent numbers as rationals and always gives you precise calculations (unless you explicitly want to round them up). Language that can tell apart 1 meter from 1 second (units like in Frink lang). Language that has various data structures with consistent interface (like Scala) up to and including relational tables and graphs. That has structural composable declarative query language that…

For the first, Mathematica

Re: Ask HN: New Programming Language?

#56
post #42
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…

What exactly virtualenv adds to table that justifies it? I have used c#, and javascript. And not felt any issues by lack of virtualenv. I know python need it because otherwise it does not support project level modules. But that is a python only problem

Sure, just for managing the project-level language versions + project-level library dependencies. Doesn’t need to be exactly venv, but venv has proven simple enough to use that it tends to reduce headaches, rather than add more, in my experience.

The reason is that pip/most package managers have a default to install a package globally. Which can be annoying especially for noobs.

Re: Ask HN: New Programming Language?

#57
post #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…

That certainly would be good for the environment.

Re: Ask HN: New Programming Language?

#58

Some ideas... Language that represent numbers as rationals and always gives you precise calculations (unless you explicitly want to round them up). Language that can tell apart 1 meter from 1 second (units like in Frink lang). Language that has various data structures with consistent interface (like Scala) up to and including relational tables and graphs. That has structural composable declarative query language that…

Haskell has the first four of those features, although it can't directly use the disk or figure out what data structure you'd need.

Re: Ask HN: New Programming Language?

#59

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?

Haskell tries to automatically multithread code, along with providing support for it in its standard library.

Re: Ask HN: New Programming Language?

#60
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…

This really isn't what you asked for, but I discovered a "programming language" recently, named Enso, that seems like something you'd like. (https://enso.org/)
Post reply on HN