spdegabrielle
2020-5-22 09:20:23

samth
2020-5-22 11:54:09

@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))


vidjuheffex
2020-5-22 16:42:47

@samth thanks I will try that


evyatar2013
2020-5-22 22:46:44

@evyatar2013 has joined the channel


evyatar2013
2020-5-22 22:47:08

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?


notjack
2020-5-23 00:56:22

@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?


evyatar2013
2020-5-23 01:04:55

Hey notjack! I did neither of those things! I’ll give them a try!

Thanks for pointing me in the right direction


notjack
2020-5-23 01:05:19

happy to help!


evyatar2013
2020-5-23 01:17:11

Worked like a charm! Thank you