[racket-users] Re: Benefits of Racket-on-Chez for laymen

2017-09-15 Thread George Neuner
On Fri, 15 Sep 2017 14:48:00 -0700, David King
 wrote:

>... and places have much stronger restrictions than threaded 
>code in most languages does.

???  There are restrictions wrt shared data ... but AFAIK places have
no execution restrictions vs a [normal] serial program.

And place channels really are no more restrictive than are pipes
between processes.

George

-- 
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] Benefits of Racket-on-Chez for laymen

2017-09-15 Thread Sam Tobin-Hochstadt
While we don't plan to change the semantics of threads or of futures,
Sarah Spall is working on implementing futures in the Chez-backed
version of the runtime in a way that will hopefully provide
parallelism for far more operations than Racket's current runtime
allows. However, it's still to early to report on any results of that
effort, which is ongoing.

Sam

On Fri, Sep 15, 2017 at 5:37 PM, David King  wrote:
> From a fully layman and newbie perspective, I'm most interested in the 
> possibility of actual threads that can run on more than one core. Is this a 
> thing that will come for "free"?
>
>
>
>
>> On 12 Sep 2017, at 23:29, Gour  wrote:
>>
>> Hello,
>>
>> I'm interested to learn and use Racket for desktop apps and after reading 
>> about
>> the plan to use Chez Scheme as Racket's VM I wonder what are the implications
>> of this step for the end users?
>>
>> By looking at this https://ecraven.github.io/r7rs-benchmarks/ benchmark it's
>> clear that Chez Scheme is very fast, if not the fastest Scheme 
>> implementation.
>> Now I wonder if Racket-on-Chez does mean that Racket's performance will 
>> improve
>> and/or one will be able to take advantage of Chez's feature to produce
>> stand-alone executables?
>>
>> Does Racket-on-Chez mean one will get the best of both worlds, iow. have 
>> Chez's
>> performance, exectuables, multiple threads support etc. while still enjoying
>> Racket's ecosystem - package manager, batteries-included, programming
>> environment, excellent docs etc.
>>
>> All these could make Racket even more attractive as 'geneal purpose 
>> programming
>> language'.
>>
>> Otoh, I see that mflatt does contribute a lot to the Chez...
>>
>>
>> Sincerely,
>> Gour
>>
>> --
>> Bewildered by the modes of material nature, the ignorant fully
>> engage themselves in material activities and become attached. But
>> the wise should not unsettle them, although these duties are inferior
>> due to the performers' lack of knowledge.
>>
>>
>> --
>> 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.


Re: [racket-users] Benefits of Racket-on-Chez for laymen

2017-09-15 Thread Robby Findler
On Fri, Sep 15, 2017 at 4:48 PM David King  wrote:

> Racket already has two ways to do this: futures and threads. (There was a
> recent discussion on the mailing lists about futures.)
> The guide has more information here:
> https://docs.racket-lang.org/guide/parallelism.html
>
>
> It's true but threads aren't actually parallel, futures can use only
> limited fp-related operations, and places have much stronger restrictions
> than threaded code in most languages does.
>
> Ah. If that was the question, then I believe the answer is likely to be
"no", but wouldn't presume to know for sure.

Robby

-- 
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] Benefits of Racket-on-Chez for laymen

2017-09-15 Thread Robby Findler
Whoops! Yes, thank you.

Robby

On Fri, Sep 15, 2017 at 4:46 PM Philip McGrath 
wrote:

