[racket-users] Are there interfaces for IP ports at least raw sockets?

2020-04-09 Thread Tony Garnock-Jones
If you've not already seen and considered it, 
https://github.com/tonyg/racket-packet-socket might be worth a look.

Regards,
Tony

-- 
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/c3279ae2-f960-406f-a74a-57ea1d12ac9c%40googlegroups.com.


Re: [racket-users] Examples of sending HTML email w/ Racket?

2020-04-09 Thread Philip McGrath
I put up an example taken from my code for Digital Ricoeur in response to
an old mailing list thread
. It
is not ready for general-purpose use—in particular, I basically only have
to deal with trusted input—but here it is:
https://github.com/LiberalArtist/multipart-writing-examples

That thread also has some discussion about what a good package might want
to address and some slightly annoying differences between "normal" mime and
"multipart/form-data" used for web forms.

-Philip


On Thu, Apr 9, 2020 at 10:25 AM Matthew Flatt  wrote:

> At Thu, 9 Apr 2020 07:09:21 -0700 (PDT), Brian Adkins wrote:
> > I looked at the net/mime library, but, as the title of the doc page
> > suggests, it seemed to only be about decoding, not creating:
> >
> > https://docs.racket-lang.org/net/mime.html?q=net%2Fmime
>
> Ah, right. I think I've made this mistake before.
>
>
> Encoding is be built into SirMail (very old code):
>
>  https://github.com/mflatt/sirmail/blob/master/sirmail/sendr.rkt#L136
>
> It would make sense to have a better version of this in a package, of
> course.
>
> --
> 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/5e8f303a.1c69fb81.69759.d940SMTPIN_ADDED_MISSING%40gmr-mx.google.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/CAH3z3gaDENPvEyzQ5jgD1ymm4Vep22kYSiTf2PNtDvLvQrTfOA%40mail.gmail.com.


Re: [racket-users] Error loading libreadline dll when using readline package

2020-04-09 Thread K H
Thanks for the info, Matthew,

On Thu, Apr 9, 2020 at 7:02 AM Matthew Flatt  wrote:

> I think you probably have the "readline-gpl" package installed. That's
> where the "libreadline-5.dll" comes from in "private/readline-lib.rkt":
>
>
Yes. Prior to installing readline-gpl the file not found was
"libreadline-3.dll". The error message change from "-3.dll" to "-5.dll"
surprised me, and gave me hope that I was going in the right direction ...


