Live data from Hacker News

DreamBerd is a perfect programming language

github.com

161–170 of 215 posts

Re: DreamBerd is a perfect programming language

#161
post #159

Earlier quoted context omitted.

Signals are a design paradigm for reactive programming which have recently trended in the JS frontend space. For e.g., https://preactjs.com/blog/introducing-signals/

Is this effectively a watch() on a variable?

no that would be a "when" :)

Re: DreamBerd is a perfect programming language

#162
post #12
post #2

This is great. Usually with the joke programming languages, you can get at least one person arguing that "x feature" really isn't all that bad, or could maybe be useful. DreamBerd beats them all in that regard. It is 100% terrible! I lost it at the lifetimes implementation.

This feature really isn't all that bad! > To declare a function, you can use any letters from the word function (as long as they're in order): > function add (a, b) => a + b! > func multiply (a, b) => a * b! > fun subtract (a, b) => a - b! > fn divide (a, b) => a / b! > functi power (a, b) => a * b!

Incidentalley this allows for

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

Re: DreamBerd is a perfect programming language

#166
post #162
post #12

Earlier quoted context omitted.

This feature really isn't all that bad! > To declare a function, you can use any letters from the word function (as long as they're in order): > function add (a, b) => a + b! > func multiply (a, b) => a * b! > fun subtract (a, b) => a - b! > fn divide (a, b) => a / b! > functi power (a, b) => a * b!

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?

Re: DreamBerd is a perfect programming language

#167

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.

It's really super fun hahah!

But you guessed right at least the features from my ACPUL no-keyword programming language.

Here is a quick comparison DreamBerd vs ACPUL:

! - should use ';' and use everywhere if(..){..}; This is important!

if (;true) - no boolean operators !, &&, || etc. no else. use

  if (a==0){
    true;
  };
  if (a!=0){
   else;
  };
Naming - unicode by default and fully translatable

Floating indexes in arrays. - works, but it's called a map

  index 0.5;
  map.set.value(index, 123);
When - works but with restrictions

  when if;
  when(a
Loops - there are loops here but no "break" keyword, just set the end value. Same for functions and there is no "return" keyword, use if(..)

Indents - 1 space ident is highest priority. Maybe your editor ident: 2 space or 4 space, -3 is possible, but rare case

Function - don't need to write any keyword like 'fn' or 'func'. just func1 {..};

Strings - all strings always zero quotes. var=STRING;

File Structure - Yes! Really usable and it looks much better than other languages

AI - fully designed for AI copilot and works with partially defective code

..and it works. I wrote a lot of code. Lets fun :)

Here is the demo app https://github.com/web3cryptowallet/Web3CryptoWallet

Re: DreamBerd is a perfect programming language

#169

I accidentally clicked on this (thought my pointer was on another monitor …). Am I glad I did. Originally I just skipped it because it sounded too clickbaity :D

It’s Hacker News so you can expect something interesting even if it looks like a clickbait.

Re: DreamBerd is a perfect programming language

#170
post #35

Earlier quoted context omitted.

Yes, when is the way to do loops in this language. From the hidden examples page functi fibonacci (n) => { const var sum = 1! const var i = 0! when (i

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.
Post reply on HN