-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'development' into pixel_with_deftype_defgeneric
- Loading branch information
Showing
52 changed files
with
580 additions
and
466 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Build and test on Ubuntu | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build-linux: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
fetch-depth: 0 | ||
|
||
- name: Update repos | ||
run: sudo apt-get update -y | ||
|
||
- name: Set up prerequisites | ||
run: sudo apt-get install -y sbcl | ||
|
||
- name: Set up Github environment | ||
id: setup_environment | ||
run: | | ||
SHORT_SHA=$(git rev-parse --short HEAD) | ||
DATE=`date +"%Y-%m-%d"` | ||
echo "TRE_DEVELOPMENT=1" >> $GITHUB_ENV | ||
echo "TRE_DEBUG=1" >> $GITHUB_ENV | ||
- name: Build | ||
run: ./make.sh boot | ||
|
||
- name: Install | ||
run: sudo ./make.sh install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
(var *tre-path* (| (getenv "TRE_PATH") "/usr/local/lib/tre/")) | ||
(var *tre-path* (| (getenv "TRE_PATH") "./")) | ||
(var *modules-path* (+ *tre-path* "/modules/")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
; TODO: Move to math/? | ||
|
||
(fn close-enough? (x y precision) | ||
(> precision (abs (- x y)))) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
(fn %map-args (lists) | ||
(block nil | ||
(let* ((i lists) | ||
(nl (make-queue))) | ||
(tagbody | ||
start | ||
(? (not i) | ||
(return (queue-list nl))) | ||
(? (not (car i)) | ||
(return nil)) | ||
(enqueue nl (car (car i))) | ||
(rplaca i (cdr (car i))) | ||
(setq i (cdr i)) | ||
(go start))))) | ||
|
||
(fn mapcar (func &rest lists) | ||
(let-if args (%map-args lists) | ||
(. (*> func args) | ||
(*> #'mapcar func lists)))) | ||
|
||
(fn mapcan (func &rest lists) | ||
(*> #'append (*> #'mapcar func lists))) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
(defmacro !aadjoin! (key init update al &key (test #'equal)) | ||
(with-gensym g-key | ||
`(with (,g-key ,key) | ||
(!? (assoc ,g-key ,al :test ,test) | ||
,update | ||
(acons! ,g-key ,init ,al))))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
(fn reduce (f l &optional initial-value) | ||
"Reduce list L using function F, optionally starting with INITIAL-VALUE." | ||
(? l | ||
(with (result (? initial-value | ||
(funcall f initial-value l.) | ||
l.)) | ||
(@ (i .l result) | ||
(= result (funcall f result i)))) | ||
initial-value)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
(defbuiltin filter (fun x) | ||
(CL:MAPCAR fun x)) | ||
|
||
(defbuiltin mapcan (fun x) | ||
(CL:MAPCAN fun x)) | ||
|
||
(defbuiltin append (&rest x) | ||
(*> #'CL:NCONC (CL:MAPCAR #'CL:COPY-LIST x))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
(fn getenv (x) | ||
(%aref process.env x)) | ||
(? (defined? process) | ||
(%aref process.env x))) |
5 changes: 5 additions & 0 deletions
5
environment/transpiler/targets/javascript/core/slot-value.lisp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
(fn slot-value (x n) | ||
(%aref x n)) | ||
|
||
(fn =-slot-value (v x n) | ||
(=-%aref v x n)) |
Oops, something went wrong.