aboutsummaryrefslogtreecommitdiff
path: root/new-luxc/source/luxc/lang/translation/lua/runtime.jvm.lux
diff options
context:
space:
mode:
authorEduardo Julian2018-04-14 02:02:13 -0400
committerEduardo Julian2018-04-14 02:02:13 -0400
commit4ef2dbc49cd6dae1b8235dfd13dcd298c8aa3bfe (patch)
treedb12bd62ab3e1c9767bfe43edc030e3bfc77ef95 /new-luxc/source/luxc/lang/translation/lua/runtime.jvm.lux
parentca238f9c89d3156842b0a3d5fe24a5d69b2eedb0 (diff)
- Initial R back-end implementation.
Diffstat (limited to 'new-luxc/source/luxc/lang/translation/lua/runtime.jvm.lux')
-rw-r--r--new-luxc/source/luxc/lang/translation/lua/runtime.jvm.lux12
1 files changed, 6 insertions, 6 deletions
diff --git a/new-luxc/source/luxc/lang/translation/lua/runtime.jvm.lux b/new-luxc/source/luxc/lang/translation/lua/runtime.jvm.lux
index 137e5d4ab..12a0fe6a5 100644
--- a/new-luxc/source/luxc/lang/translation/lua/runtime.jvm.lux
+++ b/new-luxc/source/luxc/lang/translation/lua/runtime.jvm.lux
@@ -424,13 +424,13 @@
(lua.block! (list (lua.local! "process" (#.Some (lua.nth "idx" "queue")))
(lua.when! (lua.apply "coroutine.resume" (list "process"))
(lua.apply "table.insert" (list "survivors" "process"))))))
- (lua.set! "queue" "survivors")))]
+ (lua.set! "queue" "survivors")))
+ loop-body! (lua.block! (list migrate-incoming!
+ consume-queue!))]
(lua.block! (list (lua.local! "queue" (#.Some (lua.array (list))))
- migrate-incoming!
- consume-queue!
- (lua.when! (lua.> (lua.int 0)
- (lua.length "queue"))
- (process//loop unit))))))
+ loop-body!
+ (lua.while! (|> (lua.length "queue") (lua.> (lua.int 0)))
+ loop-body!)))))
(runtime: (process//future procedure)
(lua.block! (list (lua.apply "table.insert" (list process//incoming