Skip to content

Commit

Permalink
Fixed packaging issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardoejp committed Oct 9, 2021
1 parent 3010090 commit f29d064
Show file tree
Hide file tree
Showing 42 changed files with 489 additions and 424 deletions.
4 changes: 4 additions & 0 deletions documentation/bookmark/advice.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Reference

1. [97 Things Every Programmer Should Know](https://chemaclass.es/readings/97-things-every-programmer-should-know/)

3 changes: 2 additions & 1 deletion documentation/bookmark/floating_point.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Half-precision
# Precision

1. [Accuracy of Mathematical Functions in Single, Double, Double Extended, and Quadruple Precision](https://members.loria.fr/PZimmermann/papers/accuracy.pdf)
1. [Supporting half-precision floats is really annoying](https://futhark-lang.org/blog/2021-08-05-half-precision-floats.html)

# Debugging
Expand Down
1 change: 1 addition & 0 deletions documentation/bookmark/game_programming.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@

# Reference

1. [How to Make an RPG](https://howtomakeanrpg.com/)
1. https://mod.io/
1. https://www.amazon.com/Game-Engine-Black-Book-Wolfenstein/dp/1539692876
1. http://shaderbits.com/blog/octahedral-impostors/
Expand Down
4 changes: 4 additions & 0 deletions documentation/bookmark/open_source.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Reference

1. [Why Modern Open Source Projects Fail](https://arxiv.org/abs/1707.02327)

1 change: 1 addition & 0 deletions documentation/bookmark/optimization.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

# Reference

1. [CompilerGym: Making compiler optimizations accessible to all](https://ai.facebook.com/blog/compilergym-making-compiler-optimizations-accessible-to-all)
1. [Do Low-level Optimizations Matter?](https://cantrip.org/sortfast.html)
1. [Inline caching](https://bernsteinbear.com/blog/inline-caching/)
1. [Weird and Wonderful Division Tricks](https://saml98.github.io/jekyll/update/2020/02/21/weird-division.htmls)
Expand Down
4 changes: 4 additions & 0 deletions documentation/bookmark/performance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Reference

1. [CppCon 2019: Chandler Carruth “There Are No Zero-cost Abstractions”](https://www.youtube.com/watch?v=rHIkrotSwcc)

2 changes: 2 additions & 0 deletions documentation/bookmark/probabilistic_data_structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@

## Bloom filter

1. [Word-aligned Bloom filters](https://lemire.me/blog/2021/10/03/word-aligned-bloom-filters/)
1. [Bloom Filters by Example](https://llimllib.github.io/bloomfilter-tutorial/)
1. [Bloom Filters - Much, much more than a space efficient hashmap!](https://boyter.org/posts/bloom-filter/)
1. [Teaching Bloom Filters new tricks](https://toao.com/blog/teaching-bloom-filters-new-tricks)
1. http://www.partow.net/programming/bloomfilter/idx.html
Expand Down
1 change: 1 addition & 0 deletions documentation/bookmark/rendering.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Ray Tracing

1. [Ray Tracing in One Weekend - The Book Series](https://raytracing.github.io/)
1. [Ray Tracing Gems II Available Today as Free Digital Download](https://developer.nvidia.com/blog/ray-tracing-gems-ii-available-today-as-free-digital-download/)
1. [Ray Tracing Gems II](https://link.springer.com/book/10.1007/978-1-4842-7185-8)

Expand Down
4 changes: 4 additions & 0 deletions documentation/bookmark/security.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Restraint | Sand-boxing

1. [JavaScript Restrictor](https://polcak.github.io/jsrestrictor/)

# Memory

1. [Provably Safe Pointers for a Parallel World](https://www.youtube.com/watch?v=ugf58HNd7Rg)
Expand Down
1 change: 1 addition & 0 deletions documentation/bookmark/tool/text_editor.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@

# Reference

1. [Deft for Emacs](https://jblevins.org/projects/deft/)
1. [Text Editing Hates You Too](https://lord.io/text-editing-hates-you-too/)
1. [Build Your Own Text Editor](https://viewsourcecode.org/snaptoken/kilo/index.html)
1. [On the design of text editors](https://arxiv.org/abs/2008.06030)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Exemplar

1. [POMPOM LANGUAGE](https://github.com/caotic123/PomPom-Language)
1. [A simple type-theoretic language: Mini-TT](http://www.cse.chalmers.se/~bengt/papers/GKminiTT.pdf)
1. https://cedille.github.io/

Expand Down
13 changes: 8 additions & 5 deletions lux-bootstrapper/project.clj
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
(defproject com.github.luxlang/lux-bootstrapper "0.6.0"
(defproject com.github.luxlang/lux-bootstrapper "0.6.2"
:min-lein-version "2.1.0" ;; 2.1.0 introduced jar classifiers
:description "The JVM (bootstrapping) compiler for the Lux programming language."
:url "https://github.com/LuxLang/lux"
:license {:name "Lux License v0.1.1"
:license {:name "Lux License v0.1.2"
:url "https://github.com/LuxLang/lux/blob/master/license.txt"}
:deploy-repositories [["releases" {:url "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
:creds :gpg}]
Expand All @@ -14,15 +14,18 @@
:dependencies [[org.clojure/clojure "1.6.0"]
[org.clojure/core.match "0.2.1"]
;; Prefer when building Lua compiler.
;; [org.ow2.asm/asm-all "5.0.3"]
;; [org.ow2.asm/asm "5.0.3"]
;; [org.ow2.asm/asm-commons "5.0.3"]
;; [org.ow2.asm/asm-analysis "5.0.3"]
;; [org.ow2.asm/asm-tree "5.0.3"]
;; [org.ow2.asm/asm-util "5.0.3"]

;; Prefer when building JS compiler.
[org.ow2.asm/asm "7.3.1"]
[org.ow2.asm/asm-commons "7.3.1"]
[org.ow2.asm/asm-analysis "7.3.1"]
[org.ow2.asm/asm-tree "7.3.1"]
[org.ow2.asm/asm-util "7.3.1"]
]
[org.ow2.asm/asm-util "7.3.1"]]
:warn-on-reflection true
:repositories [["snapshots" "https://oss.sonatype.org/content/repositories/snapshots/"]]
:source-paths ["src"]
Expand Down
7 changes: 6 additions & 1 deletion lux-js/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ cd ~/lux/lux-js/ && lein clean && lein lux auto test
# Build

```
cd ~/lux/lux-js/ \
&& lux clean \
&& lux with js build \
&& mv target/program.js lux.js
## Develop
cd ~/lux/lux-js/ \
&& lein clean \
Expand Down Expand Up @@ -47,6 +52,6 @@ cd ~/lux/stdlib/ \

```
cd ~/lux/lux-js/ \
&& mvn install:install-file -Dfile=lux.js -DgroupId=com.github.luxlang -DartifactId=lux-js -Dversion=0.6.0-SNAPSHOT -Dpackaging=js
&& mvn install:install-file -Dfile=lux.js -DgroupId=com.github.luxlang -DartifactId=lux-js -Dversion=0.7.0-SNAPSHOT -Dpackaging=js
```

4 changes: 2 additions & 2 deletions lux-js/project.clj
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
(def version "0.6.0")
(def version "0.6.2")
(def repo "https://github.com/LuxLang/lux")
(def sonatype-releases "https://oss.sonatype.org/service/local/staging/deploy/maven2/")
(def sonatype-snapshots "https://oss.sonatype.org/content/repositories/snapshots/")

(defproject com.github.luxlang/lux-js #=(identity version)
:description "A JavaScript compiler for Lux."
:url ~repo
:license {:name "Lux License v0.1.1"
:license {:name "Lux License v0.1.2"
:url ~(str repo "/blob/master/license.txt")}
:scm {:name "git"
:url ~(str repo ".git")}
Expand Down
33 changes: 22 additions & 11 deletions lux-js/project.lux
Original file line number Diff line number Diff line change
@@ -1,17 +1,28 @@
{""
[#identity ["com.github.luxlang" "lux-js" "0.6.0"]
#description "A JavaScript compiler for Lux."
[""
["identity" ["com.github.luxlang" "lux-js" "0.6.2"]
"info" ["url" "https://github.com/LuxLang/lux"
"scm" "https://github.com/LuxLang/lux.git"
"licenses" [["name" "Lux License v0.1.2"
"url" "https://github.com/LuxLang/lux/blob/master/license.txt"
"type" "repo"]]
"developers" [["name" "Eduardo Julian"
"url" "https://github.com/eduardoejp"]]]
"description" "A JavaScript compiler for Lux."

#deploy_repositories {"snapshots" "https://oss.sonatype.org/content/repositories/snapshots/"
"releases" "https://oss.sonatype.org/service/local/staging/deploy/maven2/"}
"deploy_repositories" {"snapshots" "https://oss.sonatype.org/content/repositories/snapshots/"
"releases" "https://oss.sonatype.org/service/local/staging/deploy/maven2/"}

#repositories ["https://oss.sonatype.org/content/repositories/snapshots/"
"https://oss.sonatype.org/service/local/staging/deploy/maven2/"]
"repositories" ["https://oss.sonatype.org/content/repositories/snapshots/"
"https://oss.sonatype.org/service/local/staging/deploy/maven2/"]

#dependencies [["com.github.luxlang" "stdlib" "0.6.0" "tar"]]
"dependencies" [["com.github.luxlang" "stdlib" "0.6.2" "tar"]]

#program "program"]
"program" "program"]

"js"
["compiler" ["com.github.luxlang" "lux-js" "0.6.1" "js"]
"dependencies" [["org.openjdk.nashorn" "nashorn-core" "15.1" "jar"]]]

"jvm"
[#compiler ["com.github.luxlang" "lux-jvm" "0.6.0" "jar"]
#dependencies [["org.openjdk.nashorn" "nashorn-core" "15.1" "jar"]]]}
["compiler" ["com.github.luxlang" "lux-jvm" "0.6.2" "jar"]
"dependencies" [["org.openjdk.nashorn" "nashorn-core" "15.1" "jar"]]]]
4 changes: 2 additions & 2 deletions lux-jvm/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ cd ~/lux/stdlib/ \

```
cd ~/lux/lux-jvm/ \
&& mvn install:install-file -Dfile=target/program.jar -DgroupId=com.github.luxlang -DartifactId=lux-jvm -Dversion=0.6.0-SNAPSHOT -Dpackaging=jar
&& mvn install:install-file -Dfile=target/program.jar -DgroupId=com.github.luxlang -DartifactId=lux-jvm -Dversion=0.6.1-SNAPSHOT -Dpackaging=jar
cd ~/lux/lux-jvm/ && mvn deploy:deploy-file \
-Durl=https://<username>:<password>@oss.sonatype.org/content/repositories/snapshots/ \
-Dfile=target/program.jar \
-DgroupId=com.github.luxlang \
-DartifactId=lux-jvm \
-Dversion=0.6.0-SNAPSHOT \
-Dversion=0.6.1-SNAPSHOT \
-Dpackaging=jar
```

10 changes: 7 additions & 3 deletions lux-jvm/project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(def version "0.6.0")
(def version "0.6.2")
(def repo "https://github.com/LuxLang/lux")
(def sonatype "https://oss.sonatype.org")
(def sonatype-releases (str sonatype "/service/local/staging/deploy/maven2/"))
Expand All @@ -7,7 +7,7 @@
(defproject com.github.luxlang/lux-jvm #=(identity version)
:description "A JVM compiler for Lux."
:url ~repo
:license {:name "Lux License v0.1.1"
:license {:name "Lux License v0.1.2"
:url ~(str repo "/blob/master/license.txt")}
:plugins [[com.github.luxlang/lein-luxc ~version]]
:deploy-repositories [["releases" {:url ~sonatype-releases :creds :gpg}]
Expand All @@ -22,7 +22,11 @@
:dependencies [[com.github.luxlang/lux-bootstrapper ~version]
;; [com.github.luxlang/stdlib ~version]
;; JVM Bytecode (TODO: Remove ASAP)
[org.ow2.asm/asm-all "5.0.3"]]
[org.ow2.asm/asm "7.3.1"]
[org.ow2.asm/asm-commons "7.3.1"]
[org.ow2.asm/asm-analysis "7.3.1"]
[org.ow2.asm/asm-tree "7.3.1"]
[org.ow2.asm/asm-util "7.3.1"]]

:manifest {"lux" ~version}
:source-paths ["source"]
Expand Down
4 changes: 2 additions & 2 deletions lux-lein/project.clj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(defproject com.github.luxlang/lein-luxc "0.6.0"
(defproject com.github.luxlang/lein-luxc "0.6.2"
:description "The Leiningen plugin for the Lux programming language."
:url "https://github.com/LuxLang/lein-luxc"
:license {:name "Lux License v0.1.1"
:license {:name "Lux License v0.1.2"
:url "https://github.com/LuxLang/lux/blob/master/license.txt"}
:dependencies [[org.clojure/clojure "1.6.0"]]
:deploy-repositories [["releases" {:url "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
Expand Down
4 changes: 2 additions & 2 deletions lux-lua/project.clj
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
(def version "0.6.0")
(def version "0.6.2")
(def repo "https://github.com/LuxLang/lux")
(def sonatype-releases "https://oss.sonatype.org/service/local/staging/deploy/maven2/")
(def sonatype-snapshots "https://oss.sonatype.org/content/repositories/snapshots/")

(defproject com.github.luxlang/lux-lua #=(identity version)
:description "A Lua compiler for Lux."
:url ~repo
:license {:name "Lux License v0.1.1"
:license {:name "Lux License v0.1.2"
:url ~(str repo "/blob/master/license.txt")}
:scm {:name "git"
:url ~(str repo ".git")}
Expand Down
6 changes: 3 additions & 3 deletions lux-lua/project.lux
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{""
[#identity ["com.github.luxlang" "lux-lua" "0.6.0"]
[#identity ["com.github.luxlang" "lux-lua" "0.6.2"]

#deploy_repositories {"snapshots" "https://oss.sonatype.org/content/repositories/snapshots/"
"releases" "https://oss.sonatype.org/service/local/staging/deploy/maven2/"}

#repositories ["https://oss.sonatype.org/content/repositories/snapshots/"
"https://oss.sonatype.org/service/local/staging/deploy/maven2/"]

#compiler ["com.github.luxlang" "lux-jvm" "0.6.0" "jar"]
#dependencies [["com.github.luxlang" "stdlib" "0.6.0" "tar"]
#compiler ["com.github.luxlang" "lux-jvm" "0.6.2" "jar"]
#dependencies [["com.github.luxlang" "stdlib" "0.6.2" "tar"]
["net.sandius.rembulan" "rembulan-runtime" "0.1-SNAPSHOT" "jar"]
["net.sandius.rembulan" "rembulan-stdlib" "0.1-SNAPSHOT" "jar"]
["net.sandius.rembulan" "rembulan-compiler" "0.1-SNAPSHOT" "jar"]]
Expand Down
10 changes: 2 additions & 8 deletions lux-python/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,14 @@ cd ~/lux/lux-python/ && lein clean && lein lux auto test
cd ~/lux/lux-python/ \
&& lux clean \
&& lux auto build
## Build JVM-based compiler
cd ~/lux/lux-python/ \
&& lux clean \
&& lux build \
&& mv target/program.jar jvm_based_compiler.jar
```

# Try

```
## Compile Lux's Standard Library's tests using a JVM-based compiler.
cd ~/lux/stdlib/ \
&& lein clean \
&& lux clean \
&& java -jar ~/lux/lux-python/target/program.jar build --source ~/lux/stdlib/source --target ~/lux/stdlib/target --module test/lux \
&& python3 ~/lux/stdlib/target/program.py
```
Expand All @@ -34,6 +28,6 @@ cd ~/lux/stdlib/ \

```
cd ~/lux/lux-python/ \
&& mvn install:install-file -Dfile=target/program.jar -DgroupId=com.github.luxlang -DartifactId=lux-python -Dversion=0.6.0-SNAPSHOT -Dpackaging=jar
&& mvn install:install-file -Dfile=target/program.jar -DgroupId=com.github.luxlang -DartifactId=lux-python -Dversion=0.7.0-SNAPSHOT -Dpackaging=jar
```

4 changes: 2 additions & 2 deletions lux-python/project.clj
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
(def version "0.6.0")
(def version "0.6.2")
(def repo "https://github.com/LuxLang/lux")
(def sonatype-releases "https://oss.sonatype.org/service/local/staging/deploy/maven2/")
(def sonatype-snapshots "https://oss.sonatype.org/content/repositories/snapshots/")

(defproject com.github.luxlang/lux-python #=(identity version)
:description "A Python compiler for Lux."
:url ~repo
:license {:name "Lux License v0.1.1"
:license {:name "Lux License v0.1.2"
:url ~(str repo "/blob/master/license.txt")}
:scm {:name "git"
:url ~(str repo ".git")}
Expand Down
14 changes: 11 additions & 3 deletions lux-python/project.lux
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
[""
["identity" ["com.github.luxlang" "lux-python" "0.6.0"]
["identity" ["com.github.luxlang" "lux-python" "0.6.2"]
"description" "A Python compiler for Lux."
"info" ["url" "https://github.com/LuxLang/lux"
"scm" "https://github.com/LuxLang/lux.git"
"licenses" [["name" "Lux License v0.1.2"
"url" "https://github.com/LuxLang/lux/blob/master/license.txt"
"type" "repo"]]
"developers" [["name" "Eduardo Julian"
"url" "https://github.com/eduardoejp"]]]

"deploy_repositories" ["snapshots" "https://oss.sonatype.org/content/repositories/snapshots/"
"releases" "https://oss.sonatype.org/service/local/staging/deploy/maven2/"]

"repositories" ["https://oss.sonatype.org/content/repositories/snapshots/"
"https://oss.sonatype.org/service/local/staging/deploy/maven2/"]

"compiler" ["com.github.luxlang" "lux-jvm" "0.6.0" "jar"]
"dependencies" [["com.github.luxlang" "stdlib" "0.6.0" "tar"]
"compiler" ["com.github.luxlang" "lux-jvm" "0.6.2" "jar"]
"dependencies" [["com.github.luxlang" "stdlib" "0.6.2" "tar"]
["org.python" "jython-standalone" "2.7.2" "jar"]]

"program" "program"]]
2 changes: 1 addition & 1 deletion lux-ruby/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ cd ~/lux/stdlib/ \

```
cd ~/lux/lux-ruby/ \
&& mvn install:install-file -Dfile=target/program.jar -DgroupId=com.github.luxlang -DartifactId=lux-ruby -Dversion=0.6.0-SNAPSHOT -Dpackaging=jar
&& mvn install:install-file -Dfile=target/program.jar -DgroupId=com.github.luxlang -DartifactId=lux-ruby -Dversion=0.7.0-SNAPSHOT -Dpackaging=jar
```

4 changes: 2 additions & 2 deletions lux-ruby/project.clj
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
(def version "0.6.0")
(def version "0.6.2")
(def repo "https://github.com/LuxLang/lux")
(def sonatype-releases "https://oss.sonatype.org/service/local/staging/deploy/maven2/")
(def sonatype-snapshots "https://oss.sonatype.org/content/repositories/snapshots/")

(defproject com.github.luxlang/lux-ruby #=(identity version)
:description "A Ruby compiler for Lux."
:url ~repo
:license {:name "Lux License v0.1.1"
:license {:name "Lux License v0.1.2"
:url ~(str repo "/blob/master/license.txt")}
:scm {:name "git"
:url ~(str repo ".git")}
Expand Down
Loading

0 comments on commit f29d064

Please sign in to comment.