Skip to content
This repository was archived by the owner on Dec 2, 2025. It is now read-only.

qexat-archive/Braincum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

🧠💦 Braincum

Braincum is an esoteric programming language heavily inspired on well-known Brainfuck.

The specifications are defined on this repository, feel free to make your own compiler in the language of your choice!

You can also check this awesome implementation in Rust made by Alejandra!


Summary


Differences

Grammar

  • Brainfuck relies on 8 characters that provide 8 different operations.
  • As for Braincum, the alphabet consists in 25 characters ; however, in contrary to Brainfuck, some of these can be combined, which gives a total of 33 instructions.

Meaning of some characters

Let's give an example:

  • In Brainfuck, to move the pointer to the right, you would use >.
  • In Braincum, things are slightly different: to do the same operation, you would type &+.

The meaning of > is completely different in Braincum: it shifts all the values to the right.

How Braincum works

➡️ When you do an operation in Braincum, you need to specify if it applies to the current cell's value ($) or the pointer (&).

Here's an example in Braincum:

$++[&+$++&-$-]

Here's the equivalent in Brainfuck:

++[>++<-]

🤔 Coming from Brainfuck, it seems verbose and unnecessary at first...

🤩 But this is incredibly powerful as it means that you can also apply operations to the pointer (whose position is referred as "address" hereafter), making programs that would be long and complex in Brainfuck surprisingly short and simple.

Here is an example of a program that asks for a number n and generates an n-sized Fibonacci sequence:

$,{&+$+&^$--[&+++$s<&^$-]<<<}&--[&+$#]

Way shorter than its Brainfuck equivalent, isn't it?

To go further

Convinced? Check specs.md to get a complete list of the nice features that Braincum has to offer.

About

Braincum is an esoteric programming language heavily inspired on well-known Brainfuck.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors