Re: [racket-users] Mann-Whitney test?

2017-01-24 Thread Mitchell Wand
Yo!  This conversation has gone seriously off-topic.  Can y'all carry it on
with some other subject line?
--Mitch

On Tue, Jan 24, 2017 at 11:38 AM, Tim Chase  wrote:

> Here is an interesting alternative: https://www.opencpu.org.
>
> You communicate with R processes via JSON. So, you wouldn't want a lot of
> back-and-forth, but I can see doing some setup logic and data prep in
> Racket, then sending off the JSON request, then interpreting the results.
> OpenCPU happens to be R in the middle right now, but as far as Racket is
> concerned, it is a black box that takes in JSON and returns JSON.
>
>
> On Monday, January 23, 2017 at 1:23:01 PM UTC-5, Leif Andersen wrote:
> > You _could_ use the FFI, but you'd have to use the Racket FFI to go to
> C, and then use R's FFI to go to C, and then coerce all of R's data to
> Racket and all of Racket's data back to R.
> >
> > Because of this (provided no one makes a #lang R first ;)  ), I think it
> would be easier to just spawn up a new R process using something like
> system* or process, and use pipes to send data back and forth directly.
> Yes, all of the data would need to be serialized into streams, but you
> would do an analogous process going from R to C to Racket.
> >
> >
> >
> >
> >
> >
> >
> > ~Leif Andersen
> >
> >
> > On Sun, Jan 22, 2017 at 12:19 AM, James  wrote:
> >
> >
> > > Does anybody have an implementation of the Mann-Whitney U test (or the
> equivalent Wilcoxson Rank test) in Racket?  I imagine I could easily hack
> up my own, but somebody else may have done a better job of it already.
> >
> >
> >
> > I see that no one has answered this question yet.  This is something
> which I would do and have done in R.  So this brings me to a question I was
> going to ask anyway which is how to do multi-language development including
> Racket and R.  Would it be FFI from Racket to R?  I already have a body of
> R code of my own which I would like to be able to call from Racket.  The
> general idea is that It would be an application where things like the GUI
> and networking elements are done in Racket but computations are done in R.
> >
> >
> >
> > James
> >
> >
> >
> >
> >
> > --
> >
> > 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...@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] testing for timeout in Rackunit?

2016-08-18 Thread Mitchell Wand
Of course you can't test for non-termination, but is there a relatively simple 
way to write something like

(check-doesnt-terminate-quickly  )

which would fail if the thunk terminates within the time limit, and succeeds 
otherwise?  

This would be useful in testing expressions that are claimed not to terminate.

For this use case, it doesn't matter if the time limit is only approximate.

--Mitch

-- 
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] testing for timeout in Rackunit?

2016-08-19 Thread Mitchell Wand
Thanks!  You guys are better than a manual.  --Mitch

On Thu, Aug 18, 2016 at 7:56 PM, Ben Greenman <benjaminlgreen...@gmail.com>
wrote:

> Also try `call-with-limits` from racket/sandbox
> http://docs.racket-lang.org/reference/Sandboxed_
> Evaluation.html#%28def._%28%28lib._racket%2Fsandbox..rkt%
> 29._call-with-limits%29%29
>
> On Thu, Aug 18, 2016 at 6:37 PM, Matthias Felleisen <matth...@ccs.neu.edu>
> wrote:
>
>>
>> Do you mean something like this:
>>
>>
>> (define time-limit .1)
>>
>> (define-syntax-rule
>>   (check-termination e)
>>   (check-false (false? (sync/timeout time-limit (thread (λ () (list
>> e)))
>>
>> (check-termination (+ 1 1))
>> (check-termination #f)
>> (check-termination (let loop () (loop)))
>>
>>
>> — Matthias
>>
>>
>> > On Aug 18, 2016, at 5:59 PM, Mitchell Wand <mwa...@gmail.com> wrote:
>> >
>> > Of course you can't test for non-termination, but is there a relatively
>> simple way to write something like
>> >
>> > (check-doesnt-terminate-quickly  )
>> >
>> > which would fail if the thunk terminates within the time limit, and
>> succeeds otherwise?
>> >
>> > This would be useful in testing expressions that are claimed not to
>> terminate.
>> >
>> > For this use case, it doesn't matter if the time limit is only
>> approximate.
>> >
>> > --Mitch
>> >
>> > --
>> > 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.
>>
>
>

-- 
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] Mann-Whitney test?

2017-01-09 Thread Mitchell Wand
Does anybody have an implementation of the Mann-Whitney U test (or the
equivalent Wilcoxson Rank test) in Racket?  I imagine I could easily hack
up my own, but somebody else may have done a better job of it already.

--Mitch

-- 
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] Racket function to get data from a Google Sheet?

2017-08-30 Thread Mitchell Wand
Has anybody written a Racket function to extract the data directly from a
Google Sheet?

I know I can export the Google sheet as a csv, and then use read-csv-file,
but I'd like to automate the export step.

--Mitch

-- 
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] test suite for hygienic expander?

2018-08-06 Thread Mitchell Wand
Is there a test suite for the macro expander?  I assume that you must have 
one, but it would save me some effort if somebody can tell me where it is.

I'm interested in finding out if you have good corner cases for testing a 
proposal for a hygienic expander.

--Mitch

-- 
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.