Re: [racket-users] Any work on demo.racket-lang.org?

2017-04-24 Thread Matthew Butterick
> "Make a web page (demo.racket-lang ?) that contains Racket snippets. > > I'm looking to: > > b. make up some kind of curated wiki to host that code (and examples > from other sources) > c. make Racket look as capable of everything as we all know it is Instead of a wiki, perhaps consider

Re: [racket-users] Setting parameters between files does not work as expected

2017-04-24 Thread Philip McGrath
Another thing that might be relevant: > > In contrast, direct assignment to a parameter (by calling the parameter > procedure with a value) changes the value in a thread cell, and therefore > changes the setting only for the current thread. > http://docs.racket-lang.org/reference/parameters.html

Re: [racket-users] Setting parameters between files does not work as expected

2017-04-24 Thread David Storrs
On Mon, Apr 24, 2017 at 4:43 PM, Scott Moore wrote: > Parameters are thread local, and from reading the docs of > virtual-connection and connection-pool, I think they create new threads to > handle the connections. These threads are probably created before you >

Re: [racket-users] Re: Setting parameters between files does not work as expected

2017-04-24 Thread Jack Firth
Whoops! That's what I get for assuming Racket makes the same mistake that Python does :) On Mon, Apr 24, 2017 at 1:58 PM, Sam Tobin-Hochstadt wrote: > On Mon, Apr 24, 2017 at 4:43 PM, Jack Firth wrote: > > Default values for function arguments are

Re: [racket-users] Re: Setting parameters between files does not work as expected

2017-04-24 Thread Sam Tobin-Hochstadt
On Mon, Apr 24, 2017 at 4:43 PM, Jack Firth wrote: > Default values for function arguments are computed once when the function is > defined, not each time the function is called. You'll want to make the > defaults all false and get the parameter values inside the function

Re: [racket-users] Setting parameters between files does not work as expected

2017-04-24 Thread Scott Moore
Parameters are thread local, and from reading the docs of virtual-connection and connection-pool, I think they create new threads to handle the connections. These threads are probably created before you parameterize, and thus see the original values. Try replacing the virtual-connection stuff

[racket-users] Re: Setting parameters between files does not work as expected

2017-04-24 Thread Jack Firth
Default values for function arguments are computed once when the function is defined, not each time the function is called. You'll want to make the defaults all false and get the parameter values inside the function body. -- You received this message because you are subscribed to the Google

[racket-users] Setting parameters between files does not work as expected

2017-04-24 Thread David Storrs
I'm finding parameters confusing and was hoping someone could explain them for me. The following is a simplified version of our production code; I'm expecting it to fail but it does not. What am I not understanding? The sequence goes: *) db.conf creates and provides some parameters (db

[racket-users] Re: Any work on demo.racket-lang.org?

2017-04-24 Thread Greg Trzeciak
Hi Tim Regarding the Rosetta Code scraper - I have 90% of the task completed - I will post my code on github sometime tomorrow. It still needs some work to have it published - the number of code samples is huge so is the variety of issues encountered - one I haven't resolved is around MathML

[racket-users] Re: Racket Package Catalog Site and Raco Commands

2017-04-24 Thread Alexander McLin
While I have no strong preferences for whether it would be better to allow end-users determine what tags to apply as opposed to automatic system tags, it might be more effective to make provisions for special tags to be supported in info.rkt and have the catalog automatically read those tags if

[racket-users] Re: Racket Package Catalog Site and Raco Commands

2017-04-24 Thread Alexander McLin
All of your suggestions are great and get my vote. To elaborate on the raco tag, it should list all the commands *and* subcommands. Example: pkg package tag: raco: pkg install, pkg update, pkg remove, etc. -- You received this message because you are subscribed to the Google Groups "Racket

[racket-users] Re: Racket Package Catalog Site and Raco Commands

2017-04-24 Thread Jack Firth
A `raco` tag for all packages that add raco commands is a great idea. I don't think we should build some sort of system tag that's automatically added though; I'd much rather have some way of granting "tagging rights" to a set of catalog users and let them figure out what tags are appropriate

[racket-users] Any work on demo.racket-lang.org?

2017-04-24 Thread Tim Brown
[REPOST: APOLOGIES IF YOU GET A DUPLICATE] Folks, There is a task on the wiki intro projects: "Make a web page (demo.racket-lang ?) that contains Racket snippets. Use the programs from http://rosettacode.org/wiki/Category:Racket to get started." I'm looking to: a. scrape the Racket off

[racket-users] Racket Package Catalog Site and Raco Commands

2017-04-24 Thread Alexander McLin
First of all, I wish to express my appreciation for such a beautifully designed package catalog site located at pkgs.racket-lang.org. I was wondering if we could add a special search term category or tag that list all available raco commands that packages may install? For example, when

Re: [racket-users] Bug in table-panel% ?

2017-04-24 Thread Zelphir Kaltstahl
Yep, that workaround seems to work, thank you. I did not know about issues when deleting and adding children in an already shown widget/window. It's good to be aware, that such can make a difference. I noticed now, that although the GUI is still very fast, still being very small, it flickers a