Re: [racket-users] How 'Pythonic' Can Racket Be Made?

2023-10-12 Thread Matthias Felleisen
We tried embedding Python into Racket nee PLT Scheme some 20 years ago, twice: Here is a paper on the second attempt: From Python to PLT Scheme https://www2.ccs.neu.edu/racket/pubs/#scheme2003-ms Daniel Silva took the lead on this initiative. The surface language was (back then)

Re: [racket-users] Core Team: I need you decide what I should do about the spammer.

2022-01-12 Thread Matthias Felleisen
Thank you Sage for taking on this task. — Matthias -- 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.co

Re: [racket-users] Core Team: I need you decide what I should do about the spammer.

2021-12-18 Thread Matthias Felleisen
+2! And many thanks. (I was personally spared this spam until very recently. No clue why) — Matthias > On Dec 18, 2021, at 2:55 PM, Robby Findler wrote: > > +1! Thank you. > > Robby > > On Sat, Dec 18, 2021 at 1:43 PM Matthew Flatt <mailto:mfl...@cs.utah.edu

[racket-users] machine and network outage at Northeastern

2021-06-30 Thread matthias
Northeastern has taken down its research machines and network for major repairs. The outage will last from today June 30 through July 2. We have been reassured that it will come back then several times. The most observable effect for Racket Users is the absence of `planet`. — Matthias

Re: [racket-users] The case, and a proposal, for elegant syntax in #lang racket2

2019-07-15 Thread Matthias Felleisen
into another political echo chamber, because then I have to remove myself from it and the public Racket community. If people wish to discuss the politics of diversity in the Racket community, please create a Facebook group and go there. — Matthias > On Jul 15, 2019, at 1:06 PM, Jack Fi

Re: [racket-users] The case, and a proposal, for elegant syntax in #lang racket2

2019-07-15 Thread Matthias Felleisen
one, is welcome on this technical list to discuss technical issues. We don’t exclude anyone. And everyone gets treated the same and gets productive responses if possible. In particular, politics stays off this list; it’s divisive enough in the rest of the world. Thank you — Matthias -- You receiv

Re: [racket-users] Re: Thinking in scheme / racket

2019-07-11 Thread Matthias Felleisen
” (but not the cost of primality checking). — Matthias -- 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.co

Re: Re: [racket-users] Thinking in scheme / racket

2019-07-11 Thread matthias
” (but not the cost of primality checking). — Matthias -- 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.co

Re: [racket-users] Contracts in lambda?

2019-07-10 Thread Matthias Felleisen
[(contract (-> string? integer?) (λ (x) x) 'a 'b) "hello”] > On Jul 10, 2019, at 10:11 PM, Kevin Forchione wrote: > > Hi guys, > Is there a way to apply contracts to a lambda without associating it with an > identifier? What I want is to be able to pass lambda functions around without >

Re: [racket-users] raise-argument-error missing list?

2019-07-08 Thread Matthias Felleisen
. Contributions for boundary re-factorings in DrRacket are welcome. Now you need to choose which dis/advantages you prefer — Matthias -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving e

Re: [racket-users] What's wrong with my code?

2019-07-07 Thread Matthias Felleisen
With some for/loops in TR you’re out of luck. The expansion are too complex to type-check easily. > On Jul 7, 2019, at 10:24 AM, 曹朝 wrote: > > This is a simple algorithm for compute the shortest edit distance, it can > work with `#lang racket/base`. > But in Typed Racket, I just got the

Re: [racket-users] resources on PL design

2019-07-02 Thread Matthias Felleisen
Stephen, since Neil mentioned Alan Kay’s highly informative(*) HOPL essay, let me also point you to Ingalls’ essay (which Robby pointed out to me about a year ago): http://web.archive.org/web/20070213165045/users.ipa.net/~dwighth/smalltalk/byte_aug81/design_principles_behind_smalltalk.html

Re: [racket-users] Re: resources on PL design

2019-06-30 Thread Matthias Felleisen
and dissertations in this direction are appearing. I just happen to be extremely skeptical of the results. I just don’t think we know how to ask the questions properly. See https://felleisen.org/matthias/Thoughts/The_Laffer_Curve_of_Types.html <https://felleisen.org/matthias/Thoug

Re: [racket-users] images for Dr Racket 7.2 (Mac)

2019-06-30 Thread Matthias Felleisen
There is a small image collection available in 2htdp/image but the idea is that you do such examples with your own ideas and your own images. ~~ The next on-line release will suggest John's mouse-click suggestion. — Matthias > On Jun 30, 2019, at 4:31 AM, Bryan Pierce wrote: >

Re: [racket-users] new or make-object?

2019-06-29 Thread Matthias Felleisen
> On Jun 27, 2019, at 6:18 AM, Amir Teymuri wrote: > > According to the docs: > > The make-object > > procedure creates a new object with by-position

Re: [racket-users] leetcode

2019-06-16 Thread Matthias Felleisen
bstract them, using the minimal tool necessary. But when I scanned this dumb discussion you pointed me to, I couldn’t resist stooping down to their level :)) "Does it matter that for loops don't leave a stack trace? How can poor programmers debug them w/o a stack trace?” — Matthias :) --

