[racket-users] Re: Best to ask here or on Stackoverflow from a language promotion perspective?

2015-12-09 Thread Emmanuel Oga
On Wednesday, December 9, 2015 at 6:30:01 PM UTC-8, Alex Harsanyi wrote: > On Thursday, December 10, 2015 at 9:01:24 AM UTC+8, Emmanuel Oga wrote: > > On Wednesday, December 9, 2015 at 3:32:24 PM UTC-8, Alex Harsanyi wrote: > > > On Thursday, December 10, 2015 at 2:33:32 AM UTC+8, Matthew Butterick

Re: [racket-users] Crash when installing 'boris' package from GitHub URL on OSX 10.6.8

2015-12-09 Thread David K. Storrs
On Wednesday, December 9, 2015 at 6:33:02 PM UTC-8, Neil Van Dyke wrote: > David K. Storrs wrote on 12/09/2015 08:50 PM: > > 1) Is there a web-spidering package that people recommend? I could use > > wget and then parse things from disk, but I'd like to have something that's > > easily composabl

Re: [racket-users] PSA: alexis/collection is dead, long live data/collection

2015-12-09 Thread George Neuner
On 12/9/2015 9:35 PM, brendan wrote: On Wednesday, December 9, 2015 at 6:22:54 PM UTC-5, gneuner2 wrote: > I *think* Brendan is referring to caching the dispatch path - i.e. once > you've determined the proper function to call for a set of arguments, > you cache the arguments (or their relevant c

Re: [racket-users] PSA: alexis/collection is dead, long live data/collection

2015-12-09 Thread brendan
On Wednesday, December 9, 2015 at 6:22:54 PM UTC-5, gneuner2 wrote: > I *think* Brendan is referring to caching the dispatch path - i.e. once > you've determined the proper function to call for a set of arguments, > you cache the arguments (or their relevant characteristics) and the > resulting

Re: [racket-users] Crash when installing 'boris' package from GitHub URL on OSX 10.6.8

2015-12-09 Thread Neil Van Dyke
David K. Storrs wrote on 12/09/2015 08:50 PM: 1) Is there a web-spidering package that people recommend? I could use wget and then parse things from disk, but I'd like to have something that's easily composable into CLI scripts. I've done a lot of Web crawling and scraping successfully with

[racket-users] Re: Best to ask here or on Stackoverflow from a language promotion perspective?

2015-12-09 Thread Alex Harsanyi
On Thursday, December 10, 2015 at 9:01:24 AM UTC+8, Emmanuel Oga wrote: > On Wednesday, December 9, 2015 at 3:32:24 PM UTC-8, Alex Harsanyi wrote: > > On Thursday, December 10, 2015 at 2:33:32 AM UTC+8, Matthew Butterick wrote: > > > > > Here's one good way to promote the language: > > > > > > 1)

[racket-users] Crash when installing 'boris' package from GitHub URL on OSX 10.6.8

2015-12-09 Thread David K. Storrs
Hi folks, I've done a bit of Scheme in the past (although not a lot) and am just getting started with Racket. Yesterday I tried installing a package -- 'Boris', a web spider -- and raco crashed with the output shown below. Two questions: 1) Is there a web-spidering package that people recomme

[racket-users] Re: Best to ask here or on Stackoverflow from a language promotion perspective?

2015-12-09 Thread Emmanuel Oga
On Wednesday, December 9, 2015 at 3:32:24 PM UTC-8, Alex Harsanyi wrote: > On Thursday, December 10, 2015 at 2:33:32 AM UTC+8, Matthew Butterick wrote: > > > Here's one good way to promote the language: > > > > 1) Make something impressive with Racket. > > Not the original poster, but does this

Re: [racket-users] racket/gui: Implementing new snips with multiple items

2015-12-09 Thread David Christiansen
On 09/12/15 21:21, Robby Findler wrote: > Some of the mixins in the framework may also be interesting to you. I just realized that there is also a library called "framework", and that "the framework" wasn't just referring to racket/gui. Excellent! Thanks again! /David -- You received this mess

