replete-repl / replete-ios

ClojureScript REPL iOS app
Eclipse Public License 1.0
396 stars 25 forks source link

associate request and response #42

Closed mfikes closed 8 years ago

mfikes commented 9 years ago
(loop [x 1000000000] 
  (if (pos? x) 
    (recur (dec x))))

takes a while, and other forms can be queued. It would be nice to hook responses to requests in history.

mfikes commented 9 years ago

Perhaps a cleaner alternative would be to allow only one execution be queued at a time (blocking the main thread when a second form is evaluated), thus guaranteeing serial nature, while still allowing the user to enter and edit the next form if a long-running form is being evaluated.

karlmikko commented 9 years ago

Could also build a queue internally and only execute one at a time. This would allow the main thread to still be active and allow users to scroll etc.

mfikes commented 9 years ago

Yeah. It is also looking like cljs.js has some async aspects to it, so we'll see what happens there.

mfikes commented 8 years ago

Hmm... looks like with Parinfer calling into JS engine, things simply lock up now.

Nobody has been really complaining about this one, so not worrying about associating requests and responses for now.