Live data from Hacker News

DreamBerd is a perfect programming language

github.com

171–180 of 215 posts

Re: DreamBerd is a perfect programming language

#171

Hello! Creator here. This is an open-source project so please do submit any issues or PRs. Please note: I will close any issues without unreproducible steps.

I haven't laughed like this in a very long time, very well done.

Looking at the cellular automatons video, I felt it captures the early sense of wonder learning about math and programming. But also, the despair in what problems are actually kind of open. What if I design a cellular automatons where every neighborhood is in the shape of a Disney character and every value it can take corresponds to the release date of one movie that was in the global top 10 of highest grossing movies? Well, turns out that's a special case of a Heisendorff-Circlydot automatons, which was solved using topolographical methods in the 80's and the only open question have been proven to be equivalent to proving the consistency of Riemann.

Unless say you give each cell a bounded notebook with a given number of page, in which case the problem falls into a weird computability class between the gaps of the Chomsky hierarchy. And then it's thesis material :-)

Re: DreamBerd is a perfect programming language

#173
post #162

Earlier quoted context omitted.

Incidentalley this allows for count func (a,b) => ... in out (a,b) => ... of if (a,b) => ... Wonderful language, wonderful.

The letters have to be in order so maybe this will not work?

That's right, "in" works, but "count" and "of" don't.

Here are some of my favorites:

union

funi

funion

fution (sounds like fussion)

fu

fuc

fucton (as noted by a fellow commenter)

Re: DreamBerd is a perfect programming language

#175
post #40

The best gem in all of it is this: > You can make classes, but you can only ever make one instance of them. This shouldn't affect how most object-oriented programmers work. This describes my experience with most OOP code very well.

Sturgeon's Law: "90 of everything is crap". It's no surprise that when you make virtually all mainstream programming languages OOP, then there will be a vast amount of bad OOP code out there (as by definition mainstream code then becomes "OOP code").

I like how you forget the % after 90.

DreamBerd probably allows this.

Re: DreamBerd is a perfect programming language

#177
post #21

Earlier quoted context omitted.

This feature is not so bad: > In case you really need to vary a variable, the when keyword lets you check a variable each time it mutates. const var health = 10! when (health = 0) { print("You lose")! } If it can really be triggered when the variable changes to any value it makes it a truly reactive paradigm programming language. By the way, could that be hacked to implement loops? const var i = 10 when (i >= 0) { do…

It's basically a syntactic sugar on an Observer pattern but I like it. You would need a way to turn off 'when' observers. And I suppose it does couple the observer to the observable pretty tightly.

Delete the observed variable?

About coupling, an implementation could send state change events to a message bus and observers could subscribe only the events they care about.

Re: DreamBerd is a perfect programming language

#179
> Use spacing to specify the order of arithmetic operations.

I actually wish this was a thing in mainstream languages, if someone spaces like that they obviously believe that the precedence matches their spacing. It might as well work that way, and it's often prettier and more visually obvious than parens.

Re: DreamBerd is a perfect programming language

#180
post #40

The best gem in all of it is this: > You can make classes, but you can only ever make one instance of them. This shouldn't affect how most object-oriented programmers work. This describes my experience with most OOP code very well.

I've seen this called "bulldozer code". As in "Hey, all of those plain functions need to be OOP! Get a big earth moving machine and gently push them inside the curly braces of a class! Which class? Any class!"
Post reply on HN