>  (define readline-library (ffi-lib "libreadline" '("5" "6" "4" "")))
>

I eventually found that line in ./7.6/share/readline-lib.rkt in the
directory given by (find-config-dir) and was wondering about the ordering.
Is 5,6,4 deliberate, or a typo and really should be 6,5,4?

>
> Even if "7" were added to that list, `ffi-lib` assumes a versioning
> convention that adds "-".
>

I added the "7" and of course discovered discovered the need for "-".

Would "bad things happen" if 'ffi-lib' (actually 'get-ffi-lib' in
ffi/unsafe.rkt) were changed to look for both "-" and no separator? i.e.
look for "-.dll" then ".dll"? Is there a standard for
the hyphen before the version that the cygwin package is breaking?

>
> One solution is to set the
>
>   PLT_READLINE_LIB
>
> environment variable to point to the full path of "libreadline7.dll".
> Note that it will need to be a Windows path, though, not a Cygwin path.
>

Shortly after first posting I discovered PLT_READLINE_LIB.

In a cygwin session, adding the location of "libreadline7.dll" to the path,
and then setting PLT_READLINE_LIB was necessary only once. Subsequent
sessions apparently do not necessarily need the environment variable to be
set in order to find and load the ".dll". Is there some cache that is being
used once the ".dll" has been found and loaded the first time?

>
> Or you could also try copying "libreadline7.dll" to "libreadline.dll"
> (no "7") in the Racket's "lib" directory, but that probably won't work
> if "libreadline7.dll" depends on other libraries. And there's a
> question of whether a Cygwin libreadline will work at all when loaded
> into non-Cygwin Racket. It may work better to get another version of
> the libreadline DLL from somewhere and drop it into Racket's "lib"
> directory.
>

I'm not sure what to expect in a windows (i.e. non-cygwin) session. Indeed
I seem to be experiencing weird and inconsistent behaviour, and perhaps
need to experiment with minGW.

Cheers,

Kieron.


At Thu, 9 Apr 2020 00:49:11 -0600, K H wrote:
> > I'm running on cygwin on Windows 7 and I have the following error when
> > attempting to use the readline package:
> >
> > $ racket -il readline
> > Welcome to Racket v7.6.
> > ffi-lib: couldn't open "libreadline-5.dll" (The specified module could
> not
> > be found.; errid=126)
> > > ,ex
> >
> > I get the same error either from a cygwin bash prompt or from a windows
> cmd
> > shell prompt.
> >
> > The gnu readline installed appears to be at version 7.
> >
> > $ ls -l /usr/x86_64-w64-mingw32/sys-root/mingw/bin/libread*
> > -rwxr-xr-x  /usr/x86_64-w64-mingw32/sys-root/mingw/bin/libreadline7.dll
> >
> > The source at ./share/pkgs/readline-lib/readline/rktrl.rkt seems relevant
> > but I'm not smart enough to figure out exactly what is wrong.
> >
> > Any ideas on how to continue to debug this?
> >
> > Thanks in advance,
> >
> > Kieron.
> >
> > --
> > 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/CAEEP09AXB4aJecs7eskog-RSDoyEeSW
> > z5P_%2B8f4z%2B8%3DS7jEz%3Dw%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/5e8f1cdf.1c69fb81.135cf.f180SMTPIN_ADDED_MISSING%40gmr-mx.google.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/CAEEP09ApsJnoLvh5rVG7td38yKia9faaF_85jwZ_pHpaO58iWg%40mail.gmail.com.


Re: [racket-users] rename-in issue

2020-04-09 Thread Lucas Liendo
Thanks all for the suggestions and for pointing out that
`interface-version` was the conflict, I didn't carefully read the
message and assumed `make` was the culprit!

On Thu, Apr 9, 2020 at 10:33 PM Bogdan Popa  wrote:
>
> I'd recommend using `prefix-in' with the dispatcher modules, as that
> avoids these types of issues altogether:
>
> (require (prefix-in files: web-server/dispatchers/dispatch-files)
>  (prefix-in sequencer: web-server/dispatchers/dispatch-sequencer))
>
> (sequencer:make
>  (files:make ...)
>  ...)
>
> Sorawee Porncharoenwase writes:
>
> > There are two colliding names. make and interface-version. As shown in the
> > error message, you fixed one but not the other.
> >
> > (require net/url
> >  web-server/dispatchers/filesystem-map
> >  web-server/dispatchers/dispatch-files
> >  (rename-in web-server/dispatchers/dispatch-sequencer
> > [make make*]
> > [interface-version interface-version*]))
> >
> > works for me.
> >
> > On Thu, Apr 9, 2020 at 2:04 AM Lucas Liendo  wrote:
> >
> >> Hi everyone! I've a very dumb question (as still not very experienced
> >> Racket programmer), I'm doing the following:
> >>
> >> (require net/url
> >>  web-server/dispatchers/filesystem-map
> >>  (rename-in web-server/dispatchers/dispatch-files
> >> (make dispatch-files))
> >>  (rename-in web-server/dispatchers/dispatch-sequencer
> >> (make dispatch-sequencer)))
> >>
> >> As you can see `make` is defined both in
> >> `web-server/dispatchers/dispatch-files` and
> >> `web-server/dispatchers/dispatch-sequencer` and I think that's the
> >> reason for this error:
> >>
> >> /tmp/rename-example.rkt:7:20: module: identifier already required
> >>   at: interface-version
> >>   in: web-server/dispatchers/dispatch-sequencer
> >>   location...:
> >>/tmp/rename-example.rkt:7:20
> >>
> >> Traceback continues but I think that's enough. So is there a
> >> workaround to this? I'd really like to do a rename instead of using
> >> `prefix-in`. Shouldn't this error not happen as it defeats `rename-in`
> >> purpose at all?
> >>
> >> --
> >> Cheers,
> >> Lucas.
> >>
> >> --
> >> 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/CABCAxXuZmGguei3gsfeVOcWUHZP52JR0ciULo%3DeFKGraNqADAA%40mail.gmail.com
> >> .
> >>



-- 
Cheers,
Lucas.

Radar : http://radar-monitoring.readthedocs.org/en/latest/index.html

-- 
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/CABCAxXt7%3DjqLH8viyeVL85vH5%3DLu34MQy-qbeqq-4e8yh-oP2g%40mail.gmail.com.


Re: [racket-users] Examples of sending HTML email w/ Racket?

2020-04-09 Thread Matthew Flatt
At Thu, 9 Apr 2020 07:09:21 -0700 (PDT), Brian Adkins wrote:
> I looked at the net/mime library, but, as the title of the doc page 
> suggests, it seemed to only be about decoding, not creating:
> 
> https://docs.racket-lang.org/net/mime.html?q=net%2Fmime

Ah, right. I think I've made this mistake before.