[racket-users] Re: Best to ask here or on Stackoverflow from a language promotion perspective?

2015-12-09 Thread Alex Harsanyi
On Thursday, December 10, 2015 at 2:33:32 AM UTC+8, Matthew Butterick wrote: > Here's one good way to promote the language: > > 1) Make something impressive with Racket. Not the original poster, but does this count? https://github.com/alex-hhh/ActivityLog2 it is a fitness tracker for cycli

Re: [racket-users] PSA: alexis/collection is dead, long live data/collection

2015-12-09 Thread George Neuner
On 12/9/2015 1:41 PM, Alexis King wrote: > On Dec 6, 2015, at 10:03 PM, George Neuner wrote: > > I would disagree that multiple dispatch isn't needed. The Visitor pattern is used fairly frequently in real programs and it is just a overly complex, error-prone way of doing double dispatch. Try

Re: [racket-users] racket/gui: Implementing new snips with multiple items

2015-12-09 Thread David Christiansen
I'll give it a shot with this approach then. Thanks! /David On 09/12/15 21:21, Robby Findler wrote: > You'd need to wire up your table with the after-insert and > after-delete methods, invalidating the appropriate parts. The behavior > you seem to want below is simple calls into the data/enumerat

Re: [racket-users] racket/gui: Implementing new snips with multiple items

2015-12-09 Thread Robby Findler
You'd need to wire up your table with the after-insert and after-delete methods, invalidating the appropriate parts. The behavior you seem to want below is simple calls into the data/enumerate library and more interesting invalidation is possible if you wish it. And you want to look at text%, not

Re: [racket-users] racket/gui: Implementing new snips with multiple items

2015-12-09 Thread Robby Findler
Sorry: data/enumerate => data/interval-map. On Wed, Dec 9, 2015 at 2:21 PM, Robby Findler wrote: > You'd need to wire up your table with the after-insert and > after-delete methods, invalidating the appropriate parts. The behavior > you seem to want below is simple calls into the data/enumerate l

Re: [racket-users] racket/gui: Implementing new snips with multiple items

2015-12-09 Thread David Christiansen
Thanks for a fast answer, and for the recommendation! Right, it's all from the compiler. When the user opens a file, it is normal text; type checking turns it into an angry fruit salad of semantic information. Is there a way to automatically keep these things updated as the user edits the text? I

Re: [racket-users] racket/gui: Implementing new snips with multiple items

2015-12-09 Thread Robby Findler
My experience with this kind of thing suggests that keeping separate tables on the side that map ranges in the editor to whatever information you want is simpler and better. (Eg, check syntax.) Check out data/interval-map. You don't want to save this information when the user saves, right? That is

[racket-users] racket/gui: Implementing new snips with multiple items

2015-12-09 Thread David Christiansen
Hi all, Summary: Do I need to do anything over and above defining `get-count' and `partial-offset' in a custom snip that has multiple items in order to have it work properly in an editor derived from `text%'? Details: I'm in the process of making a library to interface Racket with the Idris com

Re: [racket-users] PSA: alexis/collection is dead, long live data/collection

2015-12-09 Thread Alexis King
> On Dec 6, 2015, at 10:03 PM, George Neuner wrote: > > I would disagree that multiple dispatch isn't needed. The Visitor pattern is > used fairly frequently in real programs and it is just a overly complex, > error-prone way of doing double dispatch. Trying to handle more than 2 > dimensio

[racket-users] Re: Best to ask here or on Stackoverflow from a language promotion perspective?

2015-12-09 Thread Matthew Butterick
> So, what is the best way? Neither will help promote the language, I'm afraid. But if you post your questions on this mailing list, it will bring the list a little more traffic, and thus, by your reasoning, make it a happier place. Whereas Stack Overflow will be depressing no matter what. He

[racket-users] Best to ask here or on Stackoverflow from a language promotion perspective?

2015-12-09 Thread Lux
I have several questions about Racket and DrRacket to ask in the next days. I have a feeling if I ask them on Stackoverflow.com it can be a minuscule contribution to its promotion as a language (spreading the word), and I can accept to receive less answers there. It can contribute also to the i