Re: [racket-users] [racket ursers] Keyword question

2019-08-23 Thread Philip McGrath
If they do what you want, `curry` and `curryr` support keyword arguments
(as of Racket 7.1) and handle lots of cases.

If you do need to use `make-keyword-procedure`, you may want to combine it
with `procedure-reduce-keyword-arity-mask`.

-Philip


On Fri, Aug 23, 2019 at 10:03 PM David Storrs 
wrote:

> There's also keyword-apply:
> https://docs.racket-lang.org/reference/procedures.html#%28def._%28%28lib._racket%2Fprivate%2Fbase..rkt%29._keyword-apply%29%29
>
> (define
> 
>  (f x #:y y #:z [z 10])
>   (list
> 
>  x y z))
>
> > (keyword-apply
> 
>  f '(#:y) '(2) '(1))
>
> '(1 2 10)
> > (keyword-apply
> 
>  f '(#:y #:z) '(2 3) '(1))
>
> '(1 2 3)
> > (keyword-apply
> 
>  f #:z 7 '(#:y) '(2) '(1))
>
> '(1 2 7)
>
> On Fri, Aug 23, 2019 at 1:35 AM Tim Meehan  wrote:
>
>> If it was just passing keyword arguments to your function, you might be
>> able to do it like this:
>>
>> ; https://docs.racket-lang.org/guide/lambda.html
>> ; https://docs.racket-lang.org/reference/procedures.html
>>
>> (define greet
>>   (lambda (given #:last surname)
>> (string-append "Hello, " given " " surname)))
>>
>> ; 'apply' allows you to specify a keyword argument ...
>> (define (test f . args)
>>   (apply f args #:last "Doe"))
>>
>> (test greet "John") ; => "Hello, John Doe"
>>
>> On Thu, Aug 22, 2019 at 3:32 PM Kevin Forchione 
>> wrote:
>>
>>>
>>>
>>> > On Aug 22, 2019, at 1:33 PM, Kevin Forchione 
>>> wrote:
>>> >
>>> > Hi guys,
>>> > Suppose I have something like the following:
>>> >
>>> > (define (f  g . args)
>>> >   (apply g args))
>>> >
>>> > How would I be able to pass keyword arguments to g?
>>>
>>> After racking my brains for the common lisp &allow-other-keys and
>>> googling for the scheme/Racket equivalent, stumbling through  mzlib/kw and
>>> finally a bit of digging through racket procedure documentation I cobbled
>>> together an approach that seems to do what I’m after. So I thought I’d
>>> share. Here’s an example:
>>>
>>> #lang racket
>>>
>>>
>>> (define (foo #:a (a 0) #:b (b 1) c (d 3) . rst) (list a b c d rst))
>>>
>>> (define show
>>>   (make-keyword-procedure (λ (kws kw-args f . args) (keyword-apply f kws
>>> kw-args args
>>>
>>> (show foo #:a 10 2 3 4 5 6 7)
>>> => '(10 1 2 3 (4 5 6 7))
>>>
>>> Now apparently any keywords defined for show itself are captured in the
>>> kWh and kw-args lists and would need to be filtered out of those lists
>>> before tasing them on to f, but that shouldn’t be too difficult.
>>>
>>> Kevin
>>>
>>> --
>>> 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/395CF1DB-3B85-4FFA-9C1B-5566EB2CC60F%40gmail.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/CACgrOxJ%3DAadxH4_9a2u%2B0XZhVpyT2gA-qLtRrhWAy3w2JLRtmw%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/CAE8gKof8B2Gf%2B4NTEDixa7upZ9FnU1UyCcL16msHfSGudyPXhg%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/CAH3z3gaethugVeK9%3D6ThEsH5HFANe3jmk2JdQ7Oe052PdSnhyg%40mail.gmail.com.


Re: [racket-users] handin-server: writing a first checker

2019-08-23 Thread 'Wayne Harris' via Racket Users
On Friday, August 23, 2019 2:59 PM, Shu-Hung You 
 wrote:

> I forgot to CC my reply to the list. The case here is that the user
> account data in `users.rktd` only contain one field but the default
> `extra-fields` configuration requires 3 extra fields. The error
> message probably comes from some (map cons  ...)
> expression that resides in the server code.

And I, in turn, probably only followed up to Shu-Hung.  The problem was a bad 
users.rktd which was solved after Shu-Hung's remark.  The software runs fine 
and I'm studying how to customize checkers.  Thank you!

-- 
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/FGWty_xOz_qnSmVsSa8helRfEXwSljx0Y84va2ohTF-hnZ4O82SmCOkhlCyTDVk3dcXhXOXbK-paRMquT3fbOnFNFHvY_gpuf7wPUECnITc%3D%40protonmail.com.


Re: [racket-users] [racket ursers] Keyword question

2019-08-23 Thread David Storrs
There's also keyword-apply:
https://docs.racket-lang.org/reference/procedures.html#%28def._%28%28lib._racket%2Fprivate%2Fbase..rkt%29._keyword-apply%29%29

(define

 (f x #:y y #:z [z 10])
  (list

 x y z))

> (keyword-apply

 f '(#:y) '(2) '(1))

'(1 2 10)
> (keyword-apply

 f '(#:y #:z) '(2 3) '(1))

'(1 2 3)
> (keyword-apply

 f #:z 7 '(#:y) '(2) '(1))

'(1 2 7)

On Fri, Aug 23, 2019 at 1:35 AM Tim Meehan  wrote:

> If it was just passing keyword arguments to your function, you might be
> able to do it like this:
>
> ; https://docs.racket-lang.org/guide/lambda.html
> ; https://docs.racket-lang.org/reference/procedures.html
>
> (define greet
>   (lambda (given #:last surname)
> (string-append "Hello, " given " " surname)))
>
> ; 'apply' allows you to specify a keyword argument ...
> (define (test f . args)
>   (apply f args #:last "Doe"))
>
> (test greet "John") ; => "Hello, John Doe"
>
> On Thu, Aug 22, 2019 at 3:32 PM Kevin Forchione  wrote:
>
>>
>>
>> > On Aug 22, 2019, at 1:33 PM, Kevin Forchione  wrote:
>> >
>> > Hi guys,
>> > Suppose I have something like the following:
>> >
>> > (define (f  g . args)
>> >   (apply g args))
>> >
>> > How would I be able to pass keyword arguments to g?
>>
>> After racking my brains for the common lisp &allow-other-keys and
>> googling for the scheme/Racket equivalent, stumbling through  mzlib/kw and
>> finally a bit of digging through racket procedure documentation I cobbled
>> together an approach that seems to do what I’m after. So I thought I’d
>> share. Here’s an example:
>>
>> #lang racket
>>
>>
>> (define (foo #:a (a 0) #:b (b 1) c (d 3) . rst) (list a b c d rst))
>>
>> (define show
>>   (make-keyword-procedure (λ (kws kw-args f . args) (keyword-apply f kws
>> kw-args args
>>
>> (show foo #:a 10 2 3 4 5 6 7)
>> => '(10 1 2 3 (4 5 6 7))
>>
>> Now apparently any keywords defined for show itself are captured in the
>> kWh and kw-args lists and would need to be filtered out of those lists
>> before tasing them on to f, but that shouldn’t be too difficult.
>>
>> Kevin
>>
>> --
>> 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/395CF1DB-3B85-4FFA-9C1B-5566EB2CC60F%40gmail.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/CACgrOxJ%3DAadxH4_9a2u%2B0XZhVpyT2gA-qLtRrhWAy3w2JLRtmw%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/CAE8gKof8B2Gf%2B4NTEDixa7upZ9FnU1UyCcL16msHfSGudyPXhg%40mail.gmail.com.


Re: [racket-users] Quadruple-precision floating-point support?

2019-08-23 Thread Shaobo He
Hi Josh,

Thank you for the pointers. Although I'm also interested in implementing
quad-floats using doubles, such a correct implementation would take much
more time than the FFI approach as well as what I can afford given my time
constraints.

Shaobo

Josh Rubin  于2019年8月23日周五 下午7:08写道:

>
> On 8/23/2019 8:39 PM, Shaobo He wrote:
> > Hello everyone,
> >
> > I'm in need of quad-precision floating-point type/operations in Racket
> > (the bigfloat module doesn't work for me). It appears there's none, am
> > I right?
> >
> > If so, I think I will try to write one myself, which is going to be a
> > wrapper to libquadmath. Any suggestions about how I should approach
> > it? The first issue seems to be marshalling the C `__float128` type
> > into a Racket type.
> >
> > Thanks,
> > Shaobo
>
> I'm not sure exactly what you have in mind, and I am a total ignoramus
> about Racket numerics, but it is possible to implement quad precision
> floating point arithmetic using only double precision floating point,
> while maintaining rigorous error bounds.
> (... and so on, doubling precision precision at each step.)
>
> These sources might be useful.
>
> Design and Implementation of a High Precision Arithmetic with Rigorous
> Error Bounds
> Alexander WittigMSUHEP-081126December 2008
>
> https://pdfs.semanticscholar.org/8450/3383403eca34dd7e92a12261a3ed7ea2340a.pdf
>
> The Great Internet Mersenne Prime Search (GIMPS) project carries this to
> extremes.
> They use Fourier multiplication on integers with millions of bits - and
> must have exact results.
> https://www.mersenne.org/
>
> Good luck with your project. I am interested in seeing the result!
>
> --
>
> Josh Rubin
> jlru...@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/CAMePyd-SvEtjqsNaaVa7MsF0MTLX2wmmhpCO-neiUdiNTAQk_A%40mail.gmail.com.


Re: [racket-users] Quadruple-precision floating-point support?

2019-08-23 Thread Josh Rubin



On 8/23/2019 8:39 PM, Shaobo He wrote:

Hello everyone,

I'm in need of quad-precision floating-point type/operations in Racket 
(the bigfloat module doesn't work for me). It appears there's none, am 
I right?


If so, I think I will try to write one myself, which is going to be a 
wrapper to libquadmath. Any suggestions about how I should approach 
it? The first issue seems to be marshalling the C `__float128` type 
into a Racket type.


Thanks,
Shaobo


I'm not sure exactly what you have in mind, and I am a total ignoramus 
about Racket numerics, but it is possible to implement quad precision 
floating point arithmetic using only double precision floating point, 
while maintaining rigorous error bounds.

(... and so on, doubling precision precision at each step.)

These sources might be useful.

Design and Implementation of a High Precision Arithmetic with Rigorous 
Error Bounds

Alexander WittigMSUHEP-081126December 2008
https://pdfs.semanticscholar.org/8450/3383403eca34dd7e92a12261a3ed7ea2340a.pdf

The Great Internet Mersenne Prime Search (GIMPS) project carries this to 
extremes.
They use Fourier multiplication on integers with millions of bits - and 
must have exact results.

https://www.mersenne.org/

Good luck with your project. I am interested in seeing the result!

--

Josh Rubin
jlru...@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/af8336d3-4845-1e49-4e9a-1e09ed97dd3a%40gmail.com.


[racket-users] Quadruple-precision floating-point support?

2019-08-23 Thread Shaobo He
Hello everyone,

I'm in need of quad-precision floating-point type/operations in Racket (the 
bigfloat module doesn't work for me). It appears there's none, am I right?

If so, I think I will try to write one myself, which is going to be a 
wrapper to libquadmath. Any suggestions about how I should approach it? The 
first issue seems to be marshalling the C `__float128` type into a Racket 
type.

Thanks,
Shaobo

-- 
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/9a3f599a-1c0b-4336-9f91-93f07423f420%40googlegroups.com.


Re: [racket-users] Is it possible to sell commercial use rights to an open source Racket package?

2019-08-23 Thread Neil Van Dyke

(Replying to 2 messages...)

Summary: I think there's probably no barrier for you with Racket's 
licensing and intentions, but you will need to talk with your lawyer 
about the unusual licensing you want to do for your own software. Also, 
a few related thoughts.


Sage Gerard wrote on 8/23/19 9:24 AM:
Has someone tried to release an /open source/ Racket project under a 
license that enforces paid commercial use of that project?


It's my impression that the Racket professors intend that you be able to 
do this, and would be happy to see you to do this.  And at least some of 
the third-parties, as well.


Separate from Racket professors, SFC might also have a bit different 
perspective, since it has some noteworthy FSF influences.  (FSF is 
well-known to be philosophically opposed to the approach I think you 
alluded to, and has suggested other ways to make money from software.)


You might get better answers in a few weeks.  (The US school year starts 
in about a week, and people are finishing up vacations, and a bunch of 
new things have been happening at once.)


and learning what other people are doing to earn money independently 
using Racket.


I think there are only a few people making any money at all with Racket, 
outside of academia.  (We're still waiting for a dotcom startup to 
strike it rich, and then say that Racket was the best tool for getting 
to launch.  Then more people will be willing to bet on it.)


BTW, because some discussions about startups and such can be sensitive, 
for various reasons, there's also a smaller, ephemeral email list: 
https://linki.tools/racket-money/  By default, `racket-users` should be 
used, but `racket-money` is there for some of the times `racket-users` 
won't work.



Sage Gerard wrote on 8/23/19 3:42 PM:
I wonder if I should just pick LGPL for safety and then move to 
multilicense if an opportunity presents itself. To add context, I aim 
to use a custom license.


Of course, once you LGPL a release, that particular release is LGPL 
forever.  If you intend to later institute licensing that "enforces paid 
commercial use", the earlier LGPL release might be a practical threat to 
that.  (That's happened.)


Also, you don't want to inadvertently bait&switch users, by starting out 
as LGPL and then changing the license on them.  (That happens with some 
other projects, including some noteworthy ones in recent months, and 
many people react negatively to that.)


There have been a variety of ideas about how to do this, nothing 
specific to Racket.


If you *really* want to altruistically open source something, before 
you've figured out the paid commercial licensing you want to do, and 
some of your software is well-modularized... then consider polishing up 
some of the more-generic, low-tech pieces you had to write (e.g., module 
for routing HTTP requests), and releasing those as LGPL'd Racket 
packages.  Keep your less-generic, more-IP code closed, until you figure 
out the licensing for that.


When it comes to finding that opportunity; Does this thread provide 
enough information for me to retain an attorney and get candid advice 
on how to proceed, or would (s)he be unable to answer given the state 
of ownership?


I suspect that an attorney very familiar with open source licensing 
probably already has enough information to get started -- based on the 
standard licenses you see people putting on core Racket and any 
third-party packages you're using.


The attorney might then ask you technical questions about the nature of 
the use/integration (e.g., for all the separately licensed stuff are you 
using in some way, did you copy or modify any source code, and what is 
the technical nature of using these in Racket).


Then, if some of the important distinctions still seem muddy to the 
attorney (e.g., "linking" in the sense the license might use it, is 
syntax expansion different than function call, compiler output, runtime, 
etc.), then I suppose the attorney might want to discuss with a 
representative of core Racket (and maybe other copyright holders), 
and/or carefully craft questions for them.  That might be more 
productive than people trying to guess what's the attorney will consider 
muddy.


I'm going to guess, as a non-lawyer, that what's going to cost you the 
most billable hours of attorney time is figuring out a custom license, 
if you end up going that route.


The Racket side seems pretty straightforward (e.g., if you'll use things 
under their current LGPL license), once the attorney understands the 
nature of use/integration.


Aside: One thing I don't want is anyone new to Racket and open source 
licensing to get a chance drive-by impression that Racket has unusual 
"licensing problems".  I saw this concern multiple times recently.  I'd 
say Racket's standard licensing (for using it as a 
compiler/runtime/libraries) is pretty commercial-friendly, especially 
given the willingness (perhaps, desperation) of a lot of Racketeers to 
encourage c

[racket-users] [racket users] Contracts and make-keyword-procedure question

2019-08-23 Thread Kevin Forchione
Suppose I have the following:

(define/contract foo (-> ??? any/c symbol? symbol? any/c any)
   (make-keyword-procedure (lambda (kw kv a b . args) do-something …)))

What sort of contract would I give to the kw parameter so that it basically 
accepts a list of unspecified keywords? What I’m doing is passing that 
information along to keyword-apply and the function derived from other argument 
data. I’d like to be able to skip the contract on the keywords at the moment, 
and simply enforce the other arguments. 

What I get is an error message that would say that foo expects no keywords, but 
was supplied them, as might be the case, even with any/c specified. 

Any suggestions are appreciated.

Kevin

-- 
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/6AA60DD2-7A42-4527-AED7-4A51FF0146B8%40gmail.com.


Re: [racket-users] Is it possible to sell commercial use rights to an open source Racket package?

2019-08-23 Thread Alexis King
Thank you for the link. I read through it, along with the (much longer) blog 
post linked at the beginning. The first thing it made me realize is that I 
should be more clear: I am not advocating for a CLA! I agree with most of the 
arguments against them that both posts make.

All I was saying is that, given Racket does not have any form of copyright 
assignment agreement, as the blog post calls them, Racket as an organization 
does not possess the copyright to contributors’ code, and they do not control 
enforcement of that copyright. AFAICT, the linked blog post supports that 
(though it argues that’s a good thing, which I agree with, and it also makes an 
argument that a CLA doesn’t necessarily change that in a simple way, either, 
which was indeed news to me and was interesting to read).

I feel like I have reason to believe my interpretation is correct, as it isn’t 
entirely theoretical. In 2014, the developers of the popular, open-source 
Minecraft server modding framework, CraftBukkit, decided to retire the project 
after years of volunteer work. Mojang, Minecraft’s developer, announced they 
had secretly purchased ownership of the project from its co-founders years 
before when they had hired several of them to become Mojang employees, and they 
said would continue the project themselves. That upset several of the 
volunteers, as they realized Mojang had been knowingly exploiting their unpaid 
labor for years without offering any help. One of the developers of CraftBukkit 
proceeded to send Mojang a DMCA takedown request for his own source code, as 
CraftBukkit was GPL-licensed, and the whole project was technically illegal to 
begin with (since it modified and redistributed proprietary Minecraft source 
code).

Assuming the takedown request was legal (which is to say, assuming the 
developer really did hold the copyright), then to comply with it, Mojang would 
have needed to either release the Minecraft server code under the GPL, 
something they were clearly not about to do, or abandon CraftBukkit (or at 
least the parts of it that developer wrote). They chose the latter, despite 
surely having a perfectly capable legal team. Realistically, do I think any 
Racket contributors are going to start DMCAing projects in violation of the 
LGPL for parts of the Racket codebase they hold copyright on? No. But I don’t 
see why the situation would legally be any different for Racket than it was for 
CraftBukkit.

> On Aug 23, 2019, at 14:48, Matthew Butterick  wrote:
> 
> Bradley Kuhn, director of the SFC, has explained why FLOSS projects don't 
> need CLAs, along with some underlying legal truths about FLOSS contributions. 
> [1] 
> 
> [1] https://sfconservancy.org/blog/2014/jun/09/do-not-need-cla/ 
> 
> 
> 
>> On 23 Aug 19, at 12:29 PM, Alexis King > > wrote:
>> 
>> Maybe so, but that is, in fact, why I sent the email. I was hoping you could 
>> clue me in as to what I was missing. (Maybe it’s unfair of me to ask you for 
>> free legal analysis, but I don’t feel like it’s all that unreasonable to ask 
>> for just a little clarification 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/897EB36B-EBAC-4013-92D1-54B58419856A%40gmail.com.


Re: [racket-users] Is it possible to sell commercial use rights to an open source Racket package?

2019-08-23 Thread Matthew Butterick
Bradley Kuhn, director of the SFC, has explained why FLOSS projects don't need 
CLAs, along with some underlying legal truths about FLOSS contributions. [1] 

[1] https://sfconservancy.org/blog/2014/jun/09/do-not-need-cla/ 



> On 23 Aug 19, at 12:29 PM, Alexis King  wrote:
> 
> Maybe so, but that is, in fact, why I sent the email. I was hoping you could 
> clue me in as to what I was missing. (Maybe it’s unfair of me to ask you for 
> free legal analysis, but I don’t feel like it’s all that unreasonable to ask 
> for just a little clarification 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/D77638C7-BF30-4E03-9F57-4090C061DB05%40mbtype.com.


Re: [racket-users] Is it possible to sell commercial use rights to an open source Racket package?

2019-08-23 Thread Sage Gerard
First, thank you all for the responses.

Originally I figured I would need to find some key contacts and ask them to 
review my Racket package* for written permission to publish under a proposed 
license. But if ownership itself is a question mark, I wonder if I should just 
pick LGPL for safety and then move to multilicense if an opportunity presents 
itself. To add context, I aim to use a custom license.

When it comes to finding that opportunity; Does this thread provide enough 
information for me to retain an attorney and get candid advice on how to 
proceed, or would (s)he be unable to answer given the state of ownership?

* Meaning `raco pkg`. Good catch, Alexis.

-slg

 Original Message 
On Aug 23, 2019, 3:19 PM, Matthew Butterick wrote:

> You're omitting some key facts. So no, I don't agree with your legal analysis.
>
> But the underlying point remains: there is unnecessary murkiness around 
> Racket's licensing status.
>
>> On 23 Aug 19, at 11:24 AM, Alexis King  wrote:
>>
>> AFAIK, copyright of the Racket codebase is not the Racket core team’s to 
>> give. Racket has no CLA, so its copyright belongs to all of the individual 
>> contributors, core team members or not. If the Racket core team did own the 
>> copyright, the relicensing effort would have amounted to little more than a 
>> decision. But as-is, whether the SFC takes ownership of copyrights held by 
>> the core team or not is irrelevant, as any individual Racket contributor 
>> could choose to enforce the terms of the license for their contributions 
>> should they desire. But I’m sure you knew all that already—you’re the 
>> lawyer—so I’m curious what you know that I don’t.
>
> --
> 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/5AC224B1-ED3B-4083-A165-FEB9AB9A701A%40mbtype.com](https://groups.google.com/d/msgid/racket-users/5AC224B1-ED3B-4083-A165-FEB9AB9A701A%40mbtype.com?utm_medium=email&utm_source=footer).

-- 
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/8OCZVa59jy4SqidSly-3G1dQ6LbBF1Vq7w8HHuDgE68U62PTeX2XDnF2FFsxDmzCb3a2KceahYvZA-ij4qGUPGyJNuPNeN5By0eF_1JKU24%3D%40sagegerard.com.


Re: [racket-users] Is it possible to sell commercial use rights to an open source Racket package?

2019-08-23 Thread Alexis King
> On Aug 23, 2019, at 14:19, Matthew Butterick  wrote:
> 
> You're omitting some key facts.

Maybe so, but that is, in fact, why I sent the email. I was hoping you could 
clue me in as to what I was missing. (Maybe it’s unfair of me to ask you for 
free legal analysis, but I don’t feel like it’s all that unreasonable to ask 
for just a little clarification 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/EFE00069-B811-49A3-8FFF-C594A541A7B3%40gmail.com.


Re: [racket-users] Is it possible to sell commercial use rights to an open source Racket package?

2019-08-23 Thread Matthew Butterick
You're omitting some key facts. So no, I don't agree with your legal analysis. 

But the underlying point remains: there is unnecessary murkiness around 
Racket's licensing status. 


> On 23 Aug 19, at 11:24 AM, Alexis King  wrote:
> 
> AFAIK, copyright of the Racket codebase is not the Racket core team’s to 
> give. Racket has no CLA, so its copyright belongs to all of the individual 
> contributors, core team members or not. If the Racket core team did own the 
> copyright, the relicensing effort would have amounted to little more than a 
> decision. But as-is, whether the SFC takes ownership of copyrights held by 
> the core team or not is irrelevant, as any individual Racket contributor 
> could choose to enforce the terms of the license for their contributions 
> should they desire. But I’m sure you knew all that already—you’re the 
> lawyer—so I’m curious what you know that I don’t.

-- 
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/5AC224B1-ED3B-4083-A165-FEB9AB9A701A%40mbtype.com.


Re: [racket-users] Is it possible to sell commercial use rights to an open source Racket package?

2019-08-23 Thread Alexis King
> On Aug 23, 2019, at 13:03, Matthew Butterick  wrote:
> 
> In some cases, SFC takes ownership of trademarks and copyrights [1] which 
> means that in terms of license interpretation & enforcement, assumedly the 
> buck would now stop with them. 

AFAIK, copyright of the Racket codebase is not the Racket core team’s to give. 
Racket has no CLA, so its copyright belongs to all of the individual 
contributors, core team members or not. If the Racket core team did own the 
copyright, the relicensing effort would have amounted to little more than a 
decision. But as-is, whether the SFC takes ownership of copyrights held by the 
core team or not is irrelevant, as any individual Racket contributor could 
choose to enforce the terms of the license for their contributions should they 
desire. But I’m sure you knew all that already—you’re the lawyer—so I’m curious 
what you know that I don’t.

At any rate, I second your desire to know what the status of the relicensing 
effort actually is. Are we looking at three stragglers left on the list who 
still haven’t signed? A dozen? A hundred? And maybe more importantly, how many 
lines of code do they really own? At what point can we not just rewrite those 
portions of the codebase? I know that figuring out ownership can be tricky for 
long-running software projects like these, since the question of what 
constitutes derivative work from the original contribution is often unclear, 
but even just a ballpark estimate would be nice to know.

-- 
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/0DAEBB67-5E77-465B-AC5D-4E8EA1BAEB9E%40gmail.com.


Re: [racket-users] Is it possible to sell commercial use rights to an open source Racket package?

2019-08-23 Thread Matthew Butterick

> On Aug 23, 2019, at 6:24 AM, Sage Gerard  wrote:
> 
> Has someone tried to release an open source Racket project under a license 
> that enforces paid commercial use of that project? Light Googling suggests 
> this would be antithetical to the LGPL if not open source in general, but  
> https://download.racket-lang.org/license.html 
>  says "the Racket license does 
> not restrict you at all."



I am a lawyer, and I remain mostly mystified about Racket's licensing / IP 
ownership status since it joined Software Freedom Conservancy in June 2018. 

In some cases, SFC takes ownership of trademarks and copyrights [1] which means 
that in terms of license interpretation & enforcement, assumedly the buck would 
now stop with them. 

Did SFC do so in this case? No idea. Before the switch, Karen Sandler from SFC 
circulated [2] a template agreement [3] but AFAIK the actual agreement that 
Racket's core team signed, and the details thereof, has never been shared with 
the community. (Can it? Should it? Not my call. Or did I miss it?)

Furthermore, the original SFC/Racket press release mentioned a "newly formed 
Project Leadership Committee" [4] — there's never been any mention of who's on 
this committee, or whether their responsibilities involve licensing. 

Lingering elsewhere: the relicensing project that commenced more than 2.5 years 
ago [5] — not clear whether under the SFC this effort is alive, dead, or what. 
Of course, Galaxy's Edge took 3 yrs to build, so maybe I'm being unreasonably 
impatient. 

(BTW though I do not redistribute Racket, there's often a certain amount of 
modified Racket code in packages I maintain, therefore the limitations on 
Racket code also limit the licensing of my packages. Other things being equal 
I'd rather use a license more liberal than the LGPL.)


[1] https://sfconservancy.org/about/ 
[2] https://groups.google.com/d/msg/racket-dev/QeYN6uZBWBc/qAbUb_mWBwAJ
[3] https://sfconservancy.org/projects/apply/ConservancyFSATemplate.pdf 

[4] https://sfconservancy.org/news/2018/jun/12/racketjoins/ 

[5] https://github.com/racket/racket/issues/1570 


-- 
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/11A6C2ED-604A-4904-9A3E-AE5305A5450A%40mbtype.com.


Re: [racket-users] handin-server: writing a first checker

2019-08-23 Thread Shu-Hung You
I forgot to CC my reply to the list. The case here is that the user
account data in `users.rktd` only contain one field but the default
`extra-fields` configuration requires 3 extra fields. The error
message probably comes from some (map cons  ...)
expression that resides in the server code.




On Thu, Aug 22, 2019 at 9:00 AM Matthew Flatt  wrote:
>
> I'm not able to provoke this error with the pieces that you provided.
>
> Just to be sure, it's not an error in the submission that you sent to
> the handin server, right? Normally the error in that case would be
> "Error in your code", so I think that's not it. But does the error
> depend on the program that you send as a submission?
>
> At Wed, 21 Aug 2019 21:32:58 +, "'Wayne Harris' via Racket Users" wrote:
> > I haven't been able to write a first checker.  I'm always getting
> >
> >   map: all lists must have same size
> >
> > in the server's log.
> >
> > The submission always shows this in the log file:
> >
> > [16|2019-08-21T21:12:35] connect from 191.35.15.190
> > [16|2019-08-21T21:12:39] running 12KB (123MB 133MB)
> > [16|2019-08-21T21:12:39] login: (wharr...@protonmail.com)
> > [16|2019-08-21T21:12:39] assignment for (wharr...@protonmail.com): 
> > assignment-1
> > [16|2019-08-21T21:12:40] timeout-control: reset
> > [16|2019-08-21T21:12:40] checking assignment-1 for (wharr...@protonmail.com)
> > [16|2019-08-21T21:12:42] running 37KB (123MB 133MB)
> > [16|2019-08-21T21:12:46] running 37KB (123MB 133MB)
> > [16|2019-08-21T21:12:49] running 39KB (123MB 133MB)
> > [16|2019-08-21T21:12:52] ERROR: map: all lists must have same size
> > [16|2019-08-21T21:12:52]   first list length: 3
> > [16|2019-08-21T21:12:52]   other list length: 1
> > [16|2019-08-21T21:12:52]   procedure: #
> >
> > It also pops up the message error message to the student in DrRacket.
> >
> > Any ideas what's causing this?
> >
> > Taking the typical checker from the documentation, I started with:
> >
> > (module checker handin-server/checker
> >   (check: :language  '(special intermediate)
> > (!procedure Fahrenheit->Celsius 1)
> > (!test (Fahrenheit->Celsius  32)   0)
> > (!test (Fahrenheit->Celsius 212) 100)
> > (!test (Fahrenheit->Celsius  -4) -20)))
> >
> > My student code in DrRacket is set to intermediate language and the
> > code is:
> >
> > (define (Fahrenheit->Celsius x)
> >   (* 5/9 (- x 32)))
> >
> > (check-expect (Fahrenheit->Celsius 32) 0)
> >
> > Here's my server configuration:
> >
> > $ cat config.rktd
> >  ((active-dirs ("assignment-1"))
> >   (allow-web-upload #t)
> >   (allow-new-users #t)
> >   (master-password "4c96f8324e3ba54a99e78249b95daa30"))
> > $
> >
> > $ cat users.rktd
> > (
> >  (wharr...@protonmail.com ("4c96f8324e3ba54a99e78249b95daa30" "Wayne 
> > Harris"))
> > )
> > $
> >
> > $ cat assignment-1/checker.rkt
> > (module checker handin-server/checker
> >   (check: :language  '(special intermediate)
> > (!procedure Fahrenheit->Celsius 1)
> > (!test (Fahrenheit->Celsius  32)   0)
> > (!test (Fahrenheit->Celsius 212) 100)
> > (!test (Fahrenheit->Celsius  -4) -20)))
> > $
> >
> > --
> > 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/Le2v4fuorTS76ru-EzIcXTxB9t0I3wyV
> > 56qTFtRFY8cErV3l4mIJVUsi-s9qSlv7Q_2PVix-prxqDh5noOcmrlm3yyeB7gdBx02fwaUICW8%3D%
> > 40protonmail.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/5d5ea010.1c69fb81.71fbf.0dbdSMTPIN_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/CAMTzy%2Bb1%3DCyF-wGbf_%2BqZsU1imRAHpnO0Bo2PKwpYbC%3D_LdaGw%40mail.gmail.com.


Re: [racket-users] Is it possible to sell commercial use rights to an open source Racket package?

2019-08-23 Thread Alexis King
Disclaimer: I am not a lawyer. (But, as others have mentioned, the answer is 
yes.)

In the subject of your subject, you mention “an open source Racket package,” 
but in the body of your email, you talk about “an open source Racket project.” 
If you are genuinely talking about a Racket package (in the `raco pkg` sense, 
distributed as source code), then you are likely not distributing Racket, in 
which case you are not restricted by Racket’s license at all. You are free to 
license your package however you want, commercially or otherwise. You’re only 
bound to the terms of Racket’s license if you redistribute Racket itself.

If you are instead talking about a Racket application, distributed bundled with 
a Racket runtime or any Racket libraries (such as a bundle created with `raco 
distribute`), then you are beholden to the terms of the Racket license. You are 
likely required by the terms of the LGPL to make your application’s source 
files available to your users, as Racket’s ubiquitous use of macros generally 
precludes replacing library dependencies without recompiling their dependents. 
However, that does not force you to license your source files under the LGPL, 
only make them available under your commercial, proprietary license.

Distributing a closed-source, non-LGPL Racket application without violating 
Racket’s licensing terms is likely to be very difficult or impossible, pending 
the still-ongoing MIT + Apache 2 relicensing effort. But you already said your 
project is open source, anyway, so that doesn’t matter for you.

Alexis

P.S. I think the interpretation of the LGPL given in the page you linked is 
wrong, as it seems to assume that access to your bytecode files is sufficient 
to relink your application against modified versions of Racket. In the presence 
of macros (and, to a lesser extent, cross-module inlining), this is very often 
not true. However, there is scant legal precedent for the interpretation of the 
LGPL, so ultimately it’s hard to guess what a court would find convincing.

> On Aug 23, 2019, at 08:24, Sage Gerard  wrote:
> 
> --I believe this email was lost due to me not being subscribed to the list 
> last time I sent it. Sorry if this is a duplicate.
> 
> Has someone tried to release an open source Racket project under a license 
> that enforces paid commercial use of that project? Light Googling suggests 
> this would be antithetical to the LGPL if not open source in general, but 
> https://download.racket-lang.org/license.html 
>  says "the Racket license does 
> not restrict you at all."
> 
> I understand no replies here or any web page constitutes legal advice, so 
> please take my question in the spirit of respecting the LGPL's sublicensing 
> restrictions and learning what other people are doing to earn money 
> independently using Racket.
> 
> ~slg

-- 
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/8A9E4341-78EC-4ECD-B9E1-15197CEABEA8%40gmail.com.


Re: [racket-users] Re: Is it possible to sell commercial use rights to an open source Racket package?

2019-08-23 Thread Alexander Shopov
The part "earning what other people are doing to earn money independently
using Racket." is interesting in itself - people may answer while you may
check presentations at RacketConf where there are comercial usages of
Racket.

Take my answer with a large pinch of salt but here is gist:
The DrRacket distribution is LGPL3 - you may use it, change it, distribute
it and distibute changes to it under LGPL i.e. every time you distribute it
you will have to provide the source (under same licence). You cannot impose
more obligations or weave obligations stemming from that.

Since Racket licence is LGPL you may distibute your modules that link to it
and there are basically no obligations for those modules. Those additional
modules may impose whatever conditions you want. Thus you might distribute
them in the binary format of Racket, you may distribute in source form -
and no matter what way you do the distribution you may demand payment for
whatever usage - commercial or not. You may prevent changes or distribution
of changes.

"enforcing" would have to be done via the court system - for example when
someone uses your modules in a way different from your license.

Now - what comprises linking (as different to 'derivative work') is a
convoluted matter. FSF site will be helpful in that yet the legal practice
may be different in different countries.

The sentence "the Racket license does not restrict you at all" means it
does not restrict your modules.
In a wider sense it also means that your usage of Racket is not restricted,
but distribution of Racket (AKA conveying) is a different matter (and there
are conditions on that)

Kind regards:
al_shopov

На пт, 23.08.2019 г. в 17:02 ч. Stephen De Gabrielle <
spdegabrie...@gmail.com> написа:

> Hi Sig,
>
> GNU provides they reason why not to use LGPL:
> https://www.gnu.org/licenses/why-not-lgpl.html
>
> Location licence in racket repository:
> https://github.com/racket/racket/blob/master/racket/src/COPYING_LESSER.txt
>
> - Github has a summary of what they think the meaning of LGPL is
> https://choosealicense.com/licenses/
>
> GNU also provides this; https://www.gnu.org/licenses/lgpl-java.html which
> I *believe* mirrors what is written at
> https://download.racket-lang.org/license.html
>
> I hope this helps.
>
> Kind regards,
>
> Stephen
>
>
> On Friday, August 23, 2019 at 10:25:02 PM UTC+9, sage wrote:
>>
>> --I believe this email was lost due to me not being subscribed to the
>> list last time I sent it. Sorry if this is a duplicate.
>>
>> Has someone tried to release an *open source* Racket project under a
>> license that enforces paid commercial use of that project? Light Googling
>> suggests this would be antithetical to the LGPL if not open source in
>> general, but https://download.racket-lang.org/license.html says "the
>> Racket license does not restrict you at all."
>>
>> I understand no replies here or any web page constitutes legal advice, so
>> please take my question in the spirit of respecting the LGPL's sublicensing
>> restrictions and learning what other people are doing to earn money
>> independently using Racket.
>>
>> *~slg*
>>
>>
>> --
> 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/b4fb588c-6043-4eb5-8e6d-d987ed465849%40googlegroups.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/CAP6f5M%3DHxfu8UpGuHE31NATw_6Zfo3pN_VuzHjUDc7k5hQbRTA%40mail.gmail.com.


Re: [racket-users] Re: Is it possible to sell commercial use rights to an open source Racket package?

2019-08-23 Thread Philip McGrath
One issue you would encounter is that deciding what is a "commercial" use
can be difficult. This comes up with Creative Commons licenses (
https://creativecommons.org/faq/#does-my-use-violate-the-noncommercial-clause-of-the-licenses
):

> … there will always be uses that are challenging to categorize as
> commercial or noncommercial. CC cannot advise you on what is and is not
> commercial use.
>

CC has a 255-page study titled "Defining 'Noncommercial'" which they
clarify does not, in fact, define "noncommercial."

However, regardless of whether you *should* do this, I believe you can. The
LGPL governs your use of Racket itself in your product: it does not dictate
the terms of the license you use for your code (except that people must be
allowed to re-link your code with new/modified versions of Racket). I can
write programs in Racket and release them under the AGPL; someone else can
release their Racket programs under an entirely non-free proprietary
license. If you want to use a license to charge money only to "commercial"
users, you can find or create a license that (hopefully)  expresses your
intent. However, such a license would not meet the definition of "open
source" or free/libre software, due to "discrimination against fields of
endeavor" (https://opensource.org/osd).

(I am not a lawyer; this is just my understanding as a creator and user of
software.)

-Philip


On Fri, Aug 23, 2019 at 10:02 AM Stephen De Gabrielle <
spdegabrie...@gmail.com> wrote:

> Hi Sig,
>
> GNU provides they reason why not to use LGPL:
> https://www.gnu.org/licenses/why-not-lgpl.html
>
> Location licence in racket repository:
> https://github.com/racket/racket/blob/master/racket/src/COPYING_LESSER.txt
>
> - Github has a summary of what they think the meaning of LGPL is
> https://choosealicense.com/licenses/
>
> GNU also provides this; https://www.gnu.org/licenses/lgpl-java.html which
> I *believe* mirrors what is written at
> https://download.racket-lang.org/license.html
>
> I hope this helps.
>
> Kind regards,
>
> Stephen
>
>
> On Friday, August 23, 2019 at 10:25:02 PM UTC+9, sage wrote:
>>
>> --I believe this email was lost due to me not being subscribed to the
>> list last time I sent it. Sorry if this is a duplicate.
>>
>> Has someone tried to release an *open source* Racket project under a
>> license that enforces paid commercial use of that project? Light Googling
>> suggests this would be antithetical to the LGPL if not open source in
>> general, but https://download.racket-lang.org/license.html says "the
>> Racket license does not restrict you at all."
>>
>> I understand no replies here or any web page constitutes legal advice, so
>> please take my question in the spirit of respecting the LGPL's sublicensing
>> restrictions and learning what other people are doing to earn money
>> independently using Racket.
>>
>> *~slg*
>>
>>
>> --
> 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/b4fb588c-6043-4eb5-8e6d-d987ed465849%40googlegroups.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/CAH3z3gYua1N8LmQmaQWVnAwpatQt%3DEr6FFgmpkoz3n2zCdPFBQ%40mail.gmail.com.


Re: [racket-users] Racket News - Issue 14

2019-08-23 Thread Stephen De Gabrielle
Hi

Address of cached copy of racket news 14 is at 
https://mailchi.mp/ae8d47492601/racket-news-issue-14?e=94512116cc

*I* think the best news is the Summer picture competition ::grin:: , but 
there is heaps of other good material in issue 14!
https://groups.google.com/forum/#!msg/racket-users/5OCfPsAirs8/8jH-JFfmCQAJ

FWIW you can make a tax-deductible donation to the Racket project. (I have)

*Donate*

Support Racket with a tax-deductible donation
> You can support Support Racket with a tax-deductible donation
>
> Best option: donate via PayPal by clicking the button below.
>
snip: [visit https://racket-lang.org/sfc.html for PayPal link]

We also accept checks drawn in US dollars from US banks. Make your check 
> payable to “Software Freedom Conservancy, Inc.” and put “Directed donation: 
> Racket” as the memo. Mail to:
>
> Software Freedom Conservancy
> 137 Montague St #380
> Brooklyn NY 11201
> Thank you for supporting Racket!

- https://racket-lang.org/sfc.html

PayPal makes it easy to set up a small monthly donation* within your 
budget, and you can claim it on you tax return.
(* you can cancel at any time)

S.


On Friday, August 23, 2019 at 2:16:22 AM UTC+9, Stephen Foster wrote:
>
> By the way, Paulo: I'm happy to help with this (if you want).  I can 
> either put in some person-hours to get/install the certificate; and/or help 
> purchase a new one.
>
> On a related note, a meta question for the community: Do we have any 
> infrastructures in place to help financially support community-driven 
> initiatives like this newsletter?  For example: certs and hosting costs.  
> Or does it just come out of individual pockets?
>
>
>
> On Wed, Aug 21, 2019 at 11:43 AM Annaia Berry  > wrote:
>
>> the SSL cert seems to have expired the other day.
>>
>> On Wed, Aug 21, 2019 at 8:37 PM Stephen Foster > > wrote:
>>
>>> My browser is telling me that the SSL certificate for racket-news.com 
>>> is invalid.
>>> Is it just me?
>>>
>>> On Monday, August 19, 2019 at 7:54:54 AM UTC-7, Stephen De Gabrielle 
>>> wrote:

 Thank you Paulo! 
 Another awesome issue of Racket News.

 S.


  

 On Fri, Aug 16, 2019 at 9:49 PM Paulo Matos  wrote:

> Racket News issue 14 is here.
> https://racket-news.com/2019/08/racket-news-issue-14.html
>
> Enjoy!
>
> -- 
> Paulo Matos
>
> -- 
> 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...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/racket-users/05377b52-dc75-09ce-97b6-5c9734bbaec3%40linki.tools
> .
>
 -- 
>>> 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...@googlegroups.com .
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/racket-users/9586f6ed-f0b3-4889-abf7-77e3a436537e%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>>
>
> -- 
>
>
> Stephen Foster
> ThoughtSTEM Co-Founder
> 318-792-2035
>

-- 
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/3427f303-d68c-45d2-8cd8-cf124e51982c%40googlegroups.com.


Re: [racket-users] Re: Error when I try to use slideshow?

2019-08-23 Thread Stephen De Gabrielle
Hi, 
It appears I hit [send] too soon; 

Matthew has *already* pushed a commit that is intended to resolve this 
issue.

Thank you Alex and Matthew.

Kind regards, 

Stephen


On Friday, August 23, 2019 at 11:13:24 PM UTC+9, Stephen De Gabrielle wrote:
>
> FYI 
> Logged as https://github.com/racket/gui/issues/142
>
> I tried to include the pertinent details including 
> a) mitigation as suggested by Alex (reportedly successful)
> b)  the minimal program which reproduces the issue provided by Alex
>
> Hopefully (a) will help others experiencing this bug.
>
> Kind regards, 
> Stephen
>
>
> On Friday, August 23, 2019 at 10:17:08 PM UTC+9, Matthew Flatt wrote:
>>
>> Thanks! After running System Update, I'm able to see the failure, too. 
>>
>> It looks like the problem is that the main bitmap given to 
>> `CreateIconIndirect` is scaled, but the mask bitmap is not scaled (in 
>> `bitmap->hbitmap`). So, replicating the error also requires a 
>> high-resolution screen with scaling enabled. 
>>
>> At Fri, 23 Aug 2019 02:21:05 -0700 (PDT), Alex Harsanyi wrote: 
>> > If anyone is interested, this is the minimal program which reproduces 
>> the 
>> > issue on Windows 10, version1809: 
>> > 
>> > #lang racket/gui 
>> > (require racket/draw) 
>> > 
>> > (define f (new frame% [label "hello"] [width 100] [height 100])) 
>> > 
>> > (define bmp 
>> >   (let* ([bm (make-object bitmap% 32 32)] 
>> >  [dc (make-object bitmap-dc% bm)]) 
>> > (send dc set-brush "red" 'solid) 
>> > (send dc draw-rectangle 0 0 (send bm get-width) (send bm 
>> get-height)) 
>> > (send dc set-bitmap #f) 
>> > bm)) 
>> > 
>> > (send f set-icon bmp #f 'both) 
>> > (send f show #t) 
>> > 
>> > 
>> > Any program which tries to set the icon on a frame will fail regardless 
>> of 
>> > the icon.  Slideshow fails because it tries to set the icon on the 
>> frame.   
>> > It seems that the W32 API call CreateIconIndirect() fails because it 
>> thinks 
>> > the bitmap passes in is invalid... 
>> > 
>> > Alex. 
>> > 
>> > On Thursday, August 22, 2019 at 12:58:13 PM UTC+8, Alex Harsanyi wrote: 
>> > > 
>> > > This may or may not work for them, but ask the user to open the 
>> > > "viewer.rkt" file in their racket installation (it should be in 
>> C:\Program 
>> > > Files\Racket\share\pkgs\slideshow-lib\slideshow) and comment out the 
>> > > `set-icon` call around line 1512.   That is, comment out the 
>> following 
>> > > block: 
>> > > 
>> > > (let* ([bm slideshow-bm] 
>> > >[mbm slideshow-mbm]) 
>> > >   (when (send bm ok?) 
>> > > (send f set-icon bm (and (send mbm ok?) mbm) 'both))) 
>> > > 
>> > > This is the line in GitHub: 
>> > > 
>> > > 
>> > > 
>> > 
>> https://github.com/racket/slideshow/blob/c61c80de63cf7b2197d67c078bdc9133823c00
>>  
>> > 30/slideshow-lib/slideshow/viewer.rkt#L1509 
>> > > 
>> > > --- 
>> > > 
>> > > Others may come up with better workarounds, but this looks to me like 
>> a 
>> > > problem with the Racket GUI library.  Slideshow fails on my home PC 
>> but 
>> > > works on my work PC, both Windows 10 but different build numbers. 
>>  The 
>> > > problem is that the windows CreateIconIndirect API call is passed an 
>> > > invalid parameter (this is what code 87 means).  Not sure what the 
>> invalid 
>> > > parameter is (or why it is invalid), but it is probably either the 
>> bitmap 
>> > > or the mask. 
>> > > 
>> > > Alex. 
>> > > 
>> > > On Thursday, August 22, 2019 at 11:40:45 AM UTC+8, Stephen De 
>> Gabrielle 
>> > > wrote: 
>> > >> 
>> > >> Hi 
>> > >> 
>> > >> I’m trying to help a user who is getting an error when trying to run 
>> > >> slideshow: 
>> > >> 
>> > >> I typed "#lang slideshow" into DrRacket and got the following error: 
>> > >> 
>> > >> CreateIconIndirect: call failed (87) 
>> > >> 
>> > >> Interactions disabled: slideshow does not support a REPL (no 
>> > >> #%top-interaction) 
>> > >> 
>> > >> They have two computers - slideshow works on a newer pc(win 10) but 
>> fails 
>> > >> on one that has been upgraded from windows 7 to 10. I can’t 
>> determine any 
>> > >> other difference. 
>> > >> 
>> > >> 
>> > >> Any ideas how I can help this user ? 
>> > >> 
>> > >> 
>> > >> 
>> > >> 
>> > 
>> https://www.reddit.com/r/Racket/comments/ct95b0/error_when_i_try_to_use_slidesh
>>  
>> > ow/?utm_source=share&utm_medium=ios_app 
>> > >> 
>> > >> 
>> > >> Kind regards 
>> > >> 
>> > >> 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...@googlegroups.com. 
>> > To view this discussion on the web visit 
>> > 
>> https://groups.google.com/d/msgid/racket-users/e732aeef-af85-4281-b11b-933bb299
>>  
>> > e880%40googlegroups.com. 
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group an

Re: [racket-users] Re: Error when I try to use slideshow?

2019-08-23 Thread Stephen De Gabrielle
FYI 
Logged as https://github.com/racket/gui/issues/142

I tried to include the pertinent details including 
a) mitigation as suggested by Alex (reportedly successful)
b)  the minimal program which reproduces the issue provided by Alex

Hopefully (a) will help others experiencing this bug.

Kind regards, 
Stephen


On Friday, August 23, 2019 at 10:17:08 PM UTC+9, Matthew Flatt wrote:
>
> Thanks! After running System Update, I'm able to see the failure, too. 
>
> It looks like the problem is that the main bitmap given to 
> `CreateIconIndirect` is scaled, but the mask bitmap is not scaled (in 
> `bitmap->hbitmap`). So, replicating the error also requires a 
> high-resolution screen with scaling enabled. 
>
> At Fri, 23 Aug 2019 02:21:05 -0700 (PDT), Alex Harsanyi wrote: 
> > If anyone is interested, this is the minimal program which reproduces 
> the 
> > issue on Windows 10, version1809: 
> > 
> > #lang racket/gui 
> > (require racket/draw) 
> > 
> > (define f (new frame% [label "hello"] [width 100] [height 100])) 
> > 
> > (define bmp 
> >   (let* ([bm (make-object bitmap% 32 32)] 
> >  [dc (make-object bitmap-dc% bm)]) 
> > (send dc set-brush "red" 'solid) 
> > (send dc draw-rectangle 0 0 (send bm get-width) (send bm 
> get-height)) 
> > (send dc set-bitmap #f) 
> > bm)) 
> > 
> > (send f set-icon bmp #f 'both) 
> > (send f show #t) 
> > 
> > 
> > Any program which tries to set the icon on a frame will fail regardless 
> of 
> > the icon.  Slideshow fails because it tries to set the icon on the 
> frame.   
> > It seems that the W32 API call CreateIconIndirect() fails because it 
> thinks 
> > the bitmap passes in is invalid... 
> > 
> > Alex. 
> > 
> > On Thursday, August 22, 2019 at 12:58:13 PM UTC+8, Alex Harsanyi wrote: 
> > > 
> > > This may or may not work for them, but ask the user to open the 
> > > "viewer.rkt" file in their racket installation (it should be in 
> C:\Program 
> > > Files\Racket\share\pkgs\slideshow-lib\slideshow) and comment out the 
> > > `set-icon` call around line 1512.   That is, comment out the following 
> > > block: 
> > > 
> > > (let* ([bm slideshow-bm] 
> > >[mbm slideshow-mbm]) 
> > >   (when (send bm ok?) 
> > > (send f set-icon bm (and (send mbm ok?) mbm) 'both))) 
> > > 
> > > This is the line in GitHub: 
> > > 
> > > 
> > > 
> > 
> https://github.com/racket/slideshow/blob/c61c80de63cf7b2197d67c078bdc9133823c00
>  
> > 30/slideshow-lib/slideshow/viewer.rkt#L1509 
> > > 
> > > --- 
> > > 
> > > Others may come up with better workarounds, but this looks to me like 
> a 
> > > problem with the Racket GUI library.  Slideshow fails on my home PC 
> but 
> > > works on my work PC, both Windows 10 but different build numbers.  The 
> > > problem is that the windows CreateIconIndirect API call is passed an 
> > > invalid parameter (this is what code 87 means).  Not sure what the 
> invalid 
> > > parameter is (or why it is invalid), but it is probably either the 
> bitmap 
> > > or the mask. 
> > > 
> > > Alex. 
> > > 
> > > On Thursday, August 22, 2019 at 11:40:45 AM UTC+8, Stephen De 
> Gabrielle 
> > > wrote: 
> > >> 
> > >> Hi 
> > >> 
> > >> I’m trying to help a user who is getting an error when trying to run 
> > >> slideshow: 
> > >> 
> > >> I typed "#lang slideshow" into DrRacket and got the following error: 
> > >> 
> > >> CreateIconIndirect: call failed (87) 
> > >> 
> > >> Interactions disabled: slideshow does not support a REPL (no 
> > >> #%top-interaction) 
> > >> 
> > >> They have two computers - slideshow works on a newer pc(win 10) but 
> fails 
> > >> on one that has been upgraded from windows 7 to 10. I can’t determine 
> any 
> > >> other difference. 
> > >> 
> > >> 
> > >> Any ideas how I can help this user ? 
> > >> 
> > >> 
> > >> 
> > >> 
> > 
> https://www.reddit.com/r/Racket/comments/ct95b0/error_when_i_try_to_use_slidesh
>  
> > ow/?utm_source=share&utm_medium=ios_app 
> > >> 
> > >> 
> > >> Kind regards 
> > >> 
> > >> 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...@googlegroups.com . 
> > To view this discussion on the web visit 
> > 
> https://groups.google.com/d/msgid/racket-users/e732aeef-af85-4281-b11b-933bb299
>  
> > e880%40googlegroups.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/afac4013-7813-44af-8362-d6c0bc1efb41%40googlegroups.com.


[racket-users] Re: Is it possible to sell commercial use rights to an open source Racket package?

2019-08-23 Thread Stephen De Gabrielle
Hi Sig,

GNU provides they reason why not to use LGPL: 
https://www.gnu.org/licenses/why-not-lgpl.html

Location licence in racket repository: 
https://github.com/racket/racket/blob/master/racket/src/COPYING_LESSER.txt

- Github has a summary of what they think the meaning of LGPL is 
https://choosealicense.com/licenses/ 

GNU also provides this; https://www.gnu.org/licenses/lgpl-java.html which I 
*believe* mirrors what is written at 
https://download.racket-lang.org/license.html
 
I hope this helps. 

Kind regards, 

Stephen


On Friday, August 23, 2019 at 10:25:02 PM UTC+9, sage wrote:
>
> --I believe this email was lost due to me not being subscribed to the list 
> last time I sent it. Sorry if this is a duplicate.
>
> Has someone tried to release an *open source* Racket project under a 
> license that enforces paid commercial use of that project? Light Googling 
> suggests this would be antithetical to the LGPL if not open source in 
> general, but https://download.racket-lang.org/license.html says "the 
> Racket license does not restrict you at all."
>
> I understand no replies here or any web page constitutes legal advice, so 
> please take my question in the spirit of respecting the LGPL's sublicensing 
> restrictions and learning what other people are doing to earn money 
> independently using Racket.
>
> *~slg*
>
>
>

-- 
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/b4fb588c-6043-4eb5-8e6d-d987ed465849%40googlegroups.com.


[racket-users] Is it possible to sell commercial use rights to an open source Racket package?

2019-08-23 Thread Sage Gerard
--I believe this email was lost due to me not being subscribed to the list last 
time I sent it. Sorry if this is a duplicate.

Has someone tried to release an open source Racket project under a license that 
enforces paid commercial use of that project? Light Googling suggests this 
would be antithetical to the LGPL if not open source in general, but 
https://download.racket-lang.org/license.html says "the Racket license does not 
restrict you at all."

I understand no replies here or any web page constitutes legal advice, so 
please take my question in the spirit of respecting the LGPL's sublicensing 
restrictions and learning what other people are doing to earn money 
independently using Racket.

~slg

-- 
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/UpwFq0GcMWmqKczlTVk4b6iF-N8T4qxwdD1Xo2ZR21GByxgGYcBUOoqduczICu2etMq_I9MF1v5PNgzmA_LtFWLufNBefrMsvVWsKhUJ4t0%3D%40sagegerard.com.


Re: [racket-users] Confirming receipt

2019-08-23 Thread 'John Clements' via users-redirect
Confirming publicly (so you don’t get a torrent of off-list responses).

John Clements

> On Aug 23, 2019, at 09:10, Sage Gerard  wrote:
> 
> Hello,
> 
> My last few emails to the user mailing list have gone without responses, and 
> I suspect that my emails were sent to spam or silently discarded since I 
> cannot find them in the mirrors.
> 
> I sent another just last night, but I wanted to confirm if subscribing to the 
> Google Group fixes the problem. Could one person please confirm that they see 
> this message?
> 
> ~slg
> 
> 
> 
> -- 
> 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/aHcDzEczkoXo4QuakIaKWgTtE3PbxwCSLe1cVY-OcbI4jzpRIF7y384p7CDm9DZDl5rAGYwXtBYKkNMq3yAulWM3Mj88aqKogLN9-rR0ptw%3D%40sagegerard.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/a68493e5-79f4-4f0c-8f53-7757daae5b43%40mtasv.net.


Re: [racket-users] Re: Error when I try to use slideshow?

2019-08-23 Thread Matthew Flatt
Thanks! After running System Update, I'm able to see the failure, too.

It looks like the problem is that the main bitmap given to
`CreateIconIndirect` is scaled, but the mask bitmap is not scaled (in
`bitmap->hbitmap`). So, replicating the error also requires a
high-resolution screen with scaling enabled.

At Fri, 23 Aug 2019 02:21:05 -0700 (PDT), Alex Harsanyi wrote:
> If anyone is interested, this is the minimal program which reproduces the 
> issue on Windows 10, version1809:
> 
> #lang racket/gui
> (require racket/draw)
> 
> (define f (new frame% [label "hello"] [width 100] [height 100]))
> 
> (define bmp
>   (let* ([bm (make-object bitmap% 32 32)]
>  [dc (make-object bitmap-dc% bm)])
> (send dc set-brush "red" 'solid)
> (send dc draw-rectangle 0 0 (send bm get-width) (send bm get-height))
> (send dc set-bitmap #f)
> bm))
> 
> (send f set-icon bmp #f 'both)
> (send f show #t)
> 
> 
> Any program which tries to set the icon on a frame will fail regardless of 
> the icon.  Slideshow fails because it tries to set the icon on the frame.  
> It seems that the W32 API call CreateIconIndirect() fails because it thinks 
> the bitmap passes in is invalid...
> 
> Alex.
> 
> On Thursday, August 22, 2019 at 12:58:13 PM UTC+8, Alex Harsanyi wrote:
> >
> > This may or may not work for them, but ask the user to open the 
> > "viewer.rkt" file in their racket installation (it should be in C:\Program 
> > Files\Racket\share\pkgs\slideshow-lib\slideshow) and comment out the 
> > `set-icon` call around line 1512.   That is, comment out the following 
> > block:
> >
> > (let* ([bm slideshow-bm]
> >[mbm slideshow-mbm])
> >   (when (send bm ok?)
> > (send f set-icon bm (and (send mbm ok?) mbm) 'both)))
> >
> > This is the line in GitHub:
> >
> >
> > 
> https://github.com/racket/slideshow/blob/c61c80de63cf7b2197d67c078bdc9133823c00
> 30/slideshow-lib/slideshow/viewer.rkt#L1509
> >
> > ---
> >
> > Others may come up with better workarounds, but this looks to me like a 
> > problem with the Racket GUI library.  Slideshow fails on my home PC but 
> > works on my work PC, both Windows 10 but different build numbers.  The 
> > problem is that the windows CreateIconIndirect API call is passed an 
> > invalid parameter (this is what code 87 means).  Not sure what the invalid 
> > parameter is (or why it is invalid), but it is probably either the bitmap 
> > or the mask.
> >
> > Alex.
> >
> > On Thursday, August 22, 2019 at 11:40:45 AM UTC+8, Stephen De Gabrielle 
> > wrote:
> >>
> >> Hi
> >>
> >> I’m trying to help a user who is getting an error when trying to run 
> >> slideshow:
> >>
> >> I typed "#lang slideshow" into DrRacket and got the following error:
> >>
> >> CreateIconIndirect: call failed (87)
> >>
> >> Interactions disabled: slideshow does not support a REPL (no 
> >> #%top-interaction)
> >>
> >> They have two computers - slideshow works on a newer pc(win 10) but fails 
> >> on one that has been upgraded from windows 7 to 10. I can’t determine any 
> >> other difference.
> >>
> >>
> >> Any ideas how I can help this user ?
> >>
> >>
> >>
> >> 
> https://www.reddit.com/r/Racket/comments/ct95b0/error_when_i_try_to_use_slidesh
> ow/?utm_source=share&utm_medium=ios_app
> >>
> >>
> >> Kind regards
> >>
> >> 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.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/racket-users/e732aeef-af85-4281-b11b-933bb299
> e880%40googlegroups.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/5d5fe750.1c69fb81.9efb5.263eSMTPIN_ADDED_MISSING%40gmr-mx.google.com.


[racket-users] Confirming receipt

2019-08-23 Thread Sage Gerard
Hello,

My last few emails to the user mailing list have gone without responses, and I 
suspect that my emails were sent to spam or silently discarded since I cannot 
find them in the mirrors.

I sent another just last night, but I wanted to confirm if subscribing to the 
Google Group fixes the problem. Could one person please confirm that they see 
this message?

~slg

-- 
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/aHcDzEczkoXo4QuakIaKWgTtE3PbxwCSLe1cVY-OcbI4jzpRIF7y384p7CDm9DZDl5rAGYwXtBYKkNMq3yAulWM3Mj88aqKogLN9-rR0ptw%3D%40sagegerard.com.


Re: [racket-users] Failed to load module in drracket

2019-08-23 Thread Robby Findler
(Sorry, accidentally dropped the list CC.)

On Fri, Aug 23, 2019 at 6:42 AM Robby Findler 
wrote:

> Is this an error you see when you click "run" or does it appear along the
> very bottom of the window on its own?
>
> Robby
>
> On Fri, Aug 23, 2019 at 5:23 AM Walter Yang  wrote:
>
>> I'm trying to load a module in drracket:
>>
>> #lang racket
>>
>> (require fluxus/fluxus)
>>
>> I got the following error message:
>>
>>   default-load-extension-handler: forbidden (execute) access to
>> /usr/share/racket/collects/fluxus/compiled/native/x86_64-linux/3m/fluxus-engine_ss.so
>>
>> But it's OK load in command line racket:
>>
>> $ racket
>> Welcome to Racket v7.4.
>> > (require fluxus/fluxus)
>> >
>>
>> Any comments?
>>
>> Thanks
>> Walter
>>
>> --
>> 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/a76162ca-ee89-4d62-be51-e6a81d6adfd3%40googlegroups.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/CAL3TdOOiTp0t_2cTmhNF%3DqSTLK%3Dz%3DP7LVHyGvtymwnp01hkB2A%40mail.gmail.com.


[racket-users] Re: Error when I try to use slideshow?

2019-08-23 Thread Stephen De Gabrielle
Thanks Alex, your advice resolved the issue for the op, and another user 
reported the same problem but I expect your advice will help them too!

Thanks again
Stephen

PS I’m logging this as an issue for 
https://github.com/racket/gui

-- 
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/13bc06cb-5b93-407d-9982-4dea49c8b90f%40googlegroups.com.


[racket-users] Failed to load module in drracket

2019-08-23 Thread Walter Yang
I'm trying to load a module in drracket:

#lang racket

(require fluxus/fluxus)

I got the following error message:

  default-load-extension-handler: forbidden (execute) access to 
/usr/share/racket/collects/fluxus/compiled/native/x86_64-linux/3m/fluxus-engine_ss.so

But it's OK load in command line racket:

$ racket 
Welcome to Racket v7.4.
> (require fluxus/fluxus)
> 

Any comments?

Thanks
Walter

-- 
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/a76162ca-ee89-4d62-be51-e6a81d6adfd3%40googlegroups.com.


[racket-users] Re: Error when I try to use slideshow?

2019-08-23 Thread Alex Harsanyi
If anyone is interested, this is the minimal program which reproduces the 
issue on Windows 10, version1809:

#lang racket/gui
(require racket/draw)

(define f (new frame% [label "hello"] [width 100] [height 100]))

(define bmp
  (let* ([bm (make-object bitmap% 32 32)]
 [dc (make-object bitmap-dc% bm)])
(send dc set-brush "red" 'solid)
(send dc draw-rectangle 0 0 (send bm get-width) (send bm get-height))
(send dc set-bitmap #f)
bm))

(send f set-icon bmp #f 'both)
(send f show #t)


Any program which tries to set the icon on a frame will fail regardless of 
the icon.  Slideshow fails because it tries to set the icon on the frame.  
It seems that the W32 API call CreateIconIndirect() fails because it thinks 
the bitmap passes in is invalid...

Alex.

On Thursday, August 22, 2019 at 12:58:13 PM UTC+8, Alex Harsanyi wrote:
>
> This may or may not work for them, but ask the user to open the 
> "viewer.rkt" file in their racket installation (it should be in C:\Program 
> Files\Racket\share\pkgs\slideshow-lib\slideshow) and comment out the 
> `set-icon` call around line 1512.   That is, comment out the following 
> block:
>
> (let* ([bm slideshow-bm]
>[mbm slideshow-mbm])
>   (when (send bm ok?)
> (send f set-icon bm (and (send mbm ok?) mbm) 'both)))
>
> This is the line in GitHub:
>
>
> https://github.com/racket/slideshow/blob/c61c80de63cf7b2197d67c078bdc9133823c0030/slideshow-lib/slideshow/viewer.rkt#L1509
>
> ---
>
> Others may come up with better workarounds, but this looks to me like a 
> problem with the Racket GUI library.  Slideshow fails on my home PC but 
> works on my work PC, both Windows 10 but different build numbers.  The 
> problem is that the windows CreateIconIndirect API call is passed an 
> invalid parameter (this is what code 87 means).  Not sure what the invalid 
> parameter is (or why it is invalid), but it is probably either the bitmap 
> or the mask.
>
> Alex.
>
> On Thursday, August 22, 2019 at 11:40:45 AM UTC+8, Stephen De Gabrielle 
> wrote:
>>
>> Hi
>>
>> I’m trying to help a user who is getting an error when trying to run 
>> slideshow:
>>
>> I typed "#lang slideshow" into DrRacket and got the following error:
>>
>> CreateIconIndirect: call failed (87)
>>
>> Interactions disabled: slideshow does not support a REPL (no 
>> #%top-interaction)
>>
>> They have two computers - slideshow works on a newer pc(win 10) but fails 
>> on one that has been upgraded from windows 7 to 10. I can’t determine any 
>> other difference.
>>
>>
>> Any ideas how I can help this user ?
>>
>>
>>
>> https://www.reddit.com/r/Racket/comments/ct95b0/error_when_i_try_to_use_slideshow/?utm_source=share&utm_medium=ios_app
>>
>>
>> Kind regards
>>
>> 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/e732aeef-af85-4281-b11b-933bb299e880%40googlegroups.com.