Nope, this is friendly enough for me, thank you! It will allow me to use the editor to enter some seldom-changed code without cluttering it with 100 windows that need to be scrolled through.
I noticed that "main" can only be saved as "main.scm" - I assume that if I reset the application, it will revert to the original main. I can of course get around this by creating my own initialization script, and adding one easily-remembered line in "main" to load it.
It's not clear from the Wiki whether I need to register to edit it, or if anyone can do it, but I doubt I could put a link in the sidebar for a special iOS page. There is an "iPhone" page already, but it's not linked anywhere.
An iOS page would be friendly. Perhaps the app can be made to link there rather than the main page.
The app is just a REPL, and does not have access to the full power of Gambit, but it's perfect for learning and experimentation. As a result, it's going to attract a lot of people who are not that familiar with Scheme, so you, me, the community, should help them, yet keep handholding to a minimum. Discovery is 99% of the fun and purpose of learning, as long as it isn't too frustrating. I found the LISTSERV, subscribed, asked - that was my first step. Now I'd like to help others, but not make it _too_ easy for them.
The rest of the Wiki is an excellent starting point for everything except the iOS app, by the way.
Ed
On Apr 28, 2012, at 9:01 PM, Marc Feeley wrote:
On 2012-04-28, at 3:49 AM, Edward P Luwish wrote:
How can one retrieve a saved file and edit it?
Scripts can be created with the script editor, which stores these scripts in an internal database. A script can be saved to the Documents folder by clicking the "save" button. However, Gambit REPL does not provide "out of the box" an "open" functionality which would allow copying a script from the Documents folder to the internal script database.
The good news is that this functionality can be added easily. For example, add the following code to the "main" script, so that these definitions are available the next time you launch Gambit REPL:
(define (open name) (script#add-script name (call-with-input-file name (lambda (p) (read-line p #f)))) (gr#set-edit-view) (edit))
(define (ls) (for-each pp (directory-files)))
Now you can evaluate (ls) to get a list of the files in the Documents folder. To open a file "foobar.scm" in the script editor, simply evaluate (open "foobar.scm") .
A more user-friendly interface to this functionality would be nice, but I have no plans for that right now.
Marc