[racket-users] Quick Scripts collection

2020-05-03 Thread Dexter Lagan
I made a repo for my QuickScripts and moved both compile-standalone and my provide generator into it: https://github.com/DexterLagan/Quick-Scripts At work I also got a really nice one to generate program skeletons, I'll upload it tomorrow. Lemme know what you think. Dex -- You received

[racket-users] plotting graphs with flipped y axes

2020-05-03 Thread David Bremner
Does anyone know how to achieve plots like the attached with racket's plot module? I'm stuck trying to invert the y axis. I'd like the smaller y values to be at the top of the plot. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To

Re: [racket-users] for/stream and values

2020-05-03 Thread Yury Bulka
Sorawee Porncharoenwase writes: >> >> Thank you for the package! So, do I understand correcty that it is >> impossible to produce multi-valued streams with for/stream? If so, maybe >> it's worth adding a note about it to the documentation of for/stream? >> > > That is correct. Feel free to

Re: [racket-users] Reducing parentheses without language damage.

2020-05-03 Thread George Neuner
On 5/2/2020 4:58 AM, Dexter Lagan wrote:   For the sake of discussion, here’s a long rant:   I might have a very uninformed opinion here, but wouldn’t having significant white space and no scope-defining character amount to multiple spaces and line feeds being part of the syntax? The next

Re: [racket-users] Reducing parentheses without language damage.

2020-05-03 Thread Dexter Lagan
Spoiled is an understatement. I wrote a lot of programs in debug (DOS). And it was nice! Turbo Pascal was what really spoiled me. :) I miss the in-line asm days. Dex > On May 3, 2020, at 9:46 PM, George Neuner wrote: > >  >> On 5/2/2020 4:58 AM, Dexter Lagan wrote: >> For the sake of

[racket-users] Re: Futures + threads SIGSEGV

2020-05-03 Thread George Neuner
On Sat, 2 May 2020 14:10:19 +0200, Dexter Lagan wrote: > I’ve been getting inconsistent results as well. A while ago I made a >benchmark based on a parallel spectral norm computation. The >benchmark works fine on Windows on most systems and uses all cores, >but crashes randomly on other systems.

[racket-users] Re: plotting graphs with flipped y axes

2020-05-03 Thread Alex Harsanyi
On Monday, May 4, 2020 at 1:31:06 AM UTC+8, David Bremner wrote: > > > Does anyone know how to achieve plots like the attached with racket's > plot module? I'm stuck trying to invert the y axis. I'd like the smaller > y values to be at the top of the plot. > > I am not aware of any plot

[racket-users] On the importance of testing for noobs - or 'there's no such thing as a stupid test'.

2020-05-03 Thread Dexter Lagan
If it wasn't abundantly clear yet, I'm a Racket noob, so when I had this kind of thing in my code: (define x 'a) (case x (('a) return-something) (('b) return-something-else) (('c) return-yet-another-thing)) I was baffled to find out that the case form always returned void (thanks

[racket-users] Strange find-files problem

2020-05-03 Thread Dexter Lagan
Hello Sunday coders, So I made a QuickScript to compile to standalone executable in a platform-independent manner - without zipping. It works great, and Laurent gave me a hand with the file browsing part for Linux. However I'm encountering a hard to track runtime error with find-files. I am

Re: [racket-users] for/stream and values

2020-05-03 Thread Yury Bulka
Thank you for the package! So, do I understand correcty that it is impossible to produce multi-valued streams with for/stream? If so, maybe it's worth adding a note about it to the documentation of for/stream? Also, I notice in the manual of your package that you mention that generators are

[racket-users] Re: Strange find-files problem

2020-05-03 Thread Alex Harsanyi
The path is fine. `ext` however is always void. get-current-platforms-icon-ext is incorrect, you don't need quotes around the platform names. Also, the error message is incomplete, I am not sure if there was scroll bar, but the contract failure should have told you which argument was wrong.

Re: [racket-users] for/stream and values

2020-05-03 Thread Sorawee Porncharoenwase
> > Thank you for the package! So, do I understand correcty that it is > impossible to produce multi-valued streams with for/stream? If so, maybe > it's worth adding a note about it to the documentation of for/stream? > That is correct. Feel free to submit a PR to improve the documentation. You