flofriday / luacalc

An excuse to play with the CLua runtime and play with code isolation.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LuaCalc

An excuse to play with the CLua runtime and play with code isolation.

Build

cd lua
make all
cd ..
go run main.go add.lua

Note: If you change the C code you will need to rebuild lua and you might need to force a rebuild in Go with go run -a main.go

Features

At the moment it only let's the user select an implementation but there are no security mitigation to ensure the provided code doesn't crash the calculator.

The following features are planned

  • Swapable implementation
  • Memory limit
  • Time limit
  • No I/O
  • No imports

About

An excuse to play with the CLua runtime and play with code isolation.

License:MIT License


Languages

Language:C 98.8%Language:Makefile 0.9%Language:Go 0.2%Language:Lua 0.1%Language:C++ 0.0%