Re: [racket-users] racket/draw: how to extract the path from a font% object?

2020-04-01 Thread David Storrs
I knocked together a very minimal pure-Racket library for this so you don't have to FFI. It won't give you all the bells and whistles, but it should be a good starting point. https://pkgd.racket-lang.org/pkgn/package/font-finder Docs:

Re: [racket-users] racket/draw: how to extract the path from a font% object?

2020-04-01 Thread Matthew Butterick
The answer is you can't, through pure Racket, because Racket delegates the nitty-gritty of font-file resolution to external font-handling libraries. It is possible, however, to call into the `fontconfig` library via the FFI and make it do the heavy lifting of 1) scanning font directories to

[racket-users] racket/draw: how to extract the path from a font% object?

2020-03-31 Thread Matthew Butterick
IIUC every `font%` object must correspond to a particular font file on disk. If so, given a `font%` object, how do I extract the path to that file? -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop

[racket-users] Racket News - Issue 28

2020-03-16 Thread Paulo Matos
Hi, Racket News Issue 28 is here. https://racket-news.com/2020/03/racket-news-issue-28.html Enjoy and stay healthy, Paulo Matos -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it,

Re: [racket-users] Racket 7.5 DMG file does not open on OSX 10.11

2020-03-11 Thread Darth Vadør
Just installed Racket 7.6 through Homebrew. Completely clean with no errors. Thank you for helping us out! On Wednesday, December 11, 2019 at 5:00:42 PM UTC+1, Matthew Flatt wrote: > > At the moment, we don't have plans to rebuild v7.5, so the change would > kick in with v7.6. > > The

Re: [racket-users] [racket users] Generics question

2020-03-03 Thread Kevin Forchione
> On Mar 3, 2020, at 10:48 AM, Jon Zeppieri wrote: > > On Tue, Mar 3, 2020 at 12:37 PM Kevin Forchione wrote: >> >> Thanks! That brings me a little closer in appreciating the comments I’ve >> read about replacing object-oriented code with structs and methods. >> >> Is this part of the

Re: [racket-users] [racket users] Generics question

2020-03-03 Thread Jon Zeppieri
On Tue, Mar 3, 2020 at 12:37 PM Kevin Forchione wrote: > > Thanks! That brings me a little closer in appreciating the comments I’ve > read about replacing object-oriented code with structs and methods. > > Is this part of the racket/generic or the Multimethods library? The example > you

Re: [racket-users] [racket users] Generics question

