

@vidjuheffex You proably want something like (define p (open-output-string))
(parameterize ([current-input-port (open-input-string my-string)]
[current-output-port p])
... run process here ...
(get-output-string p))

@samth thanks I will try that

@evyatar2013 has joined the channel

Hey all, I just finished working through the beautiful racket tutorials and noticed that even for the trivial BASIC examples the languages we wrote were pretty slow.
I know I can’t expect serious performance from a source to source compiler but I was wondering if you had any sources you recommend for writing a DSL in racket that could be a bit more responsive than the ones in BR’s tutorials?

@evyatar2013 1) are you running them in drracket or from the command line? 2) did you run raco setup
or raco make
before running them?

Hey notjack! I did neither of those things! I’ll give them a try!
Thanks for pointing me in the right direction

happy to help!

Worked like a charm! Thank you