aboutsummaryrefslogtreecommitdiff
path: root/src/lux.clj
blob: 103c1556524bd502c41e91fcd6867ccaedf4930d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
(ns lux
  (:require [lux.base :as &]
            [lux.compiler :as &compiler]
            :reload-all))

(comment
  ;; TODO: Finish type system.
  ;; TODO: Re-implement compiler in language.
  ;; TODO: Add source-file information to .class files for easier debugging.
  ;; TODO: Finish implementing class & interface definition
  ;; TODO: All optimizations
  ;; TODO: Anonymous classes
  ;; TODO: 

  ;; Finish total-locals

  ;; TODO: Change &type/check to it returns a tuple with the new expected & actual types
  ;; TODO: Stop passing-along the exo-types and instead pass-along endo-types where possible
  
  (time (&compiler/compile-all (&/|list "lux")))
  (System/gc)
  (time (&compiler/compile-all (&/|list "lux" "test2")))

  ;; jar cvf test2.jar *.class test2 && java -cp "test2.jar" test2
  ;; cd output && jar cvf test2.jar * && java -cp "test2.jar" test2 && cd ..
  )