AltME: REBOL3

Messages

Sunanda
Maybe everyone knows about Rebol - so no need to search :)

GrahamC
This is the first app for Rebol in a browser.  It just calculates how much various companies would charge me for power use
So, it's a console app.  It can change the dom dynamically but I'm not doing that apart from printing to the console.

GrahamC
So, the Ren-c projected has now moved to a Rebol in the browser effort
So, those people who wanted to be manipulate the DOM using Rebol can now do this.
And, if you want to use R2 to do this, then you can use the R2 compatibiility mode for Ren-c

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

Last message posted 161 weeks ago.