Encoding is be built into SirMail (very old code):

 https://github.com/mflatt/sirmail/blob/master/sirmail/sendr.rkt#L136

It would make sense to have a better version of this in a package, of
course.

-- 
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/5e8f303a.1c69fb81.69759.d940SMTPIN_ADDED_MISSING%40gmr-mx.google.com.


Re: [racket-users] Examples of sending HTML email w/ Racket?

2020-04-09 Thread Brian Adkins
On Thursday, April 9, 2020 at 8:47:09 AM UTC-4, Matthew Flatt wrote:
>
> At Wed, 8 Apr 2020 21:28:11 -0400, George Neuner wrote: 
> > There's nothing in Racket for MIME that I'm aware of 
>
> There's a `net/mime` library. 
>
> I'm replying with an attachment so you can see what it generates, since 
> my email client uses that library. 
>
>
> Matthew 
>

I looked at the net/mime library, but, as the title of the doc page 
suggests, it seemed to only be about decoding, not creating:

https://docs.racket-lang.org/net/mime.html?q=net%2Fmime

Are the functions for creating multipart email messages documented 
elsewhere?

Thanks,
Brian

-- 
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/a80d82e5-17f4-4e5e-b41b-4a809a6bd954%40googlegroups.com.


Re: [racket-users] Error loading libreadline dll when using readline package

2020-04-09 Thread Matthew Flatt
I think you probably have the "readline-gpl" package installed. That's
where the "libreadline-5.dll" comes from in "private/readline-lib.rkt":

 (define readline-library (ffi-lib "libreadline" '("5" "6" "4" "")))

Even if "7" were added to that list, `ffi-lib` assumes a versioning
convention that adds "-".

One solution is to set the

  PLT_READLINE_LIB

environment variable to point to the full path of "libreadline7.dll".
Note that it will need to be a Windows path, though, not a Cygwin path.

Or you could also try copying "libreadline7.dll" to "libreadline.dll"
(no "7") in the Racket's "lib" directory, but that probably won't work
if "libreadline7.dll" depends on other libraries. And there's a
question of whether a Cygwin libreadline will work at all when loaded
into non-Cygwin Racket. It may work better to get another version of
the libreadline DLL from somewhere and drop it into Racket's "lib"
directory.

At Thu, 9 Apr 2020 00:49:11 -0600, K H wrote:
> I'm running on cygwin on Windows 7 and I have the following error when
> attempting to use the readline package:
> 
> $ racket -il readline
> Welcome to Racket v7.6.
> ffi-lib: couldn't open "libreadline-5.dll" (The specified module could not
> be found.; errid=126)
> > ,ex
> 
> I get the same error either from a cygwin bash prompt or from a windows cmd
> shell prompt.
> 
> The gnu readline installed appears to be at version 7.
> 
> $ ls -l /usr/x86_64-w64-mingw32/sys-root/mingw/bin/libread*
> -rwxr-xr-x  /usr/x86_64-w64-mingw32/sys-root/mingw/bin/libreadline7.dll
> 
> The source at ./share/pkgs/readline-lib/readline/rktrl.rkt seems relevant
> but I'm not smart enough to figure out exactly what is wrong.
> 
> Any ideas on how to continue to debug this?
> 
> Thanks in advance,
> 
> Kieron.
> 
> -- 
> 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/CAEEP09AXB4aJecs7eskog-RSDoyEeSW
> z5P_%2B8f4z%2B8%3DS7jEz%3Dw%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/5e8f1cdf.1c69fb81.135cf.f180SMTPIN_ADDED_MISSING%40gmr-mx.google.com.


Re: [racket-users] Examples of sending HTML email w/ Racket?

2020-04-09 Thread Matthew Flatt
At Wed, 8 Apr 2020 21:28:11 -0400, George Neuner wrote:
> There's nothing in Racket for MIME that I'm aware of

There's a `net/mime` library.

I'm replying with an attachment so you can see what it generates, since
my email client uses that library.


Matthew

-- 
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/5e8f1949.1c69fb81.5d1a9.7638SMTPIN_ADDED_MISSING%40gmr-mx.google.com.


Re: [racket-users] Examples of sending HTML email w/ Racket?

2020-04-09 Thread Hendrik Boom
On Wed, Apr 08, 2020 at 09:28:11PM -0400, George Neuner wrote:

> 
> There's nothing in Racket for MIME that I'm aware of ... but then multipart
> formatting is needed only for multi-version messages, or for embedding
> non-text data (graphics, etc.) into a message.   Since so many people read
> mail in web browsers, and most offline clients handle HTML, I don't think
> many people even bother with multi-version messages any more.  Sending plain
> HTML is as easy as sending plain text.

But receiving HTML has security issues.  I prefer to avoid it.

I rarely read the HTML parts of multi-version messages.

-- hendrik

-- 
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/20200409123948.pwrihetsjqxwwwgt%40topoi.pooq.com.


Re: [racket-users] rename-in issue

2020-04-09 Thread Bogdan Popa
I'd recommend using `prefix-in' with the dispatcher modules, as that
avoids these types of issues altogether:

(require (prefix-in files: web-server/dispatchers/dispatch-files)
 (prefix-in sequencer: web-server/dispatchers/dispatch-sequencer))

(sequencer:make
 (files:make ...)
 ...)

Sorawee Porncharoenwase writes:

> There are two colliding names. make and interface-version. As shown in the
> error message, you fixed one but not the other.
>
> (require net/url
>  web-server/dispatchers/filesystem-map
>  web-server/dispatchers/dispatch-files
>  (rename-in web-server/dispatchers/dispatch-sequencer
> [make make*]
> [interface-version interface-version*]))
>
> works for me.
>
> On Thu, Apr 9, 2020 at 2:04 AM Lucas Liendo  wrote:
>
>> Hi everyone! I've a very dumb question (as still not very experienced
>> Racket programmer), I'm doing the following:
>>
>> (require net/url
>>  web-server/dispatchers/filesystem-map
>>  (rename-in web-server/dispatchers/dispatch-files
>> (make dispatch-files))
>>  (rename-in web-server/dispatchers/dispatch-sequencer
>> (make dispatch-sequencer)))
>>
>> As you can see `make` is defined both in
>> `web-server/dispatchers/dispatch-files` and
>> `web-server/dispatchers/dispatch-sequencer` and I think that's the
>> reason for this error:
>>
>> /tmp/rename-example.rkt:7:20: module: identifier already required
>>   at: interface-version
>>   in: web-server/dispatchers/dispatch-sequencer
>>   location...:
>>/tmp/rename-example.rkt:7:20
>>
>> Traceback continues but I think that's enough. So is there a
>> workaround to this? I'd really like to do a rename instead of using
>> `prefix-in`. Shouldn't this error not happen as it defeats `rename-in`
>> purpose at all?
>>
>> --
>> Cheers,
>> Lucas.
>>
>> --
>> 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/CABCAxXuZmGguei3gsfeVOcWUHZP52JR0ciULo%3DeFKGraNqADAA%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/m27dyorg7s.fsf%40192.168.0.142.


