Re: [racket-users] Racket 7.3 Plot Performance Regression

2019-06-03 Thread evdubs
Thanks for trying it out. I just tried using the bash installer from https://download.racket-lang.org/ and I experience the same issue of lagginess in 7.3. I also tried using a snapshot release from https://plt.eecs.northwestern.edu/snapshots/ and I experienced the same issue. I am not sure

Re: [racket-users] macros and let/cc

2019-06-03 Thread Kevin Forchione
> On Jun 3, 2019, at 9:42 AM, Matthias Felleisen wrote: > > > >> On Jun 3, 2019, at 12:33 PM, Kevin Forchione wrote: >> >> Oh! I see! That solves the expansio issue! Wonderful. You’ve opened up a >> whole new set of possibilities for me. Thanks, Matthias. > > > I am glad I sent my

[racket-users] Racket News - Issue 9

2019-06-03 Thread 'Paulo Matos' via Racket Users
Issue 9 is here. https://racket-news.com/2019/06/racket-news-issue-9.html Grab a coffee and 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

[racket-users] Re: scopes across files

2019-06-03 Thread Eric Griffis
Apologies to mobile users. The superscripts added by +scopes aren't boxes in the Web client. To clarify my question: how do I handle the situation where variables bound by one macro and used by another are out of scope when file boundaries are involved? The +scopes into shows that the scope sets

[racket-users] scopes across files

2019-06-03 Thread Eric Griffis
Several times now, I've run into one or another form of the following problem: Say I want to build primitives to 1. declare an "interface" as a list of names, and 2. implement and use those names at run time in a limited scope Concretely, I want to run the following code: (interface

Re: [racket-users] Mutating hash-map while iterating

2019-06-03 Thread Ben Greenman
You want the paragraph just above the caveat about concurrent modification: > A hash table can be used as a two-valued sequence (see Sequences). The keys > and values of the hash table serve as elements of the sequence (i.e., each > element is a key and its associated value). If a mapping is

Re: [racket-users] New Package: Dynamic FFI - Write C Code Inline

2019-06-03 Thread Neil Van Dyke
This looks neat. I'm glad you noted upfront in the documentation about things it can't handle automatically (e.g., allocations/lifetimes that need special management). In your discussion relating this to other work/approaches, you might want to contrast with SWIG (e.g., you work from the

Re: [racket-users] macros and let/cc

2019-06-03 Thread Matthias Felleisen
> On Jun 3, 2019, at 12:33 PM, Kevin Forchione wrote: > > Oh! I see! That solves the expansio issue! Wonderful. You’ve opened up a > whole new set of possibilities for me. Thanks, Matthias. I am glad I sent my solution a second time :) -- You received this message because you are

Re: [racket-users] Re: New Package: Dynamic FFI - Write C Code Inline

2019-06-03 Thread Jay McCarthy
We're already on it... https://github.com/jeapostrophe/adqc See an example here: https://github.com/jeapostrophe/adqc/blob/master/t/fib.rkt It'll be more than just C though, because we'll be generating verification conditions and we'll allow you to enforce time and space bounds. Jay -- Jay

Re: [racket-users] macros and let/cc

2019-06-03 Thread Kevin Forchione
> On Jun 3, 2019, at 9:09 AM, Matthias Felleisen wrote: > > > Or, > > #lang racket > > (require (for-syntax ) racket/stxparam) > > (define-syntax-parameter return (syntax-rules ())) > (define-syntax-parameter false (syntax-rules ())) > > (define-syntax fn > (syntax-rules () > [(_ (arg

Re: [racket-users] macros and let/cc

2019-06-03 Thread Matthias Felleisen
Or, #lang racket (require (for-syntax ) racket/stxparam) (define-syntax-parameter return (syntax-rules ())) (define-syntax-parameter false (syntax-rules ())) (define-syntax fn (syntax-rules () [(_ (arg ...) body ...) (λ (arg ...) (let/cc fn-exit (syntax-parameterize

