Re: [racket-users] udelim package -- more parens than you can shake a stick at

2016-09-24 Thread Eli Barzilay
On Sat, Sep 24, 2016 at 12:46 PM, William G Hatch wrote: > > First, nestable strings are nice for other things as well. For > instance, since they don't escape backslashes, they are nice for > constructing regexps, which famously explode into mountains of > backslashes due to

Re: [racket-users] udelim package -- more parens than you can shake a stick at

2016-09-24 Thread Alex Knauth
> On Sep 24, 2016, at 12:46 PM, William G Hatch wrote: > Additionally, I've long wanted more types of parens in Racket. I > haven't really known what I would do with them -- I use Racket's > conventions for () and [], and have my own loose convention for {}. But > after

[racket-users] Re: Taking hash of really big files

2016-09-24 Thread George Neuner
On Sat, 24 Sep 2016 07:22:55 -0700, David Storrs wrote: >Aaaand, no sooner do I send this than I discover openssl/sha1. Sorry to >have wasted your time. > >On a separate topic, is it reasonable to assume that openssl/sha1 will work >on any platform that Racket will run

[racket-users] Re: udelim package -- more parens than you can shake a stick at

2016-09-24 Thread Dupéron Georges
Le samedi 24 septembre 2016 18:46:07 UTC+2, William G Hatch a écrit : > Udelim is a library for adding extra parens and string delimiters to > your language. I can't tell how ecstatic I am about this :) . I have been wanting to add new parenthesis shapes for a while, but never found the time to

Re: [racket-users] Re: Taking hash of really big files

2016-09-24 Thread Matthew Flatt
Yes, the Racket distributions for Windows and Mac OS X include openssl, so `openssl/sha1` will generally work. At Sat, 24 Sep 2016 07:22:55 -0700, David Storrs wrote: > Aaaand, no sooner do I send this than I discover openssl/sha1. Sorry to > have wasted your time. > > On a separate topic, is

Re: [racket-users] Racket GUI system and multi-touch events

2016-09-24 Thread Matthew Flatt
The Racket binding for Gtk (or Cocoa or Windows) in `racket/gui` currently does not report multi-touch events. I agree that multi-touch events could be supported without too much difficulty, probably, and a pull request would be welcome --- but there's nothing in place right now. At Sat, 24 Sep

[racket-users] Re: difference between function returning a string and function returning a symbol

2016-09-24 Thread George Neuner
On Sat, 24 Sep 2016 08:45:28 -0700 (PDT), Angus wrote: >I am reading through Realm of Racket and saw this function in the conditions >chapter: > >(if (= (+ 1 2) 3) > 'yup > 'nope) > >So this function returns a symbol. Will be 'yup in above case. But 'yup

[racket-users] Re: Racket GUI system and multi-touch events

2016-09-24 Thread Johan Liseborn
On Saturday, September 24, 2016 at 7:09:28 PM UTC+2, Johan Liseborn wrote: > > I am currently working on a product where we are using Qt/C++, but the pain > of C++ in this particular case is becoming unbearable to me, so I am looking > for alternatives, and the available Qt language bindings

[racket-users] Racket GUI system and multi-touch events

2016-09-24 Thread Johan Liseborn
Hi all, Is it possible to detect and handle multi-touch events somehow in the Racket GUI system? I have tried to look through the documentation, but can only find mouse- and key events. As far as I understand, the Racket GUI stuff is based on GTK+, which I believe is able to handle

[racket-users] udelim package -- more parens than you can shake a stick at

2016-09-24 Thread William G Hatch
Hello everybody, I'm announcing another little package I've written to get comments on it: udelim. Udelim is a library for adding extra parens and string delimiters to your language. For many years, before ever coming to racket, I've wanted nestable string delimiters. Especially when working

Re: [racket-users] difference between function returning a string and function returning a symbol

2016-09-24 Thread Matthias Felleisen
It’s mathematics and programming terminology: (+ 1 1) is an expression, it computes something When you write (define (f x) (+ x 1)) then f is a function. > On Sep 24, 2016, at 12:22 PM, Angus wrote: > > When you say it is an expression not a function, what

Re: [racket-users] difference between function returning a string and function returning a symbol

2016-09-24 Thread Angus
When you say it is an expression not a function, what do you mean? Are you saying that if the symbols represented something then it would make sense? I am a bit lost on your reply? On Saturday, September 24, 2016 at 5:10:31 PM UTC+1, Matthias Felleisen wrote: > For the sheer pleasure of

Re: [racket-users] difference between function returning a string and function returning a symbol

2016-09-24 Thread Matthias Felleisen
For the sheer pleasure of playing with symbols. (It is an expression not a function.) > On Sep 24, 2016, at 11:45 AM, Angus wrote: > > I am reading through Realm of Racket and saw this function in the conditions > chapter: > > (if (= (+ 1 2) 3) > 'yup >

[racket-users] difference between function returning a string and function returning a symbol

2016-09-24 Thread Angus
I am reading through Realm of Racket and saw this function in the conditions chapter: (if (= (+ 1 2) 3) 'yup 'nope) So this function returns a symbol. Will be 'yup in above case. But 'yup confuses me. I don't really understand why you would want to return 'yup. For example, I

[racket-users] Re: Taking hash of really big files

2016-09-24 Thread David Storrs
Aaaand, no sooner do I send this than I discover openssl/sha1. Sorry to have wasted your time. On a separate topic, is it reasonable to assume that openssl/sha1 will work on any platform that Racket will run on? I'm specifically thinking of Windows here. On Sat, Sep 24, 2016 at 7:10 AM, David

[racket-users] Taking hash of really big files

2016-09-24 Thread David Storrs
Is there a hashing function in Racket that will operate on a file without reading the entire thing into memory first? I need to verify that a file is unchanged after I break it into chunks and then put the chunks back together again. My plan is to take a (sha, md5, ...) hash of the file before

[racket-users] pkg collections: packages installed, although setup reported errors

2016-09-24 Thread Daniel Bastos
​%raco pkg install collections Resolving "collections" via https://download.racket-lang.org/releases/6.6/catalog/ Resolving "collections" via https://pkgs.racket-lang.org Downloading repository git://github.com/lexi-lambda/racket-collections The following uninstalled packages are listed as