BendScript Programming Language
WELCOME, SCRIPT BENDERS! SAY HELLO WORLD TO THE PARALLEL FUTURE OF COMPUTATION AND GENERATIVE CODE.
BendScript is a programming language that:
has syntax like TypeScript,
transpiles to bend-lang, plus
AI batteries included.
Note: that from here on out we assume that you know a bit about the bend programming language, as well as a good understanding of javascript, the node.js ecosystem, artificial intelligence, and the terminal.
LET'S GET STARTED:
You will notice a trend throughout this language which is to use astro like and cosmic like terminology when it comes to identifying coding concepts. For instance we like quantum mechanics where you measure electrons moving from one orbital level to another so when it came to naming our transpiler (a programming language that compiles from high level to low level) we came up with the tele- prefix.
"telebend" is a great way to get started with BendScript because it is our most rudimentary command. It's purpose, hence the prefix tele-, is to start with readable source code and compile down to unreadable machine code. It's design is very simple where it accepts an input file location and a destination output file location.
"transbend" is our next command which adds the ability to watch a folder, that may contain many files, for changes and performs telebends when needed. In the next section "SYNTAX LIBRARY" we get into the available text and tokens that these files may contain. Now, when we say AI batteries included we mean the ability to create a codebase (generative AI) that has files which are incrementally changed or "evolved" over time using a genetic algorithm.
Parts of a genetic algorithm:
seed -> newbend: based on a list of files and a filename create a new file using generative AI
mutate -> intrabend: based on a prompt within a code comment modify a piece of code within the file using generative AI
crossover -> cobend: take 2 files and merge them together to produce a new file using generative AI
fitness -> unibend: telebend all the files and then execute bend run
performance -> gobend: check passing tests for bend run
Last updated