Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ Programming
➜ General
➜ Gpascal as a sandbox interpreter?
Gpascal as a sandbox interpreter?
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Andrews
(2 posts) Bio
|
Date
| Sun 17 Mar 2019 02:03 AM (UTC) Amended on Sun 17 Mar 2019 02:50 AM (UTC) by Andrews
|
Message
| I was thinking about this esp32 library which displays VGA directly from an esp32:
https://www.youtube.com/watch?v=G70CZLPjsXU&t=213s
https://www.youtube.com/watch?v=qJ68fRff5_k
https://www.youtube.com/watch?v=wu5sySCW5NE
https://www.tindie.com/products/bitluni/esp32-vga-board/
I was thinking it would be great to be able to load scripts from the web that could run programs and drive graphics and sound using the above library on an esp32.
There's not much free memory on the esp32 so no chance of HTML working.
Ideally it would be a simple programming language, and also be a secure sandbox so downloaded scripts could not directly program the esp32 CPU and could not send network requests to the local network.
I got to thinking - hey, maybe Gpascal might fit the bill... it seems a good simple language, able to control sprites and sound.
Of course it would have to be rewritten for the esp32 - it's a big project.
But I was interested to hear what anyone else thought about this idea.
Do you think gpascal might be a good simple language to run sandboxed scripts downloaded from the Internet? An embedded systems programming/scripting/graphics language.
It's really just a fun thought experiment as I don't have the time or skills to implement it but I do like the idea of Gpascal having a modern purpose. | Top |
|
Posted by
| Nick Gammon
Australia (23,162 posts) Bio
Forum Administrator |
Date
| Reply #1 on Mon 18 Mar 2019 05:51 AM (UTC) |
Message
| GPascal comprised an editor, a compiler and an interpreter. Which of those would you be proposing to put on this chip? |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Andrews
(2 posts) Bio
|
Date
| Reply #2 on Mon 18 Mar 2019 05:57 AM (UTC) |
Message
| The idea being that a Gpascal script is loaded via HTTP(S) from some server and run on the esp32.
Presumably that means the script would need to be compiled and then run via the interpreter ... is that how Gpascal works?
No need for an editor as the input files would be text loaded via HTTP. | Top |
|
Posted by
| Nick Gammon
Australia (23,162 posts) Bio
Forum Administrator |
Date
| Reply #3 on Thu 21 Mar 2019 06:47 AM (UTC) |
Message
| Considering that the source for Gpascal is 6502 assembler, attempting to do an interpreter would basically be a rewrite, assuming you are going to program it in C or C++.
It could be done, but you may as well do something similar to Lua. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
13,879 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top