> futures and places, I think you mean
>
> -Philip
>
> On Fri, Sep 15, 2017 at 4:44 PM, Robby Findler <
> ro...@eecs.northwestern.edu> wrote:
>
>> Racket already has two ways to do this: futures and threads. (There was a
>> recent discussion on the mailing lists about futures.)
>>
>> The guide has more information here:
>> https://docs.racket-lang.org/guide/parallelism.html
>>
>> Robby
>>
>> On Fri, Sep 15, 2017 at 4:37 PM David King  wrote:
>>
>>> From a fully layman and newbie perspective, I'm most interested in the
>>> possibility of actual threads that can run on more than one core. Is this a
>>> thing that will come for "free"?
>>>
>>>
>>>
>>>
>>> > On 12 Sep 2017, at 23:29, Gour  wrote:
>>> >
>>> > Hello,
>>> >
>>> > I'm interested to learn and use Racket for desktop apps and after
>>> reading about
>>> > the plan to use Chez Scheme as Racket's VM I wonder what are the
>>> implications
>>> > of this step for the end users?
>>> >
>>> > By looking at this https://ecraven.github.io/r7rs-benchmarks/
>>> benchmark it's
>>> > clear that Chez Scheme is very fast, if not the fastest Scheme
>>> implementation.
>>> > Now I wonder if Racket-on-Chez does mean that Racket's performance
>>> will improve
>>> > and/or one will be able to take advantage of Chez's feature to produce
>>> > stand-alone executables?
>>> >
>>> > Does Racket-on-Chez mean one will get the best of both worlds, iow.
>>> have Chez's
>>> > performance, exectuables, multiple threads support etc. while still
>>> enjoying
>>> > Racket's ecosystem - package manager, batteries-included, programming
>>> > environment, excellent docs etc.
>>> >
>>> > All these could make Racket even more attractive as 'geneal purpose
>>> programming
>>> > language'.
>>> >
>>> > Otoh, I see that mflatt does contribute a lot to the Chez...
>>> >
>>> >
>>> > Sincerely,
>>> > Gour
>>> >
>>> > --
>>> > Bewildered by the modes of material nature, the ignorant fully
>>> > engage themselves in material activities and become attached. But
>>> > the wise should not unsettle them, although these duties are inferior
>>> > due to the performers' lack of knowledge.
>>> >
>>> >
>>> > --
>>> > 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.
>>
>
>

-- 
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] Benefits of Racket-on-Chez for laymen

2017-09-15 Thread David King
> Racket already has two ways to do this: futures and threads. (There was a 
> recent discussion on the mailing lists about futures.)
> The guide has more information here: 
> https://docs.racket-lang.org/guide/parallelism.html 
> 
It's true but threads aren't actually parallel, futures can use only limited 
fp-related operations, and places have much stronger restrictions than threaded 
code in most languages does.

-- 
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] Benefits of Racket-on-Chez for laymen

2017-09-15 Thread Philip McGrath
futures and places, I think you mean

-Philip

On Fri, Sep 15, 2017 at 4:44 PM, Robby Findler 
wrote:

> Racket already has two ways to do this: futures and threads. (There was a
> recent discussion on the mailing lists about futures.)
>
> The guide has more information here: https://docs.racket-
> lang.org/guide/parallelism.html
>
> Robby
>
> On Fri, Sep 15, 2017 at 4:37 PM David King  wrote:
>
>> From a fully layman and newbie perspective, I'm most interested in the
>> possibility of actual threads that can run on more than one core. Is this a
>> thing that will come for "free"?
>>
>>
>>
>>
>> > On 12 Sep 2017, at 23:29, Gour  wrote:
>> >
>> > Hello,
>> >
>> > I'm interested to learn and use Racket for desktop apps and after
>> reading about
>> > the plan to use Chez Scheme as Racket's VM I wonder what are the
>> implications
>> > of this step for the end users?
>> >
>> > By looking at this https://ecraven.github.io/r7rs-benchmarks/
>> benchmark it's
>> > clear that Chez Scheme is very fast, if not the fastest Scheme
>> implementation.
>> > Now I wonder if Racket-on-Chez does mean that Racket's performance will
>> improve
>> > and/or one will be able to take advantage of Chez's feature to produce
>> > stand-alone executables?
>> >
>> > Does Racket-on-Chez mean one will get the best of both worlds, iow.
>> have Chez's
>> > performance, exectuables, multiple threads support etc. while still
>> enjoying
>> > Racket's ecosystem - package manager, batteries-included, programming
>> > environment, excellent docs etc.
>> >
>> > All these could make Racket even more attractive as 'geneal purpose
>> programming
>> > language'.
>> >
>> > Otoh, I see that mflatt does contribute a lot to the Chez...
>> >
>> >
>> > Sincerely,
>> > Gour
>> >
>> > --
>> > Bewildered by the modes of material nature, the ignorant fully
>> > engage themselves in material activities and become attached. But
>> > the wise should not unsettle them, although these duties are inferior
>> > due to the performers' lack of knowledge.
>> >
>> >
>> > --
>> > 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.
>

