Creative Commons Zero v1.0 Universal

项目介绍

iczelia/blc-mb 是一个托管在 GitHub 上的开源项目,主要使用 C 编写,采用 Creative Commons Zero v1.0 Universal 许可证,目前获得 17 个 Star、2 次 Fork。

仓库全名
iczelia/blc-mb
开源许可证
Creative Commons Zero v1.0 Universal
Star 数
17
Fork 数
2

README 摘要

blc-mb Binary Lambda Calculus evaluation engine written in Malbolge. Features: Garbage collection Monadic I/O Tail call optimisation Compatible with existing BLC8 programs Usage Steps: Navigate to the folder blc-vX.XX with the desired version. If you have bzip3 installed, you can download the .bz3 archive as it's much smaller. If not, then download the other ones. Unpack it. Built fast20.c with clang. For most…

完整内容见 GitHub 原始 README 或本页 。

常见问题

blc-mb 用什么语言开发?

主要使用 C 编写,采用 Creative Commons Zero v1.0 Universal 许可证,目前有 17 个 Star。

blc-mb 可以免费商用吗?

仓库标注的许可证为 Creative Commons Zero v1.0 Universal,商用前请先阅读仓库 LICENSE 文件确认授权范围。

如何获取 blc-mb 的源码?

可以直接克隆仓库:git clone https://github.com/iczelia/blc-mb.git;安装与运行步骤见仓库 README。

blc-mb 最近还在维护吗?

仓库最近一次更新为 2022年5月29日,当前没有未关闭的 Issue;Star 数为 17,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

Binary Lambda Calculus evaluation engine written in Malbolge.

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
38
价值分
12
活跃状态
活跃

语言占比

C

贡献者

README

blc-mb

Binary Lambda Calculus evaluation engine written in Malbolge. Features:

  • Garbage collection
  • Monadic I/O
  • Tail call optimisation
  • Compatible with existing BLC8 programs

Usage

Steps:

  • Navigate to the folder blc-vX.XX with the desired version.
  • If you have bzip3 installed, you can download the .bz3 archive as it’s much smaller. If not, then download the other ones.
  • Unpack it.
  • Built fast20.c with clang. For most machines, clang -O3 -march=native -mtune=native fast20.c -o f20 will do.

Example programs:

  • ( cat examples/hilbert.Blc ; echo -n "123" ) | ./f20 blc.mb
  • ( cat examples/reverse.Blc ; echo -n 'Hello, world!' ) | ./f20 blc.mb
  • echo "*Hello" | ./f20 blc.mb

Issues you might stumble upon

  • If fast20 segfaults, then you most probably haven’t pointed it towards a valid program to execute.
  • The interpreter might take a while to “warm up”. For me, it seems to take around 30 seconds before starting to parse.
  • Parsing is pretty slow, expect the Hilbert curve program to take around 2 hours.
  • If you don’t have a Linux machine or WSL, you’re out of luck because fast20 doesn’t work on Win32. PRs welcome!

There are a few error codes. The interpreter will not signal exhausting heap memory and will invoke undefined behavior.

  • E00 - Unexpected EOF
  • E01 - Memory exhausted.
  • E02 - Unfinished expression.
  • E03 - Referencing an undefined variable.
  • E04 - Continuations exhausted.
  • E05 - Malformed term.

Version history

  • v0.01 - 48,175,489 bytes - Initial release.

评论

暂无评论