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

2020-07-29 Thread Shriram Krishnamurthi
Suppose I have two files that are identical, except one ends in a newline and the other does not. If I use `read-line` to read the successive lines of this file, because it swallows the line separators, there is no way to tell them apart. E.g., these two strings "a b" and "a b " read using `

[racket-users] Quickscript competition Deadline Extended till Tuesday Morning 4 Aug (uk time)

2020-07-29 Thread Stephen De Gabrielle
Quickscript competition Deadline Extended till Tuesday Morning 4 Aug (uk time) https://github.com/Quickscript-Competiton/July2020entries -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails fr

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

2020-07-29 Thread zeRusski
> > -- hendrik > > I hope this set of answers clarifies the distinction between an > interpeter and compiler, how the distinction gets blurred in practice, > and what the criteria are for choosng between them. > This was both detailed, insightful and truly helpful. I can't thank you enough f

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

2020-07-29 Thread Hendrik Boom
On Wed, Jul 29, 2020 at 01:56:05AM -0700, zeRusski wrote: > This is a really cool piece of history! Thank you. > > I'll admit I'm somewhat fuzzy here - it maybe a bit too meta for me or > perhaps I don't quite understand what you're trying to say. Isn't > interpreting n levels deep also linear i

Re: [racket-users] Creating links to Racket docs for functions in user-scope packages

2020-07-29 Thread 'Joel Dueck' via Racket Users
On Friday, July 24, 2020 at 11:15:54 AM UTC-5 Matthew Flatt wrote: > A solution might use something like `path->pkg+subpath+collect+scope`, > where a 'user result for the scope triggers a different path > calculation. For my application, I was able to use this info to make a function that *se

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

2020-07-29 Thread zeRusski
This is a really cool piece of history! Thank you. I'll admit I'm somewhat fuzzy here - it maybe a bit too meta for me or perhaps I don't quite understand what you're trying to say. Isn't interpreting n levels deep also linear in n? Only difference between the two approaches I see is that comp

[racket-users] Re: Quickscript competition ends Friday

2020-07-29 Thread Stephen De Gabrielle
Hi All, The example in the documentation is bad - it redefines 'reverse' (which is fine), then attempts to use it. The working version changes the name of the script (which is just a function) to 'reverse-selection' so it doesn't cause the error: (define-script