Would this work for an IDE?
cgracey
Posts: 14,155
in Propeller 2
I just got some ESP2866 modules, $3 each.
Do you all think it would be possible for the P2 to drive a web page through the ESP2866 that forms an IDE?
This would mean, of course, that the compiler, editor, and debugger are located on the P2, itself. The webpage presentation would be for editing, compiling, and debugging code.
Is this reasonably possible? Are there any big gachas in trying to do this?
I figure the host machine that is displaying the web page through its browser could provide the visual display, mouse, and keyboard input, and maybe local file storage. There'd be no O.S. dependence or wires this way.
Do you all think it would be possible for the P2 to drive a web page through the ESP2866 that forms an IDE?
This would mean, of course, that the compiler, editor, and debugger are located on the P2, itself. The webpage presentation would be for editing, compiling, and debugging code.
Is this reasonably possible? Are there any big gachas in trying to do this?
I figure the host machine that is displaying the web page through its browser could provide the visual display, mouse, and keyboard input, and maybe local file storage. There'd be no O.S. dependence or wires this way.
Comments
Also, asking them to dedicate monitors, mice, and keyboards to this cause is asking for too much, maybe. If they can use the systems they already have, it's much simpler.
The two can form a permanent tandem on a module similar to P2D2
The new ESP32-S, in place of the ethernet MAC and SD controller, have a full-speed USB OTG V1.1
—▷ https://github.com/espressif/arduino-esp32/tree/master/libraries/WebServer/examples/SDWebServer
Serve a page with a JS editor with it and you are 80% there.
One of my Hive-Project neigbours has tinkered with that:
—▷ https://hive-project.de/board/viewtopic.php?p=16291#p16291
The screenshots below are from his version running on a "NodeMCU Amica" board.
Edit: Looks like it has 512K. That might be enough to run FastSpin given that the code would be in flash.
+1
I didn't know we sold one, actually. I just went on Amazon and found some.
https://www.parallax.com/product/32420s
If all else fails, run Fastspin in the Browser.
Jeff thought we could use the ESPxx to push a JavaScript program to the web browser to form the IDE. It's compelling if we could solve the multi-platform problem this way.
So, it seems reasonable to you that we could maybe fit the entire IDE into the ESP32, so that it presents a web page to any host machine and has fast comms back to the P2 for loading and debugging?
its clunky but no ms
the thing that u should be thinking of is that no matter what u do...ur using another chip...an esp8266 or ftdi...or a chrome book
the ideal thing...im my idea:
assume a chromebook or browser or phone
use a parallax hosted website to compile code...if sphinx can do it...php could as well this allows a ton more options than sphinx
now create an esp8266 equivalent of the ftdi dongle u used to use keep the server code open source...and php is nice and easy..pretty strong too
now a phone can program an esp..or chromebook....or any apache server with php...apples...samsungs...windows...linux
i mean ms owns github...who we work for anyway
my next intention is adding small cam system for slots holes contours and pockets to my website thats about 90percent of most parts....the fancy 3d machining people like to show off really isnt efficient for most parts
If you want to design it in Delphi TMS Webcore can generate JavaScript from Pascal code.
https://www.tmssoftware.com/site/tmswebcoreintro.asp
-- It's not 100% compatible with Spin 2 as defined by Chip, so I won't use it.
-- I know an update to Propeller Tool is coming; for business reasons, I think that should be x-platform and support debugging tools
Brad (creator of BST) walked away from the tool he created and the Propeller community. I'm not suggesting Eric will. That said, Parallax cannot count on -- although they should be supportive of -- 3rd party tool builders if they want the P2 to be taken seriously. It took a very long time to ramp up the P1 because right after its launch Parallax showed more interest in creating the P2 than get P1 users up and running with good tools and libraries. None of the great BASIC Stamp training materials were ported to the Propeller; this is still a mystery to me.