Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7951253
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T02:30:25+00:00 2026-06-04T02:30:25+00:00

I’ve got a bunch of legacy Guile Scheme code that I want to get

  • 0

I’ve got a bunch of “legacy” Guile Scheme code that I want to get running in the Racket Scheme IDE. There appear to be enough differences to make this a non-trivial exercise. (My level of Scheme knowledge is the level to complete the The Little Schemer).

My question is:

  1. What are the differences between Guile Scheme and Standard Scheme (in the Racket IDE)?
  2. In light of these differences, in general, what are the steps I’ll need to take to convert some Guile Scheme Code to standard Scheme?

Additional: (happy with divergence between Racket Scheme and R5RS/R6RS) – what I want is to get ‘something’ to run in the Racket IDE – rather than the Racket language.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T02:30:26+00:00Added an answer on June 4, 2026 at 2:30 am

    If by “Standard Scheme (in the Racket IDE),” you mean the Racket language, i.e., what you get when you prefix your code with #lang racket, then the top four differences to look out for are:

    • a different module system
    • a different macro system (depending on how old your code is)
    • immutable cons-cells (unless you import mutable ones)
    • no one-armed ifs in Racket (use when)

    To port code from Guile to Racket, find out which files are “at the bottom” of your dependencies, i.e., find the files that do not depend on other files.
    Open such a file in Racket, add the line #lang racket at the top, and try to run it.

    You will most likely encounter some “unbound identifier” errors.
    If you are lucky, the function is present in Racket, but not included in the “racket” language. Search for the name in the Racket documentation, and if you find it, then use (require …) to import the name into your program.

    Then run the program again to find the next error.

    Some function are named differently in Guile and Racket, so look up the name in the Guile documentation and see what it does. Then open the Racket documentation on the same subject, and see what it is called in Racket.

    In some cases you may have to make bigger changes. If you can’t find some piece of functionality in the Racket documentation, then try asking the mailing list. It could be that it simply has a different name, or that somebody implemented it and put it on PLaneT (thus it will no appear in the documentation until you have installed the package).


    Example of importing srfi/1 into the R5RS language.

    #lang r5rs
    (#%require srfi/1)
    (xcons 1 2)
    

    Differences from R4RS code to modern Scheme?

    One thing to look out for is that in R4RS the empty list ‘() counted as false, not it is interpreted as true.

    See this question for more things to look out for:

    Running SICP Pattern Matching Rule Based Substitution Code

    See also this list of changes from the R5RS standard:
    List of changes from R4RS to R5RS

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a French site that I want to parse, but am running into
I've got a string that has curly quotes in it. I'd like to replace
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I know there's a lot of other questions out there that deal with this
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I want to count how many characters a certain string has in PHP, but
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a small JavaScript validation script that validates inputs based on Regex. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.