Re: [Factor-talk] Upcoming language change: stack effect checking for parameters to inline combinators

2010-03-08 Thread Daniel Ehrenberg
Great work, Joe! I hope this is accepted for inclusion in core soon. It might not be clear from Joe's post, but this new checking applies to all combinators that use stack effects like : combinator ( ... quot: ( ... -- ... ) --- ... ) blah blah blah ; inline It *only* applies if a 'stack eff

[Factor-talk] Upcoming language change: stack effect checking for parameters to inline combinators

2010-03-08 Thread Joe Groff
Hi guys. I'm working on improving Factor's stack checker so that it can check the stack effect of input quotations to higher-order words such as "each" and "if*" and give a more helpful error message when they would cause stack imbalances. Currently, if your quotation would lead to an imbalanced

Re: [Factor-talk] HTML parsing vocabulary

2010-03-08 Thread Paul Moore
On 8 March 2010 19:16, Doug Coleman wrote: > Hi Paul, > > There's an html parser with a word that should do exactly what you want > already. > > USE: html.parser.analyzer > "http://reddit.com"; scrape-html find-hrefs Ah, got it. That looks like just what I want! Thanks a lot. Paul. ---

Re: [Factor-talk] HTML parsing vocabulary

2010-03-08 Thread Samuel Tardieu
2010/3/8 Doug Coleman > I had a better html parser but I reverted the code by accident... > Incidentally, if you happen to revert some code that you had previously checked in, "git reflog" will allow you to get back any version for 90 days by default (git never deletes anything that it received

[Factor-talk] Pull request: more efficient astar implementation

2010-03-08 Thread Samuel Tardieu
The following changes since commit 6a6ab7c1a89c2529bc2b5416bc5b3ed7492465c6: Doug Coleman (1): Fix typedef typo in opencl are available in the git repository at: git://git.rfc1149.net/factor.git for-slava Samuel Tardieu (2): Project Euler : problem 265 Use a subclassed tu

Re: [Factor-talk] HTML parsing vocabulary

2010-03-08 Thread Doug Coleman
I forgot to mention that there's also a spider library in extra/spider that might be useful. On Mar 8, 2010, at 12:56 PM, Paul Moore wrote: > Is there a HTML parsing vocabulary for Factor? I guess I might be able > to get away with read-xml at a pinch, but given the state of most HTML > out the

Re: [Factor-talk] HTML parsing vocabulary

2010-03-08 Thread Doug Coleman
Hi Paul, There's an html parser with a word that should do exactly what you want already. USE: html.parser.analyzer "http://reddit.com"; scrape-html find-hrefs I had a better html parser but I reverted the code by accident... Doug On Mar 8, 2010, at 12:56 PM, Paul Moore wrote: > Is there a H

[Factor-talk] HTML parsing vocabulary

2010-03-08 Thread Paul Moore
Is there a HTML parsing vocabulary for Factor? I guess I might be able to get away with read-xml at a pinch, but given the state of most HTML out there, I'd feel safer not assuming anything stronger than I have to... I searched the documentation but couldn't see anything immediately (plenty for wri