Re: [racket-users] rename-in issue

2020-04-09 Thread Jens Axel Søgaard
Den tor. 9. apr. 2020 kl. 11.04 skrev Lucas Liendo :

> Hi everyone! I've a very dumb question (as still not very experienced
> Racket programmer), I'm doing the following:
>
> (require net/url
>  web-server/dispatchers/filesystem-map
>  (rename-in web-server/dispatchers/dispatch-files
> (make dispatch-files))
>  (rename-in web-server/dispatchers/dispatch-sequencer
> (make dispatch-sequencer)))
>
> As you can see `make` is defined both in
> `web-server/dispatchers/dispatch-files` and
> `web-server/dispatchers/dispatch-sequencer` and I think that's the
> reason for this error:
>
> /tmp/rename-example.rkt:7:20: module: identifier already required
>   at: interface-version
>

This shows that interface-version is the (new) cultprit.
You can rename it to avoid a collision - or if you don't need it, you can
simply omit it:

#lang racket
(require net/url
 web-server/dispatchers/filesystem-map
 (rename-in web-server/dispatchers/dispatch-files
(make dispatch-files))
 (except-in (rename-in web-server/dispatchers/dispatch-sequencer
   (make dispatch-sequencer))
interface-version))


/Jens Axel
https://racket-stories.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/CABefVgx3Qv72EGM%3DfzKK1rNrcCmnoCVy5%2BQxpPGH5HPusB%3D5bw%40mail.gmail.com.


Re: [racket-users] rename-in issue

2020-04-09 Thread Sorawee Porncharoenwase
There are two colliding names. make and interface-version. As shown in the
error message, you fixed one but not the other.

(require net/url
 web-server/dispatchers/filesystem-map
 web-server/dispatchers/dispatch-files
 (rename-in web-server/dispatchers/dispatch-sequencer
[make make*]
[interface-version interface-version*]))

works for me.

On Thu, Apr 9, 2020 at 2:04 AM Lucas Liendo  wrote:

