AltME: REBOL3

Messages

Bo
Is Ren-C currently able to run in the browser and manipulate the DOM? Or is that a future target?
GrahamC
Yes, it can manipulate the DOM now.  See my single page app above.
r2 backwards compatibility is a WIP again

GrahamC
Here's a rebol dialect driven GUI in the browser.  Rebol creates JS on the fly.  https://brianotto.github.io/ui-builder/web/

GrahamC
Renc now has a redbol dialect.  There's a version in the web browser - see http://hostilefork.com/media/shared/replpad-js/
And it was used to create a pdf using pdf-maker.r
Yes, the name means it will try and run red scripts as well

amacleod
Graham, any other examples of apps built with this rebol dialect? rtying to get my head around what is possible.

GrahamC
amcleod, I've started a FAQ on how to use the Rebol JS API https://github.com/hostilefork/replpad-js/wiki/Basic---Getting-started
Basically you have JS available to you from rebol and its limitations.  So, CORS stops you loading JS from sites that don't have CORS enabled, and you can write to local files.  Storage has to be web based database, or you could use cookies for session management.
This is for one page apps without using CGI.  If you choose to use CGI then you have more options.   Currently it doesn't very well on node.js so we're targetting the browser JS engine first.
sorry, you can not write to local files
amacleod
Thanks.
GrahamC
So, basically you are writing normal rebol/renc code but your GUI is JS, and I/O has all JS limitations
If we could run on node.js then those latter issues are addressed since it's no longer blocked by browser security considerations
Note that this stuff runs on your phone so you can start to write phone apps

Oldes
Not working... probably because I have not set the required flags, which I'm not going to do... even now Chrome is a devil's beast and I don't want to extend it. I prefer my tooling to be living close to me and don't need to download them from a server all the time.. but good luck with your efford.
GrahamC
That's ignorant oldes. You know you can just save everything locally.
GrahamC
You can either download the repo to your phone or PC.  I have even this script https://github.com/gchiu/rebol-misc/blob/master/setup-rebolweb.reb
if you don't want the sources.  And then grab the latest .wasm file off my S3 site.

GrahamC
Here's a chess demo

Last message posted 161 weeks ago.