113 points · by rekado · 10y ago · 67 comments
I love it, just not as much as I love Chicken.
By that I mean what is the default/main/vanilla scheme?
Until R6RS, having a "vanilla" scheme wasn't practical: the scheme standard is minimalist, and excludes things like binary IO, modules, networking, OO, etc, although it does provide the tools to make your own module/OO system if you want. Writing portable scheme is almost impossible, and frowned upon.
R6RS tried to extend the language and stdlib, so that writing portable scheme was possible. It was criticized for being overly complex, and for forgoing common SRFIs (informal standards that can be implemented across schemes), instead coming up with its own solutions to the same problems. Its acceptance was mixed. Guile implements some of it, but there are few full implmentations of the standard. The lack of acceptance for R6RS is sometimes seen as one of the catalysts to PLT Scheme casting off the anchors of the Scheme standard, and renaming itself Racket, which was already starting to happen, as PLT steadily deviated from the standard.
R7RS was an attempt at a compromise: it provided the "small" language, already published, which is more based upon R5RS, and adds a module system and a few other extensions. The "large" language, still in development, will provide a large stdlib for doing Real Work. It will, however, notably lack a few things, such as an FFI, so while portable scheme will be possible, not all code will be portable (nor, I think, will all code ever be). Thus far, it seems to be going fairly well, with CHICKEN and Guile, some of the most popular scheme implementations, planning to support it.
Probably the closest thing to a vanilla scheme is Chibi Scheme, the reference implementation of R7RS. It's small, lightweight, and designed for static linking and embedding, like Lua. It has its extensions, of course, but they're fairly minimal.
Jesus christ.
I'm sure there are great, rational reasons for this. What were they?
It's really interesting to think that the majority of our software platforms are A) Unix-derived and a bit of B) Windows, and both of those have pretty much taken over industry with Algol-derivatives (C, C++, Objective-C, Java...).
I mean, it's news when a company says "We don't use the above!"
With that in mind, it feels like Scheme is the like the Basques/Finns of the software world, a completely separate genealogical line that perdures to this day in small pockets here and there.
Don't forget larceny.
There was a 1990 IEEE standardization of scheme (IEEE Std 1178), and last revised in 1995. But it isn't recognized as the canonical vanilla scheme like RnRS is.
Ideally, I'd like to use it on embedded systems/firmware (as opposed to embedded in an PC application), but I'm assuming it's either too memory-intensive or requires too much platform support, and certainly the license won't fit :(
I never managed to get it running on anything with less than 16mb of RAM, but that might have been my own C wrapper, YMMV.
Edit: This looks to be the issue: https://lists.gnu.org/archive/html/guile-devel/2016-06/msg00...
That is not true. While Guile doesn't support HTTPS out-of-the-box, gnutls ships with Guile bindings. Guix is a notable user of those bindings.
This attitude towards practicality, if you will, that runs rampant in scheme-land is one of the major barriers for adoption. If you look at Common Lisp, these issues do not exist, the end result being a multitude of substantial real-world projects across a variety of domains (commercial, opensource, academia, industry and so on).
https://groups.google.com/forum/#!topic/v8-users/kIVoA7GZAcY
guix package -i guile-emacsI hope it does. The original vi's lisp mode is something I have only seen traditional vi implement thus far, and it's pretty nice.
Vim + paredit inside of tmux, with a proper REPL in another pane / window is a great workflow. Of course this requires some more plugins to Vim, but for the most part sending commands through tmux is pretty lightweight.
[0] https://bitbucket.org/kovisoft/slimv [1] http://www.nongnu.org/geiser/
With that kind of number, you're pretty much guaranteed some elisp is going to stick around forever (especially considering Emacs' glacial [but improving!] rate of change).
So yeah, it's not so much the Elisp in the Emacs source that's the problem, it's how do the maintainers switch to maintaining Elisp inside of the Guile project (up until now, Elisp was maintained as a language alongside Emacs). At the very least, this is how I understand it.
Yes, there is no way Emacs will get rid of elisp. That's why Guile Emacs includes writing an elisp frontend for Guile. (There is also a Frontend for ECMAScript and an experimental one for Lua)
Seems like it's not to far from being stable (if not perfect performance wise).