id int64 0 45.1k | file_name stringlengths 4 68 | file_path stringlengths 14 193 | content stringlengths 32 9.62M | size int64 32 9.62M | language stringclasses 1
value | extension stringclasses 6
values | total_lines int64 1 136k | avg_line_length float64 3 903k | max_line_length int64 3 4.51M | alphanum_fraction float64 0 1 | repo_name stringclasses 779
values | repo_stars int64 0 882 | repo_forks int64 0 108 | repo_open_issues int64 0 90 | repo_license stringclasses 8
values | repo_extraction_date stringclasses 146
values | sha stringlengths 64 64 | __index_level_0__ int64 0 45.1k | exdup_ids_cmlisp_stkv2 listlengths 1 47 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
16,224 | jvmclass.lisp | davidsun0_lateral/interpreter/jvmclass.lisp | (defun to-u2 (x)
(let (len-lo (% x 0xFF)
len-hi (// x 0xFF))
(list len-hi len-lo)))
(defun utf8-info (str)
; utf8 tag is 0x01
(concat (cons 0x01
(to-u2 (length str)))
(map char-int (to-chars str))))
(defun classref-info (num)
(cons 0x07 (to-u2 num)))
(defun string-info (... | 3,551 | Common Lisp | .lisp | 81 | 35.641975 | 85 | 0.509249 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | ee8bcab77982c9dce55990be0062545ee45ca20a982e870435f02a330f421e06 | 16,224 | [
-1
] |
16,225 | simple.lisp | davidsun0_lateral/interpreter/test/simple.lisp | ;; Lateral Unit Tests
;; To add a test: type the textual input followed by a new line, a semicolon,
;; and then the expected output.
;; Tests should be split with an empty line.
;; Arithmetic
12345
; 12345
(+ 1 1)
; 2
(+ 1 2 3 4 5)
; 15
(+ 1
(+ 1 1))
; 3
;; Function calls
((lambda () 321))
; 321
((lambda (x)
... | 559 | Common Lisp | .lisp | 41 | 12.02439 | 77 | 0.626984 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | a42ccd9fbb24889a1622feac57555842f1358941dadc55c879df2aaf339d4a81 | 16,225 | [
-1
] |
16,226 | jvmhello.lisp | davidsun0_lateral/interpreter/old/jvmhello.lisp | (defun to-u1 (x)
(if (< x 0xFF)
(list x)
"int too large for 1 byte"))
(defun to-u2 (x)
(if (< x 0xFFFF)
(concat (to-u1 (// x 0xFF))
(to-u1 (% x 0xFF)))
"int too large for 2 bytes"))
(defun to-u4 (x)
(concat (to-u2 (// x 0xFFFF))
(to-u2 (% x 0xFFFF))))
(defun const-to-bin (... | 7,973 | Common Lisp | .lisp | 200 | 28.835 | 85 | 0.512744 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 27ecc63a47242e7e7b92284b3a660984c807da3aa4e16d47a9cbb4a8e68fd345 | 16,226 | [
-1
] |
16,227 | core.lisp | davidsun0_lateral/interpreter/old/core.lisp | (def defmacro
(macro (name args expr)
`(def ~name (macro ~args ~expr))))
(defmacro quote (x))
(defmacro defn (a b c)
`(def ~a (fn ~b ~c)))
(defn inc (n)
(+ n 1))
(defn mult (a b)
(loop (acc 0 n 0)
(if (= n b)
acc
(recur (+ acc a) (+ n 1)))))
| 274 | Common Lisp | .lisp | 13 | 17.615385 | 38 | 0.51751 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | bb29fbe0bf8b776686dcc270444c74e577087b8ecde7a8a6e58bfbc416a5b902 | 16,227 | [
-1
] |
16,228 | hello.lisp | davidsun0_lateral/interpreter/old/jvm/hello.lisp | (defun main ()
(pprint0 "hello world!\n"))
;; basic utilities
(defun not (p)
(if p nil t))
| 97 | Common Lisp | .lisp | 5 | 17.2 | 29 | 0.633333 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 1edcbe13dc58b311903865e252e96ca09b25c09eb1b7ad537bd25d061dc2fe69 | 16,228 | [
-1
] |
16,229 | lc.lisp | davidsun0_lateral/interpreter/old/jvm/lc.lisp | (include "ir.lisp")
(include "jvmtable.lisp")
(defun u1 (x)
(if (< x 0x100)
(list x)
(throw "int too large for 1 byte")))
(defun u2 (x)
(if (or (< x 0xFFFF) (= x 0xFFFF))
(list (bit-and (bit-asr x 8) 0xFF)
(bit-and x 0xFF))
(throw "int too large for 2 bytes")))
(defun u4 (x)
(concat (... | 20,256 | Common Lisp | .lisp | 579 | 25.735751 | 87 | 0.533589 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | dbc8e33be3433eaf6f4dc8fed08c3ddcfc554cb2c15803cca1b8b17ae8851adf | 16,229 | [
-1
] |
16,230 | lateral.lisp | davidsun0_lateral/interpreter/old/jvm/lateral.lisp | (defun not (p)
(if p nil t))
(defun second (list)
(first (rest list)))
(defun nth (n list)
(if (= n 0)
(first list)
(nth (dec n) (rest list))))
(defun length0 (list acc)
(if list
(length0 (rest list) (inc acc))
acc))
(defun length (list)
(length0 list 0))
(defun reverse0 (in acc)
(if in... | 7,933 | Common Lisp | .lisp | 233 | 27.987124 | 77 | 0.596434 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | ec8c640c838d2029a172e5fc4735b3799cf982be6c08e44cc419ef64b9dad351 | 16,230 | [
-1
] |
16,231 | jvmtable.lisp | davidsun0_lateral/interpreter/old/jvm/jvmtable.lisp | (def *bytecodes* (hashmap))
(insert! *bytecodes* :aconst_null 0x01)
(insert! *bytecodes* :ldc 0x12)
(insert! *bytecodes* :ldc_w 0x13)
(insert! *bytecodes* :aload 0x19)
(insert! *bytecodes* :astore 0x3A)
(insert! *bytecodes* :pop 0x57)
(insert! *bytecodes* :dup 0x59)
(insert! *bytecodes* :goto 0xA7)
(insert! *byte... | 3,680 | Common Lisp | .lisp | 95 | 33.673684 | 65 | 0.620428 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 642272176909e946144777d0056fb07a4a31fbf01eea445ff625e3e658841288 | 16,231 | [
-1
] |
16,232 | ir.lisp | davidsun0_lateral/interpreter/old/jvm/ir.lisp | ;; expands macros, part1
(defun ast-analysis0 (in)
(if (list? in)
(ast-analysis1 in nil)
in))
;; expands macros, part2
(defun ast-analysis1 (in acc)
(cond
(nil? in) (reverse acc)
(and (nil? acc) (contains? macros (first in)))
(ast-analysis0 (macro-expand (get macros nil) in))
t (ast-analy... | 9,016 | Common Lisp | .lisp | 245 | 26.457143 | 87 | 0.515978 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 78df30517042f897502dd6d0aeb383d6c70ca084975d1b32cc4646878f5b1b19 | 16,232 | [
-1
] |
16,233 | omni.lisp | davidsun0_lateral/interpreter/old/jvm/omni.lisp | (def *gensym-count* 0)
(defun gensym (:rest prefix)
(->> (inc *gensym-count*)
(def *gensym-count*)
(string (if prefix
(first prefix)
"gsym"))
(symbol)))
;; clojure threading macros
(defun ->0 (exprs acc)
(if exprs
(->0 (rest exprs)
(cons (first (f... | 12,872 | Common Lisp | .lisp | 440 | 23.793182 | 76 | 0.566068 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 0677badb065e9cc1241d10864e618de8be49ebcb0490be0e42f55fc29c44bed3 | 16,233 | [
-1
] |
16,234 | read.lisp | davidsun0_lateral/interpreter/old/jvm/read.lisp | (def *read-pos* 0)
(def *read-tail* 0)
(def *read-str* nil)
(defun r-peek (off)
(if *read-str*
(->> (+ *read-pos* off)
(char-at *read-str*))))
;(defun r-peek (off)
; (if *read-str*
; (char-at *read-str* (+ *read-pos* off))))
(defun r-next! ()
(let (x (r-peek 0))
(progn
(def *read-pos* ... | 2,485 | Common Lisp | .lisp | 84 | 24.22619 | 70 | 0.528047 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | afd71734dec872c4827d173b90f200b31de943d359460fb76fb0113163e7f32c | 16,234 | [
-1
] |
16,235 | lateral2.lisp | davidsun0_lateral/interpreter/old/jvm/lateral2.lisp | (defun not (p)
(if p nil t))
(defun nil? (p)
(if p nil t))
(defun inc (n)
(+ 1 n))
(defun dec (n)
(- n 1))
(defun second (lst)
(first (rest lst)))
(defun third (lst)
(first (rest (rest lst))))
(defun fourth (lst)
(first (rest (rest (rest lst)))))
(defun nth (n list)
(if (= n 0)
(first list)
... | 8,261 | Common Lisp | .lisp | 276 | 24.862319 | 77 | 0.571429 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 71613e7c7a96e17ab9aa549636ecef0e1f8c0c07a2bc4afcdfae96d224d498c2 | 16,235 | [
-1
] |
16,236 | compiler.lisp | davidsun0_lateral/interpreter/old/jvm/compiler.lisp | ;;; reduces a tree to a list of lists
(defun semi-flatten0 (in acc)
(if in
(if (and (list? (first in))
(list? (first (first in))))
(semi-flatten0 (rest in) (semi-flatten0 (first in) acc))
(semi-flatten0 (rest in) (cons (first in) acc)))
acc))
(defun semi-flatten (in)
(reverse (semi... | 8,991 | Common Lisp | .lisp | 236 | 25.771186 | 80 | 0.490239 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | d021069788399a9b74ddb7f766930f955230682a109a47602a0a9f042e6c99f1 | 16,236 | [
-1
] |
16,237 | jvmclass.lisp | davidsun0_lateral/interpreter/old/jvm/jvmclass.lisp | (include "compiler.lisp")
(def pool (hashmap))
(def pool-count 1)
(def pool-list nil)
(def method-list (hashmap))
(defun to-u1 (x)
(if (< x 0x100)
(list x)
(asdf "int too large for 1 byte")))
(defun to-u2 (x)
(if (or (< x 0xFFFF) (= x 0xFFFF))
(list (bit-and (bit-asr x 8) 0xFF)
(bit-and x ... | 22,990 | Common Lisp | .lisp | 566 | 30.660777 | 82 | 0.543558 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | e4e164af74e46ebf8df7310d11333fb602274fbf3b31177cc26030b113a0416d | 16,237 | [
-1
] |
16,238 | core.lisp | davidsun0_lateral/interpreter/old/jvm/core.lisp | ; runtime list
; TODO: move to Runtime.java
(def list (lambda (:rest l) l))
(defmacro defun (name args expr)
(list (quote def)
name
(list (quote lambda) args expr)))
;(defmacro defun (name args expr)
; `(def ,name (lambda ,args ,expr))
; TODO: move to Runtime.java
(defun cons1 (in acc)
(if in
... | 7,838 | Common Lisp | .lisp | 270 | 23.92963 | 77 | 0.572761 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | a2c63ba1a15bdafade722cb44547d8283e83efee86e2fbbc75ea9a0071fd6b2c | 16,238 | [
-1
] |
16,239 | lc.lisp | davidsun0_lateral/interpreter/jvm/lc.lisp | (include "jvmtable.lisp")
(defun stack-info0 (acc expr)
(let (cstack (second acc)
mstack (if (< (first acc) cstack)
cstack
(first acc))
lablist (third acc))
(case (first expr)
;; stack +1
(:aload :aconst_null :iconst :dup :getstatic :ldc)
(list ... | 13,288 | Common Lisp | .lisp | 363 | 26.253444 | 81 | 0.514239 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 288c59127b97dbe24f8729a4d73a777f8668d4c7ff2a6ace74da70f744ea5f69 | 16,239 | [
-1
] |
16,240 | lateral.lisp | davidsun0_lateral/interpreter/jvm/lateral.lisp | (defun not (p)
(if p nil t))
(defun nil? (p)
(if p nil t))
(defun inc (n)
(add0 1 n))
(defun dec (n)
(add0 n (negate 1)))
(defun add1 (nums acc)
(if nums
(add1 (rest nums) (add0 (first nums) acc))
acc))
(defun + (:rest nums)
(add1 nums 0))
(defun - (:rest nums)
(if (rest nums)
(add0 (fir... | 33,753 | Common Lisp | .lisp | 1,000 | 26.108 | 87 | 0.537026 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 24881f6c846cdf7e61187ca049145cee88198edd0b192dbb163b82565c6a76fc | 16,240 | [
-1
] |
16,241 | jvmtable.lisp | davidsun0_lateral/interpreter/jvm/jvmtable.lisp | (def *bytecodes* (hashmap))
(insert! *bytecodes* :aconst_null 0x01)
(insert! *bytecodes* :ldc 0x12)
(insert! *bytecodes* :ldc_w 0x13)
(insert! *bytecodes* :aload 0x19)
(insert! *bytecodes* :astore 0x3A)
(insert! *bytecodes* :pop 0x57)
(insert! *bytecodes* :dup 0x59)
(insert! *bytecodes* :goto 0xA7)
(insert! *byte... | 4,261 | Common Lisp | .lisp | 107 | 36.719626 | 65 | 0.625182 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 79d2c38fa70e6fba770a36bc3fb2814751ca55041b94a1f46d62da59b43f2491 | 16,241 | [
-1
] |
16,242 | ir.lisp | davidsun0_lateral/interpreter/jvm/ir.lisp | ;; expands macros, part1
(defun ast-analysis0 (in)
(if (list? in)
(ast-analysis1 in nil)
in))
;; expands macros, part2
(defun ast-analysis1 (in acc)
(cond
(nil? in) (reverse acc)
(and (nil? acc) (contains? macros (first in)))
(ast-analysis0 (macro-expand (get macros nil) in))
t (ast-analy... | 9,310 | Common Lisp | .lisp | 250 | 26.444 | 80 | 0.510532 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 911c846681a016690642950a2ec6a14e588ba126f12380a65f1cb0c5e088f804 | 16,242 | [
-1
] |
16,243 | read.lisp | davidsun0_lateral/interpreter/jvm/read.lisp | (def *read-pos* 0)
(def *read-tail* 0)
(def *read-str* nil)
(defun r-peek (off)
(if *read-str*
(->> (+ *read-pos* off)
(char-at *read-str*))))
;(defun r-peek (off)
; (if *read-str*
; (char-at *read-str* (+ *read-pos* off))))
(defun r-next! ()
(let (x (r-peek 0))
(progn
(def *read-pos* ... | 3,516 | Common Lisp | .lisp | 113 | 25.628319 | 76 | 0.527753 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | aeeb0ab92275e16107f1a5339d1bd6bffe68667d755aa0cdf6b58e3b76c03120 | 16,243 | [
-1
] |
16,244 | core.lisp | davidsun0_lateral/interpreter/jvm/core.lisp | ; runtime list
; TODO: move to Runtime.java
(def list (lambda (:rest l) l))
(defmacro defun (name args expr)
(list (quote def)
name
(list (quote lambda) args expr)))
;(defmacro defun (name args expr)
; `(def ,name (lambda ,args ,expr))
; TODO: move to Runtime.java
(defun cons1 (in acc)
(if in
... | 5,394 | Common Lisp | .lisp | 185 | 23.810811 | 76 | 0.564788 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | a804f40d1a6821d5d036c2b53549746436961c0c63585f85f13bd9b358fa90a6 | 16,244 | [
-1
] |
16,245 | test.lisp | davidsun0_lateral/interpreter/jvm/test.lisp | (defun addn (n)
(lambda (x) (+ n x)))
(defun print1 (plist)
(if plist
(progn (print0 (first plist))
(pprint0 " ")
(print1 (rest plist)))
(pprint0 "\n")))
(defun print (:rest x)
(print1 x))
(defun main ()
(let (f (addn 5))
(progn
(print addn)
(print 1 2 3 4 5)
... | 1,585 | Common Lisp | .lisp | 53 | 23.169811 | 72 | 0.548917 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 55d3f666d1a66c3e8c46366bd27b7bdc1d39ca545efb22255a5a093264233302 | 16,245 | [
-1
] |
16,246 | lc2.lisp | davidsun0_lateral/interpreter/jvm/lc2.lisp | (include "jvmtable.lisp")
(defun ir (name args ast)
(->> (ir0 name args ast nil)
(semi-flatten)
(reverse)
(filter first)))
(defun u1 (x)
(if (< x 0x100)
(list x)
(throw "int too large for 1 byte")))
(defun u2 (x)
(if (or (< x 0xFFFF) (= x 0xFFFF))
(list (bit-and (bit-asr x 8) 0... | 22,357 | Common Lisp | .lisp | 619 | 26.466882 | 87 | 0.525706 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | fe82877c8fa9254487d4a69745913139f10debd1ce021432b1119c8a047d5006 | 16,246 | [
-1
] |
16,247 | lateral.lisp | davidsun0_lateral/interpreter/bootstrap/lateral.lisp | (defun not (p)
(if p nil t))
(defun second (list)
(first (rest list)))
(defun nth (n list)
(if (= n 0)
(first list)
(nth (dec n) (rest list))))
(defun length0 (list acc)
(if list
(length0 (rest list) (inc acc))
acc))
(defun length (list)
(length0 list 0))
(defun reverse0 (in acc)
(if in... | 8,189 | Common Lisp | .lisp | 238 | 28.214286 | 83 | 0.593901 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 3aa6e4ea788d9b1843b46c2e19e8c69a6b127d0a656b3d6d00856e0d0555d322 | 16,247 | [
-1
] |
16,248 | compiler.lisp | davidsun0_lateral/interpreter/bootstrap/compiler.lisp | ;;; reduces a tree to a list of lists
(defun semi-flatten0 (in acc)
(if in
(if (and (list? (first in))
(list? (first (first in))))
(semi-flatten0 (rest in) (semi-flatten0 (first in) acc))
(semi-flatten0 (rest in) (cons (first in) acc)))
acc))
(defun semi-flatten (in)
(reverse (semi... | 8,670 | Common Lisp | .lisp | 221 | 26.493213 | 81 | 0.487767 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | feaf301aedb7b83ea7bca4850573b9a8ad4cb5336397a0ffbd19cbd549baee11 | 16,248 | [
-1
] |
16,249 | jvmclass.lisp | davidsun0_lateral/interpreter/bootstrap/jvmclass.lisp | (include "compiler.lisp")
(def pool (make-hashmap 32))
(def pool-count 1)
(def pool-list nil)
(def method-list (make-hashmap 32))
(defun to-u1 (x)
(if (< x 0x100)
(list x)
(asdf "int too large for 1 byte")))
(defun to-u2 (x)
(if (or (< x 0xFFFF) (= x 0xFFFF))
(list (bit-and (bit-asr x 8) 0xFF)
... | 24,410 | Common Lisp | .lisp | 614 | 29.654723 | 82 | 0.540051 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 313ccc35ae83e509afa2553ca407fe1ce5bf339118ec8dc4841df9b46b22ac98 | 16,249 | [
-1
] |
16,250 | core.lisp | davidsun0_lateral/interpreter/bootstrap/core.lisp | (defmacro defun (name args expr)
(list (quote def)
name
(list (quote lambda) args expr)))
(def first car)
(def rest cdr)
;; tail recursive map helper function
(defun map0 (fn in acc)
(if in
(map0 fn
(cdr in)
(cons (fn (car in)) acc))
acc))
(defun map (fn in)
(revers... | 5,900 | Common Lisp | .lisp | 219 | 21.146119 | 76 | 0.531272 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 26e8499e53e17139c651c9e3a25bd43b07e4586163fd9852a05f2c9f05aa2a36 | 16,250 | [
-1
] |
16,255 | lateral.iml | davidsun0_lateral/jvm/lateral.iml | <?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src/java" isTestSource="false" />
<sourceFolder url="f... | 1,917 | Common Lisp | .l | 31 | 55 | 132 | 0.654478 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 9a849aa1f6983b7f1306fd84cef8f1129008a4a526f61d3a3d0a6097f36e0f23 | 16,255 | [
-1
] |
16,260 | FileWatcher.java | davidsun0_lateral/jvm/src/java/lateral/interactive/FileWatcher.java | package lateral.interactive;
import java.io.IOException;
import java.nio.file.*;
import static java.nio.file.StandardWatchEventKinds.*;
public class FileWatcher {
WatchService watchService;
WatchKey key;
FileWatcher(Path dir) throws IOException {
watchService = FileSystems.getDefault().newWatchS... | 1,140 | Common Lisp | .l | 33 | 25.121212 | 73 | 0.577657 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 3a83580740760b657373c0a6c29fe4591162d67d54c519fa0ecfa4863b8a807a | 16,260 | [
-1
] |
16,261 | Repl.java | davidsun0_lateral/jvm/src/java/lateral/interactive/Repl.java | package lateral.interactive;
import lateral.lang.Compiler;
import lateral.lang.LispReader;
import java.util.NoSuchElementException;
import java.util.Scanner;
public class Repl {
public static void main(String[] args) {
Compiler.load("./src/lisp/core.lisp");
Scanner scanner = new Scanner(System.in... | 967 | Common Lisp | .l | 31 | 21.451613 | 73 | 0.536977 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 9120a2f5f0ff5fa4e8a1b9b0a82f904a1a66b0bd545bdae3c255160fc50a73a2 | 16,261 | [
-1
] |
16,262 | ClassDefiner.java | davidsun0_lateral/jvm/src/java/lateral/lang/ClassDefiner.java | package lateral.lang;
public class ClassDefiner extends ClassLoader {
private ClassDefiner() { ; }
private Class<?> loadClass(byte[] classBytes) {
return super.defineClass(null, classBytes, 0, classBytes.length);
}
/**
* Lateral's hook to define new classes at runtime.
* No manager ... | 1,283 | Common Lisp | .l | 27 | 41.259259 | 104 | 0.701516 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 62072cc316dad26c385c981328affbf0e697461986132b996faf915295946c0a | 16,262 | [
-1
] |
16,263 | Assembler.java | davidsun0_lateral/jvm/src/java/lateral/lang/Assembler.java | package lateral.lang;
import org.objectweb.asm.*;
import java.util.HashMap;
import java.util.Map;
public class Assembler {
static final private int JAVA_VERSION = 55; // 55.0 = Java 11
static Keyword LABEL = Keyword.makeKeyword("label");
static Keyword ICONST = Keyword.makeKeyword("iconst");
static... | 16,133 | Common Lisp | .l | 314 | 36.089172 | 105 | 0.551748 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 9fa7d807860679933a3c4a40d363c53c420262224ec88834813f390f36bf14d6 | 16,263 | [
-1
] |
16,264 | Symbol.java | davidsun0_lateral/jvm/src/java/lateral/lang/Symbol.java | package lateral.lang;
public final class Symbol {
private final String value;
private final int hash;
private Symbol(String value){
this.value = value;
hash = value.hashCode();
}
public static Symbol makeSymbol(String value) {
// TODO: Symbol interning
return new S... | 931 | Common Lisp | .l | 32 | 21.46875 | 58 | 0.59596 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | a43a8b3e0b87c91c353209930c7a1e0ac2218786194653c8287dfbdd13d87779 | 16,264 | [
-1
] |
16,265 | CompClass.java | davidsun0_lateral/jvm/src/java/lateral/lang/CompClass.java | package lateral.lang;
import org.objectweb.asm.Type;
import java.lang.invoke.MethodType;
import java.util.ArrayList;
import java.util.Collections;
/**
* Compilation unit representing a JVM Class
*/
class CompClass {
static int CLASS_NUM = 0;
String name;
Symbol functionName;
ArrayList<Object> memb... | 11,124 | Common Lisp | .l | 252 | 33.496032 | 113 | 0.611823 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | c92f4af33c7e2daf695359494d4508863aad62488e59783577c35879a7d5d76e | 16,265 | [
-1
] |
16,266 | Compiler.java | davidsun0_lateral/jvm/src/java/lateral/lang/Compiler.java | package lateral.lang;
import org.objectweb.asm.Type;
import java.io.IOException;
import java.lang.invoke.CallSite;
import java.lang.invoke.MethodHandles;
import java.lang.invoke.MethodType;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayDeque;
import ja... | 21,672 | Common Lisp | .l | 463 | 32.390929 | 113 | 0.548489 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | e89d83556887f98ffd9e491259b20fcb7237f2ecff594984c30120d2ed7bf276 | 16,266 | [
-1
] |
16,274 | callgrind.out.23095 | davidsun0_lateral/interpreter/old/callgrind.out.23095 | # callgrind format
version: 1
creator: callgrind-3.13.0
pid: 23095
cmd: ./a.out jvmclass.lisp
part: 1
desc: I1 cache:
desc: D1 cache:
desc: LL cache:
desc: Timerange: Basic block 0 - 7658001757
desc: Trigger: Program termination
positions: line
events: Ir
summary: 48779787292
ob=(4) /usr/lib/valgrind/vgpreloa... | 101,810 | Common Lisp | .l | 11,877 | 7.485897 | 103 | 0.671808 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | cf583a872743e2735a2c7f3b7d7f272bdfb0075dfb2107c484217237985dced8 | 16,274 | [
-1
] |
16,275 | Makefile | davidsun0_lateral/interpreter/old/Makefile | CC = gcc
CFLAGS = -Wall -Wextra -std=c99 -pedantic -ggdb
LDFLAGS = -lreadline
source = $(wildcard *.c)
objects = $(source:.c=.o)
all: lateral
.PHONY: clean
clean:
rm lateral *.o
lateral: $(objects)
$(CC) $(CFLAGS) -o lateral $^ $(LDFLAGS)
| 245 | Common Lisp | .l | 11 | 20.727273 | 47 | 0.682609 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 0e7b270e4ce06dd6ee67bc67f8309148cd1aaa88ac84c6786d30ad11fb0505bc | 16,275 | [
-1
] |
16,276 | lateral.c | davidsun0_lateral/interpreter/old/lateral.c | #include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <readline/readline.h>
#include <readline/history.h>
#include "object.h"
#include "garbage.h"
#include "env.h"
#include "reader.h"
#include "eval.h"
#include "lang.h"
static void lat_repl() {
while(1) {
char* input_str = readline("user> "... | 1,097 | Common Lisp | .l | 45 | 18.733333 | 62 | 0.5628 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 839a4cd86d04d1b9e860a157fce681133b85f0b171ac307e66b3b19699a22911 | 16,276 | [
-1
] |
16,277 | eval.c | davidsun0_lateral/interpreter/old/eval.c | #include <stdlib.h>
#include <stdio.h>
#include "lang.h"
#include "list.h"
#include "env.h"
#include "error.h"
#include "eval.h"
struct StackFrame* stack;
struct Envir* curr_env;
/**
* Pushes an S expression to the stack and sets the evaluation mode.
* A new stack frame is allocated and must be deallocated with s... | 12,177 | Common Lisp | .l | 358 | 25.659218 | 86 | 0.547136 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 48f480582f0c1524d93f65e534da9a2ddcc8988d0fe2dc26cf62e372a3c08e28 | 16,277 | [
-1
] |
16,278 | eval_old | davidsun0_lateral/interpreter/old/eval_old | #include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "object.h"
#include "list.h"
#include "hash.h"
#include "env.h"
#include "lang.h"
#include "garbage.h"
#include "eval.h"
struct Object* eval_quasi(struct Object* tree) {
if(tree->type == list_type &&
((struct List*)tree->data.ptr)->o... | 21,048 | Common Lisp | .l | 533 | 25.945591 | 79 | 0.472096 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | b3a3194f4bd053b5dc91f484e242d0b37c3031f362d3fd02888cd27a17fe7730 | 16,278 | [
-1
] |
16,279 | eval.h | davidsun0_lateral/interpreter/old/eval.h | #ifndef LATERAL_EVAL_H
#define LATERAL_EVAL_H
#include "object.h"
#include "hash.h"
#include "env.h"
enum mode {
eval_exe,
apply_exe,
macro_exe,
result_exe,
unknown
};
struct StackFrame {
struct StackFrame* prev;
struct Object* fn;
struct Object* expr;
struct Object* working;
... | 530 | Common Lisp | .l | 26 | 17.307692 | 59 | 0.710843 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | e6c9127d5d7a67a6d5c0b962429134f742d6aacebdbf869d36a03483c3e336ca | 16,279 | [
-1
] |
16,281 | callgrind.out.25338 | davidsun0_lateral/interpreter/old/callgrind.out.25338 | # callgrind format
version: 1
creator: callgrind-3.13.0
pid: 25338
cmd: ./a.out jvmclass.lisp
part: 1
desc: I1 cache:
desc: D1 cache:
desc: LL cache:
desc: Timerange: Basic block 0 - 337710463
desc: Trigger: Program termination
positions: line
events: Ir
summary: 2322287546
ob=(6) /lib/x86_64-linux-gnu/librea... | 95,799 | Common Lisp | .l | 11,314 | 7.379972 | 103 | 0.666504 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 1f7b774920d9c574ac8b6a3925cbe7b1c9445c35237999c906450c32b9a9271d | 16,281 | [
-1
] |
16,282 | old_eval.c | davidsun0_lateral/interpreter/old/old/old_eval.c | #include <stdlib.h>
#include <stdio.h>
#include "object.h"
#include "reader.h"
#include "hash.h"
#include "core.h"
#include "eval.h"
void stack_push(Object *ast, enum mode exe) {
StackFrame *frame = malloc(sizeof(StackFrame));
frame->prev = stack;
frame->fn = NULL;
frame->in = ast;
frame->in_list... | 9,633 | Common Lisp | .l | 296 | 23.300676 | 77 | 0.498444 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | e4f73468063ff66c87f934e93034c4975903b7d157a06d9118abf3978d467b2f | 16,282 | [
-1
] |
16,287 | Helper.java | davidsun0_lateral/interpreter/old/jvm/Helper.java | import java.util.NoSuchElementException;
class Helper {
public static void main(String[] args) {
Lang.include("core.lisp");
while(true) {
try {
Lateral.main();
//MyClass.main();
} catch (NoSuchElementException n) {
return;
... | 1,502 | Common Lisp | .l | 40 | 27.3 | 85 | 0.478767 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 5da7b106f7b21212aabff4a33491118773ad1fc958504970d95bbaa595208dc1 | 16,287 | [
-1
] |
16,292 | ConsCell.java | davidsun0_lateral/interpreter/old/jvm/ConsCell.java | class ConsCell {
private Object car;
private ConsCell cdr;
public ConsCell(Object car, ConsCell cdr) {
this.car = car;
this.cdr = cdr;
}
public Object getCar() {
return car;
}
public void setCar(Object car) {
this.car = car;
}
public ConsCell getCd... | 1,356 | Common Lisp | .l | 56 | 15.696429 | 54 | 0.478328 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 886f53e21b588c7386e53a128af2c6bf7ea9202f523e5f2890eeaad422c815ec | 16,292 | [
-1
] |
16,294 | Symbol.java | davidsun0_lateral/interpreter/old/jvm/Symbol.java | class Symbol implements Comparable<Symbol> {
String s;
public Symbol(String s) {
this.s = s;
}
public static Symbol makeSymbol(String s) {
return new Symbol(s);
}
@Override
public String toString() {
return this.s;
}
@Override
public boolean equals(Obj... | 583 | Common Lisp | .l | 25 | 17.44 | 70 | 0.601449 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | c0d8acdcecbde70fc8b3615181d2e4bb92d08013f9e85ca72b3855126d0b10b2 | 16,294 | [
-1
] |
16,300 | Helper.java | davidsun0_lateral/interpreter/jvm/Helper.java | class Helper {
public static void main(String[] args) {
while(true) {
try {
Lateral.main();
} catch (RuntimeException e) {
e.printStackTrace();
}
}
}
// These functions should be written in lisp, but I'm too lazy
public... | 1,318 | Common Lisp | .l | 35 | 27.6 | 85 | 0.467239 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 14d995fd658fdf3f1937ca0332e0b4476edbe7034f915988403f72ebb87495cb | 16,300 | [
-1
] |
16,301 | CompiledLambda.java | davidsun0_lateral/interpreter/jvm/CompiledLambda.java | import java.lang.reflect.Method;
public class CompiledLambda {
Method method;
boolean isRest;
boolean isMacro;
int argc;
public CompiledLambda(Method method, int argc, boolean isRest, boolean isMacro) {
this.method = method;
this.argc = argc;
this.isRest = isRest;
t... | 425 | Common Lisp | .l | 16 | 20.875 | 85 | 0.655172 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | baee9f3596df53ba84511c834f3906c83b6e2bf6d243019158fa68f4abc3ed96 | 16,301 | [
-1
] |
16,306 | reflectconfig.json | davidsun0_lateral/interpreter/jvm/reflectconfig.json | [
{
"name" : "Lang",
"allPublicMethods" : true
},
{
"name" : "Lateral",
"allPublicMethods" : true
}
]
| 150 | Common Lisp | .l | 10 | 9.2 | 33 | 0.421429 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 0e4f624e9bf9bea6a942cabce9c9d388f2281d83d76a9684f9d6faefb4725b28 | 16,306 | [
-1
] |
16,311 | Makefile | davidsun0_lateral/interpreter/bootstrap/Makefile | CC = gcc
CFLAGS = -Wall -Wextra -std=c99 -pedantic -ggdb
LDFLAGS = -lreadline
source = $(wildcard *.c)
objects = $(source:.c=.o)
all: lateral
.PHONY: clean
clean:
rm a.out *.o
.PHONY: test
test:
../test/test.py ./a.out ../test/simple.lisp
lateral: $(objects)
$(CC) $(CFLAGS) -o a.out $^ $(LDFLAGS)
| 306 | Common Lisp | .l | 14 | 20.285714 | 47 | 0.66899 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 93ac28bb1c9bff3ce9bdc2e852c46e29d8d5c2fcb0e493f8f1807096c37058d7 | 16,311 | [
-1
] |
16,312 | lateral.c | davidsun0_lateral/interpreter/bootstrap/lateral.c | #include <stdio.h>
#include <stdlib.h>
#include <readline/readline.h>
#include <readline/history.h>
#include "object.h"
#include "reader.h"
#include "eval.h"
#include "core.h"
#include "garbage.h"
int main(int argc, char ** argv) {
garbage_init();
// NIL is a cons cell with CAR and CDR as nil
union Data... | 1,540 | Common Lisp | .l | 60 | 18.566667 | 51 | 0.507503 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | d3447ceb421b14d59af16276ab60319438abefe61c73ce5a826a7cd8436699fa | 16,312 | [
-1
] |
16,313 | eval.c | davidsun0_lateral/interpreter/bootstrap/eval.c | #include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include "object.h"
#include "eval.h"
Object *funcall(Object *(fn_ptr)(Object *), int count, ...) {
Object *list = NULL;
Object *listb = list;
va_list vl;
va_start(vl, count);
for(int i = 0; i < count; i ++) {
Object* next = va_a... | 10,655 | Common Lisp | .l | 310 | 23.996774 | 79 | 0.481345 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | c0ab456193147e6abb6f72300c5a296de06339a67315ad4d743f279eddf8f8c4 | 16,313 | [
-1
] |
16,315 | eval.h | davidsun0_lateral/interpreter/bootstrap/eval.h | #ifndef LA_EVAL_H
#define LA_EVAL_H
#include "object.h"
enum mode {
eval_exe,
apply_exe,
macro_exe,
result_exe,
unknown
};
typedef struct StackFrame {
struct StackFrame* prev;
Object *in;
Object *out;
Object *ret;
enum mode exe_mode;
} StackFrame;
StackFrame *stack;
Envir *cu... | 601 | Common Lisp | .l | 27 | 19.481481 | 56 | 0.712014 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 81123b6015c659d9e7ffd23f5490634598176871206854018d7e7e251953ad64 | 16,315 | [
-1
] |
16,318 | hashliteralbug.txt | davidsun0_lateral/interpreter/bootstrap/hashliteralbug.txt | (print {
"rest" (list "Lang" "cdr"
"(Ljava/lang/Object;)Ljava/lang/Object;")
"cons" (list "Lang" "cons"
"(Ljava/lang/Object;Ljava/lang/Object;)LConsCell;")
"equal?" (list "Lang" "is_equal"
"(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;")
... | 834 | Common Lisp | .l | 19 | 32.210526 | 80 | 0.521472 | davidsun0/lateral | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 57fafe26879aa219f0a6c946654e5026d38d345925c019d02d3ec68caf26d902 | 16,318 | [
-1
] |
16,333 | main.lisp | ahungry_injection/src/main.lisp | ;;;; main.lisp
(in-package #:injection-test)
;;; "main" goes here. Hacks and glory await!
| 92 | Common Lisp | .lisp | 3 | 29 | 44 | 0.689655 | ahungry/injection | 4 | 0 | 1 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | b2e52e9e154b15f2c840963c53194037c8dfa426d89d41118a550a7715be05ad | 16,333 | [
-1
] |
16,334 | Container.lisp | ahungry_injection/src/classes/Container.lisp | ;;;; Container.lisp
(in-package #:injection)
(defparameter *container-singleton*
"The latest instance of a 'Container object loaded through the container factory.")
(defclass Container ()
((Services
:accessor Services
:initarg :file-name
:initform nil)
(Parameters
:accessor Parameters
:ini... | 4,201 | Common Lisp | .lisp | 84 | 43.964286 | 101 | 0.701562 | ahungry/injection | 4 | 0 | 1 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 22fedec778eac0402c2a74d855194f32eda15870c757e263cc9ce70b8feeca50 | 16,334 | [
-1
] |
16,335 | main.lisp | ahungry_injection/src/app/main.lisp | ;;;; main.lisp
(in-package #:injection)
;;; "main" goes here. Hacks and glory await!
| 87 | Common Lisp | .lisp | 3 | 27.333333 | 44 | 0.682927 | ahungry/injection | 4 | 0 | 1 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 681c312c58557c158d1e296316b6407c14238ebec61982f3b408b964d0a8d227 | 16,335 | [
-1
] |
16,336 | generic.lisp | ahungry_injection/src/util/generic.lisp | ;;;; container.lisp
(in-package #:injection)
;;; "container" goes here. Hacks and glory await!
| 97 | Common Lisp | .lisp | 3 | 30.666667 | 49 | 0.717391 | ahungry/injection | 4 | 0 | 1 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | c733cd2d2f790b28e2f2de821dde4af8c04834d3123b209dc76a27cde976b717 | 16,336 | [
-1
] |
16,337 | package.lisp | ahungry_injection/src/package/package.lisp | ;;;; package.lisp
(defpackage #:injection
(:use
#:cl
#:cl-yaml)
(:export
#:*container-singleton*
#:get-parameter
#:get-service
#:Container-Factory
#:Container-Get-Parameter
#:Container-Get-Service))
| 228 | Common Lisp | .lisp | 12 | 15.583333 | 28 | 0.665116 | ahungry/injection | 4 | 0 | 1 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 05da5ea4548068574b36c4af652d5b51d82df86831d05c2fba5e3fdaa945a06a | 16,337 | [
-1
] |
16,338 | File-Loader-Test.lisp | ahungry_injection/tests/classes/File-Loader-Test.lisp | ;;;; File-Loader-Test.lisp
(in-package #:injection-test)
(fiveam:def-suite file-loader :description "Test the project")
(fiveam:in-suite file-loader)
(fiveam:test test-factory
(signals
(error "Missing file")
(injection::File-Loader-Factory "/tmp/fake-file-FLT"))
(let ((file-loader (injection::File-Lo... | 429 | Common Lisp | .lisp | 13 | 29.615385 | 67 | 0.701711 | ahungry/injection | 4 | 0 | 1 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 7cc8d09286362214cdd758a8370cbb44cad3bad22068394595d150c92d523dcb | 16,338 | [
-1
] |
16,339 | main.lisp | ahungry_injection/tests/app/main.lisp | ;;;; main.lisp
(in-package #:injection-test)
(terpri)
(print "Run the tests with (injection-test:run!)")
(terpri)
| 116 | Common Lisp | .lisp | 5 | 21.8 | 50 | 0.715596 | ahungry/injection | 4 | 0 | 1 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | acefe7fb053501b777d1a94187f54e573b80dd473456954c30ec782d3992bade | 16,339 | [
-1
] |
16,340 | package.lisp | ahungry_injection/tests/package/package.lisp | ;;;; package.lisp
(defpackage #:injection-test
(:use
#:cl
#:injection
#:fiveam)
(:export
#:run!))
| 115 | Common Lisp | .lisp | 8 | 11.25 | 28 | 0.59434 | ahungry/injection | 4 | 0 | 1 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | bd3deb2f81b20a7f9adb75c5724b6049ef9e9c10765554d43306110242524aeb | 16,340 | [
-1
] |
16,341 | injection.asd | ahungry_injection/injection.asd | ;; Injection - YAML based Dependency Injection for Common Lisp
;; Copyright (C) 2016 Matthew Carter
;;
;; This program is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (... | 1,595 | Common Lisp | .asd | 52 | 27.596154 | 72 | 0.702932 | ahungry/injection | 4 | 0 | 1 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 8f684be32d2602868f24cfff53b28421e4f3d5a64ed1304f5e86fbfd57c4e0e2 | 16,341 | [
-1
] |
16,342 | injection-test.asd | ahungry_injection/injection-test.asd | ;; Injection - YAML based Dependency Injection for Common Lisp
;; Copyright (C) 2016 Matthew Carter
;;
;; This program is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (... | 1,424 | Common Lisp | .asd | 46 | 27.869565 | 72 | 0.712619 | ahungry/injection | 4 | 0 | 1 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | d206c85a08380eaaf18b07cbdcfad0d357d9a06f09352834ef296c4d6220ac86 | 16,342 | [
-1
] |
16,344 | config.yml | ahungry_injection/example/config.yml | parameters:
foo: bar
an_array: [1, 2, 3]
extra_config_file: "../example/config_only_params.yml"
services:
file_loader:
# 'factory:' is a function that will return an instance of the class we require,
# since Common Lisp doesn't have position based class
# constructors, a factory function is needed ... | 503 | Common Lisp | .l | 14 | 32.071429 | 84 | 0.718686 | ahungry/injection | 4 | 0 | 1 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 38504011c5182e53373fd720c9f66753e55e18af32ecc819d534788205e02a25 | 16,344 | [
-1
] |
16,367 | cl-typed.lisp | ahungry_cl-typed/src/cl-typed.lisp | ;; cl-typed - A project template generated by ahungry-fleece
;; Copyright (C) 2016 Your Name <cl-typed@example.com>
;;
;; This program is free software: you can redistribute it and/or modify
;; it under the terms of the GNU Affero General Public License as published by
;; the Free Software Foundation, either version 3 ... | 1,840 | Common Lisp | .lisp | 51 | 32.607843 | 78 | 0.673815 | ahungry/cl-typed | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 4408ec7ab880ae00b9f40b81f8fc3e619ba9bcb980c21ed0ccbae461fd2ee96a | 16,367 | [
-1
] |
16,368 | cl-typed.lib.stub.lisp | ahungry_cl-typed/src/libs/cl-typed.lib.stub.lisp | ;; cl-typed - A project template generated by ahungry-fleece
;; Copyright (C) 2016 Your Name <cl-typed@example.com>
;;
;; This program is free software: you can redistribute it and/or modify
;; it under the terms of the GNU Affero General Public License as published by
;; the Free Software Foundation, either version 3 ... | 1,744 | Common Lisp | .lisp | 44 | 34.568182 | 83 | 0.654642 | ahungry/cl-typed | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 414ee30afdec6c2cef3e030ac5342b439bccffee2260a5ab924debe6cee1eaaf | 16,368 | [
-1
] |
16,369 | cl-typed.run.tests.lisp | ahungry_cl-typed/t/cl-typed.run.tests.lisp | ;; cl-typed - A project template generated by ahungry-fleece
;; Copyright (C) 2016 Your Name <cl-typed@example.com>
;;
;; This program is free software: you can redistribute it and/or modify
;; it under the terms of the GNU Affero General Public License as published by
;; the Free Software Foundation, either version 3 ... | 3,574 | Common Lisp | .lisp | 89 | 33.303371 | 120 | 0.625289 | ahungry/cl-typed | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | c3c935289cdea7a8d43d0129f2a5354ef3a6b1a3dbb5add1ef128bcf60cac395 | 16,369 | [
-1
] |
16,370 | cl-typed.asd | ahungry_cl-typed/cl-typed.asd | ;; cl-typed - A project template generated by ahungry-fleece
;; Copyright (C) 2016 Your Name <cl-typed@example.com>
;;
;; This program is free software: you can redistribute it and/or modify
;; it under the terms of the GNU Affero General Public License as published by
;; the Free Software Foundation, either version 3 ... | 1,699 | Common Lisp | .asd | 50 | 29.06 | 78 | 0.652651 | ahungry/cl-typed | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 1e4da9960a6e3bc0472bb1f34b94b685e7bf33a2759b069568100b48ebdc78c0 | 16,370 | [
-1
] |
16,373 | Makefile.in | ahungry_cl-typed/Makefile.in | LISP?= sbcl
AF_LIB_TESTY_COLORIZE?= yes
TFLAGS = --non-interactive \
--eval '(ql:quickload :cl-typed)' \
--eval '(cl-typed.run.tests:main)'
CFLAGS = --disable-debugger \
--eval "(mapc \#'require '(sb-bsd-sockets sb-posix sb-introspect sb-cltl2 sb-rotate-byte sb-cover asdf))" \
--eval '(sb-ext:save-lisp-and-die "b... | 1,100 | Common Lisp | .l | 35 | 29.542857 | 108 | 0.661597 | ahungry/cl-typed | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | e299f1f3da667c6acdeb8623054f52dafad0c92666ef059d39d74d84add8dbd4 | 16,373 | [
-1
] |
16,377 | cl-typed.ros | ahungry_cl-typed/roswell/cl-typed.ros | #!/bin/sh
#|-*- mode:lisp -*-|#
#| A skelly project for Common Lisp dependant on SBCL, generated by Ahungry Fleece
exec ros -Q -L sbcl-bin -- $0 "$@"
|#
#-sbcl
(error "cl-typed requires SBCL. Make sure it is installed with `ros install sbcl' and use it with `ros use sbcl'.")
(progn ;;init forms
(ql:quickload '(#:cl-... | 502 | Common Lisp | .l | 15 | 31.733333 | 115 | 0.680498 | ahungry/cl-typed | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 0adbb17098885666d50f7638f3dcd511dfe1488dd6ca5a9f09e7f9cebc5a9512 | 16,377 | [
-1
] |
16,393 | utils.lisp | borodust_notalone-thriced/game/utils.lisp | (cl:in-package :notalone-thriced)
(declaim (special *scene*
*overlay*
*width*
*height*
*framebuffer-width*
*framebuffer-height*))
(defvar *unloaded-foreign-libraries* nil)
(defparameter *debug-table* (make-hash-table :test #'... | 3,169 | Common Lisp | .lisp | 61 | 36.885246 | 104 | 0.546161 | borodust/notalone-thriced | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | dd18e9b3746926d2e6d17ef4bfd42397153efaac99179d303f62569225dbfba2 | 16,393 | [
-1
] |
16,394 | packages.lisp | borodust_notalone-thriced/game/packages.lisp | (cl:defpackage :notalone-thriced
(:local-nicknames (:a :alexandria)
(:aw :alien-works)
(:cref :cffi-c-ref))
(:use :cl))
| 164 | Common Lisp | .lisp | 5 | 23 | 40 | 0.509434 | borodust/notalone-thriced | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | c1fde178c91427ca5849565484e606bca25a49bd03e39ec31b23ca3d7ed86be6 | 16,394 | [
-1
] |
16,395 | play.lisp | borodust_notalone-thriced/game/implementation/play.lisp | (cl:in-package :notalone-thriced)
(defun calc-angle (vec)
(aw:with-vec2* ((ref-vec :x 1 :y 0)
(nvec))
(aw:vec2-normalize nvec vec)
(let ((pre-angle (acos (aw:vec2-dot ref-vec nvec))))
(if (> (aw:vec2 vec 1) 0)
pre-angle
(- (* 2 pi) pre-angle)))))
;;;
;;; ENEMY
;;... | 15,997 | Common Lisp | .lisp | 334 | 34.173653 | 104 | 0.538752 | borodust/notalone-thriced | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 1b07d45a3f5efb77214089591db1343761f1daf8c5a5466341e1e7a50c8d1823 | 16,395 | [
-1
] |
16,396 | state.lisp | borodust_notalone-thriced/game/implementation/state.lisp | (cl:in-package :notalone-thriced)
(declaim (special *canvas*
*title-typeface*
*menu-typeface*))
(defclass notalone-state ()
(canvas
banner
title-typeface
menu-typeface))
(defmethod initialize-instance :after ((this notalone-state) &key )
(with-slots (canvas banner ... | 1,484 | Common Lisp | .lisp | 34 | 36.147059 | 79 | 0.658774 | borodust/notalone-thriced | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 3957d9087689871d51c3153e19fb42952e49c1981aaff4d68134f7b505ea912c | 16,396 | [
-1
] |
16,397 | end.lisp | borodust_notalone-thriced/game/implementation/end.lisp | (cl:in-package :notalone-thriced)
(defclass end-state (notalone-state)
((kill-count :initarg :kill-count :initform nil)
music))
(defmethod initialize-instance :after ((this end-state) &key kill-count)
(with-slots (music) this
(setf music (aw:make-audio-source (find-asset :audio "menu")))
(update-rec... | 2,051 | Common Lisp | .lisp | 53 | 30.849057 | 94 | 0.579717 | borodust/notalone-thriced | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | f1309b4889910a16c4570581afb2bbe1d85653d84dc1195425aee9182e6563e1 | 16,397 | [
-1
] |
16,398 | record.lisp | borodust_notalone-thriced/game/implementation/record.lisp | (cl:in-package :notalone-thriced)
(defvar *records* nil)
(defun update-records (kill-count)
(when kill-count
(let ((top-result (first *records*)))
(when (or (null top-result)
(> kill-count (cdr top-result)))
(push (cons (local-time:format-timestring nil (local-time:now)
... | 2,446 | Common Lisp | .lisp | 67 | 28.358209 | 86 | 0.560779 | borodust/notalone-thriced | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 43994e4cb3b489a8ad26c2b298ae6d0ddf2fb50cb80944bdc85fc640f4f3bc9b | 16,398 | [
-1
] |
16,399 | game.lisp | borodust_notalone-thriced/game/implementation/game.lisp | (cl:in-package :notalone-thriced)
(defclass initial-state (notalone-state)
((selected :initform 0)
(kill-count :initarg :kill-count :initform nil)
music))
(defmethod initialize-instance :after ((this initial-state) &key kill-count)
(with-slots (music) this
(setf music (aw:make-audio-source (find-asset... | 2,901 | Common Lisp | .lisp | 74 | 29.756757 | 78 | 0.546425 | borodust/notalone-thriced | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 385bd36f4fd52953a517c6e2329ca887ee22600dd06c38b3627040c577a1bab6 | 16,399 | [
-1
] |
16,400 | cloud.lisp | borodust_notalone-thriced/game/framework/cloud.lisp | (cl:in-package :notalone-thriced)
(eval-when (:compile-toplevel :load-toplevel :execute)
(a:define-constant +particle-count+ 20))
(cffi:defcstruct particle-cloud-vertex
(pos :float :count 3)
(col :float :count 4)
(vel :float :count 3))
(cffi:defcstruct particle-cloud-data
(vertices (:struct particle-clo... | 5,791 | Common Lisp | .lisp | 107 | 33.682243 | 100 | 0.453277 | borodust/notalone-thriced | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 00fc812f84e8614b7c60aaae4fbbb6940fb4e94f1589c1016a95de839d3bd78c | 16,400 | [
-1
] |
16,401 | main.lisp | borodust_notalone-thriced/game/framework/main.lisp | (cl:in-package :notalone-thriced)
(defvar *assets* (make-hash-table :test 'equal))
(defun find-asset (type name)
(gethash (list type name) *assets*))
(defun init-loop (baked-assets &rest rest-assets)
(let* ((resources (load-resources baked-assets))
(forged (forge-resources resources)))
(loop for ... | 4,054 | Common Lisp | .lisp | 93 | 31.709677 | 94 | 0.54986 | borodust/notalone-thriced | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 2f77b3fd69b61f1df11b4b5f82bd11625caf58e803e88d4f1f3f53e9d16376cd | 16,401 | [
-1
] |
16,402 | banner.lisp | borodust_notalone-thriced/game/framework/banner.lisp | (cl:in-package :notalone-thriced)
;;;
;;; GAME
;;;
(cffi:defcstruct banner-vertex
(pos :float :count 2)
(uv :float :count 2))
(cffi:defcstruct banner-data
(vertices (:struct banner-vertex) :count 4)
(indices :uint16 :count 6))
(defun make-banner-data (width height)
(flet ((init-vertex (vertex x0 y0 x1 y1... | 3,405 | Common Lisp | .lisp | 87 | 25.609195 | 90 | 0.494539 | borodust/notalone-thriced | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | ff184631596e6f36d3d3c0cc5207e3e115f1ae890954bed0cd7c2318ff974416 | 16,402 | [
-1
] |
16,403 | state.lisp | borodust_notalone-thriced/game/framework/state.lisp | (cl:in-package :notalone-thriced)
(declaim (special *game-state*
*state*))
(defgeneric act (state)
(:method (state)
(declare (ignore state))))
(defmethod act :around (state)
(let ((*state* state))
(call-next-method)))
(defgeneric draw (state)
(:method (state)
(declare (ignore... | 1,510 | Common Lisp | .lisp | 50 | 26.06 | 68 | 0.665966 | borodust/notalone-thriced | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 2929e1cf5c3df28c45b5dd0a3f3f34b4f1ffad4e77a3934e77d070dac8eb5fed | 16,403 | [
-1
] |
16,404 | tools.lisp | borodust_notalone-thriced/game/framework/tools.lisp | (cl:in-package :notalone-thriced)
(declaim (special *tools*))
(defgeneric make-tools (name &key &allow-other-keys)
(:method (name &key)
(declare (ignore name))
nil))
(defgeneric init-tools (tools)
(:method (tools)
(declare (ignore tools))))
(defgeneric destroy-tools (tools)
(:method (tools)
... | 1,010 | Common Lisp | .lisp | 30 | 29.6 | 74 | 0.676715 | borodust/notalone-thriced | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 1ab10003a200d3cbbea31b88a63f8103233fba136a03a87367b98f10fcc0f881 | 16,404 | [
-1
] |
16,405 | resource.lisp | borodust_notalone-thriced/game/framework/resource.lisp | (cl:in-package :notalone-thriced)
;;;
;;; RESOURCE TABLE
;;;
(declaim (special *resource-table*))
(defun find-resource (name)
(alexandria:if-let (resource (gethash name *resource-table*))
(values (third resource) (fourth resource))
(error "Resource ~A not found" name)))
;;;
;;; RESOURCE
;;;
(defclass res... | 19,070 | Common Lisp | .lisp | 392 | 33.994898 | 128 | 0.53936 | borodust/notalone-thriced | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | a9899889dcbb3f5f4a810b45ad4bf6e3328ea78b888b700a16742a47ef73a32b | 16,405 | [
-1
] |
16,406 | floor.lisp | borodust_notalone-thriced/game/framework/floor.lisp | (cl:in-package :notalone-thriced)
;;;
;;; GAME
;;;
(defstruct (%floor
(:constructor %make-floor)
(:conc-name %floor-))
samplers
data
mat-instance
renderable
vbuf
ibuf)
(defun make-floor (material base-color-texture normal-texture arm-texture)
(let* ((vertex-size (cffi:foreign-ty... | 2,491 | Common Lisp | .lisp | 56 | 26.660714 | 89 | 0.45507 | borodust/notalone-thriced | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 3164528aeeac1f0e34936c24a4053eec5faf627a61ccfa0071be2f7a953053b2 | 16,406 | [
-1
] |
16,407 | packages.lisp | borodust_notalone-thriced/tools/packages.lisp | (cl:defpackage :notalone-thriced.tools
(:local-nicknames (:a :alexandria)
(:aw :alien-works)
(:awt :alien-works.tools))
(:use :cl))
| 176 | Common Lisp | .lisp | 5 | 25.4 | 46 | 0.538012 | borodust/notalone-thriced | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 4ebd350abf612a77eda0b7defa1b83b5c465a66b627c92d285522fbaee9ba885 | 16,407 | [
-1
] |
16,408 | resources.lisp | borodust_notalone-thriced/tools/assets/resources.lisp | (cl:in-package :notalone-thriced.tools)
(defparameter *banner-material-source*
"
material {
name : banner,
parameters: [
{ type: sampler2d, name: banner }
],
requires : [
uv0
],
shadingModel : unlit,
culling : none,
blending : transparent
}
fragment {
void material(in... | 5,257 | Common Lisp | .lisp | 141 | 28.446809 | 105 | 0.590257 | borodust/notalone-thriced | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | d678614df4719f13f371c9f9b88dff432fc800491f0a378769d2ae274863d911 | 16,408 | [
-1
] |
16,409 | ui.lisp | borodust_notalone-thriced/tools/eden/ui.lisp | (cl:in-package :notalone-thriced.tools)
(define-tool-window (eden-window "Tools" ;; :width 400 :height 600
)
(when (awt:collapsing-header "Info")
(when (awt:button "Clear")
(clrhash notalone-thriced::*debug-table*))
(loop for name being the hash-key of notalone-thriced::*debug-tab... | 622 | Common Lisp | .lisp | 13 | 40.615385 | 72 | 0.61944 | borodust/notalone-thriced | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 383ce5f49f6831f0d7f120bef2fb7e5b115e21013e34c126b41a96090efe34fe | 16,409 | [
-1
] |
16,410 | eden.lisp | borodust_notalone-thriced/tools/eden/eden.lisp | (cl:in-package :notalone-thriced.tools)
(declaim (special *tools*))
(defclass game-tools ()
((ui :initarg :ui)
(ui-hidden-p :initform t)
(windows :initform (list 'eden-window))
(context :initform (make-hash-table :test 'equal))
(repl-server :initarg :repl-server)
(last-time-delta :initform 0)))
(d... | 3,120 | Common Lisp | .lisp | 71 | 35.056338 | 83 | 0.615079 | borodust/notalone-thriced | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 6b2cc00f633d3ca3b651c31813714870285ed52a90a67f8089fbb7b08d429eab | 16,410 | [
-1
] |
16,411 | bundle.lisp | borodust_notalone-thriced/bundle/bundle.lisp | (alien-works-delivery:defbundle :notalone-thriced
:system :notalone-thriced/game
:entry-point (:alien-works :run)
:assets ((:file (:system "assets/assets.bin"))
(:file (:system "assets/gamecontrollerdb.txt"))
(:file (:system "assets/sector_017.ttf"))
(:file (:system "assets/sector... | 669 | Common Lisp | .lisp | 14 | 41.071429 | 58 | 0.647779 | borodust/notalone-thriced | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 1b54f082a13bc1a58a2ce535a4b21b22c9664b823a973047a859ed1fd19c61b5 | 16,411 | [
-1
] |
16,412 | notalone-thriced.asd | borodust_notalone-thriced/notalone-thriced.asd | (asdf:defsystem :notalone-thriced
:description "Autumn 2021 Lisp Game Jam Entry"
:version "0.0.0"
:license "GPLv3"
:author "Pavel Korolev"
:mailto "dev@borodust.org"
:depends-on (:notalone-thriced/game :notalone-thriced/tools))
(asdf:defsystem :notalone-thriced/game
:description "End-user portion of NOT... | 2,433 | Common Lisp | .asd | 72 | 22.097222 | 63 | 0.498301 | borodust/notalone-thriced | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 19169c2b0de29f4c00d4cbded6d96408fcde4b5bf30633b196cbdfe96b8167d1 | 16,412 | [
-1
] |
16,433 | gamecontrollerdb.txt | borodust_notalone-thriced/assets/gamecontrollerdb.txt | # Game Controller DB for SDL in 2.0.16 format
# Source: https://github.com/gabomdq/SDL_GameControllerDB
# Windows
03000000fa2d00000100000000000000,3DRUDDER,leftx:a0,lefty:a1,rightx:a5,righty:a2,platform:Windows,
03000000d0160000600a000000000000,4Play,a:b1,b:b3,back:b4,dpdown:b11,dpleft:b12,dpright:b13,dpup:b10,leftsho... | 393,015 | Common Lisp | .l | 1,492 | 262.411528 | 348 | 0.823099 | borodust/notalone-thriced | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 5f5a1637507357a895f9b3937ddb5a7aeddae78643f0913e5293efc54df48768 | 16,433 | [
-1
] |
16,434 | scene.gltf | borodust_notalone-thriced/assets/src/models/alien/scene.gltf | {
"accessors": [
{
"bufferView": 2,
"componentType": 5126,
"count": 65533,
"max": [
0.98117786645889282,
1.0270715951919556,
0.85563629865646362
],
"min": [
-1.0407609939575195,
-1.0261846780776978,
-1.039110541343689
],
... | 8,830 | Common Lisp | .l | 464 | 11.627155 | 95 | 0.457501 | borodust/notalone-thriced | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | bde5d0ee6f31842df88a2b6ccc5b457f86c2f84fb9fcbb2d83ab9064e9ade55d | 16,434 | [
-1
] |
16,435 | bundle.yaml | borodust_notalone-thriced/.github/workflows/bundle.yaml | name: Bundle
on:
push:
tags:
- "v*"
jobs:
linux-lts-appimage:
runs-on: ubuntu-18.04
steps:
- name: Check Out Everything
uses: actions/checkout@v2
with:
lfs: true
- name: Set Output Bundle File
run: echo "BUNDLE_FILE=${{ github.workspace }}/notalone-th... | 1,737 | Common Lisp | .l | 56 | 22.714286 | 103 | 0.585714 | borodust/notalone-thriced | 4 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | f2a6c2dafab5449432f3d9eec2e95ed7a072469d2e9149fa60adc3a17bed19ee | 16,435 | [
-1
] |
16,451 | cl-pjsua.lisp | varjagg_cl-pjsip/cl-pjsua.lisp | ;;; PJSUA high level API wrappers
(in-package #:cl-pjsip)
(defctype pjssua-acc-id :int)
(defcenum pjsua-100rel-use
:pjsua-100rel-not-used
:pjsua-100rel-mandatory
:pjsua-100rel-optional)
(defcenum pjsua-sip-timer-use
:pjsua-sip-timer-inactive
:pjsua-sip-timer-optional
:pjsua-sip-timer-required
:pjsua-s... | 12,053 | Common Lisp | .lisp | 363 | 30.413223 | 128 | 0.726475 | varjagg/cl-pjsip | 4 | 1 | 0 | GPL-2.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | c95975db862adfb27acd3d4bf93f2c9ffd98a9b1630bf3c9c8093da002b936ad | 16,451 | [
-1
] |
16,452 | cl-pjsip.lisp | varjagg_cl-pjsip/cl-pjsip.lisp | ;;;; Library wrapper
(in-package #:cl-pjsip)
(define-foreign-library libpjlib-util
(:unix (:or "libpjlib-util.so")))
(define-foreign-library libpj
(:unix (:or "libpj.so.2" "libpj.so")))
(define-foreign-library libpjsip
(:unix (:or "libpjsip.so.2" "libpjsip.so")))
(define-foreign-library libpjsip-ua
(:unix ... | 50,491 | Common Lisp | .lisp | 1,383 | 33.631236 | 140 | 0.720326 | varjagg/cl-pjsip | 4 | 1 | 0 | GPL-2.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | e298f3ff4fc3acb6ea8108ac94cfa50b87c5bce1a41e4ac87866407b6033c96c | 16,452 | [
-1
] |
16,453 | package.lisp | varjagg_cl-pjsip/package.lisp | ;;;; package.lisp
(defpackage #:cl-pjsip
(:use #:cl #:cffi)
(:export "PJSIP-VIA-HDR-TCLASS" "PJSIP-USER-AGENT" "PJ-STR-TO-LISP" "PJSUA-VID-WIN-ID" "PJMEDIA-STREAM-CREATE" "PJSIP-TARGET-SET" "PJSIP-METHOD" "PJMEDIA-PORT" "PJ-LOG-POP-INDENT" "PJ-TIMESTAMP" "PJSIP-URI" "PJ-SOCKADDR-IN" "PJSIP-TRANSPORT-KEY" "PJSUA-VE... | 10,083 | Common Lisp | .lisp | 20 | 501.3 | 1,320 | 0.748534 | varjagg/cl-pjsip | 4 | 1 | 0 | GPL-2.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 0f6a72450f1795bb9fe5d6f16bc373259f7c4c06b2bf556244f9cf156acb783a | 16,453 | [
-1
] |
16,454 | cl-pjsua-demo.lisp | varjagg_cl-pjsip/cl-pjsua-demo.lisp | (in-package #:cl-pjsip)
(defvar *sip-domain* "10.0.14.3")
(defvar *sip-user* "1100")
(defvar *sip-passwd* "secret")
(defconstant +pjsip-cred-data-plain-passwd+ 0)
(defmacro assert-no-error (form &optional error-message)
(let ((retval (gentemp)))
(unless error-message
(setf error-message (format nil "Erro... | 4,459 | Common Lisp | .lisp | 87 | 46.103448 | 138 | 0.686288 | varjagg/cl-pjsip | 4 | 1 | 0 | GPL-2.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 6387feaa0a09cf33598e03427b91d0f37607847a5d42ca361ea6f65d05143082 | 16,454 | [
-1
] |
16,455 | media-ports.lisp | varjagg_cl-pjsip/media-ports.lisp | (in-package #:cl-pjsip)
(defconstant +pjmedia-aud-default-capture-dev+ -1)
(defconstant +pjmedia-aud-default-playback-dev+ -2)
(defconstant +pjmedia-aud-invalid-dev+ +3)
(defcstruct pjmedia-clock-src
(media-type pjmedia-type)
(clock-rate :uint)
(ptime-usec :uint)
(timestamp pj-timestamp)
(last-update pj-tim... | 6,592 | Common Lisp | .lisp | 140 | 43.478571 | 126 | 0.715955 | varjagg/cl-pjsip | 4 | 1 | 0 | GPL-2.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 3bf7aecccecbfe687a6576e53a99e4a6a17723695796f82c83982614d95fcba0 | 16,455 | [
-1
] |
16,456 | cl-pjsip-ua.lisp | varjagg_cl-pjsip/cl-pjsip-ua.lisp | (in-package #:cl-pjsip)
(defconstant +sip-port+ 5060)
(defconstant +rtp-port+ 4000)
(defconstant +max-media-cnt+ 1)
(defconstant +ivp6_addr_size+ 46)
(defparameter *complete* nil)
(defparameter *endpt* (foreign-alloc '(:pointer pjsip-endpoint) :initial-contents (list (null-pointer))))
(defparameter *cp* (foreign-allo... | 15,736 | Common Lisp | .lisp | 273 | 51.934066 | 133 | 0.683519 | varjagg/cl-pjsip | 4 | 1 | 0 | GPL-2.0 | 9/19/2024, 11:27:30 AM (Europe/Amsterdam) | 0a432ca588b2bf35e4c19ee6b3d95307cc7c4ebd83c9c570a0af87ff8ef55754 | 16,456 | [
-1
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.