Live data from Hacker News

Dada, an experimental new programming language

dada-lang.org

11–20 of 428 posts

Re: Dada, an experimental new programming language

#13
post #6

Their Hello, Dada! example: print("...").await I'm coming from Python, and I can't help but ask: If my goal as a programmer is to simply print to the console, why should I care about the await? This already starts with a non zero complexity and some cognitive load, like the `public static void main` from Java.

The reasoning with await is valid, it's an I/O call, but the await should maybe be hidden inside the print then?

Re: Dada, an experimental new programming language

#15

Why the name and the logo? Couldn't find info about it. Otherwise, the idea of creating something close to rust but without the complexity sounds interesting. I just hope they don't stick to that name.

They’re both referencing the Dada artistic movement.

Re: Dada, an experimental new programming language

#16

Why the name and the logo? Couldn't find info about it. Otherwise, the idea of creating something close to rust but without the complexity sounds interesting. I just hope they don't stick to that name.

They’re both referencing the Dada artistic movement.

Thx

Re: Dada, an experimental new programming language

#17
post #10
post #6

Their Hello, Dada! example: print("...").await I'm coming from Python, and I can't help but ask: If my goal as a programmer is to simply print to the console, why should I care about the await? This already starts with a non zero complexity and some cognitive load, like the `public static void main` from Java.

I'd say you want something like 'debug_msg()' for this. 'print()' should be async because it does IO. In the real world most likely you'd see the output once you yield.

Huh, typically print is the debug message function vs explicitly writing to stdout

Re: Dada, an experimental new programming language

#18
post #7

Earlier quoted context omitted.

niko judging from Github commits https://github.com/dada-lang/dada/graphs/contributors

ah, thank you! I couldn't find anything on the website itself, should have thought to look at the code.

It is indicated in the last paragraph of the FAQ: https://dada-lang.org/docs/about/faq (It is indeed hard to find though!)

Re: Dada, an experimental new programming language

#19
post #6

Their Hello, Dada! example: print("...").await I'm coming from Python, and I can't help but ask: If my goal as a programmer is to simply print to the console, why should I care about the await? This already starts with a non zero complexity and some cognitive load, like the `public static void main` from Java.

The reasoning with await is valid, it's an I/O call, but the await should maybe be hidden inside the print then?

It's a leaky abstraction (https://www.joelonsoftware.com/2002/11/11/the-law-of-leaky-a...), but maybe there is no helping it and for some reason it is a necessary tradeoff for performance?

Re: Dada, an experimental new programming language

#20
post #2

If the claim that its performance will be similar to Rust's if you add type annotations, this could become a really attractive language! As easy as JavaScript to write, as fast as Rust when the extra effort to write it justifies it.

There’s no claim to be as easy as javascript to write. Rusts “difficulty” stems from its single ownership model, and this model is “different” not “easier”. https://dada-lang.org/docs/dyn_tutorial/permissions

I personally find the semantics of javascript a lot harder to internalize than rust due to its scoping and very unintuitive object system. I can't imagine this is any more difficult than that.
Post reply on HN