Airbender

  • 4 Replies
  • 1770 Views
*

Zero

  • Eve
  • ***********
  • 1287
Airbender
« on: August 29, 2018, 10:53:25 pm »
Airbender is my new project. You're friendly invited here:
https://github.com/ThinkbotsAreFree/Airbender

:)

Doc is coming, but main.js is already here!

*

WriterOfMinds

  • Trusty Member
  • ********
  • Replicant
  • *
  • 606
    • WriterOfMinds Blog
Re: Airbender
« Reply #1 on: September 05, 2018, 05:30:41 am »
What is it/does it do?

*

Zero

  • Eve
  • ***********
  • 1287
Re: Airbender
« Reply #2 on: September 07, 2018, 09:25:27 am »
:)

It's a stack based language in a distraction-free environment. While turing-complete, I wouldn't call it a "useful tool". It's rather a blank space I can sit in front of, not moving for a while, before starting writing a piece of program, all in one continuous stream...

There's a simple editor, and a terminal below it. The button in the middle executes what's in the editor.

The data stack is called Yin, and the program stack is called Yang. The vocabulary is called "ten-thousand".

Here is a taste, the factorial function definition.
Code
'$(n)(-1 1 n range '* 1 n - repeat) 'factorial bend

Initially, words eval to themselves: "factorial" evals to "factorial". The bend function modifies what a word evals to.

The $()() form is a template rewriter. It pops n from the stack and replace it with -1 1 n range '* 1 n - repeat.

The first part, -1 1 n range, puts numbers from n to 1 (with step -1) onto the stack.

The second part, '* 1 n - repeat, repeats (n-1) times the * operator in the program stack.

You would write this code in the editor, then click the Airbender button. Then you'd use it by typing in the terminal:
Code
5 factorial print

The implementation is pretty simple. Good thing is it gave me an idea for a new execution model, somewhere between chatbot and stack based programming language. I'll make another thread for this new idea.
« Last Edit: September 07, 2018, 09:45:37 am by Zero »

*

Zero

  • Eve
  • ***********
  • 1287
Re: Airbender
« Reply #3 on: September 20, 2018, 02:24:06 pm »
So, there has been work done here. Airbender is bigger! Doc is still minimal, there's only a vocabulary reference list. I'll explain various techniques and concepts more in depth soon.
Home: https://github.com/ThinkbotsAreFree/Airbender
Interpreter: https://thinkbotsarefree.github.io/Airbender/
Reference: https://github.com/ThinkbotsAreFree/Airbender/wiki/Builtin-vocabulary

*

Zero

  • Eve
  • ***********
  • 1287
Re: Airbender
« Reply #4 on: September 21, 2018, 11:01:16 am »
I added a bit more doc. If it's unclear please let me know!  :)

 


OpenAI Speech-to-Speech Reasoning Demo
by ivan.moony (AI News )
March 28, 2024, 01:31:53 pm
Say good-bye to GPUs...
by MikeB (AI News )
March 23, 2024, 09:23:52 am
Google Bard report
by ivan.moony (AI News )
February 14, 2024, 04:42:23 pm
Elon Musk's xAI Grok Chatbot
by MikeB (AI News )
December 11, 2023, 06:26:33 am
Nvidia Hype
by 8pla.net (AI News )
December 06, 2023, 10:04:52 pm
How will the OpenAI CEO being Fired affect ChatGPT?
by 8pla.net (AI News )
December 06, 2023, 09:54:25 pm
Independent AI sovereignties
by WriterOfMinds (AI News )
November 08, 2023, 04:51:21 am
LLaMA2 Meta's chatbot released
by 8pla.net (AI News )
October 18, 2023, 11:41:21 pm

Users Online

271 Guests, 0 Users

Most Online Today: 363. Most Online Ever: 2369 (November 21, 2020, 04:08:13 pm)

Articles