esp-lisp icon indicating copy to clipboard operation
esp-lisp copied to clipboard

flash vs ram usage

Open hugows opened this issue 8 years ago • 1 comments

hi yesco, great project, i'm eager to try it at home! since the cheap dev boards available have relatively big flash, i'd like to understand the usage of flash vs ram in the context of esp-lisp, like: is esp-lisp stored on the flash? could we run a lisp program stored in the flash? etc... thanks!

hugows avatar Jul 06 '16 17:07 hugows

Hi. Lisp currently not stored in flash.

I'm experimenting with making that possible.

The biggest issue with making so is symbol names, as having flash point to RAM would-be a bad idea....

But also, one doesn't want force all symbols to be defined/require flash for normal programs.

I have some solutions in the pipeline.

The esp-lisp is designed to be more efficient in memory usage compared to other lisps/lua/js

For example small simple symbol names aren't "stored" at all but instead encoded in the pointer:

  1. Three any characters
  2. Six characters a-z

Such lisp code would pose no problems. On Jul 7, 2016 01:22, "Hugo Schmitt" [email protected] wrote:

hi yesco, great project, i'm eager to try it at home! since the cheap dev boards available have relatively big flash, i'd like to understand the usage of flash vs ram in the context of esp-lisp, like: is esp-lisp stored on the flash? could we run a lisp program stored in the flash? etc... thanks!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/yesco/esp-lisp/issues/8, or mute the thread https://github.com/notifications/unsubscribe/ACBfmjjzQNMF1wmh1-ylHrW3u62lUiepks5qS-Q-gaJpZM4JGT1P .

yesco avatar Jul 07 '16 07:07 yesco