[racket-users] Re: Listing All Programs

2019-09-05 Thread Jérôme Martin
On Thursday, September 5, 2019 at 3:05:48 PM UTC+2, Adam Golding wrote: > What is the shortest/smallest racket program (ithat enumerates all and only valid racket programs? Given that "valid" means "a Racket program that compiles correctly". As the Racket compiler is Turing Complete and can be

Re: [racket-users] on reducing barriers in the Racket community

2019-07-26 Thread Jérôme Martin
On Thursday, July 25, 2019 at 9:39:08 PM UTC+2, Atlas Atlas wrote: > For example men in general more aggressive then women, they also pursue different social goals. You cannot ignore this, or blame the men for what they are. You also cannot ignore the fact that people in general driven by their

Re: [racket-users] on reducing barriers in the Racket community

2019-07-24 Thread Jérôme Martin
Thank you very much Matthew and Neil for those refreshing write-ups! I'm really glad to see the question of inclusion, diversity (not the politically charged American meaning), and overall well-being in an mostly online community. DISCLAIMER: Please take what I'm going to say with a distance.

Re: [racket-users] I wrote my first macro ever!

2019-05-03 Thread Jérôme Martin
ful resources I've found for > understanding ... in macros has been Alexis King's module 'struct-update', > the code for which is linked below. In addition, she provides a very good > explanation of ... in this thread: > https://www.mail-archive.com/racket-users@googlegroups.com/msg40196.html

Re: [racket-users] Re: I wrote my first macro ever!

2019-04-30 Thread Jérôme Martin
Looks good to me! On Monday, April 29, 2019 at 9:06:53 PM UTC+2, wanderley...@gmail.com wrote: > [(_ name (~var e element-exp) ...) > Here you can replace the `~var` call with the more classic form `e:element-exp`. `~var` is only required when you want to pass arguments to the class

[racket-users] Re: I wrote my first macro ever!

2019-04-29 Thread Jérôme Martin
Hello there! I'm really glad you're picking up Racket and enjoying it! I've been through the same paths and struggles before, so thank you very much for posting that piece of experience here :) For your information, here is a syntax-parse version of your macro, which I find simpler to write

Re: [racket-users] How can I include a literal ellipsis in a macro?

2019-04-10 Thread Jérôme Martin
On Wednesday, April 10, 2019 at 12:46:49 PM UTC+2, David Storrs wrote: > > Great, thanks! > > On Wed, Apr 10, 2019 at 6:35 AM Sorawee Porncharoenwase < > sorawe...@gmail.com > wrote: > >> Use either (... ...) or (quote-syntax ...). >> > Also if you are using syntax-parse, what I usually do is:

Re: [racket-users] Struct subtype with default/fixed value of super-type

2019-03-20 Thread Jérôme Martin
sufficient numbers of mundane bugs in my code (all > well-maintained in version control, for quick deployment on docker), I > rarely get to worry about phases - it just isn't where the highest gains > are. :-) > > On Mon, Mar 18, 2019 at 2:46 PM Jérôme Martin > wrote: > >> O

Re: [racket-users] Re: Racket News - Issue 4

2019-03-19 Thread Jérôme Martin
On Tuesday, March 19, 2019 at 9:29:00 AM UTC+1, Paulo Matos wrote: > Sure! That's great. I will add it to the submissions for issue 5 or 6. > Thanks! > I can obviously have one more section but the reason I would prefer not > to is because at about ~26 issues per year, I would like to have

[racket-users] Re: Simple conditional in web template

2019-03-18 Thread Jérôme Martin
On Monday, March 18, 2019 at 4:45:19 PM UTC+1, Brian Adkins wrote: > > Yes, using code would certainly make some things easier, but for the > moment, I'm looking for a template solution. > Oh sorry, I didn't quite catch that! I never used templates, so I don't know. -- You received this

[racket-users] Re: Simple conditional in web template

2019-03-18 Thread Jérôme Martin
e template. On Monday, March 18, 2019 at 4:41:41 PM UTC+1, Jérôme Martin wrote: > > (define (my-server-response show-cat?) > (response/xexpr > `(div ([class "my-content"]) > ,(if show-cat? >(p "Welcome to my blog about cats!") >

[racket-users] Re: Simple conditional in web template

2019-03-18 Thread Jérôme Martin
(define (my-server-response show-cat?) (response/xexpr `(div ([class "my-content"]) ,(if show-cat? (p "Welcome to my blog about cats!") (p "This blog is definitely not about cats.") On Monday, March 18, 2019 at 4:26:16 PM UTC+1, Brian Adkins wrote: > > How

[racket-users] Re: Racket News - Issue 4

2019-03-18 Thread Jérôme Martin
Thank you so much for this! If I can suggest a project for next month's spotlight: - Christopher Lemmer Webber, co-editor of the ActivityPub specs, is working on a distributed social network library based on Racket: https://gitlab.com/spritely It's still in early development, but I think

Re: [racket-users] Struct subtype with default/fixed value of super-type

2019-03-18 Thread Jérôme Martin
Once you discover that the default constructor for a struct is just a simple procedure that was generated for you, it's not that big of deal to just make your own and export it like this: (provide (except-out (struct-out fish) fish) (rename-out (make-fish fish))) All the code relying on it

[racket-users] Re: London Racket Meet-up ?

2019-03-18 Thread Jérôme Martin
Interested! To make it worth the trip, I'd suggest we put up a list of topics to discuss, so that people can ponder whether they should buy an expensive ticket to go there. I'd suggest the following topics I'd be glad to talk about: - Innovative use of syntax-parse, with tips and tricks to

[racket-users] Re: Season of docs participation

2019-03-13 Thread Jérôme Martin
It looks great, but I have a hard time understanding the gist of it. The rules are written in fine prints like the Terms of Service of an insurance company. What benefits does Google actually brings in that event? Couldn't we just make a campaign on our networks to ask students in summer

[racket-users] Re: Recording of conference talk: Make your own language with Racket FOSDEM19

2019-02-26 Thread Jérôme Martin
web-galaxy On Tuesday, February 26, 2019 at 8:53:54 AM UTC+1, Stephen De Gabrielle wrote: > > FYI Recording of conference talk > Make your own language with Racket > by Jérôme Martin at FOSDEM 19 > > (I didn’t go) > > https://fosdem.org/2019/schedule/event/makeownlangracket/

[racket-users] FOSDEM: Flyers, posters, and overall Racket visuals/communication material

2019-01-09 Thread Jérôme Martin
Hello Racketeers! I'm going to FOSDEM in February, giving some talks and workshops about Racket in the "Minimalistic Languages Room". https://fosdem.org/2019/schedule/track/minimalistic_languages/ In order to promote our beloved language there, I'd like to print out some big posters. Do you

Re: [racket-users] hackernews

2018-12-17 Thread Jérôme Martin
I'm also occasionally writing posts about Racket on my blog. Only one is public for now, and is a multi-parts tutorial about writing DSLs in Racket. I'm trying to summarize and reformulate some of the things I learned by making small languages in Racket. If you already read Beautiful Racket, I

Re: [racket-users] Racket application servers

2018-11-26 Thread Jérôme Martin
Just so you know, I started some months ago a Racket project that would help monitor different Racket web servers and load-balance them, using systemd-nspawn as a native container system, and an optional nginx server to load balance everything, serve static content and cache dynamic one. It's

[racket-users] Re: Announcing Minimalistic Languages track at FOSDEM 2019

2018-11-21 Thread Jérôme Martin
Update: I submitted a lighting talk called "Why JSON when you can DSL?". The challenge is to make it fit into 15 minutes, but if we don't have other talks, I guess I could do it multiple times in the day or just make it longer. I also submitted a workshop to actually practice what I talk

[racket-users] Re: Announcing Minimalistic Languages track at FOSDEM 2019

2018-11-12 Thread Jérôme Martin
Hello! I'm currently working on a presentation and a workshop for this devroom :) @everybody: The deadline for registering activities is the 25th of November, don't miss it! See you there :) On Monday, November 12, 2018 at 8:27:01 AM UTC+1, Manolis Ragkousis wrote: > > Hello all, I am

[racket-users] Re: 2018 SIGPLAN Software Award

2018-09-28 Thread Jérôme Martin
Congrats everyone! It's a refreshing experience to see the work of people involved in not only programming, but teaching programming. You put a lot of focus on user and student experience, and have a sensibility for listening and bringing fun into programming. This creates a community and a

Re: [racket-users] Re: Let's organize a Scheme European Event at FOSDEM 2019

2018-08-27 Thread Jérôme Martin
2:43:30 PM UTC+2, Hendrik Boom wrote: > > On Mon, Aug 27, 2018 at 02:41:52AM -0700, Jérôme Martin wrote: > > I live not so far from Bruxelles so I'd be glad to be a part of it! > > > > I'd love to talk about how easy it is to write DSLs in Racket, and about

[racket-users] Re: Let's organize a Scheme European Event at FOSDEM 2019

2018-08-27 Thread Jérôme Martin
I live not so far from Bruxelles so I'd be glad to be a part of it! I'd love to talk about how easy it is to write DSLs in Racket, and about how you can replace your data with DSLs. Something like "Who needs JSON when you can DSL?". One of the examples would be Scribble, but I'm also thinking

[racket-users] Thank you Racket!

2018-08-24 Thread Jérôme Martin
I just read the article by Matt that was posted on Hacker News (http://felleisen.org/matthias/OnHtDP/index.html) and I wanted to take the time to thank you all in the PLT/Racket team. Thank you for trying (and achieving!) to bring a new approach to teaching computer science. Improving teaching

[racket-users] Re: Parameters considered often harmful

2018-08-03 Thread Jérôme Martin
I use parameters a lot when designing a library which provides customizable behaviors. Instead of having an (init) procedure in which users can setup stuff for the library, I provide parameters, which are way more flexible. For example, I'm designing an emulator in which you can have memory