Re: [racket-users] leetcode

2019-06-16 Thread Matthias Felleisen
includes a “test”. But yes, I can see how plan R5 would look very bulky here, except if you can figure out ‘do’. (This has been a iong running argument with a local colleague here who loves R5.) ;; - - - You forgot [2]. — Matthias > IThough, for example, one of their solutions,

Re: [racket-users] The search for routy

2019-06-14 Thread Matthias Felleisen
You may be interested in https://github.com/adjkant/web-sourcery (wip) > On Jun 14, 2019, at 3:15 AM, Gregor Kopp wrote: > > Thank you very much! > It's hot here... > > Am Freitag, 14. Juni 2019 08:58:53 UTC+2 schrieb Tom Gillespie: > https://github.com/Junker/routy found via

[racket-users] Re: 7 GUIs

2019-06-14 Thread Matthias Felleisen
> On Jun 1, 2019, at 7:47 PM, Matthias Felleisen wrote: > > > Someone recently mentioned the “7 GUIs” task. I spent a couple of days to > write up minimal solutions: > > https://github.com/mfelleisen/7GUI/blob/master/task-7.rkt > > In my spare time, I wil

Re: [racket-users] Re: nannou

2019-06-11 Thread Matthias Felleisen
big-bang is intended for beginners. I understand that it can be used beyond the intended course material but I want to say that “adult programmers” are better off with the underlying graphics tool box :) > On Jun 11, 2019, at 8:10 AM, Darren Newton wrote: > > I spent a couple of weeks

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

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

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 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

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

2019-06-02 Thread Matthias Felleisen
ow about the 1st macro except > perhaps through the six of compile time… so that if I had define-syntax > working with a lambda I’d have all the pieces available in the (fn …) but not > sure what tools I might use to accomplish that. > > Any ideas are appreciated! This situation

[racket-users] 7 GUIs

2019-06-01 Thread Matthias Felleisen
Someone recently mentioned the “7 GUIs” task. I spent a couple of days to write up minimal solutions: https://github.com/mfelleisen/7GUI/blob/master/task-7.rkt In my spare time, I will develop this repo in more depth (types,

Re: [racket-users] Macro help

2019-05-24 Thread Matthias Felleisen
Let me propose the use of syntax-parse as an alternative here. I think it clarifies the purpose of the maco. — Matthias #lang racket (require (for-syntax syntax/parse)) #; (aux a (b (* 2 pi)) c (d pi)) ;; => #; (define-values (a b c d) (values #f 6.28318530717958 #f 3.141592653589

Re: [racket-users] Abstract run times (HTDP)

2019-05-24 Thread Matthias Felleisen
> On May 24, 2019, at 6:27 AM, Sean Kemplay wrote: > > Hi all, > > I trying to work out the ART of the sum-tree question from HTDP2e. > > I have worked through the book before however am going through it again, this > time am doing every exercise - this is not homework! > > Here is my

Re: [racket-users] chez-runner plugin

2019-05-22 Thread Matthias Felleisen
Off topic. ~~ It is ironic how 23 years after we started out and had an option for DrRacket, née DrScheme, to run its programs in Chez instead Mz .. and now we’re getting back to that :) > On May 22, 2019, at 11:10 AM, 'Paulo Matos' via Racket Users > wrote: > > Hi, > > It seems you

Re: [racket-users] Haskell