-- 
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] Benefits of Racket-on-Chez for laymen

2017-09-15 Thread Robby Findler
Racket already has two ways to do this: futures and threads. (There was a
recent discussion on the mailing lists about futures.)

The guide has more information here:
https://docs.racket-lang.org/guide/parallelism.html

Robby

On Fri, Sep 15, 2017 at 4:37 PM David King  wrote:

> From a fully layman and newbie perspective, I'm most interested in the
> possibility of actual threads that can run on more than one core. Is this a
> thing that will come for "free"?
>
>
>
>
> > On 12 Sep 2017, at 23:29, Gour  wrote:
> >
> > Hello,
> >
> > I'm interested to learn and use Racket for desktop apps and after
> reading about
> > the plan to use Chez Scheme as Racket's VM I wonder what are the
> implications
> > of this step for the end users?
> >
> > By looking at this https://ecraven.github.io/r7rs-benchmarks/ benchmark
> it's
> > clear that Chez Scheme is very fast, if not the fastest Scheme
> implementation.
> > Now I wonder if Racket-on-Chez does mean that Racket's performance will
> improve
> > and/or one will be able to take advantage of Chez's feature to produce
> > stand-alone executables?
> >
> > Does Racket-on-Chez mean one will get the best of both worlds, iow. have
> Chez's
> > performance, exectuables, multiple threads support etc. while still
> enjoying
> > Racket's ecosystem - package manager, batteries-included, programming
> > environment, excellent docs etc.
> >
> > All these could make Racket even more attractive as 'geneal purpose
> programming
> > language'.
> >
> > Otoh, I see that mflatt does contribute a lot to the Chez...
> >
> >
> > Sincerely,
> > Gour
> >
> > --
> > Bewildered by the modes of material nature, the ignorant fully
> > engage themselves in material activities and become attached. But
> > the wise should not unsettle them, although these duties are inferior
> > due to the performers' lack of knowledge.
> >
> >
> > --
> > 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.


Re: [racket-users] Benefits of Racket-on-Chez for laymen

2017-09-15 Thread David King
>From a fully layman and newbie perspective, I'm most interested in the 
>possibility of actual threads that can run on more than one core. Is this a 
>thing that will come for "free"?




> On 12 Sep 2017, at 23:29, Gour  wrote:
> 
> Hello,
> 
> I'm interested to learn and use Racket for desktop apps and after reading 
> about
> the plan to use Chez Scheme as Racket's VM I wonder what are the implications
> of this step for the end users?
> 
> By looking at this https://ecraven.github.io/r7rs-benchmarks/ benchmark it's
> clear that Chez Scheme is very fast, if not the fastest Scheme implementation.
> Now I wonder if Racket-on-Chez does mean that Racket's performance will 
> improve
> and/or one will be able to take advantage of Chez's feature to produce
> stand-alone executables?
> 
> Does Racket-on-Chez mean one will get the best of both worlds, iow. have 
> Chez's
> performance, exectuables, multiple threads support etc. while still enjoying
> Racket's ecosystem - package manager, batteries-included, programming
> environment, excellent docs etc.
> 
> All these could make Racket even more attractive as 'geneal purpose 
> programming
> language'.
> 
> Otoh, I see that mflatt does contribute a lot to the Chez...
> 
> 
> Sincerely,
> Gour
> 
> -- 
> Bewildered by the modes of material nature, the ignorant fully
> engage themselves in material activities and become attached. But
> the wise should not unsettle them, although these duties are inferior
> due to the performers' lack of knowledge.
> 
> 
> -- 
> 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] (seventh RacketCon): Early Bird Registration Almost Over!

2017-09-15 Thread Vincent St-Amour
Quick reminder: early bird registration ends tomorrow!

Vincent


