Skip to content

Instantly share code, notes, and snippets.

@SeanTAllen
Created March 23, 2016 01:28
Show Gist options
  • Save SeanTAllen/9844e735da8acc2870b5 to your computer and use it in GitHub Desktop.
Save SeanTAllen/9844e735da8acc2870b5 to your computer and use it in GitHub Desktop.
actor Main
new create(env: Env) =>
let talk = SpeechOut
let config = Config.create(talk)
SpeechIn.create(talk, config)
actor SpeechOut
new create() => None
actor SpeechIn
let talk: SpeechOut tag
new create(talk': SpeechOut, config: Config) =>
talk = config.talk
recover String(16000) end // trigger gc, happens around 14336
class val Config
let talk: SpeechOut
new val create(talk': SpeechOut) =>
talk = talk'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment