Re: [racket-users] DrRacket docs broken for Safari when opened once from dmg

2020-09-06 Thread gfb
Solved: in Safari Preferences check the "Show Develop menu in menu bar" option, then select "Empty Caches" in the new "Develop" menu that appears. On Sunday, September 6, 2020 at 6:32:55 PM UTC-4 gfb wrote: > I can live with this. It happened because I wanted to

Re: [racket-users] DrRacket docs broken for Safari when opened once from dmg

2020-09-06 Thread gfb
in lecture. But this term my course is for 3rd year cs students, so (if this isn't idiosyncratic) they're less likely to get into the situation or can install firefox if they haven't already and switch default browser while using drracket. On Sunday, September 6, 2020 at 6:20:23 PM UTC-4 gfb wrote

Re: [racket-users] DrRacket docs broken for Safari when opened once from dmg

2020-09-06 Thread gfb
some of those things). The doc search within DrRacket goes to "file://private/var/folders/.../plt-sendurl-contents-file-.html", and that page simply says "Please go here" where "here" is a link to "file:///Users/gfb/Library/Racket/7.8/doc/search/index.html&

[racket-users] Re: DrRacket docs broken for Safari when opened once from dmg

2020-09-06 Thread gfb
More specifically, the search is broken. I can navigate to On Sunday, September 6, 2020 at 4:56:00 PM UTC-4 gfb wrote: > > Is there way to reset the documentation state after DrRacket was opened > from dmg once. The f1 search with Safari as default browser on macOS > Catalina

[racket-users] DrRacket docs broken for Safari when opened once from dmg

2020-09-06 Thread gfb
Is there way to reset the documentation state after DrRacket was opened from dmg once. The f1 search with Safari as default browser on macOS Catalina doesn't work, even after removing ~/Libary/Racket and ~/Library/org.racket-lang.prefs.rktd and ~/Libary/PLT-*, ejecting the dmg, and

[racket-users] Re: [racket users] %app question

2020-08-13 Thread gfb
I'm not completely sure what you want, so the following handles both unbound identifiers in function position, as well as expressions in function position that have a value but the value is not a procedure. It delegates to a macro and a function respectively, that you can play with separately

Re: [racket-users] reading s-expressions from a file

2020-07-17 Thread gfb
Shouldn't the for be (for ([expr (in-producer read eof)] ⋯). One could also specify the input port there, as shown in reference for in-producer , possibly inside

[racket-users] Re: Button click callback syntax

2020-05-12 Thread gfb
The difference is whether you are evaluating an expression, versus putting it inside a function to be evaluated when the function is called. (require racket/gui) ; Call message-box, get an immediate effect ... (message-box "What do you think?" "hi, would you like a tomato" #f '(yes-no)) ; The

[racket-users] Re: My macro works in the global namespace, but fails inside of a let

2019-10-06 Thread gfb
Hmm, maybe you'd find “parameters” (not to be confused with function parameters) useful for your goals. #lang racket (define current_meaning (make-parameter "some string")) (define (display_current_meaning) (display (current_meaning))) (display_current_meaning) (let () (parameterize

[racket-users] Re: My macro works in the global namespace, but fails inside of a let

2019-10-06 Thread gfb
No doubt you will soon get more precise answers, and help for your goal, from others, but the first step is that macros in scheme and racket are not straight textual substitutions. The a_definition in the template of my_macro has much the same scope as it would if my_macro were just a function

[racket-users] Re: Package server broken, at least five hundred intro cs students affected!

2019-10-06 Thread gfb
Thank you so much, including for the quick turnaround, on a Sunday no less, once you found out! -- 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] Package server broken, at least five hundred intro cs students affected!

2019-10-05 Thread gfb
Could we figure out: 1. What's wrong with the package server's indexing of updated packages, so my students can proceed. 2. An official channel to report problems with the package server. 3. If funding specifically earmarked to support monitoring of and feedback from that channel, fixing of

[racket-users] Could someone check on the package server

2019-10-04 Thread gfb
Indexing of updated packages is broken. -- 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. To view this discussion on

[racket-users] Re: drracket: disabling tools in edit -> preferences -> tools

2019-09-20 Thread gfb
Yes, the How To Design Programs (and possibly DeinProgramm ) tool relies on the Test Engine tool. If you have a moment to do so, I'd encourage filing this consequence as an issue on GitHub. -- You received this message because you are subscribed to the Google Groups "Racket Users"

[racket-users] Re: REPL printing importance?

2019-09-11 Thread gfb
Having the distinction between displayed and printed representation is very important. Responsiveness is very important, so I'd like to see large values handled better. Simply guarding against the accidental printing of a looong list would be nice. Printing truncated, with a clickable "...",

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

2019-07-24 Thread gfb
On Wednesday, July 24, 2019 at 1:40:25 PM UTC-4, sk wrote: > > To riff on Will's message: > > In the Bootstrap:Algebra > materials, we use > Racket syntax because it's a powerful pedagogic device. Recently, for > various reasons, we've ported

[racket-users] Re: Reflecting on the lexical environment at macro expansion time

2019-07-17 Thread gfb
On Wednesday, July 17, 2019 at 4:35:21 PM UTC-4, William J. Bowman wrote: > > I'm trying to write a macro that reflects on which identifiers are in > scope in > the environment when it runs, and on the identifiers in scope for its > generated > code. > It should act something like this: > >

Re: [racket-users] Re: Racket2 and syntax

2019-07-15 Thread gfb
On Monday, July 15, 2019 at 9:52:43 AM UTC-4, cwebber wrote: > > Maciek Godek writes: > > > Maybe the direction similar to where "I think we should be heading" is > > somewhere between Mathematica notebooks and Smalltalk's object > environments. > > I had similar-ish thoughts while watching

[racket-users] Re: Confused by match

2018-08-16 Thread gfb
This is an undocumented limitation of match: - issue on github - issue on github -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To

[racket-users] Re: How to resolve phase errors on require/provide for macros

2018-08-14 Thread gfb
You're losing the binding information by doing syntax->datum. Here's a quick change to get you unstuck: ... (only-in racket/list partition flatten append-map))) ; Include append-map ... (partition (syntax-parser [(flag _) (syntax-e #'flag)])

[racket-users] Re: Scribble Top-level Evaluation Order of Define

2017-12-07 Thread gfb
>From the docs for scribble/base: > The scribble/base > language > provides functions and forms that can be used from code written either in > Racket or with @ expressions. It essentially extends racket/base >

Re: [racket-users] Re: Readers and Namespaces

2017-08-18 Thread gfb
Assuming the setup where you make a module syntax object and call strip-context on it, you can add a scope to all the user's identifiers after that so they're not considered “above” any of the language's identifiers. Make a function to do the marking: (define marker (make-syntax-introducer

[racket-users] Printing tokenizer-colored output to the DrRacket Interactions

2017-07-25 Thread gfb
I've made a language that exposes drracket:rep:current-rep. Code written in the language can use it to display text and images, and add regions to be colored. But there are occasional errors. Instead of posting the errors, which vary, and are difficult to reliably reproduce, I'm wondering what

Re: [racket-users] Readers' understanding of the intent of “Quick: An Introduction [...]” and the HtDP2e “Prologue: [...]”.

2017-04-10 Thread gfb
this is > meant to be read quickly in the above spirit. > > — Do you have any other proposals? > > > > > > > > > > On Apr 9, 2017, at 2:45 PM, gfb <g...@cs.toronto.edu> wrote: > > > > The short summary of this post is: should/could somethi

Re: [racket-users] What is meant to be the public API of ‘drracket:rep:text<%>’ ?

2017-04-09 Thread gfb
t;%>` is the > interface for all of the methods listed under the `drracket:rep:text%` class. > It looks like at the very least it extends the `racket:text<%>` interface, > this is likely just an oversight in the documentation. > > Dan > > > > On Sun

[racket-users] What is meant to be the public API of ‘drracket:rep:text<%>’ ?

2017-04-09 Thread gfb
The docs for ‘drracket:rep:text<%>’ just say it's an interface, without listing any interfaces it extends, nor methods it contains. Is there a public API it's meant to have and have documented? -- You received this message because you are subscribed to the Google Groups "Racket Users" group.

Re: [racket-users] What precisely is the type/contract ‘TST’ ?

2017-04-09 Thread gfb
Is it legacy, or is there a current reason/heuristic to choose it over ‘any/c’ ? On Sunday, 9 April 2017 14:14:29 UTC-4, Jay McCarthy wrote: > TST means The Scheme Type, i.e. everything is permitted.  > > > Jay > > > > On Sun, Apr 9, 2017 at 1:02 PM gfb <

[racket-users] Readers' understanding of the intent of “Quick: An Introduction [...]” and the HtDP2e “Prologue: [...]”.

2017-04-09 Thread gfb
The short summary of this post is: should/could something be added to clarify the purpose of those materials and reassure newcomers who read them. “Quick: An Introduction to Racket with Pictures”, and HtDP2e “Prologue: How to Program”, are both very nice introductions in the sense of “making

[racket-users] What precisely is the type/contract ‘TST’ ?

2017-04-09 Thread gfb
It appears, e.g., in: (send a-drracket:rep:text display-results results) → void? results : (list-of TST) A search of all racket files shows it used at times for values to be displayed, but I can't find a definition of the term, nor just what it's [presumably] an acronym or abbreviation

[racket-users] DrRacket indentation for 'send*' and other "Lambda-like Keywords"

2016-02-07 Thread gfb
The documentation for 'send*' shows an indentation style that is not available, but that I've often wanted for some "Lambda-like Keywords", e.g. 'lambda' and 'match': (send* edit (begin-edit-sequence) (insert "Hello") (insert #\newline) (end-edit-sequence))

[racket-users] Re: Racket documentation - emphasis in margin notes

2015-12-25 Thread gfb
On Friday, 25 December 2015 15:49:21 UTC-5, Daniel Prager wrote: > I've noticed a usability issue with margin notes in the docs: the bolding is > misleading. > > > Example: > > > Regular Expressions in The Racket Guide introduces regular expressions. > > > Problem: The eye is more strongly

[racket-users] check-expect : effect of error in the "expected" expression and/or "value" expression

2015-12-19 Thread gfb
When there is an error in a check-expect expression there are a few behaviours that were initially confusing me and moreso my students. Consider the following ISL program: (define (f x) x) (check-expect (/ 0) 0) (check-expect 1 2) The error from (/ 0) stops subsequent checks. The error also

Re: [racket-users] check-expect : effect of error in the "expected" expression and/or "value" expression

2015-12-19 Thread gfb
On Saturday, 19 December 2015 17:24:01 UTC-5, Matthias Felleisen wrote: [...] Hi Matthias, Thanks for that quick and informative reply. We've been teaching a breadth course (at University of Toronto) that has always had a taste of programming, but in recent years with the help of DrRacket and

[racket-users] Re: performance with freeze from 2htdp/image on very complex images

2015-05-03 Thread gfb
Those are beautiful. First, make sure in Choose Language / Show Details that it's set to No debugging or profiling, and that Preserve stacktrace not set. The 2htdp/image library has immutable images, so the image you're creating contains all the line drawing unexecuted until you display or