Re: [racket-users] Racket users video meetup

2020-11-15 Thread Stephen De Gabrielle
Thanks John

gather.town refused to work on safari and the error message recommended
chrome.
- I (wrongly) assumed firefox would also fail.


s.

On Sun, Nov 15, 2020 at 1:53 AM John Clements 
wrote:

> Stephen, I’m pretty sure that gather.town works fine with … all major
> browsers? It certainly appears to work fine with Firefox. Apologies if I’m
> misunderstanding something about your message.
>
> John
>
> > On Nov 14, 2020, at 15:57, Stephen De Gabrielle 
> wrote:
> >
> > Racket users video meetup
> >
> > 28 November
> > 30 Minutes
> >
> >   • 11am Pacific Time
> >   • 7pm UK time
> >   • 8pm CET
> > https://gather.town/app/wH1EDG3McffLjrs0/racket-users (Google Chrome
> only)
> > (Chosen because it allows people to break of into groups if required)
> >
> > Agenda
> >
> >   • lightning talks(<5 min) - what have you been working on(optional)
> >   • Paper for discussion:
> > Adding Interactive Visual Syntax to Textual Code by Leif Andersen,
> (OOPSLA 2020)
> > https://arxiv.org/pdf/2010.12695.pdf (pre-reading optional)
> >   • Agree date for next meet-up (every 6-12 weeks?)
> > Kind regards
> >
> > Stephen & Sam Phillips
> >
> >
> > --
> > 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/CAGHj7-K97tyKFfJV5YK1Bv55F5jy8BvW%3DoiUcefNPy2sfeuMoA%40mail.gmail.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/CAGHj7-JMHUZn-3y71oJQB0KAGWs1gNiB7%3DoDhqHigim0gfp%2BGg%40mail.gmail.com.


[racket-users] Website registration broken?

2020-11-15 Thread Daniel Holtby
I've been trying to register on pkgd.racket-lang.org and when requesting a 
registration code, I see this error that appears to be the exception 
handler itself throwing an exception since it's expecting a JSON string but 
given an HTML byte-string?

Exception

The application raised an exception with the message:
string::1: string->jsexpr: bad input starting #"Servlet 
ErrorExceptionThe application raised an exception with 
the message:subprocess: process creation fai...

Stack trace:
-raise-read-error at: line 15, column 2, in file 
/home/pkgserver/racket/collects/syntax/readerr.rkt  at: 
line 17, column 0, in file 
/home/pkgserver/racket-pkg-website/src/json-rpc.rkt notify-of-emailing at: 
line 471, column 0, in file /home/pkgserver/racket-pkg-website/src/site.rkt 
login-or-register-flow* at: line 316, column 0, in file 
/home/pkgserver/racket-pkg-website/src/site.rkt  at: 
line 375, column 33, in file 
/home/pkgserver/racket/collects/racket/contract/private/arrow-higher-order.rkt 

Sometimes it does appear to work though, but I don't receive an email.

The website doesn't appear to have any webmaster contact information so I 
thought I'd ask here.

-- 
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/13030dde-c0c3-4967-a79f-a30ea5d3699fn%40googlegroups.com.


Re: [racket-users] Namespaces and modules

2020-11-15 Thread Philip McGrath
I think you’ll need `define-runtime-module-path` or
`define-runtime-module-path-index` to alert the executable builder to the
dynamic dependency.

On Sun, Nov 15, 2020 at 3:38 AM Dominik Pantůček <
dominik.pantu...@trustica.cz> wrote:

