百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
F

free

> 编程语言
开源

一种具有不寻常编译器后端的奥秘编程语言

331 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

一种具有不寻常编译器后端的奥秘编程语言

free

A terrible programming language that targets an even worse programming language.

I decided to name this programming language free because there are absolutely no memory constraints whatsoever. It's basically impossible for a free program to segfault or anything like that: you can arbitrarily assign to any memory location. This isn't by design. It's just a byproduct of the target programming language: SMPL.

SMPL

SMPL, pronounced "simple", is a programming language almost identical to brainfuck. It's ridiculously easy to implement; SMPL is just a superset of brainfuck with 3 additional operators. These operators, &, *, and ?, give SMPL the ability to manage memory dynamically rather than statically, which is impossible in brainfuck. Consider the following problem.

In brainfuck, it's incredibly easy to represent an array of numbers. They can just be stored on the tape like so.

c
char array[6]
          |
          v
[0, 0, 0, 1, 2, 3, 4, 5, 0, 0, 0, ...]

But what happens when the array needs to grow? Or if you want to represent a pointer to an element of the array?

There is no real elegant solution to representing pointers in brainfuck.

However, enabled by the powers of SMPL we can represent pointer operations rather elegantly.

SMPL Operator Description
> Move the pointer to the right
[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>++++++++++++++++++++++++++++++++++++++++++++>++++++++++++++++++++++++++++++++>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>+++++++++++++++++++++++++++++++++>+<>>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>>>>>>>>>>>>>>>>>>>>[-]>>>>>>>>>>>>>+>>>>>>-]>>>>>>+>>>>>>>>>>>>>>>>>>>>>[-]>>>>>>>>>>>>>+>>>>>>>-]>>>>>>>+>>>>>>>>>>>>>>>>>>>>>>[-]>>>>>>>>>>>>>+>>>>>>>>-]>>>>>>>>+>>>>>>>>>>>>>>>>>>>>>>>[-][<>>>>>>>>>>>>>>>+>>>>>>>>>-<>]>>>>>>>>>+>>>>>>>>>>>>>>>>>>>>>>>>[-]>>>>>>>>>>>>>+>>>>>>>>>>-]>>>>>>>>>>+>>>>>>>>>>>>>>>>>>>>>>>>>[-][<>>>>>>>>>>>>>>>+>>>>>>>>>>>-<>]>>>>>>>>>>>+>>>>>>>>>>>>>>>>>>>>>>>>>>[-]>>>>>>>>>>>>>+>>>>>>>>>>>>-]>>>>>>>>>>>>+>>>>>>>>>>>>>>>>>>>>>>>>>>>[-][<>>>>>>>>>>>>>>>+>>>>>>>>>>>>>-<>]>>>>>>>>>>>>>+>>>>>>>>>>>>>>>>>>>>>>>>>>>>[-]>>>>>>>>>>>>>+>>>>>>>>>>>>>>-]>>>>>>>>>>>>>>+>>>>>>>>>>>>>>>>>>>>>>>>>>>>>[-][<>>>>>>>>>>>>>>>+>>>>>>>>>>>>>>>-<>]>>>>>>>>>>>>>>>+>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>[-]>>>>>>>>>>>>>+>>>>>>>>>>>>>>>>-]>>>>>>>>>>>>>>>>+>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>[-][<>>>>>>>>>>>>>>>+>>>>>>>>>>>>>>>>>-<>]>>>>>>>>>>>>>>>>>+>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>[-]>>>>>>>>>>>>>+>>>>>>>>>>>>>>>>>>-]>>>>>>>>>>>>>>>>>>+>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>[-][<>>>>>>>>>>>>>>>+>>>>>>>>>>>>>>>>>>>-<>]>>>>>>>>>>>>>>>>>>>+>>>>>>>>>>>>>>>>>>>>.>.>.>.>.>.>.>.>.>.>.>.>.>.>>[-]++++++++++.[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>>[-][-][-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-][-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-][-]>[-]>[-]>[-]>[-]>[-]>[-][-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>++++++++++++++++++++++++++++++++++++++++++++>++++++++++++++++++++++++++++++++>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>+++++++++++++++++++++++++++++++++>+>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>>>>>>>>>>>>>>>>>>>>[-]>>>>>>>>>>>>>+>>>>>>-]>>>>>>+>>>>>>>>>>>>>>>>>>>>>[-]>>>>>>>>>>>>>+>>>>>>>-]>>>>>>>+>>>>>>>>>>>>>>>>>>>>>>[-]>>>>>>>>>>>>>+>>>>>>>>-]>>>>>>>>+>>>>>>>>>>>>>>>>>>>>>>>[-][<>>>>>>>>>>>>>>>+>>>>>>>>>-<>]>>>>>>>>>+>>>>>>>>>>>>>>>>>>>>>>>>[-]>>>>>>>>>>>>>+>>>>>>>>>>-]>>>>>>>>>>+>>>>>>>>>>>>>>>>>>>>>>>>>[-][<>>>>>>>>>>>>>>>+>>>>>>>>>>>-<>]>>>>>>>>>>>+>>>>>>>>>>>>>>>>>>>>>>>>>>[-]>>>>>>>>>>>>>+>>>>>>>>>>>>-]>>>>>>>>>>>>+>>>>>>>>>>>>>>>>>>>>>>>>>>>[-][<>>>>>>>>>>>>>>>+>>>>>>>>>>>>>-<>]>>>>>>>>>>>>>+>>>>>>>>>>>>>>>>>>>>>>>>>>>>[-]>>>>>>>>>>>>>+>>>>>>>>>>>>>>-]>>>>>>>>>>>>>>+>>>>>>>>>>>>>>>>>>>>>>>>>>>>>[-][<>>>>>>>>>>>>>>>+>>>>>>>>>>>>>>>-<>]>>>>>>>>>>>>>>>+>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>[-]>>>>>>>>>>>>>+>>>>>>>>>>>>>>>>-]>>>>>>>>>>>>>>>>+>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>[-][<>>>>>>>>>>>>>>>+>>>>>>>>>>>>>>>>>-<>]>>>>>>>>>>>>>>>>>+>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>[-]>>>>>>>>>>>>>+>>>>>>>>>>>>>>>>>>-]>>>>>>>>>>>>>>>>>>+>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>[-][<>>>>>>>>>>>>>>>+>>>>>>>>>>>>>>>>>>>-<>]>>>>>>>>>>>>>>>>>>>+[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>>[-][-][-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-][-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-][-]>[-]>[-]>[-]>[-]>[-]>[-]+<is there when the program is storing theHello world!` string, but whatever. It works, and I've drained my capacity to care why.

Usage and Installation

The best way to install free is with the rust package manager.

bash
cargo install -f fr

Then, free files can be compiled with the fr binary.

bash
fr in.fr
gcc out.c
./a.out

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rust

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言