Skip to content

Commit

Permalink
v0.6.3
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardoejp committed Oct 23, 2021
1 parent af680e8 commit 6772d0b
Show file tree
Hide file tree
Showing 24 changed files with 97 additions and 75 deletions.
18 changes: 13 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,44 +8,49 @@ pom.xml.asc

/jbe

/lux-bootstrapper/RELEASE
/lux-bootstrapper/target
/lux-bootstrapper/classes
/lux-bootstrapper/checkouts

/stdlib/target

/lux-lein/RELEASE
/lux-lein/target

/licentia/target
/licentia/source/library

/lux-jvm/RELEASE
/lux-jvm/target
/lux-jvm/source/library
/lux-jvm/source/program
/lux-jvm/source/spec

/lux-js/RELEASE
/lux-js/target
/lux-js/source/library
/lux-js/source/program
/lux-js/source/spec
/lux-js/node_based_compiler.js
/lux-js/lux.js

/lux-python/RELEASE
/lux-python/target
/lux-python/source/library
/lux-python/source/program
/lux-python/source/spec

/lux-lua/RELEASE
/lux-lua/target
/lux-lua/source/library
/lux-lua/source/program
/lux-lua/source/spec

/lux-ruby/RELEASE
/lux-ruby/target
/lux-ruby/source/library
/lux-ruby/source/program
/lux-ruby/source/spec

/stdlib/RELEASE
/stdlib/target

/lux-php/target
/lux-php/source/library
/lux-php/source/lux
Expand All @@ -70,3 +75,6 @@ pom.xml.asc
/lux-r/source/program
/lux-r/source/spec

/licentia/target
/licentia/source/library

