aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/lux/compiler/default/phase/translation/scheme/runtime.jvm.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/lux/compiler/default/phase/translation/scheme/runtime.jvm.lux')
-rw-r--r--stdlib/source/lux/compiler/default/phase/translation/scheme/runtime.jvm.lux38
1 files changed, 0 insertions, 38 deletions
diff --git a/stdlib/source/lux/compiler/default/phase/translation/scheme/runtime.jvm.lux b/stdlib/source/lux/compiler/default/phase/translation/scheme/runtime.jvm.lux
index 0e082a5d8..43748c3b1 100644
--- a/stdlib/source/lux/compiler/default/phase/translation/scheme/runtime.jvm.lux
+++ b/stdlib/source/lux/compiler/default/phase/translation/scheme/runtime.jvm.lux
@@ -302,43 +302,6 @@
(def: runtime//io
(_.begin (list @@io//current-time)))
-(def: process//incoming
- Var
- (_.var (name.normalize "process//incoming")))
-
-(runtime: (process//loop _)
- (_.when (_.not/1 (_.null?/1 process//incoming))
- (with-vars [queue process]
- (_.let (list [queue process//incoming])
- (_.begin (list (_.set! process//incoming (_.list/* (list)))
- (_.map/2 (_.lambda [(list process) #.None]
- (_.apply/1 process ..unit))
- queue)
- (process//loop ..unit)))))))
-
-(runtime: (process//schedule milli-seconds procedure)
- (let [process//future (function (_ process)
- (_.set! process//incoming (_.cons/2 process process//incoming)))]
- (_.begin
- (list
- (_.if (_.=/2 (_.int +0) milli-seconds)
- (process//future procedure)
- (with-vars [@start @process @now @ignored]
- (_.let (list [@start (io//current-time ..unit)])
- (_.letrec (list [@process (_.lambda [(list) (#.Some @ignored)]
- (_.let (list [@now (io//current-time ..unit)])
- (_.if (|> @now (_.-/2 @start) (_.>=/2 milli-seconds))
- (_.apply/1 procedure ..unit)
- (process//future @process))))])
- (process//future @process)))))
- ..unit))))
-
-(def: runtime//process
- Computation
- (_.begin (list (_.define process//incoming [(list) #.None] (_.list/* (list)))
- @@process//loop
- @@process//schedule)))
-
(def: runtime
Computation
(_.begin (list @@slice
@@ -349,7 +312,6 @@
runtime//array
runtime//box
runtime//io
- runtime//process
)))
(def: #export translate