>
> >
> > Using ''sandbox as an argument to `namespace-require` to refer to a
> > local module is something like passing 'x to `eval` to try to refer to
> > a local variable `x`. The `namespace-require` procedure doesn't know
> > where it's being called from, so it doesn't work.
> >
> > Try `quote-module-path`, which expands at compile time to effectively
> > embed its context:
> >
> >  #lang racket/base
> >  (require syntax/location)
> >
> >  (module sandbox racket/base
> >(provide #%app #%datum test)
> >(define (test) (displayln 'test)))
> >
> >  (parameterize ((current-namespace (make-base-empty-namespace)))
> >(namespace-require (quote-module-path sandbox))
> >(eval '(test)))
> >
>
> This is exactly what I was looking for! Thank you. It's a pity I didn't
> ask in the past :)
>
> However, now I see a problem with creating executables with raco exe.
>
> MWE follows.
>
>  test-submod.rkt
> #lang racket
>
> (require syntax/location)
>
> (module my-dsl racket/base
>
>   (provide #%app my-proc)
>
>   (define (my-proc)
> (displayln "my-dsl/my-proc")))
>
> (define (parse sexp)
>   (parameterize ((current-namespace (make-base-empty-namespace)))
> (namespace-require (quote-module-path my-dsl))
> (eval sexp)))
>
>
> (parse '(my-proc))
> 
>
> And then:
>
> $ ../racket-lang/racket/racket/bin/racket --version
> Welcome to Racket v7.9.0.4 [cs].
> $ ../racket-lang/racket/racket/bin/racket test-submod.rkt
> my-dsl/my-proc
> $ ../racket-lang/racket/racket/bin/raco exe test-submod.rkt
> $ ./test-submod
> require: unknown module
>   module name: (submod '#%mzc:test-submod my-dsl)
>   context...:
>.../TD4/test-submod.rkt:12:0: parse
>body of '#%mzc:test-submod
> $
>
> When parsed, compiled and run using racket binary, it works as expected.
> When parsed and compiled using raco exe, it succeeds without any error
> and the resulting binary give aforementioned error.
>
> Any idea where did I get it wrong?
>
>
> Dominik
>
> --
> 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/d357eb72-0647-d542-5148-852b9e62c2a2%40trustica.cz
> .
>
-- 
-Philip

-- 
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/01000175cd1985dd-8b6d9cec-b745-4479-a3db-b092fd340434-00%40email.amazonses.com.


Re: [racket-users] Spell checking in DrRacket for Windows

2020-11-15 Thread Robby Findler
Two thoughts: after installing ispell, did they restart DrRacket? In their
shell, when they install ispell, what path is located at? (The second
question is because the normal way one starts up DrRacket, it does not
inherit the PATH settings that one gets in the Terminal window, so DrRacket
has to have a list of likely places to look and it may be missing one or
two or a dozen for all I know. :)

Robby



On Sun, Nov 15, 2020 at 9:57 AM Rebelsky, Samuel 
wrote:

> Dear Racket Community,
>
> One of my students is running DrRacket on Windows and getting a strange
> error message when they try to use the spell checker.  They report "It says
> something about needing ispell or aspell.  But when I install aspell, it
> still doesn't work."
>
> I'm on a Mac and don't encounter the same roblems.  And I'll admit that I
> don't use Windows.  Does anyone have a recommendation on how to solve this
> problem?  My quick Web search didn't reveal anything.  (The student didn't
> like my suggestion that they install Linux on their computer and use the
> DrRacket on Linux.)
>
> Thanks!
>
> -- SamR
>
> Samuel A. Rebelsky - He/Him/His (
> http://www.cs.grinnell.edu/~rebelsky/pronouns.html)
> Professor and Chair of CS, Grinnell College
>
> --
> 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/72615CF2-03D3-4F4F-96EC-FAD58A18A5FF%40grinnell.edu
> .
>

-- 
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/CAL3TdONaNcW--GeE6nP1NPVm%2BKdvKZcgS4FCecRPPR3sDc%2B7Bw%40mail.gmail.com.


[racket-users] Spell checking in DrRacket for Windows

2020-11-15 Thread Rebelsky, Samuel
Dear Racket Community,

One of my students is running DrRacket on Windows and getting a strange error 
message when they try to use the spell checker.  They report "It says something 
about needing ispell or aspell.  But when I install aspell, it still doesn't 
work."

I'm on a Mac and don't encounter the same roblems.  And I'll admit that I don't 
use Windows.  Does anyone have a recommendation on how to solve this problem?  
My quick Web search didn't reveal anything.  (The student didn't like my 
suggestion that they install Linux on their computer and use the DrRacket on 
Linux.)

Thanks!

-- SamR

Samuel A. Rebelsky - He/Him/His 
(http://www.cs.grinnell.edu/~rebelsky/pronouns.html)
Professor and Chair of CS, Grinnell College

-- 
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/72615CF2-03D3-4F4F-96EC-FAD58A18A5FF%40grinnell.edu.


Re: [racket-users] Namespaces and modules

2020-11-15 Thread Dominik Pantůček


> 
> Using ''sandbox as an argument to `namespace-require` to refer to a
> local module is something like passing 'x to `eval` to try to refer to
> a local variable `x`. The `namespace-require` procedure doesn't know
> where it's being called from, so it doesn't work.
> 
> Try `quote-module-path`, which expands at compile time to effectively
> embed its context:
> 
>  #lang racket/base
>  (require syntax/location)
> 
>  (module sandbox racket/base
>(provide #%app #%datum test)
>(define (test) (displayln 'test)))
> 
>  (parameterize ((current-namespace (make-base-empty-namespace)))
>(namespace-require (quote-module-path sandbox))
>(eval '(test)))
> 

This is exactly what I was looking for! Thank you. It's a pity I didn't
ask in the past :)

However, now I see a problem with creating executables with raco exe.

MWE follows.

 test-submod.rkt
#lang racket

(require syntax/location)

(module my-dsl racket/base

  (provide #%app my-proc)

  (define (my-proc)
(displayln "my-dsl/my-proc")))

(define (parse sexp)
  (parameterize ((current-namespace (make-base-empty-namespace)))
(namespace-require (quote-module-path my-dsl))
(eval sexp)))


(parse '(my-proc))


And then:

$ ../racket-lang/racket/racket/bin/racket --version
Welcome to Racket v7.9.0.4 [cs].
$ ../racket-lang/racket/racket/bin/racket test-submod.rkt
my-dsl/my-proc
$ ../racket-lang/racket/racket/bin/raco exe test-submod.rkt
$ ./test-submod
require: unknown module
  module name: (submod '#%mzc:test-submod my-dsl)
  context...:
   .../TD4/test-submod.rkt:12:0: parse
   body of '#%mzc:test-submod
$

When parsed, compiled and run using racket binary, it works as expected.
When parsed and compiled using raco exe, it succeeds without any error
and the resulting binary give aforementioned error.

Any idea where did I get it wrong?


Dominik

-- 
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/d357eb72-0647-d542-5148-852b9e62c2a2%40trustica.cz.