[racket-users] Breaking semaphores

2020-01-17 Thread Jack Firth
The docs for semaphores say this:

In general, it is impossible using only semaphore-wait to implement the 
> guarantee that either the semaphore is decremented or an exception is 
> raised, but not both. Racket therefore supplies semaphore-wait/enable-break 
> (see Semaphores), which does permit the implementation of such an exclusive 
> guarantee.
>

I understand the purpose of semaphore-wait/enable-break, but there's 
something about semaphore-wait that confuses me: why does it allow breaking 
at all? My understanding is that if breaks are enabled, semaphore-wait 
still tries to block and decrement the counter, even though a break at any 
time could destroy the integrity of the semaphore. Does that mean it's not 
kill-safe to use a semaphore as a lock? Wouldn't it be safer if 
semaphore-wait automatically disabled breaks while waiting?

-- 
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/a41b4aa6-08df-4506-9ae2-6447775dfcfc%40googlegroups.com.


Re: [racket-users] Re: Installing Drracket on linux penguin on Chromebook

2020-01-17 Thread Shu-Hung You
What's the result of `file
/home/user/racket-tmp-install/bin/racket` and the result of
`uname -a`?

(In other words, what hardware are you using? Is it 32-bit or 64-bit,
it is x86 or ARM? Which version of Racket did you download?)

On Fri, Jan 17, 2020 at 12:21 PM William Dobias
 wrote:
>
> Thank you:
> So I tried this (with basic troubleshooting, e.g., a couple times, with 
> troubleshooting: restarted linux, chromebook; etc.) and it's not working:
>
> ```
> Checking the integrity of the binary archive... ok.
> Unpacking into "/home/user/racket-tmp-install" (Ctrl+C to abort)...
> Done.
> ./racketinst.sh: 513: ./racketinst.sh: 
> /home/user/racket-tmp-install/bin/racket: Exec format error
> Error: installation failed
>   (Removing installation files in /home/user/racket-tmp-install)
> ```
>
> I am not sure what that means? The processor is aarch64 -architecture if that 
> is relevant. Is that what exec format means?
>
>
>
> On Wednesday, 15 January 2020 14:55:37 UTC-5, William Dobias wrote:
>>
>> I am taking a course that uses drracket. I am having trouble installing it 
>> on my Chromebook (through the penguin linux) does anyone have any 
>> suggestions?
>>
> --
> 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/1edb5947-a6ec-4ac5-bfb2-7d9974c1ea8e%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/CAMTzy%2BZs_9zP4mYwZ16yjccmH_Cvdnf2mZ5Wx0eFDwKHxF64Cw%40mail.gmail.com.


[racket-users] Re: Installing Drracket on linux penguin on Chromebook

2020-01-17 Thread William Dobias
Thank you:
So I tried this (with basic troubleshooting, e.g., a couple times, with 
troubleshooting: restarted linux, chromebook; etc.) and it's not working:

```
Checking the integrity of the binary archive... ok.
Unpacking into "/home/user/racket-tmp-install" (Ctrl+C to abort)...
Done.
./racketinst.sh: 513: ./racketinst.sh: 
/home/user/racket-tmp-install/bin/racket: Exec format error
Error: installation failed
  (Removing installation files in /home/user/racket-tmp-install)
