Giter Club home page Giter Club logo

solar's Introduction

solar

Over his palm hovered the shards that had once been his spectacles, and though the enchantments on them were gone there was something a great deal more dangerous to be glimpsed in them now. The last thing they’d witnessed was the Summer sun in the fullness of its glory, and that light was still alive in the glass. It might never leave. - A Practical Guide To Evil

gonna make a perfect programming language. gonna make it with imperfect code.

design has rambling about design and motivation and problems, but tldr its immutable statically typed lua

progress

it can build values, declare variables, do if statements, define cores, evaluate arms of cores, do simple changes, and call simple functions. it either emits llvm ir (run it like lua src/main.lua --llvm && lli output.ll) or does a dumb tree walking interpreter.

todo is basically "add defered types, add type safety, add generic functions, add reference counting" and then hopefully i can evaluate factorials or whatever.

building

requires lua 5.3 and llvm-7

this uses lualvm and is probably the only program in the history of the world to do so. you gotta install inclua which is some random dude's lua bindgen and then go to lib/lualvm and run export CXX=clang++ && export CC=clang && mkdir build && cd build && cmake .. && make && make install. and also maybe remove LLVMCreateOprofileJITEventListener from /usr/include/llvm-c/ExecutionEngine.h. c'est la vie.

i wrote a parser in rust for this but its not hooked up. once that works you'll probably have to build that too.

contributing

better if you didn't, really.

solar's People

Contributors

chc4 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

hubinix

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.