[racket-users] Racket meetup tomorrow

2019-07-17 Thread Stephen De Gabrielle
Friday, 19 July at 12pm-3pm there will be an impromptu Racket meetup at the cafe at the British Library 'The Last Word'. https://goo.gl/maps/M62e4b9JK7c1oaA69 No agenda. All welcome. Spread the word! I'll be drinking tea, eating cake(I hope), and will be easily identified as a the man with racket

Re: [racket-users] The case, and a proposal, for elegant syntax in #lang racket2

2019-07-17 Thread Sorawee Porncharoenwase
> > The other thing I'd like to see would be the option to return nothing. > Not #, '(), or #f. Nothing. It's useful e.g. when you want to > simultaneously transform and filter a list. > Would (values) satisfy your criteria? #lang racket (define (my-filter-map proc xs) (match xs ['() '()

[racket-users] Call for Participation: Summer Racketfest 2019

2019-07-17 Thread Jesse Alama
Come one, come all, it's time for SUMMER RACKETFEST 2019 Saturday, August 17, 2019 in Berlin, Germany (right before ICFP 2019) See https://racketfest.com for more information; register at https://racketfest.com/register . Early-bird registration ends July 31. Space is limited! (NB for ICFP

Re: [racket-users] The case, and a proposal, for elegant syntax in #lang racket2

2019-07-17 Thread David Storrs
Two things that I would like to see in Racket2 would be return values being standard practice and the ability to return nothing. Racket has a lot of functions that return #; that's not helpful. In almost every case, there is a sensible thing to return and it would be better to return it -- for ex

Re: [racket-users] The case, and a proposal, for elegant syntax in #lang racket2

2019-07-17 Thread Daniel Prager
I'm confused on one point. Why would a new canonical notation be preferable to, say, also fully supporting an alternative general notation (like Shriram's p4p, or a derivative thereof) or even multiple notations in addition to retaining good old s-expressions? The idea would be that you could tra

Re: [racket-users] Re: The case, and a proposal, for elegant syntax in #lang racket2

2019-07-17 Thread Christopher Lemmer Webber
Hendrik Boom writes: > On Wed, Jul 17, 2019 at 04:52:37PM -0700, Maria Gabriela Guimarães wrote: >> >> Does Racket wants to be popular in the industry? Then Racket must focus on >> being a language-oriented programming ecosystem on a popular VM, like the >> ErlangVM, the JVM, and the WebAssemblyVM

Re: [racket-users] Re: The case, and a proposal, for elegant syntax in #lang racket2

2019-07-17 Thread Hendrik Boom
On Wed, Jul 17, 2019 at 04:52:37PM -0700, Maria Gabriela Guimarães wrote: > > Does Racket wants to be popular in the industry? Then Racket must focus on > being a language-oriented programming ecosystem on a popular VM, like the > ErlangVM, the JVM, and the WebAssemblyVM. This means to stop work

[racket-users] Re: The case, and a proposal, for elegant syntax in #lang racket2

2019-07-17 Thread Mário Guimarães
Hello, community! Let me tell a few words about the idea of transitioning Racket to a traditional syntax to gain popularity: I think this idea is a fallacy. Racket is not popular due to its s-expression syntax, because Clojure has such a syntax, and still, it seems popular. So I don't think suc

[racket-users] Re: The case, and a proposal, for elegant syntax in #lang racket2

2019-07-17 Thread Maria Gabriela Guimarães
Hello, community! Let me tell a few words about the idea of transitioning Racket to a traditional syntax to gain popularity: I think this idea is a fallacy. Racket is not popular due to its s-expression syntax, because Clojure has such a syntax, and still, it seems popular. So I don't think suc

Re: [racket-users] Re: Reflecting on the lexical environment at macro expansion time

2019-07-17 Thread William J. Bowman
Excellent! Thanks. On Wed, Jul 17, 2019 at 01:46:10PM -0700, gfb wrote: > On Wednesday, July 17, 2019 at 4:35:21 PM UTC-4, William J. Bowman wrote: > > > > I'm trying to write a macro that reflects on which identifiers are in > > scope in > > the environment when it runs, and on the identifiers

[racket-users] Re: Reflecting on the lexical environment at macro expansion time

2019-07-17 Thread gfb
On Wednesday, July 17, 2019 at 4:35:21 PM UTC-4, William J. Bowman wrote: > > I'm trying to write a macro that reflects on which identifiers are in > scope in > the environment when it runs, and on the identifiers in scope for its > generated > code. > It should act something like this: > >

[racket-users] Reflecting on the lexical environment at macro expansion time

2019-07-17 Thread William J. Bowman
I'm trying to write a macro that reflects on which identifiers are in scope in the environment when it runs, and on the identifiers in scope for its generated code. It should act something like this: (define-syntax (display-env stx) (syntax-case stx () [(_) (printf "Env: ~a" (lo

[racket-users] Second Call for Participation: ICFP 2019

2019-07-17 Thread 'Sam Tobin-Hochstadt' via users-redirect
** The Early Registration deadline is tomorrow! ** = Call for Participation ICFP 2019 24th ACM SIGPLAN International Conference on Functional Programming and affiliated events August 18 - August 23, 2019 Berlin, Germany http://

Re: [racket-users] The case, and a proposal, for elegant syntax in #lang racket2

2019-07-17 Thread Brian Adkins
On Tuesday, July 16, 2019 at 8:18:24 PM UTC-4, Alexis King wrote: > > On Jul 16, 2019, at 15:32, rocketnia > > wrote: > > I find it worrying that racket2 would be kicked off with infix syntax > (something which I think of as an unnecessary sticking point in the way of > prospective macro writers

Re: [racket-users] The case, and a proposal, for elegant syntax in #lang racket2

2019-07-17 Thread rocketnia
On Tuesday, July 16, 2019 at 5:18:24 PM UTC-7, Alexis King wrote: > > So instead of thinking about all the ways Matthew’s proposed syntax is a > compromise that necessarily comes with certain downsides, think of it as a > challenge: how do we take all the lovely things we’ve come to enjoy and

Re: [racket-users] datatypes

2019-07-17 Thread Ryan Kramer
> > Still, variant reports ‘(a . b) as a ‘pair. and that’s amazing. How is it > obtaining that information? > I just looked it up and yeah, it is pretty cool: (struct->vector '(a . b)) is doing most of the work. See the comments and implementation here: https://github.com/mbutterick/describe/

Re: [racket-users] datatypes

2019-07-17 Thread Kevin Forchione
> On Jul 16, 2019, at 10:36 PM, Alex Knauth wrote: > > > >> On Jul 17, 2019, at 12:16 AM, Kevin Forchione > > wrote: >> >> Hi guys, >> Is there any function in Racket that will return a symbol representation of >> a value’s datatype? We can interrogate them with pr