2020-03-03 Thread Kevin Forchione
> On Mar 3, 2020, at 9:19 AM, Jon Zeppieri wrote: > > (struct A (this other) #:transparent > #:methods gen:foo > [(define/generic generic-foo do-foo) > (define (do-foo foo) > (printf "other=~a ~a" > (A-this foo) > (generic-foo (A-other foo]) Thanks! That

Re: [racket-users] [racket users] Generics question

2020-03-03 Thread Jon Zeppieri
Kevin, This is what `define/generic` is for. In your example: On Tue, Mar 3, 2020 at 11:08 AM Kevin Forchione wrote: > > (struct A (this other) #:transparent > #:methods gen:foo > [(define (do-foo foo) > (printf "other=~a ~a" > (A-this foo) > (do-foo (A-other

[racket-users] [racket users] Generics question

2020-03-03 Thread Kevin Forchione
Hi guys, If I create a generic, say foo, for a particular struct and then later reference that method on a different type of struct from within the handler method I get an error because the call goes to the original structs method and not to the method of the other struct. Is there a way to do

[racket-users] Racket News - Issue 27

2020-03-02 Thread Paulo Matos
Hi! For the first time, I published RN and forgot to send an email the list straight away. My apologies for that - here's the email a few hours late. Issue 27 is here, enjoy! https://racket-news.com/2020/03/racket-news-issue-27.html -- Paulo Matos -- You received this message because you

Re: [racket-users] racket meet-up in London ?

2020-02-24 Thread James Geddes
That sounds a great idea, I am interested. For numbers less than about 10, if it helps, I can get a meeting room in the Turing Institute (though I’m also happy to try a coffee shop, not that I have any good suggestions). James > On 24 Feb 2020, at 21:41, Stephen De Gabrielle > wrote: >

Re: [racket-users] Racket Generic Graph Library: non-numerical edge weight/labels + Graphviz?

2020-02-24 Thread unlimitedscolobb
Thank you very much for your answer Stephen! I'll be busy the whole day tomorrow, but I'll come back in the evening most probably and will continue the discussion on the GitHub issue. Indeed, I haven't seen the constructors actually check the edges to be numerical, but I had the impression

Re: [racket-users] Racket Generic Graph Library: non-numerical edge weight/labels + Graphviz?

2020-02-24 Thread Stephen Chang
> I am somewhat surprised that the graph library enforces numerical edge > weights at all. The docs do informally say number weights but I don't think the constructors do any checking? Any enforcement should be deferred to individual algorithms. Re: graphviz, I took a quick look and I think we

[racket-users] racket meet-up in London ?

2020-02-23 Thread Stephen De Gabrielle
Is anyone up for another racket meet-up in London ? Need to work out a time and place to meet. Kind regards Stephen -- -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it,

[racket-users] Racket Generic Graph Library: non-numerical edge weight/labels + Graphviz?

2020-02-23 Thread unlimitedscolobb
Hello, I'm using the wonderful graph library which can do tons of various graph-related tasks. However, I haven't found a way to attach non-numerical weights/labels to edges _and_ have them appear in the Graphviz rendering of the graph. Is it at all possible? I did see define-edge-property,

[racket-users] racket-poppler dumping core & failing contract checks

2020-02-20 Thread 'John Clements' via users-redirect
I’m interested in converting TeX to picts. It looks like racket-poppler might be the way to do that. Unfortunately, I’m having trouble running racket-poppler. I ran into several problems, but fortunately, all of the problems that I saw were also observed by the test suite. Running raco test

[racket-users] Racket News - Issue 26

2020-02-17 Thread Paulo Matos
Hi, Racket News issue 26 is here: https://racket-news.com/2020/02/racket-news-issue-26.html Enjoy, Paulo Matos -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email

Re: [racket-users] Racket v7.6

2020-02-14 Thread Juan Carlos Olivo
Thanks for the Valentine in the splash screen! -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. To view this

Re: [racket-users] Racket v7.6

2020-02-13 Thread John Cowan
Thanks. So in that case Racket/CS files would be expected to be larger. On Thu, Feb 13, 2020 at 9:14 PM Sam Tobin-Hochstadt wrote: > > > On Thu, Feb 13, 2020, 9:11 PM John Cowan wrote: > >> >> >> On Thu, Feb 13, 2020 at 8:27 PM 'John Clements' via users-redirect < >> us...@plt-scheme.org>

Re: [racket-users] Racket v7.6

2020-02-13 Thread John Cowan
On Thu, Feb 13, 2020 at 8:27 PM 'John Clements' via users-redirect < us...@plt-scheme.org> wrote: (Compiled code remains significantly larger compared to the default > implementation.) > Does this refer to bytecode or machine code? John Cowan http://vrici.lojban.org/~cowan

[racket-users] Racket v7.6

2020-02-13 Thread 'John Clements' via users-redirect
-- Racket version 7.6 is now available from https://racket-lang.org/ * DrRacket's scrolling has been made more responsive. * DrRacket's dark mode support is improved for Mac OS and Unix. * Racket CS is ready for

Re: [racket-users] Racket News - Happy Birthday Issue (25)

2020-02-04 Thread Alexander Shopov
Happy, happy birthday and kudos! На вт, 4.02.2020 г. в 10:21 Paulo Matos написа: > Hi, > > Racket News Issue 25 is here - Happy Birthday to RN. > > https://racket-news.com/2020/02/racket-news-issue-25.html > > Enjoy, > > Paulo Matos > > -- > You received this message because you are subscribed

[racket-users] Racket News - Happy Birthday Issue (25)

2020-02-04 Thread Paulo Matos
Hi, Racket News Issue 25 is here - Happy Birthday to RN. https://racket-news.com/2020/02/racket-news-issue-25.html Enjoy, Paulo Matos -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails

Re: [racket-users] [racket users] Macro literal "|"

2020-02-03 Thread Stephen Chang
As mentioned, to get your macro to work, you have to change how the reader behaves on "|". You might be interested in the (implementation of) no-vert-bar reader lang: https://docs.racket-lang.org/no-vert-bar-lang/index.html On Mon, Feb 3, 2020 at 6:27 PM Kevin Forchione wrote: > > Hi guys, >

Re: [racket-users] [racket users] Macro literal "|"

2020-02-03 Thread Philip McGrath
You're right that `|` isn't a valid terminal with the normal reader, but, as it happens, the zero-length identifier can be written as `||`. (I don't think the concept of a zero-length identifier is common in other languages: it corresponds to the empty string.) -Philip On Mon, Feb 3, 2020 at

[racket-users] [racket users] Macro literal "|"

2020-02-03 Thread Kevin Forchione
Hi guys, I’ve been trying to figure out how to use “|” in a macro. I’ve got syntax like this in mind: (foo A | B) Not sure if I can do this because the reader expects a pair. If “|” isn’t a convenient literal to work with is there an alternative others have used that represents more

[racket-users] Racket News - Issue 24

2020-01-20 Thread Paulo Matos
Hello! Racket News - Issue 24 is here. https://racket-news.com/2020/01/racket-news-issue-24.html Enjoy, -- Paulo Matos -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an

[racket-users] Racket News - Issue 23

2020-01-07 Thread Paulo Matos
The Racket News Happy New Year Issue is here. Issue 23 still hot off the press just for you. https://racket-news.com/2020/01/racket-news-issue-23.html Coffee time - enjoy! Paulo Matos -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To

Re: [racket-users] racket-mode finds wrong version of Racket

2019-12-16 Thread David Storrs
Thanks, Bruno. Much appreciated. On Mon, Dec 16, 2019, 12:56 PM bruno cuconato wrote: > Emacs has a few ways to update environment variables (see > https://www.gnu.org/software/emacs/manual/html_node/emacs/Environment.html > ), > but IMHO they are not very practical if updating several

Re: [racket-users] racket-mode finds wrong version of Racket

2019-12-16 Thread bruno cuconato
Emacs has a few ways to update environment variables (see https://www.gnu.org/software/emacs/manual/html_node/emacs/Environment.html), but IMHO they are not very practical if updating several variables — I always prefer to simply restart Emacs, or not to add anything to $PATH but to symlink files

[racket-users] Racket News - Issue 22

2019-12-16 Thread Paulo Matos
Racket News is here - now with issue 22. https://racket-news.com/2019/12/racket-news-issue-22.html Enjoy! Paulo Matos -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an

[racket-users] racket-mode finds wrong version of Racket

2019-12-16 Thread David Storrs
I just now updated to 7.5 from 7.3, then updated my .bashrc to have the correct path. I'm using GNU Emacs in Terminal on OSX 10.11. $ echo $PATH [...stuff that isn't Racket...]:/Applications/Racket_v7.5.0.10/bin:[...stuff that isn't Racket...] >From a .rkt file: C-c C-c Welcome to Racket v7.3.

[racket-users] racket-mode in emacs and error navigation

2019-12-12 Thread Nathaniel Griswold
Hello. I really like DrRacket's error output but i have recently switched to emacs as i prefer its parenthesis navigation modes and other things about it. One thing i noticed is when i have an error, say application with wrong number of args, if i navigate to error using "C-x `" i don't skip

Re: [racket-users] Racket 7.5 DMG file does not open on OSX 10.11

2019-12-11 Thread David Storrs
Brilliant. Downloaded, installed, works great. Thanks, Matthew. On Wed, Dec 11, 2019 at 11:00 AM Matthew Flatt wrote: > At the moment, we don't have plans to rebuild v7.5, so the change would > kick in with v7.6. > > The snapshot builds use HFS+ --- but they did, anyway, since they're >

Re: [racket-users] Racket 7.5 DMG file does not open on OSX 10.11

2019-12-11 Thread Matthew Flatt
At the moment, we don't have plans to rebuild v7.5, so the change would kick in with v7.6. The snapshot builds use HFS+ --- but they did, anyway, since they're created with an older version of Mac OS. At Wed, 11 Dec 2019 10:45:08 -0500, David Storrs wrote: > Thanks, Matthew, > > The version on

Re: [racket-users] Racket 7.5 DMG file does not open on OSX 10.11

2019-12-11 Thread David Storrs
Thanks, Matthew, The version on the downloads page seems to still be APFS. Will it rebuild at some point? On Tue, Dec 10, 2019 at 8:46 PM Matthew Flatt wrote: > I’ve changed the distribution build to use HFS+ going forward. > > > On Dec 10, 2019, at 6:28 PM, James Platt wrote: > > > > > >>

Re: [racket-users] Racket 7.5 DMG file does not open on OSX 10.11

2019-12-10 Thread Matthew Flatt
I’ve changed the distribution build to use HFS+ going forward. > On Dec 10, 2019, at 6:28 PM, James Platt wrote: > > >> On Dec 6, 2019, at 9:56 PM, Darth Vadør wrote: >> >> If it isn't too much trouble, I at least would really appreciate this. >> One reason I think this is important is

Re: [racket-users] Racket 7.5 DMG file does not open on OSX 10.11

2019-12-10 Thread James Platt
On Dec 6, 2019, at 9:56 PM, Darth Vadør wrote: > If it isn't too much trouble, I at least would really appreciate this. > One reason I think this is important is because Homebrew has a cask for > Racket, which uses the .dmg distribution. It sets up $PATH (and probably > other things I don't

Re: [racket-users] Racket 7.5 DMG file does not open on OSX 10.11

2019-12-10 Thread James Platt
On Dec 3, 2019, at 7:09 PM, John Clements wrote: > It sounds to me like an easy solution to your problems would be a > .tgz-bundled set, as e.g. we offer for Minimal Racket on the page > > https://download.racket-lang.org/releases/7.5/ > > specifically at the link > >

[racket-users] Racket 7.5 does not run on Cent OS cloud computers

2019-12-09 Thread Eduardo Costa
A couple of years ago, I was unable to run Racket on my webpage. I complained on this forum, and the developers fixed the issue. Things worked fine until version 7.3, when the old problem reappeared. Here is what happens: ``` advog...@advogadosmg.org [~]# racket-7.5.0.10/bin/racket

Re: [racket-users] Racket 7.5 DMG file does not open on OSX 10.11

2019-12-06 Thread Darth Vadør
Hi, If it isn't too much trouble, I at least would really appreciate this. One reason I think this is important is because Homebrew has a cask for Racket, which uses the .dmg distribution. It sets up $PATH (and probably other things I don't know about as well), and can update Racket for you,

Re: [racket-users] Racket 7.5 DMG file does not open on OSX 10.11

2019-12-03 Thread 'John Clements' via Racket Users
> On Dec 3, 2019, at 2:29 PM, James Platt wrote: > > > On Nov 27, 2019, at 12:42 PM, Darth Vadør wrote: > >> I am having the same problem, and I am pretty sure that this is because the >> new DMG uses the novel APFS format, which is not readable by our old HFS >> computers. >> As far as

[racket-users] Racket News - Issue 21

2019-12-02 Thread Paulo Matos
Hello fellow Racketeers, A new issue of RN is here, now counting 21! https://racket-news.com/2019/12/racket-news-issue-21.html Time to grab that coffee and enjoy, Paulo Matos -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe

Re: [racket-users] racket-2019-gamejam

2019-11-30 Thread Hendrik Boom
On Fri, Nov 22, 2019 at 10:57:30PM +, Stephen De Gabrielle wrote: > **racket-2019-gamejam** > Submissions due in 7 days 2 hours 9 minutes 57 seconds Join jam > https://itch.io/jam/racket-2019-gamejam Possibly even on time; I'm not sure. https://github.com/hendrikboom3/rackettown Very much a

Re: [racket-users] Racket 7.5 DMG file does not open on OSX 10.11

2019-11-27 Thread 'John Clements' via Racket Users
Well, actually, I would try just running the binaries, first; it may well be that 10.11 doesn’t require the manual deletion of the quarantine flags. You can also try using a right-click and choosing “open” from the menu; this clears the quarantine flag in many cases. If it does turn out to be

Re: [racket-users] Racket 7.5 DMG file does not open on OSX 10.11

2019-11-27 Thread Bruce O'Neel
Hi, What would be the magic xattr command? Thanks. bruce > This is 100% workaround rather than a fix, but have you considered using the > minimal racket tarball: > >

Re: [racket-users] Racket 7.5 DMG file does not open on OSX 10.11

2019-11-27 Thread 'John Clements' via Racket Users
This is 100% workaround rather than a fix, but have you considered using the minimal racket tarball: https://download.racket-lang.org/releases/7.5/installers/racket-minimal-7.5-x86_64-macosx.tgz …and then manually blessing the binaries using xattr and then installing the rest of the system

[racket-users] Racket 7.5 DMG file does not open on OSX 10.11

2019-11-25 Thread David Storrs
When I download and install the .dmg file from racket-lang, I'm told "no mountable filesystems". I'm not sure if this is an issue with how it was built, with my machine, or with OSX in general. This may not be worth worrying about, since OSX 10.11 was released September 30, 2015 and Apple has

[racket-users] racket-2019-gamejam

2019-11-22 Thread Stephen De Gabrielle
**racket-2019-gamejam** Submissions due in 7 days 2 hours 9 minutes 57 seconds Join jam https://itch.io/jam/racket-2019-gamejam -- -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails

[racket-users] Racket v7.5

2019-11-19 Thread 'John Clements' via Racket Users
Racket version 7.5 is now available from https://racket-lang.org/ * Almost all of Racket version 7.5 is distributed under a new, less-restrictive license: either the Apache 2.0 license or the MIT license. See

[racket-users] Racket News - Issue 20

2019-11-18 Thread Paulo Matos
Hello... RN Issue 20 is finally here... a bit later than usual, I know! https://racket-news.com/2019/11/racket-news-issue-20.html Coffee time (guilt-free with an issue of RN) - Enjoy! -- Paulo Matos -- You received this message because you are subscribed to the Google Groups "Racket Users"

[racket-users] Racket as python

2019-11-18 Thread Hendrik Boom
I found this interesting web page: Racket is an acceptable python: https://dustycloud.org/blog/racket-is-an-acceptable-python/ -- hendrik -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving

[racket-users] Racket News - Issue 19

2019-11-04 Thread Paulo Matos
RN issue 19 is here and packed with lots of goodies. :) https://racket-news.com/2019/11/racket-news-issue-19.html Throughout this year, and due to RN I have tried to keep tabs on everything happening in the Racket community. I am really excited that not only the Racket community seems to be

Re: Overbooked November. Re: [racket-users] Racket News - Issue 18

2019-10-22 Thread Stephen De Gabrielle
I’ve updated the game jam description to add: - Full games, game components or tools are all acceptable entries. e.g. tile editor, game map editor, procedural content generator, etc. On Tue, 22 Oct 2019 at 01:59, Stephen De Gabrielle wrote: > > > On Mon, 21 Oct 2019 at 23:18, Hendrik

[racket-users] Racket intro tutorial bugs and feedback

2019-10-21 Thread Ryan Johnson
I am documenting bugs and feedback as I go along. Some will be added out of order. https://docs.google.com/document/d/1KwHSpQ3jbVwNofKDwGJT3RR1Zk1yuKXObtXD-NlpXRo/edit?usp=sharing Comments are open. -- You received this message because you are subscribed to the Google Groups "Racket Users"

Re: Overbooked November. Re: [racket-users] Racket News - Issue 18

2019-10-21 Thread Stephen De Gabrielle
On Mon, 21 Oct 2019 at 23:18, Hendrik Boom wrote: > On Mon, Oct 21, 2019 at 11:13:34PM +0100, Stephen De Gabrielle wrote: > > A NaNoGenMo submission counts as a game jam entry. > > Even if it's not a game? Algorithmically generated text is an important part of many games. There is even a

Re: Overbooked November. Re: [racket-users] Racket News - Issue 18

2019-10-21 Thread Hendrik Boom
On Mon, Oct 21, 2019 at 11:13:34PM +0100, Stephen De Gabrielle wrote: > A NaNoGenMo submission counts as a game jam entry. Even if it's not a game? > > HTH > > Stephen > > On Mon, 21 Oct 2019 at 20:04, Hendrik Boom wrote: > > > On Mon, Oct 21, 2019 at 07:54:39PM +0200, pmatos@linki.tools

Re: Overbooked November. Re: [racket-users] Racket News - Issue 18

2019-10-21 Thread Stephen De Gabrielle
A NaNoGenMo submission counts as a game jam entry. HTH Stephen On Mon, 21 Oct 2019 at 20:04, Hendrik Boom wrote: > On Mon, Oct 21, 2019 at 07:54:39PM +0200, pmatos@linki.tools wrote: > > > > Racket News Issue 18 is here! > > https://racket-news.com/2019/10/racket-news-issue-18.html > > > >

Overbooked November. Re: [racket-users] Racket News - Issue 18

2019-10-21 Thread Hendrik Boom
On Mon, Oct 21, 2019 at 07:54:39PM +0200, pmatos@linki.tools wrote: > > Racket News Issue 18 is here! > https://racket-news.com/2019/10/racket-news-issue-18.html > > Grab a coffee and enjoy! > -- > Paulo > > -- > You received this message because you are subscribed to the Google Groups >

[racket-users] Racket News - Issue 18

2019-10-21 Thread pmatos
Racket News Issue 18 is here! https://racket-news.com/2019/10/racket-news-issue-18.html Grab a coffee and enjoy! -- Paulo -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send

Re: [racket-users] Racket COM error opening Word document: expected argument of type <(opt (box any))>

2019-10-08 Thread Shu-Hung You
I don't know COM but here's an attempt to guess what happened based on the documentation. On Tue, Oct 8, 2019 at 11:51 AM Scott Gudeman wrote: > > I am working on converting a powershell script to Racket that takes a Word > XML document and saves it as PDF. > > In powershell, when I call Word's

[racket-users] Racket COM error opening Word document: expected argument of type <(opt (box any))>

2019-10-08 Thread Scott Gudeman
I am working on converting a powershell script to Racket that takes a Word XML document and saves it as PDF. In powershell, when I call Word's `Documents.Open` method I can just pass it the naked string as the file path without anything special done to it. In Racket, however, when I run the

[racket-users] Racket News - Issue 17

2019-10-07 Thread Paulo Matos
Hi, RN Issue 17 is finally here. https://racket-news.com/2019/10/racket-news-issue-17.html Enjoy, Paulo -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [racket-users] Racket 7.3 Plot Performance Regression

2019-10-02 Thread evdubs
If anyone is following along here, I recently installed the Racket 7.4 (non-Chez Scheme) version from the Ubuntu PPA and this performance has been acceptable. It is slightly noticeably slower but much better than what I had seen in 7.3. This works for me, but I am still clueless in

[racket-users] Racket Stories

2019-10-02 Thread Jens Axel Søgaard
Hi All, As the Slack users already know, I have created a little web-site to share interesting stories/links/blogs/packages/papers on everything Racket-related. https://racket-stories.com Click "submit" to submit your own stories. /Jens Axel -- You received this message because you are

[racket-users] Racket discord server trial

2019-09-17 Thread Stephen De Gabrielle
Hi, I just realised I posted this without a subject line...my apologies. On Wednesday, September 11, 2019 at 9:27:48 PM UTC+1, Stephen De Gabrielle wrote: > > > Hi, > I’m trying out a discord server. It’s pretty similar interface to slack > and while it doesn’t do some things slack does...it

[racket-users] Racket News - Issue 16

2019-09-16 Thread Paulo Matos
Hello everyone, It's time for another issue of RN. Issue 16 is here! https://racket-news.com/2019/09/racket-news-issue-16.html Enjoy! Paulo Matos -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop

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

2019-09-02 Thread Paulo Matos
Alex, I am glad you enjoyed it. Gustavo has pointed out I missed a few contributors (specifically Matthew) from my initial list. I have now fixed the script generating these and the issue. Paulo On 03/09/2019 07:10, Alexander Shopov wrote: > Thanx a lot, esp. the new section - Racket Project

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

2019-09-02 Thread Alexander Shopov
Thanx a lot, esp. the new section - Racket Project Statistics Regards: al_shopov На пн, 2.09.2019 г. в 22:52 ч. Paulo Matos написа: > Issue 15 is here! > > https://racket-news.com/2019/09/racket-news-issue-15.html > > Enjoy, > > -- > Paulo > > -- > You received this message because you are

[racket-users] Racket News - Issue 15

2019-09-02 Thread Paulo Matos
Issue 15 is here! https://racket-news.com/2019/09/racket-news-issue-15.html Enjoy, -- Paulo -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

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

2019-09-02 Thread Paulo Matos
Renewed. Sorry for this issue. I spend most of the year in front of the PC but of course this had to expire during the two weeks I was away. :( On 21/08/2019 19:37, Stephen Foster wrote: > My browser is telling me that the SSL certificate for racket-news.com > is invalid. > Is it just me? > > On

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

2019-09-02 Thread Paulo Matos
Thanks! :) On 19/08/2019 16:54, Stephen De Gabrielle wrote: > 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 > >

Re: [racket-users] [racket users] make-keyword-procedure follow-up

2019-08-31 Thread Jack Firth
You might have some success using my arguments package, which defines an arguments? data structure wrapping a bundle of positional and keyword args. It also provides some functions that are like make-keyword-procedure and keyword-apply, but

Re: [racket-users] [racket users] make-keyword-procedure follow-up

2019-08-30 Thread Kevin Forchione
> On Aug 30, 2019, at 1:19 AM, Philip McGrath wrote: > > Hi Kevin, > > This is interesting! A number of people have wanted conveniences around > `keyword-apply` and accepting the same keywords as some other function. (The > trouble is, different people have different ideas of what those

Re: [racket-users] [racket users] make-keyword-procedure follow-up

2019-08-30 Thread Philip McGrath
Hi Kevin, This is interesting! A number of people have wanted conveniences around `keyword-apply` and accepting the same keywords as some other function. (The trouble is, different people have different ideas of what those conveniences should be.) To start with, I had a few small suggestions

[racket-users] racket users] make-keyword-procedure follow-up

2019-08-29 Thread Kevin Forchione
> On Aug 29, 2019, at 1:24 PM, Kevin Forchione wrote: > > Hi guys, > I’ve been working for a little while with the idea of being able to pass > keyword arguments through a function that doesn’t define them. Additionally I > wanted to allow the “pass-through” function to define its own

[racket-users] [racket users] make-keyword-procedure follow-up

2019-08-29 Thread Kevin Forchione
Hi guys, I’ve been working for a little while with the idea of being able to pass keyword arguments through a function that doesn’t define them. Additionally I wanted to allow the “pass-through” function to define its own keywords. Additionally didn’t want to have to pre-specify what function

Re: [racket-users] [racket users] Contracts and make-keyword-procedure question

2019-08-24 Thread Ben Greenman
The -> combinator doesn't support unspecified keywords. ->* won't work either. Instead, you can try writing a new contract combinator (keyword-procedure/c ?) Or, don't use define/contract and put the domain checks in the function body. -- You received this message because you are subscribed to

Re: [racket-users] [racket ursers] Keyword question

2019-08-23 Thread Philip McGrath
If they do what you want, `curry` and `curryr` support keyword arguments (as of Racket 7.1) and handle lots of cases. If you do need to use `make-keyword-procedure`, you may want to combine it with `procedure-reduce-keyword-arity-mask`. -Philip On Fri, Aug 23, 2019 at 10:03 PM David Storrs

Re: [racket-users] [racket ursers] Keyword question

2019-08-23 Thread David Storrs
There's also keyword-apply: https://docs.racket-lang.org/reference/procedures.html#%28def._%28%28lib._racket%2Fprivate%2Fbase..rkt%29._keyword-apply%29%29 (define (f x #:y y #:z

[racket-users] [racket users] Contracts and make-keyword-procedure question

2019-08-23 Thread Kevin Forchione
Suppose I have the following: (define/contract foo (-> ??? any/c symbol? symbol? any/c any) (make-keyword-procedure (lambda (kw kv a b . args) do-something …))) What sort of contract would I give to the kw parameter so that it basically accepts a list of unspecified keywords? What I’m doing

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

2019-08-23 Thread Stephen De Gabrielle
Hi Address of cached copy of racket news 14 is at https://mailchi.mp/ae8d47492601/racket-news-issue-14?e=94512116cc *I* think the best news is the Summer picture competition ::grin:: , but there is heaps of other good material in issue 14!

Re: [racket-users] [racket ursers] Keyword question

2019-08-22 Thread Tim Meehan
If it was just passing keyword arguments to your function, you might be able to do it like this: ; https://docs.racket-lang.org/guide/lambda.html ; https://docs.racket-lang.org/reference/procedures.html (define greet (lambda (given #:last surname) (string-append "Hello, " given " "

[racket-users] [racket ursers] Keyword question

2019-08-22 Thread Kevin Forchione
> On Aug 22, 2019, at 1:33 PM, Kevin Forchione wrote: > > Hi guys, > Suppose I have something like the following: > > (define (f g . args) > (apply g args)) > > How would I be able to pass keyword arguments to g? After racking my brains for the common lisp and googling for the

[racket-users] [racket ursers] Keyword question

2019-08-22 Thread Kevin Forchione
Hi guys, Suppose I have something like the following: (define (f g . args) (apply g args)) How would I be able to pass keyword arguments to g? Kevin -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and

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

2019-08-22 Thread Stephen Foster
By the way, Paulo: I'm happy to help with this (if you want). I can either put in some person-hours to get/install the certificate; and/or help purchase a new one. On a related note, a meta question for the community: Do we have any infrastructures in place to help financially support

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

2019-08-21 Thread Annaia Berry
the SSL cert seems to have expired the other day. On Wed, Aug 21, 2019 at 8:37 PM Stephen Foster wrote: > My browser is telling me that the SSL certificate for racket-news.com is > invalid. > Is it just me? > > On Monday, August 19, 2019 at 7:54:54 AM UTC-7, Stephen De Gabrielle wrote: >> >>

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

2019-08-21 Thread Stephen Foster
My browser is telling me that the SSL certificate for racket-news.com is invalid. Is it just me? On Monday, August 19, 2019 at 7:54:54 AM UTC-7, Stephen De Gabrielle wrote: > > Thank you Paulo! > Another awesome issue of Racket News. > > S. > > > > > On Fri, Aug 16, 2019 at 9:49 PM Paulo

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

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

[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”))

[racket-users] Racket News - Issue 14

2019-08-16 Thread Paulo Matos
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 subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [racket-users] Racket Jupyter/nextJournal

2019-08-14 Thread Ryan Culpepper
On 8/14/19 2:57 PM, tbrooke wrote: There has been some discussion about Racket on Jupyter. nextJournal is a fairly new project for hosted notebooks that is written in Clojure and has support for Clojure as well as several other languages. In addition to Clojure they have templates for Julia, 

[racket-users] Racket Jupyter/nextJournal

2019-08-14 Thread tbrooke
There has been some discussion about Racket on Jupyter. nextJournal is a fairly new project for hosted notebooks that is written in Clojure and has support for Clojure as well as several other languages. In addition to Clojure they have templates for Julia, Haskell, and Scala and they support

[racket-users] Racket CS Profiler

2019-08-09 Thread Anurag Mendhekar
Does the profiler work as expected in Racket CS? I'm getting the total time taken, but the detailed profile has little useful information. If not, Is there a way to get better profiling information in CS? Best, Anurag. -- You received this message because you are subscribed to the Google

Re: [racket-users] Racket v7.4

2019-08-09 Thread Bruce O'Neel
Hi, Fantastic! It looks as if the CS builds are only x86-64, right?  Are there plans to add others, say arm32 and arm64? Thanks very much. cheers bruce > Racket version 7.4 is now available from > > [https://racket-lang.org/](https://racket-lang.org/) > >

[racket-users] Racket featured in LWN

2019-08-09 Thread Alexander Shopov
This week's edition of Linux Weekly News features an article about Racket by Jake Edge: Racket: Lisp for learning Have a look: https://lwn.net/SubscriberLink/795385/2fe3529b76fae7c9/ Kind regards: al_shopov -- You received this message because you are subscribed to the Google Groups "Racket

[racket-users] Racket v7.4

2019-08-08 Thread 'John Clements' via users-redirect
Racket version 7.4 is now available from https://racket-lang.org/ With this 7.4 release, we are making Racket CS available, a beta version of the Racket on Chez Scheme implementation. Racket CS is "beta" quality for the v7.4 release. It works well enough to be worth trying, but there are

Re: [racket-users] [racket users] module question

2019-08-07 Thread Kevin Forchione
> On Aug 7, 2019, at 8:55 AM, Kevin Forchione wrote: > > > >> On Aug 6, 2019, at 4:06 PM, Sorawee Porncharoenwase > > wrote: >> >> (module B racket >> (require (submod ".." A)) >> (printf "X=~a~%" X)) > > Why doesn’t printf display anything ? Oh, wait.

<    1   2   3   4   5   6   7   8   9   10   >