[racket-users] break-thread + thread-wait can't be handled

2017-05-03 Thread Eric Griffis
Hello, I'm having trouble catching "terminate break" exceptions when combining break-thread with thread-wait. MWE 1: (with-handlers ([exn:break:terminate? writeln]) (let ([t (thread (lambda () (thread-wait (current-thread]) (break-thread t 'terminate) (thread-wait t)))

Re: [racket-users] break-thread + thread-wait can't be handled

2017-05-04 Thread Eric Griffis
On Wednesday, May 3, 2017 at 3:04:20 PM UTC-7, Ryan Culpepper wrote: > On 5/3/17 10:41 PM, Eric Griffis wrote: > > Hello, > > > > I'm having trouble catching "terminate break" exceptions when combining > > break-thread with thread-wait. &g

Re: [racket-users] Intro and projects inquiry

2017-10-13 Thread Eric Griffis
On Thu, Oct 12, 2017 at 2:27 PM Andrew Gwozdziewycz wrote: > I love seeing all of these project ideas, but I really don't think > Racket needs a "killer app." I think what it needs is the people > passionate about it building tools in it, and *using* those tools in > the work

Re: [racket-users] Intro and projects inquiry

2017-10-13 Thread Eric Griffis
On Thu, Oct 12, 2017 at 9:31 AM David Storrs wrote: > My suggestion would be that the single largest thing that would make > Racket take off is if it could become a replacement for Javascript. RacketScript Playground does not optimize tail calls. If it turned ES6 strict

Re: [racket-users] Intro and projects inquiry

2017-10-11 Thread Eric Griffis
On Wed, Oct 11, 2017 at 2:58 PM Neil Van Dyke wrote: > > * Being there soon with a Web Assembly and HTML5 plus server full-stack > story, in case developers respond favorably to that. > Web back-ends are my wheelhouse. It sure would make my professional life easier... Not

Re: [racket-users] Intro and projects inquiry

2017-10-11 Thread Eric Griffis
looking for projects I’d start > by looking there. > > — > William J. Bowman > > > On Oct 11, 2017, at 10:12 PM, Eric Griffis <ded...@gmail.com> wrote: > > > > Hello, > > > > My name is Eric and I love Racket. > > > > I am 39 years old and have

[racket-users] Intro and projects inquiry

2017-10-11 Thread Eric Griffis
Hello, My name is Eric and I love Racket. I am 39 years old and have been writing software for 30 years. I studied metaprogramming and taught programming languages as a grad student. My sole academic publication is on semantics and provenance for distributed data science tools. These days, I

Re: [racket-users] redex features? boolean ops and piece-wise

2018-03-15 Thread Eric Griffis
On Wednesday, March 14, 2018 at 3:14:34 PM UTC-7, Robby Findler wrote: > > I usually use metafunctions for that purpose. It might be nice if there > were more such functions built into redex that came with their own renders, > I guess. > > More than once, I've gotten stuck typesetting in Redex

[racket-users] Using pict-convertibles in Scribble docs?

2018-04-15 Thread Eric Griffis
Hello, I'm making composite picts in my Scribble docs and am looking for a clean way to keep references to sub-picts around for helper functions to draw lines between. A struct with the `prop:pict-convertible` property would suffice, but `raco setup` gives an error. Given this struct definition:

Re: [racket-users] Struct general question

2018-03-26 Thread Eric Griffis
The `struct` form is defined in `struct.rkt` [1]. As you can see, `struct` wraps `define-struct/derived` [2], which uses many things exported from `struct.c` [3]. The "Inside: Racket C API" doc [5] describes some of these functions -- see section 16. On the matter of structs being essentially

Re: [racket-users] struct-copy question

2018-03-17 Thread Eric Griffis
How about a list of identifiers bound to getters or setters? The `extract-struct-info` procedure in Section 5.7 of the Racket Reference appears to give you that. Eric On Fri, Mar 16, 2018 at 2:56 PM Kevin Forchione wrote: > > > > On Mar 16, 2018, at 2:38 PM, Kevin Forchione

Re: [racket-users] struct-copy question

2018-03-19 Thread Eric Griffis
(dump-struct-info point) (GOT (# # # (# # #) (# #f #f) #t)) ``` Eric On Sat, Mar 17, 2018 at 8:15 PM Kevin Forchione <lyss...@gmail.com> wrote: > > > > On Mar 17, 2018, at 9:24 AM, Eric Griffis <ded...@gmail.com> wrote: > > > > How about a list

Re: [racket-users] struct-copy question

2018-03-21 Thread Eric Griffis
I bump into struct subtleties all the time. For example, my attempts to #:auto always degenerate into custom constructor procedures; This usually involves #:constructor-name and #:omit-define-syntaxes, which might not be a big deal if I had a solid understanding of what these flags actually do. So

Re: [racket-users] struct-copy question

2018-03-21 Thread Eric Griffis
On Wed, Mar 21, 2018 at 4:43 PM Alexis King <lexi.lam...@gmail.com> wrote: > > On Mar 21, 2018, at 15:32, Eric Griffis <ded...@gmail.com> wrote: > > > > This would be a code smell if I didn't trust that our Racket ancestors > > knew what they were doing, so the

[racket-users] Announcing Event-lang

2018-05-18 Thread Eric Griffis
Hi everyone, I would like to announce the initial release of event-lang, an experimental Racket library that simplifies the creation of complex synchronizable events. https://pkgd.racket-lang.org/pkgn/package/event-lang Event-lang provides a primitive expression lifting form, > (pure 123)

Re: [racket-users] Announcing Event-lang

2018-05-22 Thread Eric Griffis
On Mon, May 21, 2018 at 11:21 AM Jay McCarthy wrote: > This is very cute! Can you point to a fun example? I looked through > the repo and it wasn't obvious where some tests and examples were. > > Jay > Here's a variety of small examples. Sometimes, I just want to wait

Re: [racket-users] Announcing Event-lang

2018-05-24 Thread Eric Griffis
t-lang` docs. > > > On May 22, 2018, at 7:29 AM, Eric Griffis <ded...@gmail.com> wrote: > > Here's a variety of small examples. > > > -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this gr