Quantcast

A community for students. Sign up today!

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

julie

  • 3 years ago

If anyone wants to avoid learning emacs for this course, alternatives are: 1) DrScheme gui (maybe a few inconsistencies with mit code there? Didnt test for myself) 2)Vim + gnu screen with some little tweaking(split window between vim and repl interpreter) + SaneCL plugin for auto-indenting. Syntax highlight works when editing .scm files, parenthesis matching also, auto-indenting seems to work too.

  • This Question is Closed
  1. julie
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 3

    PS: i think second solution is for unix or linux systems only, but may be viable in other systems with a program like gnu screen. Hope this helps some people, and sorry for the wall of text too.

  2. Tim
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Could you tell me about the second combination? Currently I use vim to write the code and then I load the file inside the interpreter. Do I miss a lot?

  3. shadowfiend
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    I don't think you're missing much except the readily accessible REPL (Read Eval Print Loop) which functions nicely in the MIT provided Edwin/Emacs environment. It's available at the link below. http://www.gnu.org/software/mit-scheme/

  4. julie
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 3

    Yes podcherklife ill give some more detail. I found the instruntctions to integrate vim with repl environment (mit scheme in my case) at http://www.ktaylor.name/vim/. Also, in vim version 7.2.2 that i use, if i am editing a file with approriate extension (.scm), syntax highlighting and parenth. matching works. The SaneCL plugin is found at http://www.vim.org/scripts/script.php?script_id=2951. Hope this helps

  5. julie
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 3

    PS no 2: at the above case, when split window mode between vim and repl, you can with ctr+c twice on marked code eval the code in repl. maybe you miss something more sophisticated, but i think the basics are there

  6. Eliot
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    This setup works really well for doing Scheme exercises, thanks for sharing! Do you know if it's possible to get an edwin-style Scheme debugger in the vim+repl setup described above? Or is it time to jump ship to a different editor if I need that functionality?

  7. shadowfiend
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    I'm sure it's *possible* to get such a debugger, but I'm not sure how you would do it, honestly. Vim is capable of many things, but that doesn't mean someone's already done it :)

  8. Eliot
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    As much as I am married to vim due to my muscle memory and its leanness, I'm not averse to switching editors if it's worth it. If there's an alternative to the mit-scheme REPL i'm using that has some sort of a built-in debugger that would work fine. If not, I might check out DrRacket or Edwin/Emacs, as I think there's a huge advantage in understanding to be able to step through code in a debugger. Also, the inherent lisp orientation of those editors (in particular the features I've heard described in DrRacket) sound quite nice. And if I do go with an emacs flavor, I guess there's always viper-mode. :)

  9. Not the answer you are looking for?
    Search for more explanations.

    • Attachments:

Ask your own question

Ask a Question
Find more explanations on OpenStudy

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.