Skip to content
0:00 / 0:00

#llvm#minecraft#rust

Langcraft - Compiler from LLVM IR to Minecraft Datapacks

Salix Engineering

188 subscribers • 1 video on Hallway

YouTube
  • Recommended by 1 person: 1 in engineering communities.
  • Linked in the descriptionSuperTails/langcraft
  • May be out of date. Uploaded 6 years ago, in an area where tools change fast.

Advanced. Deep dive for people who know the field.

7.7K views6 years ago1 recommendation

Systems programmingGame developmentCompilers and interpretersRustGame programming

A demonstration of Langcraft compiling a Rust-written lexer and parser into a vanilla Minecraft datapack.

This is a video of an lexer/parser/interpreter written in Rust compiled using Langcraft into a datapack running in vanilla Minecraft 1.16.1. This is just an example: any language that can be compiled into LLVM bitcode is supported by Langcraft using a completely unmodified frontend. Repository is: github.com/SuperTails/langcraft

Why it's here

1 person recommends this

What people say. Recommended as a demonstration of compiling LLVM IR to run inside Minecraft.

u/MrPowerGamerBRin r/programming • Recommends

On “LLVM's newest target: Minecraft”

Mods (as in: Minecraft Forge mods and similar)? No. Mods (with data packs/resource packs)? Yes. Here's a video showing it off: link to this video The video may be a bit "what" when you see it at first until you read the description: They coded a lexer/parser in Rust that can "parse" the banners in game.