These are chat archives for fourthbit/spheres

2nd
Jun 2015
Álvaro Castro-Castilla
@alvatar
Jun 02 2015 07:22
Awesome! I saw the blog post!!
Don't worry about asking too much. I actually wanted to move the schemespheres.org hosting to Gitpages, so documentation is collaborative and wiki.
Álvaro Castro-Castilla
@alvatar
Jun 02 2015 07:44
Answers:
1) The root search paths are the candidates where /spheres project is located, the library paths are all places where you can have libraries.
2) Import and Load are different things. Import sets up the namespaces of the libraries you need, load actually sets up the code. Those two things are normally done together (like in Blackhole), but separating them gives you more flexibility. Actually, future Gambit implementation of R7RS will work this way. Load modules (code files) and import names and syntax.
Álvaro Castro-Castilla
@alvatar
Jun 02 2015 07:50
3) You will need to add to the spheres-library-paths the tspheres folder. Then inside it you need to create another tpsoheres folder, otherwise you will need to import it via (load (ssdoc ssdoc)). The spheres-library-paths is a list of folders where the paths will be tried.
Julián Herrera
@vidjuheffex
Jun 02 2015 21:14

I mean the call to ssdoc itself, I'm sure it's finding the library. For example:

> (load (not_a_path/ssdoc ssdoc))
*** ERROR -- Library not found:  (not_a_path/ssdoc ssdoc)
> (load (tpspheres/ssdoc ssdoc))
*** ERROR -- (Argument 1) PAIR expected
(car #f)
>

I'm just not understanding how ssdoc runs.

Also, having played with SchemeSpheres for a bit now... wow. So many useful libraries. I like "check" but missed the approximate-equals that "test" has... so then I saw you had "~=" in Math Arithmetic-Inexact.... and had what I wanted immediately. How is RSR7 Gambit as far as progress, is that known?
Álvaro Castro-Castilla
@alvatar
Jun 02 2015 21:32
However, it's stalled for a while. Marc is now focused on the universal backend.
You'll need to ask him!
Can you show me the code that produces that (car #f) error?
Julián Herrera
@vidjuheffex
Jun 02 2015 22:57
That's pretty much it, that's from the REPL. The sphere is in C:/gambit-C/lib/tspheres/ssdoc/ssdoc.scm, the "not_a_path" example above vs. the (tpsheres/ssdoc sddoc) tells me that with the latter the library is being found, no? I thought maybe ssdoc had to be loaded with arguments?
Álvaro Castro-Castilla
@alvatar
Jun 02 2015 23:13
but what's inside ssdoc.sld?