Logo

dev-resources.site

for different kinds of informations.

Luna Compiler Devlog #1

Published at
8/2/2023
Categories
devlog
luau
compiler
llvm
Author
lopydark
Categories
4 categories in total
devlog
open
luau
open
compiler
open
llvm
open
Author
8 person written this
lopydark
open
Luna Compiler Devlog #1

Hey all!

Introduction

I got curious about how languages like C++ or Rust does work and wanted to make my own. I use Luau (lua but typed) on my daily, but it is an interpreted language, so I wanted to make it work in native (binary).

Overview

I've started this proyect using Rust, LLVM bindings (inkwell) and a Luau parser, I got the most dummy program working:

return 2
Enter fullscreen mode Exit fullscreen mode

When I run the binary, the exit code is 2. I'm really new to compilers and this is my first one. I know this will be a very hard and ambitious project, but at least I want something functional, maybe not for daily usage.

Compilation process

Well, the Rust project only takes the .luau file and emits an object file (.obj/.o) and also I have another Rust project (yes, I'm using cargo's workspaces) that takes that object file and converts it into a binary file using the LLVM toolset (clang).

devlog Article's
30 articles in total
Favicon
My Study Schedule for 2025
Favicon
My (highly caffeinated) journey to unlock the hidden knowledge of AI.
Favicon
How to Impress Passengers and Earn Rewards in Cabin Crew Life Simulator - Devlog #7
Favicon
How to Quickly Level Up and Earn Money in Cabin Crew Life Simulator - devlog#6
Favicon
Turning VSCode Into an Art Program (sorta)
Favicon
Ranking System and Career Progression in Cabin Crew Life Simulator - Devlog #5
Favicon
DEVLOG[0]: Journey into making no-code Flutter IDE
Favicon
Decoding Airplane Seat Mysteries in Cabin Crew Life Simulator - Devlog#4
Favicon
BandBoard App
Favicon
Exploring the Galley of Cabin Crew Life Simulator – Inside the Aircraft Cabin - Devlog #2
Favicon
DevLog 1: 10/15/2024 Desguon Room
Favicon
How I built PeerSplit: A free, peer-to-peer expense-splitting app—from idea to launch in just 2 weeks
Favicon
Сентябрьское обновление
Favicon
I'm Starting a dev log
Favicon
KrissVector Update
Favicon
Minecraft Modpack Development Update: Beta Test and Musical Additions
Favicon
My Dream Game Engine
Favicon
I made a Infinite Tic Tac Toe , and its amazin....
Favicon
Pokemon Battle Simulator/Showdown Clone Devlog#0
Favicon
Maiu Online - Browser MMORPG #indiegamedev #babylonjs Ep22 - Map editor
Favicon
#babylonjs Browser MMORPG #indiegamedev Ep21 - Spatial Hash Grid Area of Interest
Favicon
Pathfinding
Favicon
Let's create an Opensource Headless E-learning using Symfony
Favicon
Dev Log D-05&06. Forward Propagation Implemented.
Favicon
RuntDeale DevLog : ...1?
Favicon
1. Building an RTS game in Unity - Basic Unit Navigation and selection tool
Favicon
Architecture design of my game My Pixel Plant
Favicon
Failure and fit
Favicon
Luna Compiler Devlog #1
Favicon
Context and complexities

Featured ones: