• Stars
    star
    502
  • Rank 87,851 (Top 2 %)
  • Language
    Common Lisp
  • Created about 12 years ago
  • Updated over 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Low-level Lisp for LLVM

If you are here, you were probably looking for Hylas Lisp

This project is being rewritten. Please check back in a few megaseconds.

What is this?

A statically-typed, low-level dialect of Lisp that targets LLVM.

Why?

The era of dynamic languages is over. There is currently a 'race to the bottom': Languages like Rust and Nimrod are merging the world of low-level programming with high-level compiler features. cmacro is another one of my contributions to this movement.

Features

  • Static typing with partial inference.
  • Manual memory management with multiple safety guarantees.
  • Common Lisp Conditions and Restarts for error handling.
  • Macros and Common Lisp-style reader macros.
  • Runtime optional.

Anti-Features

  • Garbage Collection.
  • Exceptions.

Status

See the Trello board.

Please don't post this on Hacker News yet.

Notes

This project was originally called Hylas Lisp. I have been working on it on and off since early 2012, but I've wanted something along these lines for a much longer time. It was originally written in C++, then in Common Lisp. Third time's the charm 😹.

The original repository was overwritten because I wanted a clean slate. I hope the code, in this third iteration, is to your liking. I have tried my best to write clean, concise code and comments.

There will eventually be a language reference and manual. For now, most of the documentation on the compiler implementation is available as comments throughout the source code.

Acknowledgments

License

Copyright (c) 2014 Fernando Borretti

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

More Repositories

1

cmacro

Lisp macros for C
Common Lisp
885
star
2

magma

Extending C with cmacro
C
328
star
3

interim

Low-level Lisp with compile-time memory management
Standard ML
269
star
4

crane

An ORM for Common Lisp.
Common Lisp
201
star
5

lucerne

A web framework for Common Lisp, built on Clack
Common Lisp
142
star
6

cl-yaml

YAML parser for Common Lisp
Common Lisp
61
star
7

corona

Create and manage virtual machines from Common Lisp
Common Lisp
49
star
8

rock

Asset manager and compiler for Common Lisp web apps
Common Lisp
46
star
9

trivial-ssh

An SSH client library for Common Lisp (Built on libssh2)
Common Lisp
43
star
10

hermetic

Security for Clack-based Common Lisp web applications.
Common Lisp
42
star
11

docparser

Extract documentation from Common Lisp systems
Common Lisp
41
star
12

eco

Fast, flexible, designer-friendly templates for Common Lisp
Common Lisp
39
star
13

trivial-download

Download files from Common Lisp through Drakma.
Common Lisp
38
star
14

asdf-linguist

ASDF extensions.
Common Lisp
34
star
15

spaced-repetition-tools

Scripts for generating flashcards.
Python
33
star
16

swank-protocol

A low-level client for Swank
Common Lisp
31
star
17

cl-pass

Password hashing and verification library
Common Lisp
30
star
18

clack-errors

Error page middleware for Clack.
JavaScript
27
star
19

lime

A client for Swank
Common Lisp
26
star
20

dotfiles

Not guaranteed to work outside of My Machineβ„’
Emacs Lisp
23
star
21

find-port

Programmatically find open ports.
Common Lisp
19
star
22

trivial-open-browser

Open a browser window. From Common Lisp.
Common Lisp
18
star
23

terminal-keypress

Read keyboard events in the terminal from Common Lisp
Common Lisp
15
star
24

parsing-menhir

Code for a tutorial on parsing with Menhir
OCaml
15
star
25

eudoxia0.github.io

Personal website
HTML
14
star
26

lcm

Manage your system configuration in Common Lisp.
Common Lisp
12
star
27

astro-eog581

Astronomical calculations for The Epiphany of Gliese 581.
Common Lisp
11
star
28

terminal-size

Get the size of the terminal from Common Lisp
Common Lisp
11
star
29

parsimony

Parser combinators for Standard ML
Standard ML
10
star
30

clos-fixtures

CLOS fixtures.
Common Lisp
9
star
31

avatar-api

Get avatars from Gravatar and other services.
Common Lisp
9
star
32

postmaster

Email for humans
Common Lisp
8
star
33

arachne

A web crawling framework in Common Lisp.
Common Lisp
8
star
34

cl-virtualbox

Control VirtualBox from Common Lisp
Common Lisp
8
star
35

airloom

A reverse literate programming tool.
Haskell
7
star
36

cl-libyaml

libyaml bindings for Common Lisp
Common Lisp
6
star
37

concordia

A document preparation system
Standard ML
4
star
38

trivial-extract

Extract compressed files painlessly.
Common Lisp
4
star
39

ctbnrle

Continuous Time Bayesian Network Reasoning and Learning Engine (CTBN-RLE)
C
4
star
40

cartesian

My personal exocortex
Python
3
star
41

which

The which command in Common Lisp
Common Lisp
3
star
42

l0

Linear Lisp
Standard ML
3
star
43

cl-base58

An implementation of base58 for Common Lisp
Common Lisp
3
star
44

parse-front-matter

A Jekyll-style front matter parser
Common Lisp
3
star
45

clippings-parser

Export Kindle clippings to JSON, CSV, or Markdown.
Python
2
star
46

NeuriteTracer

An experiment in computer vision.
C++
2
star
47

lass-flexbox

Flexbox for Lass
Common Lisp
2
star
48

mlunit

A test framework for Standard ML
Standard ML
2
star
49

ocaml-nix-starter

OCaml starter project template using Nix for reproducibility.
Nix
2
star
50

git-file-history

View a file's git history, and individual commit info
Common Lisp
2
star
51

diy-clozemaster

Python
2
star
52

sml-sqlite3

SQLite3 bindings for MLton
Standard ML
1
star
53

MNT

Molecular machinery built in NanoEngineer, in .mmp format.
1
star
54

wax

TeX-like markup language experiment thing
Common Lisp
1
star
55

path-parse

Parse the PATH environment variable portably
Common Lisp
1
star
56

benchmarks

Common Lisp vs. the World
Common Lisp
1
star
57

texgen

Lisp DSL for generating TeX
Common Lisp
1
star