> Hi everyone! I've a very dumb question (as still not very experienced
> Racket programmer), I'm doing the following:
>
> (require net/url
>  web-server/dispatchers/filesystem-map
>  (rename-in web-server/dispatchers/dispatch-files
> (make dispatch-files))
>  (rename-in web-server/dispatchers/dispatch-sequencer
> (make dispatch-sequencer)))
>
> As you can see `make` is defined both in
> `web-server/dispatchers/dispatch-files` and
> `web-server/dispatchers/dispatch-sequencer` and I think that's the
> reason for this error:
>
> /tmp/rename-example.rkt:7:20: module: identifier already required
>   at: interface-version
>   in: web-server/dispatchers/dispatch-sequencer
>   location...:
>/tmp/rename-example.rkt:7:20
>
> Traceback continues but I think that's enough. So is there a
> workaround to this? I'd really like to do a rename instead of using
> `prefix-in`. Shouldn't this error not happen as it defeats `rename-in`
> purpose at all?
>
> --
> Cheers,
> Lucas.
>
> --
> 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/CABCAxXuZmGguei3gsfeVOcWUHZP52JR0ciULo%3DeFKGraNqADAA%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/CADcuegsuAgWqQ5NJX94NastjC%2BJSo6MS2-NydTSc56dC__6wvg%40mail.gmail.com.


[racket-users] rename-in issue

2020-04-09 Thread Lucas Liendo
Hi everyone! I've a very dumb question (as still not very experienced
Racket programmer), I'm doing the following:

(require net/url
 web-server/dispatchers/filesystem-map
 (rename-in web-server/dispatchers/dispatch-files
(make dispatch-files))
 (rename-in web-server/dispatchers/dispatch-sequencer
(make dispatch-sequencer)))

As you can see `make` is defined both in
`web-server/dispatchers/dispatch-files` and
`web-server/dispatchers/dispatch-sequencer` and I think that's the
reason for this error:

/tmp/rename-example.rkt:7:20: module: identifier already required
  at: interface-version
  in: web-server/dispatchers/dispatch-sequencer
  location...:
   /tmp/rename-example.rkt:7:20

Traceback continues but I think that's enough. So is there a
workaround to this? I'd really like to do a rename instead of using
`prefix-in`. Shouldn't this error not happen as it defeats `rename-in`
purpose at all?

--
Cheers,
Lucas.

-- 
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/CABCAxXuZmGguei3gsfeVOcWUHZP52JR0ciULo%3DeFKGraNqADAA%40mail.gmail.com.


[racket-users] Error loading libreadline dll when using readline package

2020-04-09 Thread K H
I'm running on cygwin on Windows 7 and I have the following error when
attempting to use the readline package:

$ racket -il readline
Welcome to Racket v7.6.
ffi-lib: couldn't open "libreadline-5.dll" (The specified module could not
be found.; errid=126)
> ,ex

I get the same error either from a cygwin bash prompt or from a windows cmd
shell prompt.

The gnu readline installed appears to be at version 7.

$ ls -l /usr/x86_64-w64-mingw32/sys-root/mingw/bin/libread*
-rwxr-xr-x  /usr/x86_64-w64-mingw32/sys-root/mingw/bin/libreadline7.dll

The source at ./share/pkgs/readline-lib/readline/rktrl.rkt seems relevant
but I'm not smart enough to figure out exactly what is wrong.

Any ideas on how to continue to debug this?

Thanks in advance,

Kieron.

-- 
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/CAEEP09AXB4aJecs7eskog-RSDoyEeSWz5P_%2B8f4z%2B8%3DS7jEz%3Dw%40mail.gmail.com.


[racket-users] plotting multiple data sets on one set of axes

2020-04-09 Thread greadey
Hi All,

Can anyone give me some pointers on plotting multiple data sets on one set 
of axes.  Plotting two or more data sets on one set of axes is easy if you 
know in advance what the data is called;

(plot (list
  (lines set1)
  (points set2))
 #:x-label "x" #:y-label "y")

however I have a list of data sets generated from reading a bunch of files 
in a directory and I wish to loop through the list and add each data-set to 
an existing set of axes.

Iterating through the data and plotting each set results in multiple plot 
windows.

In summary I am looking for something similar to Matlab's "hold on" e.g.

;Pseudo Matlab code

figure()
for idx = 1 : numel(list-of (list-of vector-pairs))
plot(list-of (list-of vector-pairs))(idx)
hold on
end
hold off

I have got (plot-new-window? #t), however as far as I know this is just 
causing a plot to appear in a new window rather than directly in the repl.

Many thanks,

greadey.

-- 
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/a16546e5-4bc9-4a96-a9b3-1ee28c65b06a%40googlegroups.com.