Live data from Hacker News

Ask HN: Does such a programming language exist?

news.ycombinator.com

11–20 of 37 posts

Re: Ask HN: Does such a programming language exist?

#14

Statically typed and simple generally means it's pretty hard to actually write reusable code and it's unlikely to "support multi-paradigm" very well. That said, "simple like Python" is an interesting phrase...

As another poster already said, Ada fulfills all of the requirements, and you can trivially write reusable code in it.

Re: Ask HN: Does such a programming language exist?

#16
Scala! It's mutli paradigm, it can be very simple to read, has amazing concurrency support and can utilize all the NIO goodies from the JVM.

Here's an example of me using it to make multithreaded NIO calls with XMPP:

    val conn = Connection.create(getConnParams("username", "password"))
    val result =
          for {
            (conn, myjid)     
Each But you don't get the nested craziness of ugly callbacks like you would in python or javascript (for instance).

Edit: If you really want whitespace, maybe F#?

http://www.tryfsharp.org/

Re: Ask HN: Does such a programming language exist?

#17

Statically typed and simple generally means it's pretty hard to actually write reusable code and it's unlikely to "support multi-paradigm" very well. That said, "simple like Python" is an interesting phrase...

Why does static typing make it harder to write reusable code?

Re: Ask HN: Does such a programming language exist?

#18
post #16

Scala! It's mutli paradigm, it can be very simple to read, has amazing concurrency support and can utilize all the NIO goodies from the JVM. Here's an example of me using it to make multithreaded NIO calls with XMPP: val conn = Connection.create(getConnParams("username", "password")) val result = for { (conn, myjid) Each But you don't get the nested craziness of ugly callbacks like you would in python or javascript (…

Maybe C# or the next release of TypeScript? You'd have asynchronous / await so async IO looks more like regular code than generators. Like Scala though there's still a lot of unnecessary syntax. AFAICT the answer to the parents question is 'No, but this would be good'

Re: Ask HN: Does such a programming language exist?

#19

No. I assume by 'simple and readable,' you mean that you want whitespace to be significant. Most languages don't do the Pythonesque 'look! executable pseudocode! (hope you like underscores though!)' thing.

CoffeScript and it's variants too. However they're dynamically typed.

Re: Ask HN: Does such a programming language exist?

#20

Statically typed and simple generally means it's pretty hard to actually write reusable code and it's unlikely to "support multi-paradigm" very well. That said, "simple like Python" is an interesting phrase...

C is statically typed and (ostensibly) simple, and is the language used to write some of the most reused code there is. Do you mean something different by "reusable" from "easy to reuse?"
Post reply on HN