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

2020-05-02 Thread Sorawee Porncharoenwase
I just created a package that helps creating a stream of multiple values a couple of weeks ago. You might find it useful: https://docs.racket-lang.org/stream-values/ On Sat, May 2, 2020 at 3:38 PM Yury Bulka wrote: > (sorry for the typos - obviously, it should be racket/stream) > > -- > Yury Bul

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

2020-05-02 Thread Yury Bulka
(sorry for the typos - obviously, it should be racket/stream) -- Yury Bulka https://mamot.fr/@setthemfree #NotOnFacebook Yury Bulka writes: > Hello everyone, > > I have a question about creating a steam that yields multiple values on > each iteration. Given something like: > > (require racket

[racket-users] for/stream and values

2020-05-02 Thread Yury Bulka
Hello everyone, I have a question about creating a steam that yields multiple values on each iteration. Given something like: (require racket/strema) (define my-stream (for/stream ([i (in-range 1 10)]) (values "hi" i))) When I'm trying to: (let-values ([(a b) (stream-ref my

[racket-users] Racket v7.7

2020-05-02 Thread 'John Clements' via Racket Users
Racket version 7.7 is now available from https://racket-lang.org/ * Racket CS remains ready for production use---thanks to those who have been putting it into practice to help iron out the remaining kinks---and it now supports a C API for embedding into other applications. See the "Insi

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

2020-05-02 Thread Stephen De Gabrielle
Quick question: Would it better if this discussion happened over at https://github.com/racket/rhombus-brainstorming/blob/master/resources/goals.md or on the Racket Slack #rhombus channel? I’m aware that email and slack is a bit ephemeral - it is probably a good idea to turn any proposals into R

Re: [racket-users] Re: Should I stop sending packages to the catalog?

2020-05-02 Thread Bogdan Popa
Sage Gerard writes: > As long as I don't have to keep reorganizing my code to accommodate > the tooling, then it's a night and day improvement. Would you mind > terribly if I worked with you? I was mulling over this myself in the > dev list, but I am happy to aid any existing effort. I'd apprecia

[racket-users] Script of the day! (2-May-2020)

2020-05-02 Thread Stephen De Gabrielle
> Script of the day: Have a Menu that displays all open tabs in DrRacket. > (Currently, DrRacket displays only the first 10). > > How to install: Click on Scripts | Manage scripts | New script... > Enter "All tabs" (a new script opens filled with a template. > > Replace the template with the co

Re: [racket-users] Futures + threads SIGSEGV

2020-05-02 Thread Dominik Pantůček
Hi Sam, On 02. 05. 20 14:26, Sam Tobin-Hochstadt wrote: > I successfully reproduced this on the first try, which is good. Here's > my debugging advice (I'm also looking at it): > > 1. To use a binary with debugging symbols, use > `racket/src/build/racket/racket3m` from the checkout of the Racket

Re: [racket-users] Futures + threads SIGSEGV

2020-05-02 Thread Sam Tobin-Hochstadt
I opened https://github.com/racket/racket/issues/3145 to avoid too much mailing list traffic, and posted a stack trace there. Sam On Sat, May 2, 2020 at 8:31 AM Matthew Flatt wrote: > > I wasn't able to produce a crash on my first try, but the Nth try > worked, so this is very helpful! > > I'm

Re: [racket-users] Futures + threads SIGSEGV

2020-05-02 Thread Dexter Lagan
Hi Dominik, Ah that explains why I was getting an incorrect number of threads! I didn’t think about using future-visualizer, but I’ll give it a try. Thanks! Dex > On May 2, 2020, at 2:27 PM, Dominik Pantůček > wrote: > > Hi Dex, > >> On 02. 05. 20 14:10, Dexter Lagan wrote: >> Hello, >>

Re: [racket-users] Futures + threads SIGSEGV

2020-05-02 Thread Matthew Flatt
I wasn't able to produce a crash on my first try, but the Nth try worked, so this is very helpful! I'm investigating, too... At Sat, 2 May 2020 08:26:10 -0400, Sam Tobin-Hochstadt wrote: > I successfully reproduced this on the first try, which is good. Here's > my debugging advice (I'm also looki

Re: [racket-users] Futures + threads SIGSEGV

2020-05-02 Thread Dominik Pantůček
Hi Dex, On 02. 05. 20 14:10, Dexter Lagan wrote: > Hello, > >   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

Re: [racket-users] Futures + threads SIGSEGV

2020-05-02 Thread Sam Tobin-Hochstadt
I successfully reproduced this on the first try, which is good. Here's my debugging advice (I'm also looking at it): 1. To use a binary with debugging symbols, use `racket/src/build/racket/racket3m` from the checkout of the Racket repository that you built. 2. When running racket in GDB, there are

Re: [racket-users] Futures + threads SIGSEGV

2020-05-02 Thread Dexter Lagan
Hello, 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. I haven’t been able to figure out why. On Linux i

[racket-users] Futures + threads SIGSEGV

2020-05-02 Thread Dominik Pantůček
Hello fellow Racketeers, during my research into how Racket can be used as generic software rendering platform, I've hit some limits of Racket's (native) thread handling. Once I started getting SIGSEGVs, I strongly suspected I am doing too much unsafe operations - and to be honest, that was true.

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

2020-05-02 Thread Dexter Lagan
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 best thing being, allowing semicolons in place