2019-05-15 Thread Matthias Felleisen
> On May 15, 2019, at 1:26 PM, Josh Rubin wrote: > > Type inference; laziness as the default; the language forces me to think in a > different way than racket (or scheme) makes me think. > > The examples I have seen have a breath-taking level of abstraction that > appeals to the

Re: [racket-users] Re: Keeping my mind sharp

2019-05-11 Thread Matthias Felleisen
limb the hill to macro design patterns. But I am sure we will hear from you before that, and as you can tell, people will help out — Matthias -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group a

Re: [racket-users] tilda - a threading macro full of itself

2019-05-07 Thread Matthias Felleisen
But now the threading has precise syntactic boundaries, and the implementation gets away without any assignments (which I assume #:as uses). — Matthias -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and

Re: [racket-users] tilda - a threading macro full of itself

2019-05-07 Thread Matthias Felleisen
ng them up in structs or lists or whatever you have to do if you have only one. At first I thought #:as would you let you do so, but that’s not correct. It just names the threaded value. Did I overlook anything? — Matthias -- You received this message because you are subscribed to the Google

Re: [racket-users] how do you read, manipulate, debug scope sets?

2019-05-06 Thread Matthias Felleisen
s like yours. [In your specific example, I think it is often better to pass the identifier into the macro.] For examples, you may wish to look at Alexis’s Hackett implementation. Not all of what you asked for is doable, and I can’t even imagine you’d need all of these. — Matthias -- You received

Re: [racket-users] Stack trace

2019-05-04 Thread Matthias Felleisen
course, not doable if there’ no ‘else’). — Matthias p.s. But please do teach your students the design recipe so that they have a test suite available no matter what. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscri

Re: [racket-users] Re: RacketCon: These 8 INSANE talks about Racket will change your life! I can't believe #7! --- (ninth RacketCon) on July 13th, 2019 --- Speakers Announced!

2019-04-29 Thread Matthias Felleisen
Yes, Jay is about to send it out to people who signed up and/or asked for financial help. — Matthias > On Apr 29, 2019, at 9:30 PM, calminfe...@gmail.com wrote: > > For Racket School is there any information yet about scoring a dorm room? Or > if preferred any conference rates

Re: [racket-users] Are syntax transformations tree automata?

2019-04-23 Thread Matthias Felleisen
The coimputational power of Racket’s syntax transformation system is equivalent to that of Turing machines. [[ The expressive power is a bit limited and we’re working on expanding it, but I don’r think you’re asking about this. ]] — Matthias > On Apr 23, 2019, at 7:29 AM, Il

Re: [racket-users] Being a good macro citizen: patterns to follow for good error reporting

2019-04-21 Thread Matthias Felleisen
y relevant but one should have at least passing > knowledge of to recognize when it may come in handy? > > Is this too broad of a request? No, even with syntax-parse and define-syntax-class around, we still need guides for people who enter Macroland so that they find their way to t

Re: [racket-users] From HtDP to Racket

2019-04-20 Thread Matthias Felleisen
ied it. I got close to saying negative things about it in the style guide. I am a bit disappointed that the code didn't shrink during the transformation but I didn’t spot immediate big gains, even with some small style guide things fixed. Again, thank you very much and please keep post

Re: [racket-users] catch and bind an unbound id in a macro

2019-04-19 Thread Matthias Felleisen
Yes, I wanted to recall this trick for you and overshot :) > On Apr 19, 2019, at 6:04 PM, zeRusski wrote: > > Matthias, FWIW your first solution gave me a flashback from last year's > Summer School. I remember using this trick. Now I hope I don't forget when I >

Re: [racket-users] catch and bind an unbound id in a macro

