I read on the GSAP (http://www.greensock.com) forum that a user was able to install TweenLite onto their Espruino. I tried and it looks like I'm getting an out of memory issue. The size of the library is 28kb. Am I missing something?
From your other posts it looks like you got this working in the end?
While you should be able to get 28k of code into something like Puck.js, it also depends how that code is written. If it says 'new Uint8Array(100000)' somewhere then obviously it'll still run out of memory - most code written for the web browser doesn't even start to think about RAM usage - it's just the size of the minified JS.
There are other issues too (some of which are covered in http://www.espruino.com/Performance), but using 'save on send' will probably make sure you can get the module into the device itself - it's then just whether it'll execute or not!
Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
For a full reference visit the Markdown syntax.
© Espruino, powered by microcosm.
Report a problem