I have ported SRFI-1 to gambit and put it in its own "srfi1#" namespace. It was pretty trivial to do. I think this might be of interest to other people so I figured I would offer it the community.
For those interested, I have also ported Yasos to gambit. The main thing I did was convert the hygienic macros to un-hygienic macros so that it wouldn't depend on syntax-case.scm and error line numbers would be a little more accurate. In the future I intend to extend it with method-missing and perform functionality.
Neither of these are extremely well tested at this point. I am in the process of finding and porting a unit test framework but I have not finished yet. Once I do I will add unit tests for the above two to the package.
It may be that someone else has already made these available for gambit, if so just ignore this and I apologize for the noise.
Afficher les réponses par date
Hi Eric,
Where can one get these from?
I was working on srfi-13 the other day (mainly trying to rewrite the hygienic macros, since I can't figure out how to properlyuse syntax-case with gsc). It would be nice if there was a collection of ported SRFIs available for gambit (or maybe there is already?).
Thanks,
Ben
On Thu, 24 Mar 2005 11:36:12 -0800, Eric Merritt cyberlync@gmail.com wrote:
I have ported SRFI-1 to gambit and put it in its own "srfi1#" namespace. It was pretty trivial to do. I think this might be of interest to other people so I figured I would offer it the community.
For those interested, I have also ported Yasos to gambit. The main thing I did was convert the hygienic macros to un-hygienic macros so that it wouldn't depend on syntax-case.scm and error line numbers would be a little more accurate. In the future I intend to extend it with method-missing and perform functionality.
Neither of these are extremely well tested at this point. I am in the process of finding and porting a unit test framework but I have not finished yet. Once I do I will add unit tests for the above two to the package.
It may be that someone else has already made these available for gambit, if so just ignore this and I apologize for the noise. _______________________________________________ Gambit-list mailing list Gambit-list@iro.umontreal.ca http://mailman.iro.umontreal.ca/mailman/listinfo/gambit-list
I don't really have it up anywhere right now. Its not that I am unwilling I just don't have space anywhere. I will happily email it to you if you like.
As for the availability of more SRFIs, I was talking to Guillaume Germain about this and he seems to also have a number of srfi's ported to gambit. From what he says they need a bit of clean up and packaging but that can be done. I plan to port, at the very least, two other srfi's (13 and 44) to gambit myself as well.
Perhaps its time to start thinking about a repository of third-party code ported to gambit. Provided with some packaging and namespace guidelines, I have little doubt it would fill up reasonably quickly. If nothing else it could go up on sourceforge.
On Fri, 25 Mar 2005 14:51:56 -0500, dev null doonboggle@gmail.com wrote:
Hi Eric,
Where can one get these from?
I was working on srfi-13 the other day (mainly trying to rewrite the hygienic macros, since I can't figure out how to properlyuse syntax-case with gsc). It would be nice if there was a collection of ported SRFIs available for gambit (or maybe there is already?).
Thanks,
Ben
On Thu, 24 Mar 2005 11:36:12 -0800, Eric Merritt cyberlync@gmail.com wrote:
I have ported SRFI-1 to gambit and put it in its own "srfi1#" namespace. It was pretty trivial to do. I think this might be of interest to other people so I figured I would offer it the community.
For those interested, I have also ported Yasos to gambit. The main thing I did was convert the hygienic macros to un-hygienic macros so that it wouldn't depend on syntax-case.scm and error line numbers would be a little more accurate. In the future I intend to extend it with method-missing and perform functionality.
Neither of these are extremely well tested at this point. I am in the process of finding and porting a unit test framework but I have not finished yet. Once I do I will add unit tests for the above two to the package.
It may be that someone else has already made these available for gambit, if so just ignore this and I apologize for the noise. _______________________________________________ Gambit-list mailing list Gambit-list@iro.umontreal.ca http://mailman.iro.umontreal.ca/mailman/listinfo/gambit-list
Gambit-list mailing list Gambit-list@iro.umontreal.ca http://mailman.iro.umontreal.ca/mailman/listinfo/gambit-list
On Fri, 25 Mar 2005, Eric Merritt wrote:
As for the availability of more SRFIs, I was talking to Guillaume Germain about this and he seems to also have a number of srfi's ported to gambit. From what he says they need a bit of clean up and packaging but that can be done. I plan to port, at the very least, two other srfi's (13 and 44) to gambit myself as well.
And here it is: http://www.iro.umontreal.ca/~germaing/srfi-pack-0.1.tar.gz
Here is the related README with more information: http://www.iro.umontreal.ca/~germaing/srfi-pack-0.1-README
As Eric said, this still need some work to be really useful. Currently this is mostly a repackaging of various SRFIs' reference implementations, up to SRFI-55. Since a lot of them use syntax-rules, you lose source code location information when using it. Also, it's not up-to-date.
Perhaps its time to start thinking about a repository of third-party code ported to gambit. Provided with some packaging and namespace guidelines, I have little doubt it would fill up reasonably quickly. If nothing else it could go up on sourceforge.
I think we could put that repository on Gambit's web page. And as you say, some packaging guidelines should be established. Something like Chicken's "Eggs" and chicken-setup would be a great thing to have.
Guillaume
Thanks for the link Guillaume. I will have a look at it this weekend.
Chicken is rather far ahead of Gambit in terms of add-on packages. It would be fun to try to catch up!
Ben
On Fri, 25 Mar 2005 15:21:51 -0500 (EST), Guillaume Germain
I think we could put that repository on Gambit's web page. And as you say, some packaging guidelines should be established. Something like Chicken's "Eggs" and chicken-setup would be a great thing to have.
Guillaume _______________________________________________ Gambit-list mailing list Gambit-list@iro.umontreal.ca http://mailman.iro.umontreal.ca/mailman/listinfo/gambit-list
Well to keep this little party from dying whats the next step?
So we need some packaging guidelines and some process to submit code. What else?
On Fri, 25 Mar 2005 15:43:58 -0500, dev null doonboggle@gmail.com wrote:
Thanks for the link Guillaume. I will have a look at it this weekend.
Chicken is rather far ahead of Gambit in terms of add-on packages. It would be fun to try to catch up!
Ben
On Fri, 25 Mar 2005 15:21:51 -0500 (EST), Guillaume Germain
I think we could put that repository on Gambit's web page. And as you say, some packaging guidelines should be established. Something like Chicken's "Eggs" and chicken-setup would be a great thing to have.
Guillaume _______________________________________________ Gambit-list mailing list Gambit-list@iro.umontreal.ca http://mailman.iro.umontreal.ca/mailman/listinfo/gambit-list
Gambit-list mailing list Gambit-list@iro.umontreal.ca http://mailman.iro.umontreal.ca/mailman/listinfo/gambit-list
Well to keep this little party from dying whats the next step?
So we need some packaging guidelines and some process to submit code. What else?
I think a standardized package system for Gambit is a good idea and a great way for people to contribute various extensions to Gambit (not only SRFIs). I've been thinking about this for a while now and even have come up with a cute name for these extensions... "gems" for Gambit Extension Modules.
One of my concerns is that this package system be close enough to the R6RS module system that it will be easy to migrate the gems to conform to R6RS (so that users of other Scheme systems can benefit from the gem repository, and conversely that users of Gambit can easily access R6RS modules).
Most of the mechanisms required for a package system are already in place (namespaces, installation directory, include/load). The Gambit installation directory could be used as a local repository for gems (actually a "gem" subdirectory, so that you could write something like (include "~~/gem/srfi-1.scm") to gain access to srfi-1).
What is needed is a way for a package to declare its version and the version of other gems it depends on. A tool to download a specific gem from the Gambit web page, or a mirror, would be nice too.
Much to think about...
Marc
Try this for SRFI-13 and SRFI-14. The char-set lib uses a dense bitmap representation for Latin-1 (256-element) character sets. Tested extensively for gambc40a8, but not tested for gambc40b12. Has pretty good error checking. Must be run from the compiler (because of checking for absent arguments).
Brad