[racket-users] namespaces + eval + reader

2020-07-30 Thread Shriram Krishnamurthi
want to create a namespace for (say) the BSL language in DrRacket. Critically, I need the *reader* to be aligned with this language. Otherwise, small semantic discrepancies creep in. Concrete example: > (define n (make-base-namespace)) > (eval `(require lang/htdp-beginner) n) > (eval `(equal?

Re: [racket-users] Does Racket interpreter exist?

2020-07-30 Thread Arthur Nunes-Harwitt
Hi, While you're enumerating these possibilities, I think it's worthwhile to mention a technique related to the FORTH implementation technique: Marc Feeley style compilation (see "Using Closures For Code Generation" in Computer Language Vol 12 No 1 pages 47-66). This idea is also mentioned i

[racket-users] Racket CS release plan

2020-07-30 Thread Matthew Flatt
With the improvements in the upcoming v7.8 release, Racket CS provides all of the functionality of Racket BC (the current default implementation). Also, end-to-end performance measurements increasingly favor Racket CS. For example, Racket CS now builds a distribution slightly faster and in slightly

Re: [racket-users] telling apart files ending with a newline

2020-07-30 Thread Ryan Culpepper
If I understand the docs correctly, the OS-specific handling is in open-input-file, but it is not the default. Here is an alternative to read-line that preserves line endings: #lang racket/base ;; my-read-line : InputPort -> String ;; Like read-line, but preserves line ending. ;; Fails i