[racket-users] Test

2021-02-21 Thread 'DE GABRIELLE, Stephen (LONDON NORTH WEST UNIVERSITY HEALTHCARE NHS TRUST)' via Racket Users
Test please ignore

https://github.com/racket/racket-lang-org/issues/154

https://github.com/racket/racket/wiki/Mailing-Lists


Kind Regards

Stephen De Gabrielle




This message may contain confidential information. If you are not the intended 
recipient please inform the
sender that you have received the message in error before deleting it.
Please do not disclose, copy or distribute information in this e-mail or take 
any action in relation to its contents. To do so is strictly prohibited and may 
be unlawful. Thank you for your co-operation.

NHSmail is the secure email and directory service available for all NHS staff 
in England and Scotland. NHSmail is approved for exchanging patient data and 
other sensitive information with NHSmail and other accredited email services.

For more information and to find out how you can switch, 
https://portal.nhs.net/help/joiningnhsmail

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/281CA1AD-E031-4795-B841-F45A3632F579%40nhs.net.


[racket-users] the future of #lang web-server

2021-02-21 Thread je...@lisp.sh
#lang web-server is brilliant. This #lang is, in my view, a really 
excellent example of Racket's take on language-oriented programming. I find 
that the performance of continuations is just fine, given my limited use of 
them, and after a while you get used to the limitations and just program 
around them.

One thing that always bothers me about #lang web-server, though, is that 
there are a lot of provisos in the documentation. I'm talking about section 
3.2, "Usage Considerations", 
of https://docs.racket-lang.org/web-server/stateless.html, in the part 
after "However, there are some considerations you must make." Here a couple 
of questions:

+ " [#lang web-server] will create an immense number of lambdas and 
structures your program did not normally contain. The performance 
implication of this has not been studied with Racket."

This seems to me like an interesting research question. Has this question 
been taken up? I've tried taking a look on Google Scholar for any 
follow-up. I looked at citations of Jay's "Automatically RESTful web 
applications" and "The two-state solution: native and serializable 
continuations accord", but nothing stuck out to me (...which is not to say 
that there may have missed something).

+ Some limitations of #lang web-server seem don't seem obviously necessary, 
at least to someone who's not very familiar with the precise details of the 
underlying program transformations. You get used to them, but you wonder if 
there's some accessible world in which they work. For example: "You may not 
use parameterize 
,
 
because parameterizations are not serializable." Is that inherently so 
(that is, there's no way around that, no matter how clever you tweak the 
program transformations on which #lang web-server rests), or is that just a 
conequence of the particular approach taken (maybe it's possible, but no 
one has done it yet). Has there been any fresh thinking about these 
limitations?

Jesse

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/593786e4-7aca-4fe9-8b29-e58b9ff555dbn%40googlegroups.com.


Re: [racket-users] Re: changing my email address on the package server?

2021-02-21 Thread je...@lisp.sh
On Thursday, December 10, 2020 at 3:06:52 PM UTC+1 jay.mc...@gmail.com 
wrote:

The expected thing for you to do is to
>
> 1. Create a new account
> 2. Add that new account as an author to the packages
> 3. Remove your old account as an author to the packages
>
> If you want, though, I can do a search & replace in the database for you
>

I followed the recipe; it works, thanks! I don't have very many packages, 
so doing shi took only a couple of minutes. No need to do a manual rewrite.

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/88fd944d-c186-4708-a5df-61bada9a47aen%40googlegroups.com.


Re: [racket-users] exporting example code from slideshow documents

2021-02-21 Thread Robby Findler
I often end up writing macros that both quote some code and expand into
that code where the first one is usually via `racket` or one of the
code-rendering libraries, and the second one gets used to write tests for
the code in my slideshow. These tend to be short and fairly ad hoc macros
because I end up customizing them in various ways to support the
presentation. I haven't found an idea for a nice general purpose library
that does this. In the meantime, there's a bare bones example below. I
usually end up starting like that but then doing various fancy things to
support the specific examples in good ways.

hth,
Robby

#lang racket
(require slideshow
 slideshow/code
 syntax/parse/define)
(module+ test (require rackunit))

(define-simple-macro
  (code+run e)
  (values (code e) e))

(define-values (x^2+1-pict x^2+1-func)
  (code+run
   (λ (x)
 (+ (* x x)
1
(module+ test
  (check-equal? (x^2+1-func 0) 1)
  (check-equal? (x^2+1-func -1) 2))

(slide x^2+1-pict)



On Sun, Feb 21, 2021 at 8:05 AM David Bremner  wrote:

>
> I mostly use emacs org-mode documents for making (latex beamer) slide
> decks. This allows me to "tangle" the example code from the slides,
> along with whatever needed supporting material, to generate example
> programs that I can share with students.  Is there a (pre-built?) way to
> do something similar with a #lang slideshow document? I guess in
> principle I could embed my slideshow program in an org-mode document,
> but I wondered if this could be accomplished with racket, and with less
> levels of compiling.
>
> d
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/racket-users/87o8gdplce.fsf%40tethera.net
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CAL3TdOPZPhpfL%3DELhd1k9Z%2B130XDBC7rPcF9%2BE09VA0ei79MkA%40mail.gmail.com.


Re: [racket-users] Finding Module Names

2021-02-21 Thread Jay McCarthy
I think you want to look at either

quote-module-name from
https://docs.racket-lang.org/syntax/Source_Locations.html#%28part._.Quoting%29

or maybe

syntax-source-module
https://docs.racket-lang.org/reference/stxops.html?q=syntax-module#%28def._%28%28quote._~23~25kernel%29._syntax-source-module%29%29

Jay

--
Jay McCarthy
Associate Professor @ CS @ UMass Lowell
http://jeapostrophe.github.io
Vincit qui se vincit.

On Sun, Feb 21, 2021 at 4:54 AM Aaron Eline
 wrote:
>
>
> I was wondering if there was a way to find the name of the current module?
> Trying to write a macro that takes actions based on the module name?
>
> --
> 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 discussion on the web visit 
> https://groups.google.com/d/msgid/racket-users/8d110ed0-3663-45fc-8d93-503fac28c98en%40googlegroups.com.

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CAJYbDanO7%2BMpUAZibZPzW3HFeKXCmy-DQ84EpXz4OZMABGzhcQ%40mail.gmail.com.


[racket-users] exporting example code from slideshow documents

2021-02-21 Thread David Bremner


I mostly use emacs org-mode documents for making (latex beamer) slide
decks. This allows me to "tangle" the example code from the slides,
along with whatever needed supporting material, to generate example
programs that I can share with students.  Is there a (pre-built?) way to
do something similar with a #lang slideshow document? I guess in
principle I could embed my slideshow program in an org-mode document,
but I wondered if this could be accomplished with racket, and with less
levels of compiling.

d

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/87o8gdplce.fsf%40tethera.net.


[racket-users] Finding Module Names

2021-02-21 Thread Aaron Eline

I was wondering if there was a way to find the name of the current module?
Trying to write a macro that takes actions based on the module name?

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/8d110ed0-3663-45fc-8d93-503fac28c98en%40googlegroups.com.