We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

Research on compiling Javascript to Brainfuck

From Esolang
Jump to navigation Jump to search
This is still a work in progress. It may be changed in the future.

Compiling JS into Brainfuck can seem absurd, but i think its worth trying. IDK why i made this tho.

Variables

In Javascript, variables are... variables. For BF, we will need to change some stuff.
For example, if we turn var i = 21; into BF, we can ignore var, = and ;.
We can allocate byte 1 for i, and based on the order, variables will be allocated byte per byte.
For example, a table like this can exist: