[racket-users] hackernews

2018-12-13 Thread Neil Van Dyke
This might be a bad idea, and normally I disapprove of this sort of 
thing, but... does anyone want to take on the job of RACKET EVANGELISM 
STRIKE FORCE, among a concentration of startup-types and other software 
practitioners?


Specifically, you'd participate regularly in Y Combinator's popular 
"Hacker News" Web forum, "https://news.ycombinator.com/;, and, when the 
not-unusual occasion to mention/show a strength of Racket presents 
itself, do so.


I occasionally see Racket mentioned on HN, but not nearly as often as it 
legitimately could be.


(There are also other strategic targets for the RACKET EVANGELISM STRIKE 
FORCE operator or cell, and I recall Eli Barzilay and others active on a 
lot of them years ago, but HN might be first priority right now.)


--
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.
For more options, visit https://groups.google.com/d/optout.


[racket-users] How to get libsodium-factory on OSX?

2018-12-13 Thread David Storrs
https://docs.racket-lang.org/crypto/factory.html#%28def._%28%28lib._crypto%2Fsodium..rkt%29._sodium-factory%29%29

"Factory for Sodium  (aka libsodium).
This factory does not provide the high-level Sodium APIs; it only provides
access to some of the low-level primitives. The libsodium.so.{23,18}
library is required."

When compiling libsodium on OSX 10.11 I get:

/usr/local/lib/libsodium.23.dylib
/usr/local/lib/libsodium.a
/usr/local/lib/libsodium.dylib -> libsodium.23.dylib
/usr/local/lib/libsodium.la

Unsurprisingly, the Racket crypto library's libsodium-factory is
unavailable, since there's no libsodium.so available.  I get the same
.dylib and .a files if I install via homebrew, except off in
/usr/local/Cellar instead of a standard lib directory.

I've got the library, so is there a way to make crypto notice that fact?

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] Re: Why enter/run a submodule in the REPL?

2018-12-13 Thread Laurent
Personally, I use a 'drracket' submodule so that this submodule isn't
executed from the command line, but gets executed from within DrRacket.
This is particularly useful to avoid outputting graphical objects (such as
plots) that can't be displayed on the command line.

After pressing Run in Dracket, entering the submodule allows me to access
whatever is defined in the submodule from the interactions window.

The 'drracket' submodule is not officially supported, but you can add it
yourself in the "Submodules to run" list in DrRacket.


On Thu, Dec 13, 2018 at 10:28 AM Stephen De Gabrielle <
spdegabrie...@gmail.com> wrote:

> Hi,
>
> I suppose a better question is what do any racketeers use ‘submodules to
> run’ in DrRacket? And if so- what for?
>
> Stephen
>
> On Wed, 12 Dec 2018 at 00:21, Stephen De Gabrielle <
> spdegabrie...@gmail.com> wrote:
>
>> Hi,
>>
>> #lang racket
>> (displayln "This is the main module")
>> (module+ drracket
>>   (define foo 'FOO)
>>   (displayln "This is the drracket submodule"))
>>
>> Execute and DrRacket displays "This is the main module" in the
>> interactions window
>> type
>> (require (only-in racket/enter dynamic-enter!)
>>   (only-in syntax/location quote-module-path))
>> (dynamic-enter! (quote-module-path drracket))
>>
>> and bindings defined in the submodule are then available; e.g.
>> > foo
>> 'FOO
>>
>> Why and how do I use this for interactive development, scripting and
>> debugging?
>>
>> There is also a DrRacket function (Submodules to Run), but I can't find
>> any documentation for it.
>>
>>
>> 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, send an
> email to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] Re: Why enter/run a submodule in the REPL?

2018-12-13 Thread Shu-Hung You
Hi Stephan,

The "submodules to run" drop-down menu lets you choose which
submodules will be executed when you click the "Run" button. For
example, if you have a main submodule and a test submodule, DrRacket
will run those 2 submodules by default. You can avoid running tests in
the test submodule by unselecting it from the "submodules to run"
menu. Similarly, perhaps your main submodule parses the command line
arguments and performs some I/O which you would like to avoid when
doing interactive development and restarts the REPL. That's what I
mostly use that menu for.

AFAIK, there's no support for running a submodule in DrRacket REPL.

Shu-Hung
On Thu, Dec 13, 2018 at 4:28 AM Stephen De Gabrielle
 wrote:
>
> Hi,
>
> I suppose a better question is what do any racketeers use ‘submodules to run’ 
> in DrRacket? And if so- what for?
>
> Stephen
>
> On Wed, 12 Dec 2018 at 00:21, Stephen De Gabrielle  
> wrote:
>>
>> Hi,
>>
>> #lang racket
>> (displayln "This is the main module")
>> (module+ drracket
>>   (define foo 'FOO)
>>   (displayln "This is the drracket submodule"))
>>
>> Execute and DrRacket displays "This is the main module" in the interactions 
>> window
>> type
>> (require (only-in racket/enter dynamic-enter!)
>>   (only-in syntax/location quote-module-path))
>> (dynamic-enter! (quote-module-path drracket))
>>
>> and bindings defined in the submodule are then available; e.g.
>> > foo
>> 'FOO
>>
>> Why and how do I use this for interactive development, scripting and 
>> debugging?
>>
>> There is also a DrRacket function (Submodules to Run), but I can't find any 
>> documentation for it.
>>
>>
>> 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, send an 
> email to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[racket-users] Re: Why enter/run a submodule in the REPL?

2018-12-13 Thread Stephen De Gabrielle
Hi,

I suppose a better question is what do any racketeers use ‘submodules to
run’ in DrRacket? And if so- what for?

Stephen

On Wed, 12 Dec 2018 at 00:21, Stephen De Gabrielle 
wrote:

> Hi,
>
> #lang racket
> (displayln "This is the main module")
> (module+ drracket
>   (define foo 'FOO)
>   (displayln "This is the drracket submodule"))
>
> Execute and DrRacket displays "This is the main module" in the
> interactions window
> type
> (require (only-in racket/enter dynamic-enter!)
>   (only-in syntax/location quote-module-path))
> (dynamic-enter! (quote-module-path drracket))
>
> and bindings defined in the submodule are then available; e.g.
> > foo
> 'FOO
>
> Why and how do I use this for interactive development, scripting and
> debugging?
>
> There is also a DrRacket function (Submodules to Run), but I can't find
> any documentation for it.
>
>
> 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, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.