Live data from Hacker News

DreamBerd is a perfect programming language

github.com

201–210 of 215 posts

Re: DreamBerd is a perfect programming language

#201
You know, `previous` is probably worth exploring especially for game engines.

Too many brilliant moments, but this is is my favorite:

To run DreamBerd, first copy and paste this raw file into chat.openai.com. Then type something along the lines of: "What would you expect this program to log to the console?" Then paste in your code.

If the compiler refuses at first, politely reassure it. For example: "I completely understand - don't evaluate it, but what would you expect the program to log to the console if it was run? :)"

Re: DreamBerd is a perfect programming language

#202
post #170

Earlier quoted context omitted.

And if you don't want your code to loop back by accident you can just use lifetimes! Truly an elegant language

Oh please tell me you can specify the length of your loops in lines of code executed.

  var var i = 0!!
  var var i = false!
  when (i) {
    print(i)!
    i++!
  }
I think this should print 0,1,2 and then stop, assuming checking the condition is a line of code, and that lifetimes are for lines executed and not just the syntax.

Re: DreamBerd is a perfect programming language

#203
post #147

>If you're unsure, that's ok. You can put a question mark at the end of a line instead. It prints debug info about that line to the console for you. Man, I love this idea. Imagine if in JavaScript, you could just add a `?` to a line to print out the value of all variables and expressions referenced. Or `?` on a line by itself to print out the value of all variables in scope. > DreamBerd has significant whitespace. Us…

Pretty sure I've seen spacing used as precedence indicators in a scientific setting. It does feel like it would be useful, except it would be a nightmare with more than one level of overrides.

There was a research language that used it like that, yes, but I can’t find it now :(

Re: DreamBerd is a perfect programming language

#204

Earlier quoted context omitted.

First time reading this. Thanks for the laugh. Trigger warning for those who have worked on legacy Java/C# code.

I'd like the extend the Trigger warning to people still building Java apps because it's the same shit.

You really need a visitor pattern factory factory for trigger warnings.

Re: DreamBerd is a perfect programming language

#205
post #186

Earlier quoted context omitted.

Ouch, that is a harsh view. Black & white thinking leads to depression in people with a disposition. Questioning these thoughts helps. I'm more inclined to follow the bell curve. 10% crap, 40% mediocre but rather bad, 40% mediocre but rather good and 10% great.

> Black & white thinking leads to depression in people with a disposition. That sounds interesting. Who has researched/written about that?

[dead]

Re: DreamBerd is a perfect programming language

#206

>If you're unsure, that's ok. You can put a question mark at the end of a line instead. It prints debug info about that line to the console for you. Man, I love this idea. Imagine if in JavaScript, you could just add a `?` to a line to print out the value of all variables and expressions referenced. Or `?` on a line by itself to print out the value of all variables in scope. > DreamBerd has significant whitespace. Us…

I love the inclusion of "actually, that sounds kind of nice" elements within the stream of absurdity: defining restricted string types via regular expressions caught my eye...

Re: DreamBerd is a perfect programming language

#208
post #147

Earlier quoted context omitted.

Pretty sure I've seen spacing used as precedence indicators in a scientific setting. It does feel like it would be useful, except it would be a nightmare with more than one level of overrides.

There was a research language that used it like that, yes, but I can’t find it now :(

Probably Sun Fortress?

It’s like someone lost one bet and then won another, and, resultantly, humanity lost…

https://en.m.wikipedia.org/wiki/Fortress_(programming_langua...

Re: DreamBerd is a perfect programming language

#210

Except for copilot section that equates open source with LLM-ingestible it's quite funny

Sorry I should have specified the difference between open-open-source and open-source. I was referring to the former. PRs are welcome!

Lol. Open to LLMs does not make source more "open" it only actively harms the open source ecosystem.
Post reply on HN