7 ms·
Orbit: An Optimizing Compiler for Scheme (1986) [pdf]
- raattgift 9y agoThis was [1986], citation details: http://dl.acm.org/citation.cfm?id=13333 http://dl.acm.org/citation.cfm?id=13333 Rees maintains a related archive [most recently updated 2010] on his page at http://mumble.net/~jar/tproject/ http://mumble.net/~jar/tproject/ That in turn links to Shivers's overview of T and the development of its compilers (including Orbit) at http://www.paulgraham.com/thist.html http://www.paulgraham.com/thist.html
- sctb 9y agoThere are some more bits of T-ness here: http://mumble.net/~campbell/t/ http://mumble.net/~campbell/t/ related to the T Revival Project, which itself is in need of reviving.
- drdre2001 9y agoIt says on the revival project page [1] that the plan was to make T R5RS compatible. That is probably why they abandoned T to make Scheme 48 [2] I am also interested in the revival of this language, but I don't see what the point of that would be. Does anyone here feel the same way? [1] http://web.archive.org/web/20070103020434/http://mumble.net/~campbell/t/t.html http://web.archive.org/web/20070103020434/http://mumble.net/... [2] http://s48.org/ http://s48.org/
- nickpsecurity 9y agoIt was verified as part of VLISP project. So, I've been keeping papers on PreScheme, Scheme48, and VLISP in case anyone wants to redo them with modern techniques. Another commenter, hga, helped me find a few I didn't have before with the specific algorithms. The basic ones are on the bottom here: https://en.wikipedia.org/wiki/PreScheme https://en.wikipedia.org/wiki/PreScheme PreScheme itself is possibly worth reviving esp with ref counting or Rust's type of no-GC safety. I know another LISP, Carp, is trying to do something like the latter.
- znpy 9y agoInterestingly, one of the pages you link (http://mumble.net/~jar/tproject/ http://mumble.net/~jar/tproject/) links a paper (grep "1986: Kelsey dissertation on rewrite-based compilation ") that shows the implementation of a compiler with multiple frontends (BASIC, Scheme, Pascal) using only source-to-source) transformation. I find this interesting because in a certain way, this reminds me of how the go assembler works (https://www.youtube.com/watch?v=KINIAgRpkDA https://www.youtube.com/watch?v=KINIAgRpkDA). For those who haven't seen the talk: basically the go compiler works on the assumption that pretty much all computer, in a way, move memory from one address to another, generate and handle interrupts, have call/return instructions and so on. Thus, the go compiler emits (IIRC) some sort of "intermediate assembler" (somehow similar to llvm's intermediate representation, but simpler) and then proceeds to "translate" such assembler to various platform native assembler. I clearly remember Rob Pike (in the talk) saying "so the task of supporting a new platform becomes a task in text processing" (okay, maybe it was worded a bit better). This might be a bit tangential, but it is interesting how some "new" ideas aren't that new after all. But I guess this is due to Rob Pike's deep experience and history with computers.
- agumonkey 9y agoThanks for the reminder, I loved rereading this article. Even though I read this years ago, I'm still having vertigo when reading the last part. So many people, so many ideas .. so much inspiration.
- fizixer 9y ago- Stalin WPO compiler: https://en.wikipedia.org/wiki/Stalin_(Scheme_implementation) https://en.wikipedia.org/wiki/Stalin_(Scheme_implementation) - Larceny: https://en.wikipedia.org/wiki/Larceny_(Scheme_implementation) https://en.wikipedia.org/wiki/Larceny_(Scheme_implementation... (Personally, I haven't explored any of these yet. I plan to get into scheme-to-C compilation some day. I think it's the future of programming, but I might be wrong.)
- drdre2001 9y agoWhy do you think scheme-to-C compilation is the future of programming?
- fizixer 9y agoScheme allows practically infinite possibility of language extension due to its syntax (this is same with lisp and scheme, but I prefer scheme due to its lexical scoping, a minimal standard like R7RS etc). (Note that I'm a big advocate of Python-C hybrid programming too, and so for me it's either python-and-C or scheme-and-C) Moving towards Scheme-to-C is moving towards solving all performance/concurrency/what-not problems of a high-level-language like Scheme, without having to drop down to a low-level-language like C (or assembly). (I guess I should say that there might be a need for generating code for GPU, e.g., OpenCL. Just a heads up that I'm not trying to ignore that). What I say has to be qualified with two very important assumptions: - I believe 'large-scale programming' is 'research'. E.g., if the system you're building is under 20k-50k lines of code, give or take, it largely doesn't matter what paradigm you're using, or what language you're using. But for larger systems, the best way forward is to treat such a complex system as a research topic, and try to work at a higher level of abstraction, watch out for opportunities of creating new DSLs, and so on. (I believe this is part of the reason large projects do better in open source, firefox, linux, chromium, etc, etc. No manager is watching over your shoulders with a stick and a deadline on their notepad.). - You have to think in terms of meta-programming. It comes in many flavors but take code-generation. Think of the whole purpose of your scheme code is to let you generate human-readable C code. For me, meta-programming means never having to write your program (here the program is the C code), but using tools and machines that write the program for you (here the tool and the machine is Scheme). E.g., take a very large system like the linux kernel. It's 90% C with some assembly. A big motivation for my ideas comes from asking the question 'Can we develop and work at a high layer of abstraction in Scheme and create a code of ~100K to ~200K lines, that, using the ideas of meta-programming, compiles down to ~20M lines of C code which is functionally equivalent, as well as equally readable, to the current ~20M lines of the linux kernel?' (Note the scheme code size being 1% of the C code size!) When you think along those lines, and realize that 21st-century large-scale programming is just getting started and something like a linux kernel is just the tip of the iceberg, you probably would reach many of the conclusions and beliefs that I gravitate towards. Note that my ideas are in stark contrast to people who think the problem is that we need a new programming language. In that regard, I'm anti C++, D, Go, Rust, Swift, Kotlin, etc, etc. We don't need a new programming language. We need to treat the activity of programming as a research activity. (again, I'm talking about large-scale).
- sddfd 9y agoThere is also Kelsey's 1989 popl paper, which explains the idea of compilation as program transformation very clearly. Kelsey and Hudak "Realistic Compilation by Program Transformation" POPL 1989
- lisper 9y agoInteresting historical note: this is the compiler we used to program the research rovers at JPL before the Sojourner mission. It compiled an object-oriented dialect of Scheme called T which IMHO is one of the most elegant programming languages ever designed. It is not almost totally forgotten, and the world is poorer for it. :-( (OakLisp is another beautiful riff on Scheme. Like T, it too has been all but completely forgotten AFAICT.)
- agumonkey 9y agosource repo for oaklisp https://github.com/barak/oaklisp https://github.com/barak/oaklisp
- lsh 9y ago> It compiled an object-oriented dialect of Scheme called T do you have a link for this? It's difficult to search for. update: ignore me, found a link in the comments: http://mumble.net/~jar/tproject/ http://mumble.net/~jar/tproject/ first line: "It occurred to me recently that The T Project had no coherent presence on the web." :)
- lisper 9y agoAlso: https://en.wikipedia.org/wiki/T_(programming_language) https://en.wikipedia.org/wiki/T_(programming_language)
- lisper 9y agoFor the historical record: > It is not almost totally forgotten That should, of course, have been "now", not "not".
- tammet 9y agoA similar Scheme-to-C project I wrote last century for the SCM scheme, should be still usable: http://people.csail.mit.edu/jaffer/hobbit.pdf http://people.csail.mit.edu/jaffer/hobbit.pdf One goal of the project was to produce human-readable C.
- aswanson 9y agoCan anyone recommend an ocr program that can convert these old pdf scans to modern type?
- ocrimgproc 9y agoABBYY Finereader