```

I am not sure what that means? The processor is aarch64 -architecture if 
that is relevant. Is that what exec format means?



On Wednesday, 15 January 2020 14:55:37 UTC-5, William Dobias wrote:
>
> I am taking a course that uses drracket. I am having trouble installing it 
> on my Chromebook (through the penguin linux) does anyone have any 
> suggestions?
>
>

-- 
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/1edb5947-a6ec-4ac5-bfb2-7d9974c1ea8e%40googlegroups.com.


Re: [racket-users] DrRacket Dark Mode in Windows

2020-01-17 Thread Hendrik Boom
On Fri, Jan 17, 2020 at 07:12:13AM -0600, Robby Findler wrote:
> (Sorry I seem to have missed some messages in this thread, but I see them
> now. Thanks for the clarifications Sorawee!)
> 
> It looks to me like like the lower, gui layer is communicating the fact
> that we're in dark mode correctly to the framework and drracket layers but
> it isn't actually using the dark mode colors. Specifically,
> get-label-background-color returns a dark color but that doesn't seem to be
> the color that gets used to draw.

Is that code specific to Windows?  Or is that miscommunication likely
to be present on other platforms as well?

-- hendrik

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/20200117181532.m4hnbwfnqgyzu72z%40topoi.pooq.com.


Re: [racket-users] DrRacket Dark Mode in Windows

2020-01-17 Thread Juan Carlos Olivo
Awesome! 
If there's anything I can do, please let me know.

--JCO

On Friday, January 17, 2020 at 7:12:32 AM UTC-6, Robby Findler wrote:
>
> (Sorry I seem to have missed some messages in this thread, but I see them 
> now. Thanks for the clarifications Sorawee!)
>
> It looks to me like like the lower, gui layer is communicating the fact 
> that we're in dark mode correctly to the framework and drracket layers but 
> it isn't actually using the dark mode colors. Specifically, 
> get-label-background-color returns a dark color but that doesn't seem to be 
> the color that gets used to draw. 
>
> Robby
>
>
>
> On Fri, Jan 17, 2020 at 6:27 AM Sorawee Porncharoenwase <
> sorawe...@gmail.com > wrote:
>
>> This StackOverflow answer looks relevant: 
>> https://stackoverflow.com/a/51336913/718349
>>
>> On Fri, Jan 17, 2020 at 4:12 AM Sorawee Porncharoenwase <
>> sorawe...@gmail.com > wrote:
>>
>>> OK. I use my friend's Windows 10 machine and I can replicate the 
>>> problem. Here's the screenshot:
>>>
>>> [image: Untitled.png]
>>>
>>> On Fri, Jan 17, 2020 at 3:49 AM Sorawee Porncharoenwase <
>>> sorawe...@gmail.com > wrote:
>>>
 Which operating system do you use? And can you share a a screenshot?
>

 In my understanding, Juan Carlos Olivo and Shawn Shawn have exactly the 
 same problem. They use Windows 10 and switched to dark theme at the OS 
 level, but the DrRacket UI still has the light theme. For the screenshot, 
 see the one in Shawn Shawn's email above.
  

>
> Robby
>
> On Thu, Jan 16, 2020 at 10:13 PM Juan Carlos Olivo <
> jco...@sbcglobal.net > wrote:
>
>> "As I understand, you have no problem with the customization for 
>> editors, but have a problem with the customization for the general UI. 
>> Is 
>> that correct?"
>>
>> You are correct. Currently I have the editor with a dark theme 
>> (Spacemacs), but the DrRacket UI itself is light, even though I set it 
>> to 
>> "Dark" in Windows settings.
>>
>> Thank you for seeking clarification!
>>
>> --JCO
>>
>> On Wednesday, January 15, 2020 at 11:59:51 PM UTC-6, Sorawee 
>> Porncharoenwase wrote:
>>>
>>> I was reading in the release notes that DrRacket supports dark mode 
 as of 7.5; however, I don't see this option in the DrRacket 
 preferences. I 
 also have "Dark" as the default color under the "Colors" section in 
 Settings > Personalization > Colors. I am using the latest Windows 10. 
>>>
>>>
>>> Just to be clear. DrRacket supports theme customization *for the 
>>> editor* under the "Colors" tab long ago (and this is what Robby was 
>>> talking about in the above reply). If you want the editor to have a 
>>> dark 
>>> background, you should choose "white on black" theme, "Tol's White on 
>>> Black" theme, or install any additional theme (e.g., Spacemacs Dark) 
>>> via 
>>> the package manager.
>>>
>>> And then there's DrRacket's general UI. Its dark theme support was 
>>> added since Racket 7.5, and this depends on the customization at the OS 
>>> level. 
>>>
>>> Here are four possibilities:
>>>
>>> - Dark theme at the OS level and dark theme for the editor
>>>
>>> [image: Screen Shot 2020-01-15 at 21.37.05.png]
>>>
>>> - Dark theme at the OS level and light theme for the editor
>>>
>>> [image: Screen Shot 2020-01-15 at 21.45.54.png]
>>>  
>>> - Light theme at the OS level and light theme for the editor
>>>
>>> [image: Screen Shot 2020-01-15 at 21.50.02.png]
>>>
>>> - Light theme at the OS level and dark theme for the editor
>>>
>>> [image: Screen Shot 2020-01-15 at 21.49.17.png]
>>>
>>> As I understand, you have no problem with the customization for 
>>> editors, but have a problem with the customization for the general UI. 
>>> Is 
>>> that correct? I don't have Windows or Linux, so I don't know how 
>>> DrRacket's 
>>> general UI looks like for them. But it works reasonably well in MacOS.
>>>
>>> On Wed, Jan 15, 2020 at 9:03 PM Hendrik Boom  
>>> wrote:
>>>
 On Wed, Jan 15, 2020 at 10:10:12PM -0600, Robby Findler wrote:
 > Dark mode will be a lot better in the next release.

 I hope so.  I use drracket in dark mode on Linux.
 The main panels have a proper black background, but some of the 
 framing
 has a white background, specifically
   the panel that says File Edit View Language, etc
 and
   the panel that says Untitles ... Run Stop
 on startup.

 > Probably one thing
 > you have to do (in the current release) is open the preferences
 > dialog, choose "colors" and then click the "white on black" 
 button.
 > The snapshot builds are here if you want to see the improvement 
 

Re: [racket-users] DrRacket Dark Mode in Windows

2020-01-17 Thread Sorawee Porncharoenwase
> Which operating system do you use? And can you share a a screenshot?
>

In my understanding, Juan Carlos Olivo and Shawn Shawn have exactly the
same problem. They use Windows 10 and switched to dark theme at the OS
level, but the DrRacket UI still has the light theme. For the screenshot,
see the one in Shawn Shawn's email above.


>
> Robby
>
> On Thu, Jan 16, 2020 at 10:13 PM Juan Carlos Olivo 
> wrote:
>
>> "As I understand, you have no problem with the customization for editors,
>> but have a problem with the customization for the general UI. Is that
>> correct?"
>>
>> You are correct. Currently I have the editor with a dark theme
>> (Spacemacs), but the DrRacket UI itself is light, even though I set it to
>> "Dark" in Windows settings.
>>
>> Thank you for seeking clarification!
>>
>> --JCO
>>
>> On Wednesday, January 15, 2020 at 11:59:51 PM UTC-6, Sorawee
>> Porncharoenwase wrote:
>>>
>>> I was reading in the release notes that DrRacket supports dark mode as
 of 7.5; however, I don't see this option in the DrRacket preferences. I
 also have "Dark" as the default color under the "Colors" section in
 Settings > Personalization > Colors. I am using the latest Windows 10.
>>>
>>>
>>> Just to be clear. DrRacket supports theme customization *for the editor*
>>> under the "Colors" tab long ago (and this is what Robby was talking about
>>> in the above reply). If you want the editor to have a dark background, you
>>> should choose "white on black" theme, "Tol's White on Black" theme, or
>>> install any additional theme (e.g., Spacemacs Dark) via the package manager.
>>>
>>> And then there's DrRacket's general UI. Its dark theme support was added
>>> since Racket 7.5, and this depends on the customization at the OS level.
>>>
>>> Here are four possibilities:
>>>
>>> - Dark theme at the OS level and dark theme for the editor
>>>
>>> [image: Screen Shot 2020-01-15 at 21.37.05.png]
>>>
>>> - Dark theme at the OS level and light theme for the editor
>>>
>>> [image: Screen Shot 2020-01-15 at 21.45.54.png]
>>>
>>> - Light theme at the OS level and light theme for the editor
>>>
>>> [image: Screen Shot 2020-01-15 at 21.50.02.png]
>>>
>>> - Light theme at the OS level and dark theme for the editor
>>>
>>> [image: Screen Shot 2020-01-15 at 21.49.17.png]
>>>
>>> As I understand, you have no problem with the customization for editors,
>>> but have a problem with the customization for the general UI. Is that
>>> correct? I don't have Windows or Linux, so I don't know how DrRacket's
>>> general UI looks like for them. But it works reasonably well in MacOS.
>>>
>>> On Wed, Jan 15, 2020 at 9:03 PM Hendrik Boom 
>>> wrote:
>>>
 On Wed, Jan 15, 2020 at 10:10:12PM -0600, Robby Findler wrote:
 > Dark mode will be a lot better in the next release.

 I hope so.  I use drracket in dark mode on Linux.
 The main panels have a proper black background, but some of the framing
 has a white background, specifically
   the panel that says File Edit View Language, etc
 and
   the panel that says Untitles ... Run Stop
 on startup.

 > Probably one thing
 > you have to do (in the current release) is open the preferences
 > dialog, choose "colors" and then click the "white on black" button.
 > The snapshot builds are here if you want to see the improvement since
 > the last release: https://snapshot.racket-lang.org/
 >
 > Rpbby
 >

 > >
 > > Thank you!
 > >
 > > --JC
 > >
 > > --
 > > 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/e3a39d0a-f629-4179-a668-87e87f2a0118%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...@googlegroups.com.
 > To view this discussion on the web visit
 https://groups.google.com/d/msgid/racket-users/CAL3TdOOxxtr81Cxw-XCq-HqMLDx2SF7OZnzUpUuXcodUONHwZA%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...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/racket-users/20200116050330.zwk5h2mghmgq42ce%40topoi.pooq.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 

Re: [racket-users] DrRacket Dark Mode in Windows

2020-01-17 Thread Robby Findler
Which operating system do you use? And can you share a a screenshot?

Robby

On Thu, Jan 16, 2020 at 10:13 PM Juan Carlos Olivo 
wrote:

> "As I understand, you have no problem with the customization for editors,
> but have a problem with the customization for the general UI. Is that
> correct?"
>
> You are correct. Currently I have the editor with a dark theme
> (Spacemacs), but the DrRacket UI itself is light, even though I set it to
> "Dark" in Windows settings.
>
> Thank you for seeking clarification!
>
> --JCO
>
> On Wednesday, January 15, 2020 at 11:59:51 PM UTC-6, Sorawee
> Porncharoenwase wrote:
>>
>> I was reading in the release notes that DrRacket supports dark mode as of
>>> 7.5; however, I don't see this option in the DrRacket preferences. I also
>>> have "Dark" as the default color under the "Colors" section in Settings >
>>> Personalization > Colors. I am using the latest Windows 10.
>>
>>
>> Just to be clear. DrRacket supports theme customization *for the editor*
>> under the "Colors" tab long ago (and this is what Robby was talking about
>> in the above reply). If you want the editor to have a dark background, you
>> should choose "white on black" theme, "Tol's White on Black" theme, or
>> install any additional theme (e.g., Spacemacs Dark) via the package manager.
>>
>> And then there's DrRacket's general UI. Its dark theme support was added
>> since Racket 7.5, and this depends on the customization at the OS level.
>>
>> Here are four possibilities:
>>
>> - Dark theme at the OS level and dark theme for the editor
>>
>> [image: Screen Shot 2020-01-15 at 21.37.05.png]
>>
>> - Dark theme at the OS level and light theme for the editor
>>
>> [image: Screen Shot 2020-01-15 at 21.45.54.png]
>>
>> - Light theme at the OS level and light theme for the editor
>>
>> [image: Screen Shot 2020-01-15 at 21.50.02.png]
>>
>> - Light theme at the OS level and dark theme for the editor
>>
>> [image: Screen Shot 2020-01-15 at 21.49.17.png]
>>
>> As I understand, you have no problem with the customization for editors,
>> but have a problem with the customization for the general UI. Is that
>> correct? I don't have Windows or Linux, so I don't know how DrRacket's
>> general UI looks like for them. But it works reasonably well in MacOS.
>>
>> On Wed, Jan 15, 2020 at 9:03 PM Hendrik Boom 
>> wrote:
>>
>>> On Wed, Jan 15, 2020 at 10:10:12PM -0600, Robby Findler wrote:
>>> > Dark mode will be a lot better in the next release.
>>>
>>> I hope so.  I use drracket in dark mode on Linux.
>>> The main panels have a proper black background, but some of the framing
>>> has a white background, specifically
>>>   the panel that says File Edit View Language, etc
>>> and
>>>   the panel that says Untitles ... Run Stop
>>> on startup.
>>>
>>> > Probably one thing
>>> > you have to do (in the current release) is open the preferences
>>> > dialog, choose "colors" and then click the "white on black" button.
>>> > The snapshot builds are here if you want to see the improvement since
>>> > the last release: https://snapshot.racket-lang.org/
>>> >
>>> > Rpbby
>>> >
>>>
>>> > >
>>> > > Thank you!
>>> > >
>>> > > --JC
>>> > >
>>> > > --
>>> > > 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/e3a39d0a-f629-4179-a668-87e87f2a0118%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...@googlegroups.com.
>>> > To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/racket-users/CAL3TdOOxxtr81Cxw-XCq-HqMLDx2SF7OZnzUpUuXcodUONHwZA%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...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/racket-users/20200116050330.zwk5h2mghmgq42ce%40topoi.pooq.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/469452d6-2874-4933-b9bc-3b3b9c84af7a%40googlegroups.com
> 
> .
>

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