On Mon, 04 Sep 2017 10:28:19 -0500,
Vincent St-Amour wrote:
> 
> Racketeers,
> 
> (seventh RacketCon) keeps getting closer! It's almost a month away!
> In less than two weeks, early bird registration[1] will end and ticket
> prices will increase. Get your tickets while they're cheap!
> 
> Our speaker lineup is essentially complete! Check out what tales they'll
> be regaling us with on the RacketCon website [2].
> 
> ---
> 
> RacketCon is a yearly event where members of the Racket community get
> together, featuring talks and demos about the things you do with Racket.
> Racketeer Office Hours is a free-form day for Racketeers to get together
> and collaborate on ongoing projects, start new ones, and get help and
> advice from other members of the community.
> 
> (seventh RacketCon) will be held on October 7th, followed by Racketeer
> Office Hours on October 8th. This year, RacketCon will be in Seattle, WA,
> with support from the Racket group at the University of Washington.
> 
> See you in Seattle!
> 
> Vincent, for the RacketCon team
> 
> -- 
> 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: libusb FFI bindings for a bike trainer control application

2017-09-15 Thread Robby Findler
On Fri, Sep 15, 2017 at 5:01 AM, Alex Harsanyi  wrote:
> For some reason, Google groups seems to delete my messages.   If you got
> this message multiple times, my apologies.  This is the last time I will
> try...

I don't know what went wrong, but I think I've whitelisted you now.

Robby

-- 
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] libusb FFI bindings for a bike trainer control application

2017-09-15 Thread Alex Harsanyi
Hi Bert,


The trainer I have uses ANT+ and the USB dongle is not a HID device,
so I don't think hidapi.dll would work.  I know lubusb.dll works
because I already have C++ code that communicates with the trainer.

However, I would be interested to have a look a the FFI bindings for
the hidabip.dll, if you can send me a link to them, it would be
appreciated.

Thanks,
Alex.


On Fri, Sep 15, 2017 at 2:11 PM, Bert De Ketelaere  wrote:
> Hello,
>
> I started something similar for the Suunto Ambit, but using hidapi.dll. If
> it's of interest I can send it.
>
> Groeten,
> Bert
> 
> Van: racket-users@googlegroups.com  namens
> Alex Harsanyi 
> Verzonden: vrijdag 15 september 2017 7:53
> Aan: Racket Users
> Onderwerp: [racket-users] libusb FFI bindings for a bike trainer control
> application
>
> Hi all,
>
> Has anyone written FFI bindings for libusb?  I tried searching for "usb" on
> pkgs.racket-lang.org, but could not find anything.
>
> I'm planning to write a control application for my bike trainer.  This would
> involve reading data values from the trainer (Heart Rate, Cadence, Power,
> etc)
> and controlling the resistance.  This would be a "poor man's zwift" without
> the 3d graphics (http://zwift.com/)
>
> I have a lot of Racket code that I can reuse for the "GUI" part of the
> application, so it would be relatively easy to write an application that
> allows riding a virtual route, where a "dot" is displayed on a map based on
> distance traveled and controlling the trainer resistance according to the
> gradient for the route.  I already have a map widget and code to manage GPS
> data recorded from real-world bike rides.
>
> What I am missing is the "bottom" part, which would involve controlling the
> trainer and reading data from it.  I already started writing C++ code for
> this
> (as I'm familiar with using libusb from C++), but I thought I'd stop and ask
> here before going too far down this path.
>
> Best Regards,
> Alex.
>
> --
> 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: libusb FFI bindings for a bike trainer control application

2017-09-15 Thread Greg Trzeciak
Some resources involving racket and libusb I could find:
https://stackoverflow.com/questions/38191814/ffi-for-libusb-linked-lists#38192679
http://planet.racket-lang.org/package-source/zwizwa/staapl.plt/1/7/pickit2/libusb.ss
https://github.com/zwizwa/staapl/blob/f2a261f0afddb6f39d7ea8824e7f5891c7d35d9f/pk2/libusb.rkt

Hope some of these help

Greg

On Friday, September 15, 2017 at 7:53:56 AM UTC+2, Alex Harsanyi wrote:
>
> Hi all,
>
> Has anyone written FFI bindings for libusb?  I tried searching for "usb" on
> pkgs.racket-lang.org, but could not find anything.
> ... 
>
Best Regards,
> Alex.
>
>

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