Run scheme on windows

Run scheme on windows

If you have trouble installing MIT/GNU Scheme, one common cause is that your download was corrupted. Either try downloading it again, or check your download against the md5 checksums.

Note that the documentation (in HTML form) comes with the distribution. Find it and create a bookmark in your web browser.

Running MIT/GNU Scheme from CS machines

You will need to use your CS account (which you will be getting if you don’t already have one). You can remotely log in to the freebsd.remote pool from any computer on the internet.

You might find it most convenient to log in from a UNIX computer, because you can then X-host windows running on the remote machine. It is possible to do this through Windows, but you’re on your own setting it up. You can also run emacs and scheme through a terminal (i.e., text) interface.

Using MIT/GNU Scheme

There are three ways you can use MIT/GNU Scheme. In order of my recommendation, they are:

    Run Scheme as an inferior process under gnu-emacs or xemacs. (This option is not available under Windows.)

Run Scheme through Edwin, the emacs-like editor that comes with MIT Scheme. (Works in Windows too)

  • Run Scheme standalone (and edit your code in some other editor).
  • I do not recommend running MIT/GNU Scheme standalone because there is no command line editing. Besides, I strongly recommend using emacs or Edwin to write your code, so you might as well run your code through them anyway.

    If you’re using Windows, you don’t have the choice of using Scheme through gnu-emacs. However, you may want to download gnu-emacs anyway and use it to edit your code (because it is more user friendly than Edwin) and then using Edwin to run and debug. You can download emacs for Windows from http://ftp.gnu.org/gnu/windows/emacs/. (You have your choice of a «bare», regular, or «full» binary.) You may also be interested in the Emacs Windows FAQ.

    If you’re using UNIX of some sort, I suggest using gnu-emacs. Here’s a comparison of the advantages and disadvantages of Edwin and gnu-emacs:

    Edwin gnu-emacs
    + scheme editing mode with electric parentheses + scheme editing mode electric parentheses
    + M-p and M-n scroll through command history — Can only yank previous command with C-c C-y
    — Doesn’t work with the X-cut buffer + X-cut buffer can be used to cut and paste between windows
    — Missing some emacs features + It’s real emacs!
    + Has nice debugging interface — Text debugging interface
    — No pull down menus + Pull down menus

    As a gnu-emacs «power user», I find Edwin kind of annoying because of missing gnu-emacs features, so I work using the gnu-emacs interface and only use edwin for some debugging sessions. (I usually use text debugging through gnu-emacs.) You may very well want the (relative) user-friendliness of emacs over Edwin, but if you know (or are willing to learn) emacs well enough that you don’t need the pull down menus and such, then you may prefer Edwin.

    Running Scheme under gnu-emacs

    This file should replace the xscheme.elc file that comes with emacs. You’ll have to find the appropriate directory on your system. On my Mandrake Linux system, this is the directory: /usr/share/emacs/21.3/lisp. (This step is not necessary if you are running MIT/GNU Scheme from the CS department machines.)

    Add the following line to your

  • Start (or restart) emacs, and it will load MIT Scheme’s xscheme library.
  • To exit emacs, type C-x C-c (that’s control-x followed by control-c).

    Running Edwin

    To exit Edwin, type C-x C-c (that’s control-x followed by control-c).

    Running Scheme standalone

    To exit scheme, type «(exit)«.

    Using Emacs/Edwin with Scheme

    Learn emacs

    Here are some other emacs resources you may find useful:

    • A tutorial introduction to emacs
    • Indiana knowledge base Emacs quick reference
    • There is extensive emacs (and other) documentation in emacs’s «Info» mode which provides a sort of hypertext. Type C-h i to get into Info mode. Of course, you’ll have to learn a little bit about navigating in this mode.

    You may find better references for learning emacs on the web. (If so, let me know and I’ll add links here.)

    The Scheme interaction buffer

    In the Scheme interaction buffer, you can type Scheme expressions and use one of the following commands to send them to the Scheme process to be evaluated:

      M-z sends the current expression; it looks for an open paren in the leftmost column and sends all the text from there up to the cursor position, and then to the right of the cursor until all parentheses are balanced.

  • C-x C-e sends the expression to the left of the cursor; it looks left from the cursor until it has a complete expression and then sends that to the scheme interpreter.
  • Experiment with these commands until you understand how to send the expression you want to the Scheme interpreter.

    If you make an error, you will get a beep and some error messages about calling RESTART. From here, you can get back to the top level of the Scheme interpreter by typing C-c C-c. You can also enter the (regular) debugger by typing (debug). In Edwin, it may offer to start the debugger for you.

    In Edwin, M-p and M-n will take you through the previous commands sent to the scheme interpreter. In emacs, C-c C-y will yank the previous command.

    Scheme program buffers

    The M-z and C-x C-e commands work the same in this buffer as they do in a scheme interaction buffer. The result will be printed in the *scheme* buffer but also briefly displayed under the mode line of the emacs/Edwin window. These commands are useful for sending a single function to Scheme while you are developing a program.

    The M-o command sends the entire buffer to the scheme interpreter.

    Emacs/Edwin will indent you code for you! just press tab at the beginning of each line, and the cursor will move to the proper point to begin typing.

    When typing comments, M-j will act like the return key except that it will start the next line with the comment character. In emacs,M-q will reflow a paragraph and properly comment it. (Edwin can do this too, but see below for how to set this nondefault keybinding in Edwin.)

    For more information

    There are a number of other emacs/Edwin commands that you will find useful. Refer to:

      My Top 10 keybindings for Edwin/Emacs below.

    See the GNU emacs section of the User’s manual. The key bindings for MIT Scheme under emacs are all supported in Edwin.

  • For more information on Edwin (especially on the debugger), see the Edwin section of the User’s manual.
  • 6 ways to open the Run command window in Windows

    The Run command window allows you to launch programs, open files and folders, and access internet resources in Windows. Just type a path or a quick command into the Windows Run box, and then click OK or press Enter to use a Run command. Although the Run shortcut is not as easy to find in recent Windows versions, the tool still exists, and there are plenty of ways to access it. This tutorial illustrates how to open Run in Windows 10 and Windows 7:

    1. Open the Run command window with a keyboard shortcut

    The fastest way to access the Run command window is to use the keyboard shortcut Windows + R. On top of being very easy to remember, this method is universal for all versions of Windows. Hold down the Windows key and then press R on your keyboard.

    The Run window is immediately displayed in the lower-left corner of the screen.

    2. Use Search to open the Run command window

    As always in Windows, Search is a great idea to find just about anything. If you are using Windows 10, first type the word “run” inside the Search bar.

    Then, click or tap on the relevant search result or press Open from the pane on the right.

    In Windows 7, click the Start button and type the word “run” in the Start Menu Search box. Then, click the appropriate result to launch the Run command window.

    3. Open the Run command window from the Start Menu

    The Start Menu is a reliable way to access features on your Windows computer or device, including the Run window. In Windows 10, access the Start Menu by clicking or tapping on the Windows logo in the lower-left corner or by pressing the Windows button on your keyboard. Then, scroll down to the letter W, open the Windows System folder, and press Run.

    In Windows 7, open the Start Menu and then access “All Programs -> Accessories -> Run” to launch the window.

    Alternatively, you can also customize your Windows 7 Start Menu to permanently display a Run shortcut in the right-hand pane. To learn how to do that, read The complete guide to the Windows 7 Start Menu.

    4. Use the Command Prompt (CMD) to open the Run window

    Some of my colleagues love the CMD, so we decided to put this in for other fans, even if it’s not as easy to remember as the other ways illustrated in this article. To open the Windows Run, you can also launch the Command Prompt and enter the following:

    explorer.exe Shell.

    This method works both in Windows 10 and Windows 7.

    5. Open the Run command window with PowerShell

    Wondering how to open Run from PowerShell in Windows 10 and Windows 7? First, start PowerShell. Then, copy/paste or type in the following command:

    (New-Object -ComObject “Shell.Application”).FileRun()

    Press Enter on your keyboard, and the Run command window is immediately opened in the bottom-left corner.

    6. Use the WinX power user menu to open the Run window in Windows 10

    Windows 10 has a hidden power user menu that includes a shortcut for the Run command window. There are many ways to access this menu, the easiest being to use the Windows + X keyboard shortcut. Then, click or tap on Run or press R on your keyboard to open the Run box in Windows 10.

    If the WinX power user menu interests you, you can learn more by reading: What is the WinX menu and how to open it.

    What do you want to access using the Run window?

    The Run command window was first introduced by Microsoft in Windows 95 and has been with us ever since. Some of us access it pretty often, but plenty of people don’t realize its potential and usefulness yet. We’re happy this feature caught your eye, but we are curious what brought you here. Are you looking for new ways to open the Windows Run command window or are you trying something new on your computer? Let us know in the comments.

    Is there way to run MIT scheme interpreter under emacs on Windows?

    I am a newbie for Lisp, and trying to run MIT scheme interpreter under emacs on Windows. But info seems all indicate that this is impossible. http://www.cs.rpi.edu/academics/courses/fall05/ai/scheme/starting.html http://www.gnu.org/software/mit-scheme/

    So I wonder if there is a way to do so. Thanks.

    4 Answers 4

    The following works for me. You’d obviously need to add your paths. If I omit the —library option, then upon startup mit-scheme complains about not finding it’s runtime band.

    In the scheme buffer:

    It was rather easy to install. See this question about it’s installation. He seemed to get it running OK: running scheme from emacs

    I had tried what you want on WINDOWS 7, independent terminal could be popped up outside emacs but with error info in REPL. It seems that there was no official support for this feature on windows, Racket works fine with the geiser package, maybe you could try it.

    This interface works under unix only, because it requires unix signals for its operation. Porting it to Windows would require reimplementing the interface to eliminate the use of signals. We have no plans to do this. To invoke Scheme from Emacs, load the xscheme library, then use M-x run-scheme. You may give run-scheme a prefx argument, in which case it will allow you to edit the command line that is used to invoke Scheme. Do not remove the —emacs option!

    Scheme IDE for Windows

    What is a good Scheme IDE for Windows? OK, I’ll admit it; I’m not at RMS’s level, and don’t want to use Emacs or any character-based interface — I want a graphic IDE with colorization, a REPL, and usable, in-line help for a specific, well-documented dialect of Scheme. I have searched around and PLT Scheme/DrScheme seems the best, but even that does not look too sophisticated.

    8 Answers 8

    DrScheme is the best Scheme IDE I have found. It has a JIT compiler, can build stand-alone executables or run in the traditional Scheme REPL, has smart syntax editing , as well as other traditional IDE features like Menu bars to change features. Running/stopping your program is as easy as clicking ‘Run’/’Stop’. It also includes a macro-expander (if you’re writing macros) as well as a debugger. It’s Help menu includes both DrScheme-specific documentation, as well as various Scheme specifications (e.g., R5RS and R6RS).

    If there is something you want in a Scheme IDE that is not in DrScheme already, I’m sure the developers would be interested in hearing from you.

    I think you are done already. DrScheme is the most popular Scheme IDE.

    Scheme is a bit of niche language, so do not be surprised not to find the kind of super-slick IDE support that is expected by Java/VisualBasic WIMP addicts.

    Patronizing? Well, yes.

    PLT Scheme is an excellenet product well worth taking a look at. It’s got all the features you’re asking for

    I think what you want actually is Emacs. Let’s see:

    • I want a graphic IDE, the latest versions of Emacs are built on top of gtk.
    • with colorization, it’s M-x font-lock-mode
    • a REPL, lookup Quack mode for Emacs,
    • and usable, in-line help for a specific, well-documented dialect of Scheme, that too, it’s built into Quack.

    I’ve been playing with Xacc.Ide and Iron Scheme and found they were pretty good although they felt not finished in some places. They’re good enough for trying out scheme, I’m not sure if I’d use them for writing commercial software though. I’ve seen the author of both of them hang around here so maybe he can tell more..

    As far as I know (I used DrScheme for a few months before switching to Emacs), DrScheme has many IDE-like features, but they are presented in a simplified interface because of its educational focus. Do some digging and I think you’ll be happy what you find.

    Also, I can’t resist, since I do use Emacs—an OS specific install of emacs is hardly ever character based.

    I just found out the scheme plugin for eclipse, I haven’t try it yet. It looks pretty nice. http://sourceforge.net/apps/wordpress/schemeway/the-schemescript-plugin/features/ and its git repository https://github.com/schemeway/SchemeScript

    I personally use ChezScheme. I run scheme scripts from the console and edit them in eclipse, using the SchemeWay plugin. Eclipse is superior to Emacs, in my opinion, and it has some nice features, like automatic indentation and autocomplete for defined names.

    Читайте также:  Не могу подключить общую папку windows 10
    Оцените статью