diff options
author | Eduardo Julian | 2022-04-05 18:32:42 -0400 |
---|---|---|
committer | Eduardo Julian | 2022-04-05 18:32:42 -0400 |
commit | 60daee098f92a44c3b404a9f5801f2e8126ad650 (patch) | |
tree | 7b58d0f6f937b8be5dcb46eaf0411f7961907c8a /lux-python | |
parent | a2d994a3f7a39964452df7523f69e16b10b266f9 (diff) |
No longer depending on the ASM library for JVM bytecode generation.
Diffstat (limited to 'lux-python')
-rw-r--r-- | lux-python/commands.md | 10 | ||||
-rw-r--r-- | lux-python/project.lux | 7 | ||||
-rw-r--r-- | lux-python/source/program.lux | 4 |
3 files changed, 15 insertions, 6 deletions
diff --git a/lux-python/commands.md b/lux-python/commands.md index 3340581a2..869413fa7 100644 --- a/lux-python/commands.md +++ b/lux-python/commands.md @@ -28,6 +28,14 @@ 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.3 -Dpackaging=jar +&& mvn install:install-file -Dfile=target/program.jar -DgroupId=com.github.luxlang -DartifactId=lux-python -Dversion=0.7.0-SNAPSHOT -Dpackaging=jar + +cd ~/lux/lux-python/ && mvn deploy:deploy-file \ +-Durl=https://$NEXUS_USERNAME:$NEXUS_PASSWORD@oss.sonatype.org/content/repositories/snapshots/ \ +-Dfile=target/program.jar \ +-DgroupId=com.github.luxlang \ +-DartifactId=lux-python \ +-Dversion=0.7.0-SNAPSHOT \ +-Dpackaging=jar ``` diff --git a/lux-python/project.lux b/lux-python/project.lux index 916dbd5a9..f69567703 100644 --- a/lux-python/project.lux +++ b/lux-python/project.lux @@ -1,5 +1,5 @@ ["" - ["identity" ["com.github.luxlang" "lux-python" "0.6.5"] + ["identity" ["com.github.luxlang" "lux-python" "0.7.0-SNAPSHOT"] "description" "A Python compiler for Lux." "info" ["url" "https://github.com/LuxLang/lux" "scm" "https://github.com/LuxLang/lux.git" @@ -15,8 +15,9 @@ "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.5" "jar"] + "lux" ["com.github.luxlang" "lux-jvm" "0.7.0-SNAPSHOT" "jar"] "dependencies" [... ["com.github.luxlang" "stdlib" "0.6.5" "tar"] - ["org.python" "jython-standalone" "2.7.2" "jar"]] + ["org.python" "jython-standalone" "2.7.2" "jar"] + ["com.github.luxlang" "lux-jvm-function" "0.6.5" "jar"]] "program" "program"]] diff --git a/lux-python/source/program.lux b/lux-python/source/program.lux index 25a2131c5..d12ea355c 100644 --- a/lux-python/source/program.lux +++ b/lux-python/source/program.lux @@ -157,7 +157,7 @@ {try.#Success value} (case (read value) {try.#Success lux_value} - (again (++ idx) (array.write! idx lux_value output)) + (again (++ idx) (array.has! idx lux_value output)) failure failure) @@ -314,7 +314,7 @@ org/python/core/PyObject (case (|> it (as (Array Any)) - (array.read! (|> index' ffi.int_to_long (as Nat)))) + (array.item (|> index' ffi.int_to_long (as Nat)))) {.#None} (::super! [index']) |