From 2560b63dcc98a6a6b5e2f938d8279d9bb4627052 Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Wed, 6 May 2015 17:46:08 -0400 Subject: - Removed all the unnecesary comments. - Made some changes to the way type-checking is performed on variants, records & tuples in order to improve the speed of type-checking. --- src/lux.clj | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/lux.clj') diff --git a/src/lux.clj b/src/lux.clj index de302b260..62e9d14f9 100644 --- a/src/lux.clj +++ b/src/lux.clj @@ -11,15 +11,5 @@ (comment ;; TODO: Finish total-locals - (time (&compiler/compile-all (&/|list "program"))) - - (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 - ;; jar cvf program.jar output/*.class output/program && java -cp "program.jar" program - ;; cd output && jar cvf test2.jar * && java -cp "test2.jar" test2 && cd .. - ;; cd output && jar cvf program.jar * && java -cp "program.jar" program && cd .. ) -- cgit v1.2.3 From c4ac3e692ae96d6898d8efb42faf4dfadd43f4ae Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Thu, 14 May 2015 08:23:10 -0400 Subject: - Removed the apparently unnecessary total-locals. --- src/lux.clj | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/lux.clj') diff --git a/src/lux.clj b/src/lux.clj index 62e9d14f9..5b32955a3 100644 --- a/src/lux.clj +++ b/src/lux.clj @@ -9,7 +9,5 @@ (System/exit 0)) (comment - ;; TODO: Finish total-locals - ;; cd output && jar cvf program.jar * && java -cp "program.jar" program && cd .. ) -- cgit v1.2.3 From f52eb6df2e57f67e7cf30d85c6340ce00f923d6f Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Fri, 22 May 2015 20:07:08 -0400 Subject: - Corrected the indentation issues in the lux files. - Temporarily reverted back to forward apply-analysis. - Fixed an error in lux.base/show-ast. - Reader now only returns a tuple instead of a full-blown #Meta variant. - Reader now doesn't cut the strings that it reads. Instead, the "cursor" just moves around, indicating where to read. - Inlined some calculations that previously relied on try-all%. --- src/lux.clj | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/lux.clj') diff --git a/src/lux.clj b/src/lux.clj index 5b32955a3..eb025f55e 100644 --- a/src/lux.clj +++ b/src/lux.clj @@ -2,10 +2,13 @@ (:gen-class) (:require [lux.base :as &] [lux.compiler :as &compiler] + [lux.type :as &type] :reload-all)) (defn -main [& _] - (time (&compiler/compile-all (&/|list "program"))) + (do (time (&compiler/compile-all (&/|list "program"))) + ;; (prn @&type/counter) + ) (System/exit 0)) (comment -- cgit v1.2.3 From f5e3afe5a5337b5dc840ed0fd6a76244cf0aac6b Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Sun, 19 Jul 2015 22:32:08 -0400 Subject: Added copyright notice on all files that missed it. --- src/lux.clj | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/lux.clj') diff --git a/src/lux.clj b/src/lux.clj index eb025f55e..0fcb33785 100644 --- a/src/lux.clj +++ b/src/lux.clj @@ -1,3 +1,11 @@ +;; Copyright (c) Eduardo Julian. All rights reserved. +;; The use and distribution terms for this software are covered by the +;; Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php) +;; which can be found in the file epl-v10.html at the root of this distribution. +;; By using this software in any fashion, you are agreeing to be bound by +;; the terms of this license. +;; You must not remove this notice, or any other, from this software. + (ns lux (:gen-class) (:require [lux.base :as &] -- cgit v1.2.3 From 1fd2fc0ff67f76177d4addc13faae5d0e95773d3 Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Fri, 24 Jul 2015 19:19:16 -0400 Subject: - Fixed an error when compiling Java field access (both static & virtual). - Fixed some errors regarding cache loading. --- src/lux.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lux.clj') diff --git a/src/lux.clj b/src/lux.clj index 0fcb33785..7ff8fda37 100644 --- a/src/lux.clj +++ b/src/lux.clj @@ -14,7 +14,7 @@ :reload-all)) (defn -main [& _] - (do (time (&compiler/compile-all (&/|list "program"))) + (do (time (&compiler/compile-all (&/|list "lux" "program"))) ;; (prn @&type/counter) ) (System/exit 0)) -- cgit v1.2.3 From 4cd9b0c9242f1105e50ad9b42b7f6f5d074f14b4 Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Sat, 25 Jul 2015 20:19:43 -0400 Subject: - The output directory is now being used as the cache. - "input" has been renamed as "source" and "output" has been renamed as "target". --- src/lux.clj | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/lux.clj') diff --git a/src/lux.clj b/src/lux.clj index 7ff8fda37..9c913c9ac 100644 --- a/src/lux.clj +++ b/src/lux.clj @@ -14,9 +14,7 @@ :reload-all)) (defn -main [& _] - (do (time (&compiler/compile-all (&/|list "lux" "program"))) - ;; (prn @&type/counter) - ) + (time (&compiler/compile-all (&/|list "lux" "program"))) (System/exit 0)) (comment -- cgit v1.2.3 From c79621772c862e9b94e1fc43e11996cbac54fed1 Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Wed, 29 Jul 2015 20:20:26 -0400 Subject: - lux;using no longer prefixes variables. - Fixed several bugs with host (JVM) interop. - Now packaging everything in a .jar file ("program.jar"). --- src/lux.clj | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/lux.clj') diff --git a/src/lux.clj b/src/lux.clj index 9c913c9ac..7e3627cd7 100644 --- a/src/lux.clj +++ b/src/lux.clj @@ -10,13 +10,15 @@ (:gen-class) (:require [lux.base :as &] [lux.compiler :as &compiler] - [lux.type :as &type] :reload-all)) -(defn -main [& _] - (time (&compiler/compile-all (&/|list "lux" "program"))) - (System/exit 0)) +(defn -main [& [program-module & _]] + (if program-module + (time (&compiler/compile-program program-module)) + (println "Please provide a module name to compile.")) + (System/exit 0) + ) (comment - ;; cd output && jar cvf program.jar * && java -cp "program.jar" program && cd .. + (-main "program") ) -- cgit v1.2.3