Re: [racket-users] [standard-fish] map of the world

2019-08-19 Thread 'John Clements' via Racket Users
agreed, very cool. Tempted to mess with projections. John > On Jul 31, 2019, at 10:45, Stephen De Gabrielle > wrote: > > Very nice! Thank you so much! > > Looks like an opportunity for some remixing :o > > S. > > On Wed, 31 Jul 2019 at 01:58, Alex Harsanyi wrote: > Here is a map of the wor

Re: [racket-users] acceptable drracket definitions for interaction

2019-08-19 Thread 'John Clements' via Racket Users
Are you referring to section 6.3, which defines modules as individual s-expressions? It appears to me that this code would work fine if specified in the style shown earlier in section 6.1, where each module appears in its own file, begins with a #lang declaration, and the one referred to the ot

Re: [racket-users] Possible Racket2 ideas from other languages

2019-08-19 Thread Stephen De Gabrielle
Hi Jimmy I guess I had assumed Racket2 would also be an opportunity as a standard > library upgrade, maybe take into account some of the "remix" library ideas, > things like that. > My understanding of the 'Racket2' RFC's process is it is about offering a new syntax to make Racket more accessible

Re: [racket-users] does handin-server really need racket/gui/base?

2019-08-19 Thread 'John Clements' via Racket Users
I’m not looking at the code here, but I believe the issue here is that the handin-server receives user code in a serialized-could-contain-images-format that can’t be decoded properly without importing the gui libraries. It seems not implausible to me that you could special-case all-text submissi

Re: [racket-users] racket url connection problem solved by reboot?

2019-08-19 Thread 'John Clements' via users-redirect
Oh! both excellent thoughts. Okay, I’ll try to remember this for the next time this happens. Many thanks! John > On Aug 19, 2019, at 11:10, Bogdan Popa wrote: > > The server doesn't seem to handle `Expect:' headers properly so, for > example, curl has a couple seconds' delay when you run th

Re: [racket-users] running the wrong sqlite3

2019-08-19 Thread 'John Clements' via Racket Users
Perhaps you need to configure your lib-search-dir setting? https://docs.racket-lang.org/raco/config-file.html?q=lib-search-dir#%28idx._%28gentag._65._%28lib._scribblings%2Fraco%2Fraco..scrbl%29%29%29 John > On Aug 19, 2019, at 15:42, James Platt wrote: > > I'm having an issue where I can't see

Re: [racket-users] Re: Macro containing a list of elements that each have optional keyword options

2019-08-19 Thread Brian Adkins
On Monday, August 19, 2019 at 5:48:29 PM UTC-4, Sorawee Porncharoenwase wrote: > > You could use (splicing) syntax class to help with normalization: > > #lang racket > > (require syntax/parse/define > (for-syntax syntax/parse > racket/syntax)) > > (begin-for-syntax >

Re: [racket-users] Re: Macro containing a list of elements that each have optional keyword options

2019-08-19 Thread Sorawee Porncharoenwase
You could use (splicing) syntax class to help with normalization: #lang racket (require syntax/parse/define (for-syntax syntax/parse racket/syntax)) (begin-for-syntax (define-splicing-syntax-class methods-cls #:attributes (methods) (pattern (~seq #:methods

[racket-users] Re: Macro containing a list of elements that each have optional keyword options

2019-08-19 Thread Brian Adkins
(define-syntax (routes stx) (syntax-parse stx [ (routes (element ...) ...) (with-syntax ([ name (format-id stx "axio-routes") ]) #'(define name (list (route-element element ...) ...)))])) (define-syntax (route-element stx) (syntax-parse stx [ (route-element route:string

[racket-users] Re: Macro containing a list of elements that each have optional keyword options

2019-08-19 Thread Brian Adkins
On Monday, August 19, 2019 at 3:35:00 PM UTC-4, Brian Adkins wrote: > > I'm working on a macro to allow the following: > > (routes > ("/foo" foo-handler #:method put) > ("/bar" bar-handler #:methods (put update)) > ("/baz" baz-handler)) > > The idea is that you could restrict a route based on th

[racket-users] running the wrong sqlite3

2019-08-19 Thread James Platt
I'm having an issue where I can't seem to get Racket to run the right version of sqlite3. At least, I'm assuming that's the problem because the syntax error below occurs in an older version but not the current version of sqlite3. My Terminal command path has the correct version. What can I do

[racket-users] Macro containing a list of elements that each have optional keyword options

2019-08-19 Thread Brian Adkins
I'm working on a macro to allow the following: (routes ("/foo" foo-handler #:method put) ("/bar" bar-handler #:methods (put update)) ("/baz" baz-handler)) The idea is that you could restrict a route based on the HTTP method either for one method using #:method or for a list of methods using #

Re: [racket-users] Possible Racket2 ideas from other languages

2019-08-19 Thread Jimmy Ruska
Thanks Stephen, I'm aware of the RFC page and that it's a community driven project. In terms of flexibility, racket feels like it is the most powerful language. I have written racket in production for Global Payments for a major data migration tool, although they made me rewrite it in python 3 aft

Re: [racket-users] Re: Racket Jupyter/nextJournal

2019-08-19 Thread Stephen De Gabrielle
better, but still terrible location https://github.com/racket/racket/wiki/Racket-in-the-Cloud 'in the cloud'? what is wrong with me? S. On Tue, Aug 20, 2019 at 12:22 AM Stephen De Gabrielle < spdegabrie...@gmail.com> wrote: > added to the wiki > > https://github.com/racket/racket/wiki/IDE's-a

Re: [racket-users] Re: Racket Jupyter/nextJournal

2019-08-19 Thread Stephen De Gabrielle
added to the wiki https://github.com/racket/racket/wiki/IDE's-and-text-editors https://github.com/racket/racket/wiki/IDE's-and-text-editors KR Stephen On Mon, Aug 19, 2019 at 7:31 AM tbrooke wrote: > Good News from nextJournal > > Good news, turns it Racket actually *does* work: > https:/

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

2019-08-19 Thread Stephen De Gabrielle
Thank you Paulo! Another awesome issue of Racket News. S. On Fri, Aug 16, 2019 at 9:49 PM Paulo Matos wrote: > Racket News issue 14 is here. > https://racket-news.com/2019/08/racket-news-issue-14.html > > Enjoy! > > -- > Paulo Matos > > -- > You received this message because you are subscrib

[racket-users] racket url connection problem solved by reboot?

2019-08-19 Thread 'John Clements' via users-redirect
This may be an OS question, but it manifested as a curious racket problem, so I thought I’d ask. Consider the following program: #lang racket (require net/url) (post-impure-port (string->url "http://brinckerhoff.org:8025/";) #"request=1234" '("Content-Type: application/x-www-form-urlencoded”))

Re: [racket-users] Possible Racket2 ideas from other languages

2019-08-19 Thread Stephen De Gabrielle
Thanks Jimmy, This is a really interesting list. I think many of the items will interest others. [I’m not part of the Racket team - so the following is my opinion] I think it is important to remember open source project that runs on volunteer efforts of individual contributors building the packa