sketch-sh icon indicating copy to clipboard operation
sketch-sh copied to clipboard

Move bucklescript's compiler to a worker thread

Open thangngoc89 opened this issue 6 years ago • 2 comments

Benefits:

  • Don't block the main UI thread
  • Got synchronous function importScript to load new stuff into the environment

Consider promise-worker 's API style which is less verbose and easy to use.

thangngoc89 avatar Jul 31 '19 10:07 thangngoc89

Move this to P/1 . After adding ReasonReact, the response time is pretty terrible, the main thread freezes after each character

Demo:

https://sketch-git-reason-react.sketch-sh.now.sh/

thangngoc89 avatar Jul 31 '19 19:07 thangngoc89

image

thangngoc89 avatar Jul 31 '19 19:07 thangngoc89

BuckleScript does not exist anymore and I don't think we will have the resources to build a brand new Sketch engine for ReScript anytime soon, so closing related issues.

jchavarri avatar Oct 07 '22 13:10 jchavarri