aboutsummaryrefslogtreecommitdiff
path: root/new-luxc/source/luxc/lang/translation/ruby
diff options
context:
space:
mode:
Diffstat (limited to 'new-luxc/source/luxc/lang/translation/ruby')
-rw-r--r--new-luxc/source/luxc/lang/translation/ruby/procedure/common.jvm.lux18
-rw-r--r--new-luxc/source/luxc/lang/translation/ruby/runtime.jvm.lux14
2 files changed, 0 insertions, 32 deletions
diff --git a/new-luxc/source/luxc/lang/translation/ruby/procedure/common.jvm.lux b/new-luxc/source/luxc/lang/translation/ruby/procedure/common.jvm.lux
index 96d42a4a9..1f995b44b 100644
--- a/new-luxc/source/luxc/lang/translation/ruby/procedure/common.jvm.lux
+++ b/new-luxc/source/luxc/lang/translation/ruby/procedure/common.jvm.lux
@@ -412,23 +412,6 @@
(install "read" (unary box//read))
(install "write" (binary box//write)))))
-## [[Processes]]
-(def: (process//parallelism-level [])
- Nullary
- (ruby.int 1))
-
-(def: (process//schedule [milli-secondsO procedureO])
- Binary
- (runtimeT.process//schedule milli-secondsO procedureO))
-
-(def: process-procs
- Bundle
- (<| (prefix "process")
- (|> (dict.new text.Hash<Text>)
- (install "parallelism-level" (nullary process//parallelism-level))
- (install "schedule" (binary process//schedule))
- )))
-
## [Bundles]
(def: #export procedures
Bundle
@@ -441,5 +424,4 @@
(dict.merge array-procs)
(dict.merge io-procs)
(dict.merge box-procs)
- (dict.merge process-procs)
)))
diff --git a/new-luxc/source/luxc/lang/translation/ruby/runtime.jvm.lux b/new-luxc/source/luxc/lang/translation/ruby/runtime.jvm.lux
index 32ab5b10c..02de3dc7b 100644
--- a/new-luxc/source/luxc/lang/translation/ruby/runtime.jvm.lux
+++ b/new-luxc/source/luxc/lang/translation/ruby/runtime.jvm.lux
@@ -230,19 +230,6 @@
Runtime
(format @@box//write))
-(runtime: (process//schedule milli-seconds procedure)
- (ruby.block!
- (list (format "(Thread.new {"
- (ruby.when! (ruby.not (ruby.= (ruby.int 0) milli-seconds))
- (ruby.statement (ruby.apply "sleep" (list (ruby./ (ruby.float 1_000.0) milli-seconds)))))
- (ruby.statement (ruby.call (list ..unit) procedure))
- "})")
- (ruby.return! ..unit))))
-
-(def: runtime//process
- Runtime
- @@process//schedule)
-
(def: runtime
Runtime
(format runtime//lux "\n"
@@ -251,7 +238,6 @@
runtime//text "\n"
runtime//array "\n"
runtime//box "\n"
- runtime//process "\n"
))
(def: #export artifact Text (format prefix ".rb"))