luukdegram / luf Goto Github PK
View Code? Open in Web Editor NEWStatically typed, embeddable, scripting language written in Zig.
Home Page: https://github.com/Luukdegram/luf
License: MIT License
Statically typed, embeddable, scripting language written in Zig.
Home Page: https://github.com/Luukdegram/luf
License: MIT License
Function declarations should be declared as public or private by default within the global scope
Would be cool to be able to write Luf code, and compile to WASM, rather than having to write WASM code directly. Especially because Luf has type-safety and is a lot more readable than WASM text.
Currently we store the whole instruction since a list, but it would save some memory if we were to simply store the index of the instruction
Some instructions can easily be optimized such as:
const x = 5 + 5
can be optimized to const x = 10
.
const myFunc = fn() { return 5 }
can be optomized to return 5.
Luf already supports nil literals, but assigning nil to a variable will make its type nil
as well.
Optional should be seperate type that must be handled before usage, similair to how Zig handles them.
Currently error messages require to be comptime known, cuasing us to lose runtime known information, such as an en expected type. By allocating them we can use std.fmt.allocPrint() to make fancy error messages.
Ensure we do not forget to free all memory created by those messages. Either by deinit() or when write() is called.
Adding support for debug symbols will allow us to print error traces for runtime errors.
Currently all tests are handwritten within Zig with a lot of expects().
This is not really manageable, and takes quite some work to update on changes.
We should look into behavioral tests.
Currently, the user would have to create their own Zig project first, and embed the VM to be able to write Luf code. Luf should also come as a standalone CLI tool that can run both Luf files as well as compiled bytecode for faster execution using flags.
Currently, all imported functions have as type module
. This causes errors during type checking.
This depends on #10.
It would be a cool experiment to compile to typed ZIR that can be used by Zig's compiler to compile it to machine code and see its effect on performance compared to regular Zig code.
Obviously we will have to comply with Zig's semantics and type system, allowing us to only implement features that are supported by Zig. We will also have to handle memory usage someway.
This is required so we can do type checking on imported modules.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.