From 60daee098f92a44c3b404a9f5801f2e8126ad650 Mon Sep 17 00:00:00 2001
From: Eduardo Julian
Date: Tue, 5 Apr 2022 18:32:42 -0400
Subject: No longer depending on the ASM library for JVM bytecode generation.

---
 lux-python/commands.md        | 10 +++++++++-
 lux-python/project.lux        |  7 ++++---
 lux-python/source/program.lux |  4 ++--
 3 files changed, 15 insertions(+), 6 deletions(-)

(limited to 'lux-python')

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'])
 
-- 
cgit v1.2.3