You can help CodeWalrus stay online by donating here. | New CodeWalrus | Old (dark mode) | Old (light) | Discord server
0
b/Calculator Development publicado por u/Adriweb September 30, 2015, 10:19:03 PM
Lately, I've been working a bit on integrating Mateo's original techniques for getting C to compile for the CE devices. After cleaning [many] things up from ZDS (most notably the makefile), and integrating all kinds of nice things together, I have a working online C "IDE" :)

Features include:
  • State saving when you build (via local storage mainly),
  • Proper C syntax highlighting
  • Code folding, Naive autocompletion, Auto indenting and other CodeMirror goodies.
  • Inlined warnings and errors from ZDS
  • Direct .8xp creation and download
  • Support of multi-user live collaborating
Screenshots: (the one on the left is a bit outdated)



It will be publicly released when it's a bit more tested and the TODO List is done, but I'll also wait for Mateo to finish with his include files that'll be much nicer that what the IDE is currently using :P

What's happening behind the scenes is: Page <=> AJAX <=> PHP+Bash workers/dispatchers <=> ZDS CLI tools (via the Makefile) run with wine + ConvHex.
Of course, the wine bottle is isolated from the rest of the actual Linux FS, and it's running from a restricted user account (no, you can't #include "/etc/passwd" ;)) Chrooting may take place if needed, that will be determined by further tests...

I believe most parts (i.e things not directly tied to TI-Planet's architecture) will become open-source since developer-oriented tools should always be released that way.

Via: https://tiplanet.org/forum/viewtopic.php?f=10&t=17279
Last Edit: November 01, 2015, 09:23:15 PM by Adriweb
Inicia sesión o crea una cuenta para dejar un comentario
u/semiprocoder October 01, 2015, 02:29:18 AM
Wow, sounds really cool. Unfortunately I only have a ti 84 plus se. I might eventually get a ce, but not for now. I tried to get sdcc to program the 84 plus se, but I couldn't manage to. I don't(forgot to put this in but this is too big of a distinction so I just changed it) have linux, don't really know any commands like that or anything... An online c compiler for the preious versions as well would be nice. But I still think this is really nice and could lead to some really nice programs, as asm is too anoying for me too learn. Don't really feel like it, especially as I don't have any good editors for it.
Last Edit: October 01, 2015, 11:19:36 PM by semiprocoder
u/novenary October 01, 2015, 12:46:29 PM
Promoted to front page news. Nice stuff right there Adriweb. :)
u/SiphonicSugar October 01, 2015, 08:59:39 PM
Man! This is great!

Now all I have to do is learn C and start making apps, or games... for the CE!
u/Dream of Omnimaga October 01, 2015, 10:18:19 PM
Very great Adriweb. I knew that Mateo was working on tools to ease C developement on that calculator so I am glad that  more tools are being made. :)
u/Snektron October 02, 2015, 11:21:54 AM
Cool! Where can i get a link to the editor?:p
u/Dream of Omnimaga October 02, 2015, 08:53:18 PM
Now what we need is a community emulator to make development easier. Open-source ideally to allow everyone to contribute, but I can settle with the opposite if it means I'll be able to emulate my calculator earlier. Hopefully someone with the skills and time can get this rolling.
u/Ivoah October 02, 2015, 09:05:46 PM
Quote from: DJ Omnimaga on October 02, 2015, 08:53:18 PM
Now what we need is a community emulator to make development easier. Open-source ideally to allow everyone to contribute, but I can settle with the opposite if it means I'll be able to emulate my calculator earlier. Hopefully someone with the skills and time can get this rolling.

Don't forget about https://github.com/TI-Planet/ti_jsemu_wrapper
u/Adriweb October 02, 2015, 09:43:40 PM
But which still legally requires the user to have either a non-expired demo or a valic license of the SmartView. Unfortunately for most of the TI community, pretty much only teachers have that.
(I must be part of the few exceptions...)
u/Dream of Omnimaga October 02, 2015, 10:00:27 PM
Indeed, plus TI-Smartview emulation doesn't emulate undocumented instructions. For example it doesn't run Pacman. Also the JS wrapper doesn't let us transfer files. Hence the need for a full emulator like Wabbitemu or jsTIfied.
u/Adriweb October 15, 2015, 06:39:34 AM
Update (even though it's not public yet... :P) :
  • Added some standard headers to the template
  • Header for common types as well
  • Better handling of multiple codes/programs (unique ids in localStorage etc.)
  • Support of multi-user live collaborating (see screenshot)
u/Unicorn October 15, 2015, 06:42:56 AM
oooo... Maybe this'll get me to try to learn C...
u/Dream of Omnimaga October 17, 2015, 10:48:10 PM
Awesome. My only concern, though, is since it's hosted on TI-Planet, then will the latency or lag issues that sometimes occurs when browsing the site in North America/Asia on some ISPs due to distance cause issues when live-editing code together, like in online multiplayer games?
u/Adriweb October 18, 2015, 01:28:39 AM
The real-time DB thing is CDN'ed so that should not be an issue.
u/Dream of Omnimaga October 18, 2015, 01:38:32 AM
Ah, that's good then. Could it be possible to have mirror servers in multiple parts of the worlds if that's not too expensive, such as one in North America and the other in Europe?
Start a Discussion

b/Calculator Development

Showcase your newest TI, Casio, HP, Numworks or Sharp calculator projects here, discuss programming and share or browse user tutorials!

320
Topics
Explore Board
Website statistics


MyCalcs | Ticalc.org | Cemetech | Omnimaga | TI-Basic Developer | MaxCoderz | TI-Story | Casiocalc.org | Casiopeia | The Museum of HP Calculators | HPCalc.org | CnCalc.org | Music 2000 Community | TI Education | Casio Education | HP Calcs | NumWorks | SwissMicros | Sharp Calculators
Powered by EzPortal