[racket-users] reading UTF-16 from a file

2015-11-13 Thread Tim Hanson
hi, I was hoping yesterday to read UTF-16 characters from a file using, e.g., a small snippet such as the following: (for ([c (in-port read-char (open-input-file "myfile.txt"))] [counter naturals] #:break (>= counter 100)) (printf "(~a [~a]) " c (char->integer c))) For a UFT-16

[racket-users] Re: Big thanks for the Racket Plot design

2015-11-13 Thread Lux
I also like to thank you all for the same things (and all the rest). I see a big future for Racket unfolding more and more everyday. Lux > since complaints about bugs are probably more common than compliments about > smooth experiences, I just wanted to say thank you to whomever designed the

Re: [racket-users] reading UTF-16 from a file

2015-11-13 Thread Pierpaolo Bernardi
On Fri, Nov 13, 2015 at 9:45 AM, Tim Hanson wrote: > hi, > > I was hoping yesterday to read UTF-16 characters from a file I think you need reencode-input-port. > p.s. maybe there's an easier way to get an arbitrary counter than what i did > here? > > (define

Re: [racket-users] What has happened to extflonum support in 32-bit nightly builds?

2015-11-13 Thread Matthew Flatt
At Thu, 12 Nov 2015 19:11:28 +0300, Dmitry Pavlov wrote: > > > The more interesting thing is that the 'longdouble.dll' is not put > > into the runtime directory by 64-bit Racket, too. Still, the 64-bit > > program works without any additional effort. > > Oops, sorry, I just checked again, the

Re: [racket-users] embedded Racket + runtime paths = ?

2015-11-13 Thread Matthew Flatt
I've pushed a change that may solve this problem. The change was to the way that `--runtime` determines a shared path prefix among runtime files, so that it can copy them to a new place but keep relative paths intact. On Windows, the paths being compared were sometimes normalized with

Re: [racket-users] Mandatory arguments for command-line

2015-11-13 Thread Christopher Walborn
Oh, interesting. There's several new things in there for me to explore. Thank you. (And nice Beatles reference.) If you don't mind explaining -- what are the trade-offs between this approach and using the arg parsing features of racket/cmdline? Thanks, Christopher -- You received this

Re: [racket-users] Mandatory arguments for command-line

2015-11-13 Thread Matthias Felleisen
Glad to hear you got this far. Consider using something like this: #! /bin/sh #| exec racket -tm "$0" ${1+"$@"} |# #lang racket (provide main) (define main (case-lambda [(the-mandatory-argument . others) (displayln `(the-mandatory-argument:

Re: [racket-users] Re: Big thanks for the Racket Plot design

2015-11-13 Thread Laurent
I second all this with all my heart. Programming with Racket/DrRacket is a complete delight, and indeed the plot lib in particular is just marvel. Thanks to you all for making this possible. On Fri, Nov 13, 2015 at 9:17 AM, Lux wrote: > I also like to thank you all for the