[racket-users] Second Call for Submissions: ICFP Student Research Competition

2019-06-03 Thread 'Sam Tobin-Hochstadt' via users-redirect
ICFP 2019 Student Research Competition Call for Submissions ICFP invites students to participate in the Student Research Competition in order to present their research and get feedback from prominent members of the programming language research community. Please submit

Re: [racket-users] macros and let/cc

2019-06-03 Thread Matthias Felleisen
#lang racket (require (for-syntax ) racket/stxparam) (define-syntax-parameter return (syntax-rules ())) (define-syntax fn (syntax-rules () [(_ (arg ...) body ...) (λ (arg ...) (let/cc fn-exit (syntax-parameterize ([return (syntax-rules () [(_ x) (fn-exit x)])])

Re: [racket-users] macros and let/cc

2019-06-03 Thread Kevin Forchione
> On Jun 3, 2019, at 8:51 AM, Matthias Felleisen wrote: > > > My code run your examples. Whay is missinng? > Here’s what I’ve been trying to run. #lang racket (require (for-syntax racket/syntax) racket/stxparam) (define-syntax-parameter false (lambda (stx)

Re: [racket-users] 7 GUIs

2019-06-03 Thread 'John Clements' via users-redirect
Would it make sense to post the early ones to the 7GUIs site? They might be the easiest ones for others to understand. John > On Jun 1, 2019, at 4:47 PM, Matthias Felleisen wrote: > > > Someone recently mentioned the “7 GUIs” task. I spent a couple of days to > write up minimal solutions:

[racket-users] Re: New Package: Dynamic FFI - Write C Code Inline

2019-06-03 Thread zeRusski
Oh wow! IIUC it is super awesome. Would a natural next step be #lang terra ? Hey Jay McCarthy would you like to mentor that effort ;-) On Saturday, 1 June 2019 20:06:29 UTC+1, David Benoit wrote: > > Hi All, > > I've recently released a new library >

Re: [racket-users] macros and let/cc

2019-06-03 Thread Matthias Felleisen
My code run your examples. Whay is missinng? > On Jun 3, 2019, at 11:36 AM, Kevin Forchione wrote: > > > >> On Jun 3, 2019, at 4:54 AM, Alex Knauth wrote: >> >> >> >>> On Jun 3, 2019, at 1:02 AM, Kevin Forchione wrote: On Jun 2, 2019, at 7:13 PM, Matthias Felleisen

[racket-users] Mutating hash-map while iterating

2019-06-03 Thread zeRusski
Is it ok to mutate a hash while iterating over it say in one of ~for~ forms? Specifically I want to filter (that is drop) some keys, but I'm also interested in mutation in general. I guess the answer lies in whether forms like ~in-dict~ etc create lazy streams that hold on to the table?

Re: [racket-users] macros and let/cc

2019-06-03 Thread Kevin Forchione
> On Jun 3, 2019, at 4:54 AM, Alex Knauth wrote: > > > >> On Jun 3, 2019, at 1:02 AM, Kevin Forchione > > wrote: >>> On Jun 2, 2019, at 7:13 PM, Matthias Felleisen >> > wrote: On Jun 2, 2019, at 9:41 PM, Kevin Forchione >>>

Re: [racket-users] New Package: Dynamic FFI - Write C Code Inline

2019-06-03 Thread Konrad Hinsen
On 01/06/2019 21:06, David Benoit wrote: I've recently released a new library for dynamically generating FFI bindings to C by parsing header files. It also allows users to create FFI libraries by writing C functions directly inline in Racket

Re: [racket-users] macros and let/cc

2019-06-03 Thread Alex Knauth
> On Jun 3, 2019, at 1:02 AM, Kevin Forchione wrote: >> On Jun 2, 2019, at 7:13 PM, Matthias Felleisen > > wrote: >>> On Jun 2, 2019, at 9:41 PM, Kevin Forchione >> > wrote: >>> >>> Hi guys, >>> I’ve been working with macros and let/cc