2019-04-19 Thread Matthias Felleisen
I should have know better: (define-syntax (set/define stx) (syntax-case stx () [(_ id key val) (identifier-binding #'id) #`(begin (hash-set! h 'key val) h)] [(_ id key val) #'(begin (define id (make-hash)) (set/define id key val))]))

Re: [racket-users] catch and bind an unbound id in a macro

2019-04-19 Thread Matthias Felleisen
I had the impression that you want to create the hashtable when it’s not there and use it when it is: #lang racket (define-syntax (set/define stx) (syntax-case stx () [(_ id key val) (syntax-local-value #'id (lambda () #f)) (with-syntax ([h (car (syntax-local-value #'id

Re: [racket-users] hackernews

2019-04-16 Thread Matthias Felleisen
Can you speak in general terms at RacketCon? > On Apr 16, 2019, at 3:02 PM, dexterla...@gmail.com wrote: > > I use Racket daily in production at Mercury Filmworks (Disney TVA, Amazon, > Netflix productions among others), and I wish I could talk more about how > Racket helps us where it

Re: [racket-users] Is there a way to find where some feature is implemented in racket?

2019-04-16 Thread Matthias Felleisen
> On Apr 16, 2019, at 8:31 AM, zeRusski wrote: > > I suspect I'm not the first to ask, but my search-fu has failed me here. > Apologies if the question has already been answered on that list. > > When I read Racket docs I sometimes wonder how a particular feature is > implemented. Looking

Re: [racket-users] recursive function with multiple arguments

2019-04-12 Thread Matthias Felleisen
A bit of modernity yields this: (define (project-pop.v1 y r k thetasd t [i 1]) (cond [(= i t) (list y)] [else (define theta (flvector-ref (flnormal-sample 0.0 thetasd 1) 0)) (define y1 (* y (- r (* r (/ y k))) (exp theta))) (cons y (project-pop y1 r k thetasd t (+

Re: [racket-users] HN: "The Siren Song of Little Languages"

2019-03-26 Thread Matthias Felleisen
compiler writers translate the standard into an implementation.) The argument produced a backlash and helped us recognize that Racket had moved beyond Scheme. It might be best if we don’t push too hard on this blog post. — Matthias p.s. FWIW, there are counter-arguments to the R6RS move. Lua i

Re: [racket-users] Error handling for the GUI

2019-03-25 Thread Matthias Felleisen
> On Mar 25, 2019, at 12:30 PM, James Platt wrote: > > > On Mar 25, 2019, at 12:05 PM, Matthias Felleisen wrote: > >> Your exception handlers may test a contract failure to any level. You can >> specify this in the predicate part of with-handlers or via

Re: [racket-users] Error handling for the GUI

2019-03-25 Thread Matthias Felleisen
> On Mar 25, 2019, at 11:59 AM, James Platt wrote: > > > On Mar 23, 2019, at 5:49 PM, Greg Hendershott wrote: > >> But -- contract violations aren't like that. They're about some code >> surprising some other code. I think the only hope here is, run the >> code enough (before the user ever

Re: [racket-users] How to launch image display from racket REPL?

2019-03-16 Thread Matthias Felleisen
able to do this in 15minutes? It depends on how far you’re willing to click and scroll. It’s really raco doc 2htdp/image scroll down to section 2.2 (see ToC) click on pict convertible scroll up to see ToC (and notice ‘rendering’) Perhaps this helps someone in the future — Matthias >

Re: [racket-users] Pretty display of tabular data?

2019-03-14 Thread matthias
(get-rewriten-error-message x) — Matthias -- 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. For

Re: [racket-users] Writing scribble?

2019-03-13 Thread Matthias Felleisen
esc-b, esc-f > On Mar 13, 2019, at 2:24 PM, Matt Jadud wrote: > > Hi all, > > I assume people use DrRacket to write Scribblings. > > I'll be writing text, and want to move back one word. On the Mac, most of the > time I can hit Option-LeftArrow, and I go back one word. > > I DrRacket,

Re: [racket-users] out of memory with streams

2019-03-12 Thread Matthias Felleisen
a stream implementation that avoids > memoization. The very notion of ‘stream’ implies memoization. What I am surprised about is that racket/stream (unlike #lang lazy) does not memoize exceptions, which is even more expensive — Matthias -- You received this message because you are subscribed to

Re: [racket-users] out of memory with streams

2019-03-12 Thread Matthias Felleisen
> On Mar 12, 2019, at 3:10 AM, bedeke wrote: > > Hello, > > when running any of the following the program runs out of memory: > > #lang racket/base > (require racket/stream) > > (stream-ref (let ([i 0])(stream-cons i (let loop ()(set! i (+ i > 1))(stream-cons i (loop) >

Re: [racket-users] define fails at runtime, where let fails at compile time

2019-03-11 Thread Matthias Felleisen
re. When I replace let-s with define-s, I have gotten used to checking for identifier sequencing and such. But perhaps a newbie shouldn’t have to think that way. — Matthias -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To un

Re: [racket-users] define fails at runtime, where let fails at compile time

2019-03-11 Thread Matthias Felleisen
which is two different things. If you want to compare apples to apples, use a ‘letrec' instead of a ‘let' in ‘bar'. Then you have (1) the same semantics and (2) the same error. — Matthias -- You received this message because you are subscribed to the Google Groups "Racket Users&quo

Re: [racket-users] lexer-parser approach in Racket [was the list of languages made with racket [Hacker News]]

2019-03-01 Thread Matthias Felleisen
> On Mar 1, 2019, at 2:29 PM, Aidan Gauland wrote: > > On 2/03/19 3:27 AM, Matthias Felleisen wrote: >>> On Mar 1, 2019, at 2:15 AM, Aidan Gauland >>> wrote: >>> >>> On 24/02/19 12:08 PM, Matthias Felleisen wrote: >>> >>>>

Re: Types of languages Re: [racket-users] the list of languages made with racket [Hacker News]

2019-03-01 Thread Matthias Felleisen
> On Mar 1, 2019, at 12:05 PM, Stephen De Gabrielle > wrote: > > Hi Matthias, > (or anyone else who is available to answer :)) > > I'm trying to get my head around the range of possible languages in Racket. > > You got me thinking how many languages s

Re: [racket-users] how to use union types

2019-03-01 Thread Matthias Felleisen
. . . all of which suggests that perhaps we should support blazingly fast list chaperones eventually :) -- 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

Re: [racket-users] R6RS history

2019-02-28 Thread Matthias Felleisen
> On Feb 27, 2019, at 1:42 PM, Arthur Nunes-Harwitt wrote: > > Dear Matthias, > > Would you be willing to share your thoughts about the history of > denotational versus operational semantics in the report? [[ This is probably totally off topic for the list. ]] Deno

Re: [racket-users] R6RS history

2019-02-26 Thread Matthias Felleisen
their way so we wrote this: https://racket-lang.org/new-name.html History is history. The future you can change, unless Gödel is right about Einstein’s equations and it’s practical. — Matthias -- You received this message because you are subscribed to the Google Groups "Racket Users&q

Re: [racket-users] the list of languages made with racket [Hacker News]

2019-02-23 Thread matthias
collected the languages in just these categories, we’d easily find over a hundred if not several hundred in both our code base as well as external code repos. Thanks for taking up the battle against this lack of knowledge out there — Matthias -- You received this message because you

Re: [racket-users] Re: Help with generators from python land!

2019-02-23 Thread Matthias Felleisen
pays off to implement the same problem and variants of the same problem with various linguistic means and to think about the consequences. (This is how HtDP came about.) — Matthias -- You received this message because you are subscribed to the Google Groups "Racket Users" group.

Re: [racket-users] Strip the lexical context from an identifier

2019-02-22 Thread Matthias Felleisen
1 2) > ;; 2 > > (define x 3) > ((my-macro x) 1 2) > ;; 3 > > > > -Sam > > * well, I think that's what's going on. > > On Fri, Feb 22, 2019 at 1:21 PM Matthias Felleisen > wrote: > > > > On Feb 22, 2019, at 1:08 PM, Stefano Lande wrote: > >

Re: [racket-users] Strip the lexical context from an identifier

2019-02-22 Thread Matthias Felleisen
> On Feb 22, 2019, at 1:08 PM, Stefano Lande wrote: > > Dear all, > > first of all, I might being misusing the terminology. Sorry about it. > > I would like to write a macro that gets an identifier and return its value in > the new lexical scope created by the macro. > For example: > > >

Re: [racket-users] Help with generators from python land!

2019-02-22 Thread Matthias Felleisen
> On Feb 21, 2019, at 10:32 PM, Konrad Hinsen > wrote: > > The main difference, as has been pointed out before, is that Python > generators are more common as an idiom for solving problems that in Racket > would typically be approached differently. [[ This is of course ironic in a way,

Re: [racket-users] Transfer code from "intermediate student with lamnda" to "Pretty big"

2019-02-20 Thread Matthias Felleisen
See previous email exchanges and the require necessary to import the tests (test-engine/racket-tests) plus the call to the test function. > On Feb 19, 2019, at 2:26 PM, orenpa11 wrote: > > Hi > Is it possible to transfer code from "intermediate student with lamnda" to > "Pretty big" >

Re: [racket-users] test user-interact function dont work

2019-02-17 Thread Matthias Felleisen
> On Feb 17, 2019, at 6:44 PM, Joao Pedro Abreu De Souza > wrote: > > (check-equal? > (with-output-to-string >(lambda () > (with-input-from-string "input" >(lambda () > (refine-main) Your mistake is in the above line. You want to write refine-main not

Re: [racket-users] Running raco setup from within DrRacket?

2019-02-15 Thread Matthias Felleisen
g to read and tidy up stale > DrRacket-specific zos (the stuff in `compiled/drracket` subdirectories). > What should I do here? See https://docs.racket-lang.org/raco/setup-plt-plt.html?q=setup#%28def._%28%28lib._setup%2Fsetup..rkt%29._setup%29%29 (require setup/setup) I think that’s what you wa

Re: [racket-users] Re: Little language design/implementation guidance

2019-02-13 Thread Matthias Felleisen
“native” taste for DSLs, others should never ever program). And I understood that you were asking about experts who can do DSL x Domain stuff. But NVD’s remark and my long-time observation of where PL research is going triggered my rant. Sorry — Matthias -- You received this message becau

Re: [racket-users] struct-info

2019-02-12 Thread Matthias Felleisen
> On Feb 12, 2019, at 5:28 PM, David Storrs wrote: > > On Tue, Feb 12, 2019 at 5:03 PM wrote: This is nice for defining abstract types, but it can be pretty inconvenient for defining plain old aggregated data types that just have a bundle of fields. When defining those

Re: [racket-users] Re: nested for loops and suggested alternatives

2019-02-10 Thread Matthias Felleisen
> On Feb 10, 2019, at 7:26 PM, Alex Harsanyi wrote: > > One way to do this is for `pop-abundances` to have an extra parameter, the > list of previous abundances, and whenever the function is called recursively, > it adds the current abundance to this list and passes it on to the next call.

Re: [racket-users] Re: Some concern about ChezScheme...

2019-02-09 Thread Matthias Felleisen
d up-stream URL to Chez module. Great research topic, and yes, we looked into it but moved on — Matthias -- 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

Re: [racket-users] Re: Little language design/implementation guidance

2019-02-08 Thread Matthias Felleisen
ale — #lang info is a DSL — #lang datalog is yet a different kind of DSL While a course on compilers may help — parsing, static checking, code generation, and optimization are useful ideas — how well do they apply above. OK. Back to work — Matthias -- You received this message because you ar

Re: [racket-users] Some concern about ChezScheme...

2019-02-08 Thread Matthias Felleisen
> On Feb 6, 2019, at 3:19 PM, George Neuner wrote: > > On Wed, 6 Feb 2019 12:50:21 -0500, Matthias Felleisen > mailto:matth...@felleisen.org>> wrote: > >>> On Feb 6, 2019, at 12:30 PM, 'Paulo Matos' via Racket Users >>> wrote: >>> >>>

Re: [racket-users] How to start a program in pretty big

2019-02-07 Thread Matthias Felleisen
As several people have mentioned in the past, you go into DrRacket and use the Language menu to choose Pretty Big. > On Feb 7, 2019, at 11:57 AM, orenpa11 wrote: > > Hi, > If I would like to write a code in pretty big what is the first line that > need to be written ? > Can I use #lang

Re: [racket-users] Some concern about ChezScheme...

2019-02-06 Thread Matthias Felleisen
them (back then, journals still had “print queues”) — Matthias > On Feb 6, 2019, at 2:22 PM, 'Paulo Matos' via Racket Users > wrote: > > Thanks for the references. That really useful. > > Interestingly according to Matt these ideas were already floating around at > h

Re: [racket-users] Some concern about ChezScheme...

2019-02-06 Thread Matthias Felleisen
r: A Nanopass framework for commercial compiler development. ICFP ’13 , pp 343-350 https://dl.acm.org/citation.cfm?id=2500618 <https://dl.acm.org/citation.cfm?id=2500618> — Matthias -- You received this message because you are subscribed to the Google Groups "Racket Users" group.

Re: [racket-users] Python's append vs Racket's append and helping novices understand the implications

2019-02-04 Thread Matthias Felleisen
Great. Let’s include this link in Alex’s write up as an example of a concrete comparison. Even if such simple benchmarks don’t reflect daily, end-to-end programs, they can help people by dispelling some prejudices. Thanks — Matthias > On Feb 4, 2019, at 11:56 AM, Gustavo Massaccesi wr

Re: [racket-users] Python's append vs Racket's append and helping novices understand the implications

2019-02-03 Thread Matthias Felleisen
Agreed! > On Feb 3, 2019, at 4:43 PM, Robby Findler wrote: > > It seems like a great addition to the performance section of the guide. > > Robby > > On Sun, Feb 3, 2019 at 3:35 PM Matthias Felleisen <mailto:matth...@felleisen.org>> wrote: > &

Re: [racket-users] Python's append vs Racket's append and helping novices understand the implications

2019-02-03 Thread Matthias Felleisen
might actually know proper design and might know that it calls for recursion (hidden in classes and interfaces). In Racket, that works even better than in Java. Plus it would need to say something brief about types. And R would be an entirely different story. — Matthias > On Feb 2, 2019,

[racket-users] Re: From Guido to Matthias (was: Python's append vs Racket's append and helping novices understand the implications)

2019-02-03 Thread Matthias Felleisen
> On Feb 3, 2019, at 10:12 AM, Laurent wrote: > > When was that and what was the outcome of this meeting? Nothing. It was a waste of my time. — Matthias -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscr

Re: [racket-users] Re: performance: Racket vs Julia

2019-02-02 Thread Matthias Felleisen
), the compiler still succeeds except that the program will be rather slow when uses certain paths [2]. So your performance experience with Julia could be quite varied. Use Racket for what you have in mind. It’s obviously the superior language :-) — Matthias p.s. If there’s interest, I can dig out

Re: [racket-users] Python's append vs Racket's append and helping novices understand the implications

2019-02-02 Thread Matthias Felleisen
, (a) point the posters to the page or (b) if it is a new case, write a section for this example then do (a) If you want to help advertise Racket to others, this is an excellent way of helping out. Thanks — Matthias [[ p.s. For my very first Python program (a couple of days

Re: [racket-users] How To Design Classes text not available?

2019-02-02 Thread Matthias Felleisen
http://felleisen.org/matthias/htdc.html <http://felleisen.org/matthias/htdc.html> [ The ccs.neu.edu <http://ccs.neu.edu/> file is actually a redirect HTML file but that doesn’t seem to work. ] > On Feb 2, 2019, at 3:26 PM, Justin Zamora wrote: > > I tried to downl

Re: [racket-users] Spritely awarded Samsung Stack Zero grant

2019-01-31 Thread Matthias Felleisen
Thank you for your efforts and stamina in pursuit of this goal. I hope that Samsung will continue to be generous to you :) Congrats! — Matthias > On Jan 31, 2019, at 5:46 PM, Christopher Lemmer Webber > wrote: > > I've mentioned that my goal has been to advance the

Re: [racket-users] Re: updated Racket-on-Chez status

2019-01-31 Thread Matthias Felleisen
dule) you might be able to get the full performance benefits of TR (there are some). Yes, we should improve FSP and document it for these cases, but from looking at your blog and emails, I suspect you can cope. This would be tremendously helpful for the continued TR development. Thanks — Matth

Re: [racket-users] Problem controlling macro expansion

2019-01-27 Thread Matthias Felleisen
n > > On Sunday, January 27, 2019 at 4:08:54 PM UTC-5, Matthias Felleisen wrote: > > Why is run-query not a macro and if it were, why would you quote > lines-to-syntax-tree? > > >> On Jan 27, 2019, at 4:06 PM, Jonathan Simpson gmail.com >> <http://gmail.com/&g

Re: [racket-users] Problem controlling macro expansion

2019-01-27 Thread Matthias Felleisen
Why is run-query not a macro and if it were, why would you quote lines-to-syntax-tree? > On Jan 27, 2019, at 4:06 PM, Jonathan Simpson wrote: > > I'm having macro troubles with a DSL I'm writing. I have a macro that looks > something like this: > > (define-syntax (query stx) > (let

Re: [racket-users] snake game

2019-01-26 Thread Matthias Felleisen
26, 2019, at 2:55 PM, orenpa11 wrote: > > Hi Matthias , > I am sorry but I still did get it. > should I import the snake file that was written in "Beginning Student with > List Abbreviations" and the code will be chnaged to pretty big ? > or only the "check-expe

Re: [racket-users] Collections and data structures wishlist?

2019-01-26 Thread Matthias Felleisen
> On Jan 26, 2019, at 9:03 AM, Sorawee Porncharoenwase > wrote: > > Matthias, where can I find this "History of Clojure"? I searched for "It is > better to have 100 transducers ..." and found no result (besides this very > thread). I also searched f

Re: [racket-users] Collections and data structures wishlist?

2019-01-26 Thread Matthias Felleisen
> On Jan 26, 2019, at 8:31 AM, Hendrik Boom wrote: > > On Fri, Jan 25, 2019 at 07:50:56PM -0500, Matthias Felleisen wrote: >> >> Yes. See Clojure history. — Matthias > > Given the amount of text you have quoted, it's not clear what you are > saying yes to.

Re: [racket-users] Collections and data structures wishlist?

2019-01-25 Thread Matthias Felleisen
Yes. See Clojure history. — Matthias > On Jan 25, 2019, at 4:21 PM, Jack Firth wrote: > > I don't intend to make these operations impossible or even difficult. One of > the other things on my wishlist is a transducers library, which would IMO be > a good fit for a l

Re: [racket-users] Collections and data structures wishlist?

2019-01-25 Thread Matthias Felleisen
> On Jan 25, 2019, at 3:46 PM, Thomas F. Burdick wrote: > > > > On January 25, 2019 8:33:09 PM GMT+01:00, Jack Firth > wrote: >> >> Due to the kind of data that would go in tuples - namely, a fixed-sized >> heterogeneous collection of values - a function probably *shouldn't* >> use >> map

Re: [racket-users] snake game

2019-01-25 Thread Matthias Felleisen
> > Hi, > > Sorry but I did not get it. > > should I add the path to the rkt file or add the code ? > > > > Thanks, > > Or > > > > On Friday, January 25, 2019 at 1:39:12 PM UTC+2, Matthias Felleisen wrote: > >> > >>

Re: [racket-users] snake game

2019-01-25 Thread Matthias Felleisen
. > just copying the code is not helpful because I need to understand it. > > Thanks, > Or > > On Thursday, January 24, 2019 at 11:54:34 PM UTC+2, Matthias Felleisen wrote: > > Yes there is. Use (require test-engine/racket-tests) > at the top and (test) at the bottom. >

Re: [racket-users] snake game

2019-01-24 Thread Matthias Felleisen
Yes there is. Use (require test-engine/racket-tests) at the top and (test) at the bottom. But it sounds like you’re copying and pasting homework solutions. Hmph. > On Jan 24, 2019, at 3:44 PM, orenpa11 wrote: > > Hi Matthias , > Unfortunately I need to write the project i

Re: [racket-users] Collections and data structures wishlist?

2019-01-24 Thread Matthias Felleisen
(define tuple/c list/c) The key to list/c and listof is that the code inside of functions contracted with either of them can use map and filter and everything else to process the arguments. > On Jan 24, 2019, at 8:33 AM, Gustavo Massaccesi wrote: > > I also like the idea of a contract

Re: [racket-users] snake game

2019-01-24 Thread Matthias Felleisen
. — Matthias > On Jan 24, 2019, at 12:56 PM, orenpa11 wrote: > > Hi > I need to create a project in pertty big . > why this code is not been supported ? > > Thanks, > Or > > On Thursday, January 24, 2019 at 3:29:11 PM UTC+2, Kieron Hardy wrote: > The language

Re: [racket-users] Collections and data structures wishlist?

2019-01-18 Thread Matthias Felleisen
> On Jan 18, 2019, at 10:22 PM, jackhfi...@gmail.com wrote: > > > - A separation between using lists as homogeneous collections and using lists > as fixed-size tuples. So there'd be a separate `tuple?` data type that's > structurally equivalent to a list but meant to be used differently. For

Re: [racket-users] Continue (into the future?)

2019-01-18 Thread Matthias Felleisen
It would be wonderful if someone started such a tutorial for RacketScript so that we had a driving usecase for the language development — Matthias > On Jan 18, 2019, at 10:58 AM, Stephen De Gabrielle > wrote: > > Hi, > > While looking at an issue with the renderi

  1   2   3   4   5   6   7   8   >