20 changes: 10 additions & 10 deletions documentation/book/the_lux_programming_language/appendix_h.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ lux deps
=>
[?] Fetching com.github.luxlang:lux-jvm-0.6.2 from "~/.m2/repository"
[O] Found com.github.luxlang:lux-jvm-0.6.2 at "~/.m2/repository"
Local successes: 0: "com.github.luxlang:lux-jvm-0.6.2"
[?] Fetching com.github.luxlang:lux-jvm-0.6.3 from "~/.m2/repository"
[O] Found com.github.luxlang:lux-jvm-0.6.3 at "~/.m2/repository"
Local successes: 0: "com.github.luxlang:lux-jvm-0.6.3"
Local failures:
Remote successes:
Remote failures:
Expand Down Expand Up @@ -124,7 +124,7 @@ Now that we have seen the available commands, it would be useful to see an annot
[... An optional identity for the project.
... It can also be specified or overriden in a non-default profile.
... This will be the name given to the project when installed/deployed as a dependency.
"identity" ["com.github.luxlang" "stdlib" "0.6.2"]
"identity" ["com.github.luxlang" "stdlib" "0.6.3"]

... Every piece of information, and the whole "info" bundle, are optional.
"info" ["url" "https://github.com/LuxLang/lux"
Expand Down Expand Up @@ -163,36 +163,36 @@ Now that we have seen the available commands, it would be useful to see an annot
... The following are alternative profiles to use in various situations.
"jvm"
[... "compiler" specifies the dependency to fetch and use as the compiler.
"compiler" ["com.github.luxlang" "lux-jvm" "0.6.2" "jar"]
"compiler" ["com.github.luxlang" "lux-jvm" "0.6.3" "jar"]
... "dependencies" is an optional list of dependencies to fetch.
... The dependencies have the same shape as when specifying the compiler.
... When omitting the packaging format of the dependency, "tar" will be assumed.
... "dependencies" [["org.ow2.asm" "asm-all" "5.0.3" "jar"]
... ["com.github.luxlang" "stdlib" "0.6.2"]]
... ["com.github.luxlang" "stdlib" "0.6.3"]]
... The OS command to use when running JVM tests. The default is described below.
... "java" ["java" "-jar"]
]

"js"
["compiler" ["com.github.luxlang" "lux-js" "0.6.2" "js"]
["compiler" ["com.github.luxlang" "lux-js" "0.6.3" "js"]
... The OS command to use when running JS tests. The default is described below.
... "js" ["node" "--stack_size=8192"]
]

"python"
["compiler" ["com.github.luxlang" "lux-python" "0.6.2" "jar"]
["compiler" ["com.github.luxlang" "lux-python" "0.6.3" "jar"]
... The OS command to use when running Python tests. The default is described below.
... "python" ["python3"]
]

"lua"
["compiler" ["com.github.luxlang" "lux-lua" "0.6.2" "jar"]
["compiler" ["com.github.luxlang" "lux-lua" "0.6.3" "jar"]
... The OS command to use when running Lua tests. The default is described below.
... "lua" ["lua"]
]

"ruby"
["compiler" ["com.github.luxlang" "lux-ruby" "0.6.2" "jar"]
["compiler" ["com.github.luxlang" "lux-ruby" "0.6.3" "jar"]
... The OS command to use when running Ruby tests. The default is described below.
... "ruby" ["ruby"]
]
Expand Down
4 changes: 2 additions & 2 deletions documentation/book/the_lux_programming_language/chapter_1.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ These are the steps:
"repositories" ["https://oss.sonatype.org/content/repositories/snapshots/"
"https://oss.sonatype.org/service/local/staging/deploy/maven2/"]

"dependencies" [["com.github.luxlang" "stdlib" "0.6.2" "tar"]]
"compiler" ["com.github.luxlang" "lux-jvm" "0.6.2" "jar"]
"dependencies" [["com.github.luxlang" "stdlib" "0.6.3" "tar"]]
"compiler" ["com.github.luxlang" "lux-jvm" "0.6.3" "jar"]

"program" "main"]]

Expand Down
4 changes: 2 additions & 2 deletions documentation/book/the_lux_programming_language/chapter_16.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Let's take a look at the `project.lux` file for the Lux standard library itself.

```clojure
[""
["identity" ["com.github.luxlang" "stdlib" "0.6.2"]
["identity" ["com.github.luxlang" "stdlib" "0.6.3"]

"deploy_repositories" ["snapshots" "https://oss.sonatype.org/content/repositories/snapshots/"
"releases" "https://oss.sonatype.org/service/local/staging/deploy/maven2/"]
Expand All @@ -31,7 +31,7 @@ Let's take a look at the `project.lux` file for the Lux standard library itself.
"https://oss.sonatype.org/service/local/staging/deploy/maven2/"]]

"jvm"
["compiler" ["com.github.luxlang" "lux-jvm" "0.6.2" "jar"]]
["compiler" ["com.github.luxlang" "lux-jvm" "0.6.3" "jar"]]

"bibliotheca"
["info" ["description" "Standard Library for the Lux programming language."]
Expand Down
12 changes: 6 additions & 6 deletions documentation/book/the_lux_programming_language/chapter_17.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@ In order to compile a Lux program to any of these alternative platforms, you mus

An Aedifex `project.lux` file allows for a `"compiler"` option to specify (as a dependency) the compiler you wish to use.

This option can be omitted, in which case it will pick, as a default value: `["com.github.luxlang" "lux-jvm" "0.6.2" "jar"]`.
This option can be omitted, in which case it will pick, as a default value: `["com.github.luxlang" "lux-jvm" "0.6.3" "jar"]`.

Here are the compilers for the alternative platforms:

* For JavaScript: `["com.github.luxlang" "lux-js" "0.6.2" "js"]`
* For Python: `["com.github.luxlang" "lux-python" "0.6.2" "jar"]`
* For Lua: `["com.github.luxlang" "lux-lua" "0.6.2" "jar"]`
* For Ruby: `["com.github.luxlang" "lux-ruby" "0.6.2" "jar"]`
* For JavaScript: `["com.github.luxlang" "lux-js" "0.6.3" "js"]`
* For Python: `["com.github.luxlang" "lux-python" "0.6.3" "jar"]`
* For Lua: `["com.github.luxlang" "lux-lua" "0.6.3" "jar"]`
* For Ruby: `["com.github.luxlang" "lux-ruby" "0.6.3" "jar"]`

You don't need to use any special command on Aedifex in order to compile Lux to any alternative platform.

Expand Down Expand Up @@ -193,7 +193,7 @@ However, it is possible to specify that a file contains code that is only meant
* For Lua: `foo.lua.lux`
* For Ruby: `foo.rb.lux`
If you're using, let's say, the JavaScript compiler for Lux (i.e. `["com.github.luxlang" "lux-js" "0.6.2" "js"]`), whenever you import a module as a dependency, the compiler will first look for a file with the `.js.lux` extension, and if it fails to find one, it will look for a file with the plain `.lux` extension.
If you're using, let's say, the JavaScript compiler for Lux (i.e. `["com.github.luxlang" "lux-js" "0.6.3" "js"]`), whenever you import a module as a dependency, the compiler will first look for a file with the `.js.lux` extension, and if it fails to find one, it will look for a file with the plain `.lux` extension.
_What happens if I do not have a `.js.lux` file, but I do have files with the other special extensions?_
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ My mission with Lux has been (and continues to be) to create a language that max

Lux is still in its adolescence.

What you have learned is Lux version 0.6.2.
What you have learned is Lux version 0.6.3.

In future releases, much more power will be added to the language, more platforms will be within reach of Lux programmers, and better performance will be achieved, with little to no effort on the side of programmers.

Expand Down
10 changes: 2 additions & 8 deletions lux-bootstrapper/project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject com.github.luxlang/lux-bootstrapper "0.6.2"
(defproject com.github.luxlang/lux-bootstrapper "0.6.3"
: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"
Expand All @@ -13,13 +13,7 @@
[:url "https://github.com/eduardoejp"]]]
:dependencies [[org.clojure/clojure "1.6.0"]
[org.clojure/core.match "0.2.1"]
;; Prefer when building Lua compiler.
;; [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"]
Expand Down
2 changes: 1 addition & 1 deletion lux-js/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ cd ~/lux/stdlib/ \

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

2 changes: 1 addition & 1 deletion lux-js/project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(def version "0.6.2")
(def version "0.6.3")
(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/")
Expand Down
2 changes: 1 addition & 1 deletion lux-js/project.lux
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[""
["identity" ["com.github.luxlang" "lux-js" "0.6.3-SNAPSHOT"]
["identity" ["com.github.luxlang" "lux-js" "0.6.3"]
"info" ["url" "https://github.com/LuxLang/lux"
"scm" "https://github.com/LuxLang/lux.git"
"licenses" [["name" "Lux License v0.1.2"
Expand Down
2 changes: 1 addition & 1 deletion lux-jvm/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ 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.1-SNAPSHOT -Dpackaging=jar
&& mvn install:install-file -Dfile=target/program.jar -DgroupId=com.github.luxlang -DartifactId=lux-jvm -Dversion=0.6.3 -Dpackaging=jar
cd ~/lux/lux-jvm/ && mvn deploy:deploy-file \
-Durl=https://<username>:<password>@oss.sonatype.org/content/repositories/snapshots/ \
Expand Down
2 changes: 1 addition & 1 deletion lux-jvm/project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(def version "0.6.2")
(def version "0.6.3")
(def repo "https://github.com/LuxLang/lux")
(def sonatype "https://oss.sonatype.org")
(def sonatype-releases (str sonatype "/service/local/staging/deploy/maven2/"))
Expand Down
4 changes: 2 additions & 2 deletions lux-lein/project.clj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(defproject com.github.luxlang/lein-luxc "0.6.2"
(defproject com.github.luxlang/lein-luxc "0.6.3"
:description "The Leiningen plugin for the Lux programming language."
:url "https://github.com/LuxLang/lein-luxc"
:url "https://github.com/LuxLang/lux"
:license {:name "Lux License v0.1.2"
:url "https://github.com/LuxLang/lux/blob/master/license.txt"}
:dependencies [[org.clojure/clojure "1.6.0"]]
Expand Down
2 changes: 1 addition & 1 deletion lux-lua/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ cd ~/lux/stdlib/ \

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

22 changes: 16 additions & 6 deletions lux-lua/project.clj
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
(def version "0.6.2")
(def version "0.6.3")
(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 "0.6.3-SNAPSHOT" ;; #=(identity version)
(def asm_version "5.0.4")
(def rembulan_version "0.1")

(defproject com.github.luxlang/lux-lua #=(identity version)
:description "A Lua compiler for Lux."
:url ~repo
:license {:name "Lux License v0.1.2"
Expand All @@ -20,10 +23,17 @@

:plugins [[com.github.luxlang/lein-luxc ~version]]
:dependencies [[com.github.luxlang/lux-bootstrapper ~version]
[com.github.luxlang/stdlib ~version]
[com.github.luxlang/rembulan-runtime "0.1"]
[com.github.luxlang/rembulan-stdlib "0.1"]
[com.github.luxlang/rembulan-compiler "0.1"]]
;; [com.github.luxlang/stdlib ~version]

[org.ow2.asm/asm ~asm_version]
[org.ow2.asm/asm-commons ~asm_version]
[org.ow2.asm/asm-analysis ~asm_version]
[org.ow2.asm/asm-tree ~asm_version]
[org.ow2.asm/asm-util ~asm_version]

[com.github.luxlang/rembulan-runtime ~rembulan_version]
[com.github.luxlang/rembulan-stdlib ~rembulan_version]
[com.github.luxlang/rembulan-compiler ~rembulan_version]]

:manifest {"lux" ~version}
:source-paths ["source"]
Expand Down
19 changes: 13 additions & 6 deletions lux-lua/project.lux
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
{""
[#identity ["com.github.luxlang" "lux-lua" "0.6.2"]
[#identity ["com.github.luxlang" "lux-lua" "0.6.3"]

#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.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"]]
#compiler ["com.github.luxlang" "lux-jvm" "0.6.3" "jar"]
#dependencies [... ["com.github.luxlang" "stdlib" "0.6.3" "tar"]

["org.ow2.asm" "asm" "5.0.4" "jar"]
["org.ow2.asm" "asm-commons" "5.0.4" "jar"]
["org.ow2.asm" "asm-analysis" "5.0.4" "jar"]
["org.ow2.asm" "asm-tree" "5.0.4" "jar"]
["org.ow2.asm" "asm-util" "5.0.4" "jar"]

["com.github.luxlang" "rembulan-runtime" "0.1" "jar"]
["com.github.luxlang" "rembulan-stdlib" "0.1" "jar"]
["com.github.luxlang" "rembulan-compiler" "0.1" "jar"]]

#program "program"]}
2 changes: 1 addition & 1 deletion lux-python/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,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.7.0-SNAPSHOT -Dpackaging=jar
&& mvn install:install-file -Dfile=target/program.jar -DgroupId=com.github.luxlang -DartifactId=lux-python -Dversion=0.6.3 -Dpackaging=jar
```

5 changes: 3 additions & 2 deletions lux-python/project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(def version "0.6.2")
(def version "0.6.3")
(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/")
Expand All @@ -20,7 +20,8 @@

:plugins [[com.github.luxlang/lein-luxc ~version]]
:dependencies [[com.github.luxlang/lux-bootstrapper ~version]
[com.github.luxlang/stdlib ~version]
;; [com.github.luxlang/stdlib ~version]

[org.python/jython-standalone "2.7.2"]]

:manifest {"lux" ~version}
Expand Down
6 changes: 3 additions & 3 deletions lux-python/project.lux
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[""
["identity" ["com.github.luxlang" "lux-python" "0.6.2"]
["identity" ["com.github.luxlang" "lux-python" "0.6.3"]
"description" "A Python compiler for Lux."
"info" ["url" "https://github.com/LuxLang/lux"
"scm" "https://github.com/LuxLang/lux.git"
Expand All @@ -15,8 +15,8 @@
"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.2" "jar"]
"dependencies" [["com.github.luxlang" "stdlib" "0.6.2" "tar"]
"compiler" ["com.github.luxlang" "lux-jvm" "0.6.3" "jar"]
"dependencies" [... ["com.github.luxlang" "stdlib" "0.6.3" "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.7.0-SNAPSHOT -Dpackaging=jar
&& mvn install:install-file -Dfile=target/program.jar -DgroupId=com.github.luxlang -DartifactId=lux-ruby -Dversion=0.6.3 -Dpackaging=jar
```

0 comments on commit 6772d0b

Please sign in to comment.