Re: [Factor-talk] pull request

2011-08-24 Thread John Benediktsson
Thanks, merged. On Wed, Aug 24, 2011 at 3:48 PM, Jon Harper wrote: > jon@zephyr:~/factor$ git request-pull -p origin/master > g...@github.com:jonenst/factor.git master > The following changes since commit > 45df73a0caebb4ff3b93c6f6d3bf9b2a78028ce7: > > fjsc: display the proper namespace when us

[Factor-talk] pull request

2011-08-24 Thread Jon Harper
jon@zephyr:~/factor$ git request-pull -p origin/master g...@github.com:jonenst/factor.git master The following changes since commit 45df73a0caebb4ff3b93c6f6d3bf9b2a78028ce7: fjsc: display the proper namespace when using set_in. (2011-08-24 15:20:51 -0700) are available in the git repository at:

Re: [Factor-talk] Pull request: math.primes:nprimes

2011-05-20 Thread Slava Pestov
Thanks, merged. On Fri, May 20, 2011 at 3:42 AM, Samuel Tardieu wrote: > My students asked for a "nprimes" word. Here it is. > >   Sam > > The following changes since commit 4f8e8e6613be53786c9e72730b5577a9d2176247: > >   Add math.primes:nprimes (2011-05-20 12:38:27 +0200) > > are available in th

[Factor-talk] Pull request: math.primes:nprimes

2011-05-20 Thread Samuel Tardieu
My students asked for a "nprimes" word. Here it is. Sam The following changes since commit 4f8e8e6613be53786c9e72730b5577a9d2176247: Add math.primes:nprimes (2011-05-20 12:38:27 +0200) are available in the git repository at: g...@github.com:samueltardieu/factor.git for-slava -

Re: [Factor-talk] Pull request

2011-04-06 Thread Slava Pestov
I've merged your patches. Thanks. Slava On Tue, Apr 5, 2011 at 5:08 PM, otoburb wrote: > Hi, > > Thanks for the feedback. With ex_rzr's help I modified > basis/ui/backend/gtk/gtk.factor to mimic the x11.factor behaviour. > > The specific commit is located at: > https://github.com/otoburb/factor/

Re: [Factor-talk] Pull Request

2011-04-06 Thread Slava Pestov
Hi Philipp, I've merged your gtk-game-input branch. I've also merged Anton's latest Gtk changes. Slava 2011/4/6 Philipp Brüschweiler : > Hi Slava and everyone else > > As I'm still waiting for the non-gtk native image loader branch to be > merged, and people were keeping mentioning that game inp

[Factor-talk] Pull Request

2011-04-06 Thread Philipp Brüschweiler
Hi Slava and everyone else As I'm still waiting for the non-gtk native image loader branch to be merged, and people were keeping mentioning that game input was broken for the gtk backend, I decided to cherry pick the game input related branches into a new branch here: https://github.com/blei/fact

Re: [Factor-talk] Pull request

2011-04-05 Thread otoburb
Hi, Thanks for the feedback. With ex_rzr's help I modified basis/ui/backend/gtk/gtk.factor to mimic the x11.factor behaviour. The specific commit is located at: https://github.com/otoburb/factor/commit/ef79f32ec987d0bd51b0a97a069e24ea68161e2c Thanks, Dave On Sun, Apr 3, 2011 at 6:52 PM, Slava

Re: [Factor-talk] Pull request

2011-04-03 Thread Slava Pestov
Hi, I don't like this fix. Why don't we do the old way where if $DISPLAY is not set, it runs the tty listener, otherwise it runs the UI listener? Slava On Thu, Mar 31, 2011 at 9:01 PM, otoburb wrote: > This should fix the issue that I was having when compiling and > bootstrapping in Linux witho

[Factor-talk] Pull request

2011-03-31 Thread otoburb
Hi Slava, I made some minor documentation fixes and, thanks to Blei, also modified build-support/factor.sh to propagate NO_UI=1 to the bootstrap via command line parameter -exclude="ui ui.tools". This should fix the issue that I was having when compiling and bootstrapping in Linux without the GUI

[Factor-talk] Pull-request: add Dijkstra algorithm (a particular case of A*) to path-finding

2010-11-11 Thread Samuel Tardieu
The following changes since commit dbfade143cbb41e31cb830dc7973f8997718b40f: splitting: fix stack effect declaration of (split) (2010-11-06 17:50:39 -0700) are available in the git repository at: git://git.rfc1149.net/factor.git for-slava Samuel Tardieu (1): path-finding: add Dijkstra

[Factor-talk] Pull-request: documentation for assoc-refine

2010-10-11 Thread Samuel Tardieu
The following changes since commit ace41a6d61cbb1f57aefdb12248af07ed298993a: Fix bootstrap on mac by adding back the PF_INET constant (2010-10-09 16:53:54 -0700) are available in the git repository at: git://git.rfc1149.net/factor.git for-slava Samuel Tardieu (1): Add documentation for

[Factor-talk] Pull request

2010-08-02 Thread Jon Harper
Hi, I have 2 branches ready to be pulled if you want: - git://github.com/jonenst/factor.git slides Various new features + small workaround for X11 These changes are very adhoc since I don't know the ui that well yet. If you don't pull these changes, I think you should at least implement an intro s

Re: [Factor-talk] pull request

2010-08-01 Thread Slava Pestov
On Sun, Aug 1, 2010 at 3:38 AM, Sascha Matzke wrote: > Hi, > it that the general direction contrib vocabs should take from now on? If > that's the case we should track those vocabs (maybe on the concatenative.org > wiki?). > Until now I was under the impression that contrib vocabs should always be

Re: [Factor-talk] pull request

2010-08-01 Thread Sascha Matzke
Hi, it that the general direction contrib vocabs should take from now on? If that's the case we should track those vocabs (maybe on the concatenative.orgwiki?). Until now I was under the impression that contrib vocabs should always be included under extra if they reached a certain maturity. Sasc

Re: [Factor-talk] pull request

2010-07-31 Thread Slava Pestov
Hi Sam, Since some of your patches change various vocabularies in basis and extra, and the coding style doesn't match the rest of the Factor source tree, perhaps you should maintain your contributions as their own vocabulary root instead of as patches against the Factor tree. For example, I've re

[Factor-talk] pull request

2010-07-31 Thread Sam Anklesaria
Coming back to factor after a year, I found the majority of my old contributions had stopped working and were relegated to unmaintained. The updated and improved versions now live here: http://github.com/bogiebro/factor. Could this be pulled? Thanks, Sam --

[Factor-talk] Pull request: fix two bugs in primes-between and primes-upto (math.primes)

2010-06-11 Thread Samuel Tardieu
The following changes since commit bd4fb9e6468c594c0111fceb1cc7c174254dc038: io.encodings.detect: detect empty files as utf8 rather than raise a sequence error (2010-06-10 17:32:56 -0700) are available in the git repository at: git://git.rfc1149.net/factor.git for-slava Samuel Tardieu (1):

[Factor-talk] Pull request: use sets

2010-03-17 Thread Samuel Tardieu
The following changes since commit 3ef79a67ac37cf929b5c45ac770cc9d11f53a9f8: Slava Pestov (1): alien.debugger: fix USING: form are available in the git repository at: git://git.rfc1149.net/factor.git for-slava Samuel Tardieu (1): Use sets extra/astar/astar.factor | 10 +

[Factor-talk] Pull request: Also test the derivation variant of astar

2010-03-16 Thread Samuel Tardieu
The following changes since commit b83f0d034990249dc53bc68e286dd8c978b25a75: Slava Pestov (1): tools.memory: fix unit test are available in the git repository at: git://git.rfc1149.net/factor.git for-slava Samuel Tardieu (1): Also test the derivation variant of astar extra/as

[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

[Factor-talk] Pull request: project Euler problem 265

2010-03-07 Thread Samuel Tardieu
The following changes since commit 6e712139a443dd1360d6ae749be40018613c29a3: Joe Groff (1): Merge branch 'master' of git://factorcode.org/git/factor are available in the git repository at: git://git.rfc1149.net/factor.git for-slava Samuel Tardieu (1): Project Euler : problem 26

Re: [Factor-talk] Pull request: A* algorithm

2010-03-06 Thread Samuel Tardieu
2010/3/6 Jon Harper Hi everyone, here's a picture of Samuel's A* implémentation in action : > The start is at the top left, arrival at the bottom right. The considered > cells are in blue. > > http://imgur.com/aR0FJ.png > > > [image: the image] > While it may seem

Re: [Factor-talk] Pull request: A* algorithm

2010-03-06 Thread Jon Harper
Hi everyone, here's a picture of Samuel's A* implémentation in action : The start is at the top left, arrival at the bottom right. The considered cells are in blue. http://imgur.com/aR0FJ.png [image: the image] Jon Harper On Sat, Mar 6, 2010 at 11:14 AM, Samuel

[Factor-talk] Pull request: A* algorithm

2010-03-06 Thread Samuel Tardieu
The following changes since commit 3d3b6b610b3dd03f102fdd550c442a00639c4615: Joe Groff (1): Merge branch 'lexer-parsing-word-errors' are available in the git repository at: git://git.rfc1149.net/factor.git for-slava Samuel Tardieu (1): A* algorithm implementation extra/astar/

[Factor-talk] [Pull request] Internationalization vocab

2010-02-27 Thread Max Lupke
Hi everybody, In my i18n branch at http://github.com/malu/factor/tree/i18n I have a simple internationalization vocab and a Chloe tag for translating Chloe templates. I would love getting some feedback about it in general and whether this could get merged into master. Also, at http://github.com/m

[Factor-talk] Pull request: fix for math.primes.factors:divisors

2009-09-02 Thread Samuel Tardieu
The following changes since commit e140dd3fbb94b7c2d5a4915148be1408d0b442c9: Slava Pestov (1): tools.deploy.shaker: fix snafu are available in the git repository at: git://git.rfc1149.net/factor.git for-slava Samuel Tardieu (1): Make "divisors" work with 1 as well basis/math/

[Factor-talk] Pull request: math.primes.factors:divisors

2009-06-29 Thread Samuel Tardieu
The following changes since commit 55ed9456a59fc97bcd55c609d9dab00109114501: Slava Pestov (1): Fix conflict are available in the git repository at: git://git.rfc1149.net/factor.git for-slava Samuel Tardieu (1): Add divisors to math.primes.factors basis/math/primes/factors/fac

[Factor-talk] Pull request: better prime numbers packing

2009-06-24 Thread Samuel Tardieu
In a byte, it is possible to store primality information about 30 positive numbers, since modulo rules guarantee that in every 30-numbers slice (30n .. 30n+29) only the numbers equal to 1, 7, 11, 13, 17, 19, 23 or 29 modulo 30 can be prime (except 2, 3 and 5). This allows us to store more prime nu

[Factor-talk] Pull request: automatic vocabulary loading when deserializing

2009-06-19 Thread Samuel Tardieu
In the lab session today, my students will have to be able to remotely execute quotations and will use the "serialize" vocabulary to transmit them. Unfortunately, if a word in the quotation is located in a vocabulary which has not been loaded yet, the "deserialize" will fail with an "unknown word"

[Factor-talk] pull request

2009-06-16 Thread Sam Anklesaria
changes include: - ui.frp allows gui layout through templates, and loads without restarts - the "pattern" class, when placed in a tuple used with the tuple database abstraction, will be used in an sql "LIKE" clause, allowing wildcards/ searching - the "persistency" vocabulary eliminates the need f

Re: [Factor-talk] Pull Request: combined JSON parser commit

2009-06-04 Thread Philipp Winkler
Oops! Philipp Winkler writes: > I have made the changes Slave recommended and have rolled all Of all the possible misspellings I seem to have picked the worst one. Sorry about that, no offense intended. Sorry, -phil ---

[Factor-talk] Pull Request: combined JSON parser commit

2009-06-04 Thread Philipp Winkler
Hi, I have made the changes Slave recommended and have rolled all the commits into one. Please let me know if any more changes are needed. http://github.com/philippwinkler/factor/tree/master Commit: ea25031e6a7f965daed3e1e69dae696e3228b717 Best, -phil

Re: [Factor-talk] Pull Request

2009-06-02 Thread Philipp Winkler
I have removed the use of with-datastack. I think the code is a little more understandable now although there is more of it. It is also 17% faster. :-) Let me know if you have any more suggested changes: http://github.com/philippwinkler/factor/tree/master Best, -phil -

[Factor-talk] pull request: FUEL: Better looking tables in help buffers and a fix for in-cell links.

2009-06-02 Thread Jose A. Ortega Ruiz
Subject says it all. Thanks! The following changes since commit e9cf630d3012c40bad027e3fb99747f0aaa0fc1a: Doug Coleman (1): Merge branch 'emacs' of http://git.hacks-galore.org/jao/factor are available in the git repository at: http://git.hacks-galore.org/jao/factor.git emacs J

[Factor-talk] pull request: FUEL: automatic scaffold insertion

2009-06-02 Thread Jose A. Ortega Ruiz
The patches below add two configuration variables: fuel-scaffold-help-autoinsert-p fuel-scaffold-test-autoinsert-p that can be set to nil, 'always or 'ask (the default). When creating a new docs or tests file, scaffolding is inserted according to their value (which i hope is self-describing)

[Factor-talk] pull request (Re: FUEL's scaffold-vocab is overwriting developer-name)

2009-06-01 Thread Jose A. Ortega Ruiz
Hi Doug, Doug Coleman writes: > Hi Jose, > > I'm trying to switch to Emacs again and I found that the developer- > name variable is getting overwritten by FUEL when creating a new > vocabulary. This behaviour is controlled by the variable `fuel-scaffold-developer-name', whose behaviour i've enh

[Factor-talk] pull request: FUEL: support for SYNTAX:

2009-06-01 Thread Jose A. Ortega Ruiz
The patch below adds support SYNTAX:. Thanks! - The following changes since commit eb29378f65c9bd0ad3d690a0e597c9fa755b8848: Doug Coleman (1): send \r\n instead of \n for windows telnet clients are available in the git repository at: http://git.hacks-galore.org/jao/factor.git e

Re: [Factor-talk] Pull Request

2009-05-31 Thread Slava Pestov
with-datastack was mostly intended to be used for developer tools, like the listener, etc. If you find a way to write your parser without using quotations and with-datastack in this manner, you will be able to improve performance further. Take a look at the farkup and xml vocabularies for examples

Re: [Factor-talk] Pull Request

2009-05-31 Thread Philipp Winkler
I will remove the old code. The reason I'm using the with-datastack is that the quotes that scan pushes on the stack have different stack effects. As a whole, however, it always returns one item as keeping with the JSON spec. I will see if I can find a work around. For what problem was with-da

Re: [Factor-talk] Pull Request

2009-05-30 Thread Samuel Tardieu
> "Slava" == Slava Pestov writes: Slava> Good job, a fast JSON parser would be very useful to have. Indeed, it will speed up the couchdb vocabulary as well. Sam -- Samuel Tardieu -- s...@rfc1149.net -- http://www.rfc1149.net/

Re: [Factor-talk] Pull Request

2009-05-30 Thread Slava Pestov
Good job, a fast JSON parser would be very useful to have. I have two suggestions for your code: - You should remove the old PEG parser from the source. There is no point keeping it around if your version is faster. - Don't use with-datastack as a workaround for making your code pass the compiler.

[Factor-talk] Pull Request

2009-05-29 Thread Philipp Winkler
I'm playing with creating a twitter client. The existing json parser was a little slow so I added a hand rolled parser. For a ~120Kb string the PEG based parser takes 23 seconds, the hand rolled version takes 0.03 seconds. The code is at: http://github.com/philippwinkler/factor/tree/master I'm

Re: [Factor-talk] pull request

2009-05-27 Thread Slava Pestov
On Tue, May 26, 2009 at 4:01 PM, Sam Anklesaria wrote: > I fixed the hang bug, and am now using SLOT: rather than PSEUDO-SLOTS: Ok. I'll merge your changes soon then. > I'm not saying that should by any means by a commonly used feature, and > certainly not as an alternative to lexical scoping.  

Re: [Factor-talk] pull request

2009-05-26 Thread Sam Anklesaria
I followed your advice. >> - modules.util allows reexporting other modules (see ui.frp for use example) > > I don't think this is necessary. It also won't work if one of the > vocabs you are exporting is reloaded and has new words. True. I've removed the module and changed others that use it.

Re: [Factor-talk] pull request

2009-05-25 Thread Slava Pestov
On Mon, May 25, 2009 at 3:48 PM, Sam Anklesaria wrote: > - modules.util allows reexporting other modules (see ui.frp for use example) I don't think this is necessary. It also won't work if one of the vocabs you are exporting is reloaded and has new words. > - functors can create macros This is

[Factor-talk] pull request

2009-05-25 Thread Sam Anklesaria
new modules (some mentioned previously): - improvements, bugfixes, and documentation to ui.frp - an example app using ui.frp (extra/darcs-ui-demo) - modules.util allows reexporting other modules (see ui.frp for use example) - functors can create macros - fries generalizes fry's syntax for other dat

[Factor-talk] Pull request: enhanced extra/backtrack

2009-05-24 Thread Samuel Tardieu
Those commits add documentation, tests, "bag-of" and "amb-all" to extra/backtrack. This replaces the pull request for "extra/amb". The following changes since commit 1307a81bd03dd25a418712d0269056b651befc15: Slava Pestov (1): Merge branch 'master' of git://factorcode.org/git/factor are

[Factor-talk] Pull request for the "amb" operator

2009-05-23 Thread Samuel Tardieu
The following changes since commit 902b5adc4dcfb9cde52518203179623b21dabbff: Samuel Tardieu (1): Implement the amb(iguous) operator to ease backtracking are available in the git repository at: git://git.rfc1149.net/factor.git for-slava ---

[Factor-talk] Pull request

2009-04-27 Thread Samuel Tardieu
This patch makes q+ and q- available in math.quaternions, in order to increase their abstraction. Currently, the operations to use were v+ and v-, which revealed the underlying implementation. The following changes since commit 67fd98f42dbc5f1a6c6f5a8c41453436d2169cd9: Slava Pestov (1):

[Factor-talk] Pull request: FUEL: compilation fixes

2009-03-07 Thread Jose A. Ortega Ruiz
Hi, The patch below should fix FUEL, which was broken due to recent changes in the source tree. Sorry! The following changes since commit 81c96ca410c828bbea6a2e0077dc9e0c8d77f590: Slava Pestov (1): Add a unit test as a sanity check for a broken Win64 Pango are available i

[Factor-talk] Pull request: primes factoring optimization, and continued fractions

2009-03-02 Thread Samuel Tardieu
The following changes since commit 5aba91a0c57130e75628ec71510635f23780f1c5: Daniel Ehrenberg (1): Merge branch 'master' of git://factorcode.org/git/factor are available in the git repository at: git://git.rfc1149.net/factor.git for-slava Samuel Tardieu (2): When a factor has b

[Factor-talk] Pull request: FUEL: persistent listener history

2009-02-27 Thread Jose A. Ortega Ruiz
FUEL's listener keeps an input history, which you can access, for instance, with M-p, M-n. But, up to know, when you killed the listener's buffer, the history was lost. The patch below makes history persistent; up to `fuel-listener-history-size' entries (150 by default) are kept in a file with pat

[Factor-talk] Pull request: New refactoring command in FUEL: make generic

2009-02-19 Thread Jose A. Ortega Ruiz
The patch below implements a new, simple refactoring that converts a word definition: : foo ( x y -- z ) c ; into a GENERIC: plus method: GENERIC: foo ( x y -- z ) M: object foo c ; asking for the method's class. Bound to C-cC-xg. The following changes since commi

[Factor-talk] Pull request: FUEL: don't eval USING: forms without user's consent

2009-02-18 Thread Jose A. Ortega Ruiz
Hi, Up to now, when autodoc was enabled, FUEL was silently loading all vocabs in Factor buffers USING: forms in order to show help messages in the minibuffer. During that loading (which can take a while), other FUEL functionality would not work. With the patch below, that behaviour is controlled

[Factor-talk] Pull request: Support for alien parsing words in FUEL.

2009-01-25 Thread Jose A. Ortega Ruiz
Besides small tweaks, the patches below provide font lock and correct indentation for parsing words in the alien vocabulary. Thanks! --- The following changes since commit c074740746daa21c2b21d6148ac25c5fd98c436e: Slava Pestov (1): Split off data_heap.c from data_gc.c; split of

[Factor-talk] Pull request: math.text.french

2009-01-23 Thread Samuel Tardieu
The following changes since commit 6e9f0dbfdd8987741b56f4c26403e5852ec5a1c3: Slava Pestov (1): Update http.client docs for PUT request and stream post-data are available in the git repository at: git://git.rfc1149.net/factor.git for-slava Samuel Tardieu (2): Put 3digit-groups i

[Factor-talk] Pull request: FUEL: new refactoring: rename word

2009-01-22 Thread Jose A. Ortega Ruiz
C-cC-xw will ask for a word (with default the one whose definition you're at) a new name, and rename all its usages (asking for confirmation), or at least all its usages known to factor. After substitution, you can use the standard emacs command C-xs to save all modified buffers. Thanks! ---

[Factor-talk] Pull request: FUEL: new xref for vocabularies

2009-01-22 Thread Jose A. Ortega Ruiz
Patches below implement cross-references for vocabularies. In factor buffers, when you press C-cM-< or C-cM-> with point on a vocab, you'll get a list of vocabularies using or, respectively, used by the vocab at point. You can also use M-x fuel-vocab-uses, M-x fuel-vocab-usage to get a prompt with

[Factor-talk] Pull request: FUEL: new option fuel-xref-follow-link-method

2009-01-22 Thread Jose A. Ortega Ruiz
A list of pending changes in my repo. The last one gives you the option to choose how links in xref buffers (callers, callees, etc.) are followed (in the same buffer, other window or frame). M-x customize-variable fuel-xref-follow-link-method Thanks! --- The following changes since com

Re: [Factor-talk] Pull request: inverse fix

2009-01-22 Thread Samuel Tardieu
> "Jason" == Jason Merrill writes: Jason> Not sure if I've done this pull request correctly. If not, Jason> guidance appreciated. I generally use "git request-pull" to prepare the pull request text. Sam -- Samuel Tardieu -- s...@rfc1149.net -- http://www.rfc1149.net/ -

[Factor-talk] Pull request: inverse fix

2009-01-21 Thread Jason Merrill
Fixed the inverse definition of ^ and added a unit test. git://github.com/jwmerrill/factor.git commit 15fadbf0dd123da242cb947ecbe70f2146e91b78 tree7e7e789426b922bd1d7d727c81ef5c9625f77780 parent adc4245d8b56de05e5bbf7b93935868319732bcd Not sure if I've done this pull request correctly. I

[Factor-talk] Pull request: FUEL switch buffers (was: FUEL: vocabulary switching)

2009-01-18 Thread Jose A. Ortega Ruiz
Eduardo Cavazos writes: > Hello, > > Emacs is notorious for having default buffer switching features which don't > satisfy everybody. That's putting it nicely. :-) A long running emacs can > accumulate buffers about USENET, shells, greping, etc. I personally have > customized Emacs to easily s

[Factor-talk] Pull request: Correct highlight for multiline constructs USING:, TUPLE:, etc.

2009-01-15 Thread Jose A. Ortega Ruiz
With the patches below, FUEL should do the right thing for USING: forms (highlight vocabs) and TUPLE: forms (highlight fields as fields, including t and f). Only slightly tested: please tell me if it breaks something :) The following changes since commit db0fee9e3c40896fb9557757dba4c

[Factor-talk] Pull request: "inverse" tiny refactoring

2009-01-13 Thread Samuel Tardieu
The following changes since commit f920007959292abed2c89fbaafea594e86ec4cb8: Doug Coleman (1): extend sort-by-slots to work with nested objects, add split-by-slots for already-sorted sequences of tuples are available in the git repository at: git://git.rfc1149.net/factor.git for-slav

[Factor-talk] Pull request: New refactoring command: inline-word

2009-01-12 Thread Jose A. Ortega Ruiz
This is the inverse of extract word: C-cC-xi finds the definition of word at point and inlines it in place. Would you find it useful to offer also replacing the rest of occurrences of the same word in buffer? -- The following changes since commit 0b36b8b25968e8e316f82df3ebd03

[Factor-talk] Pull request: M-. improvements and new M-, command

2009-01-12 Thread Jose A. Ortega Ruiz
Patches below implement the new M-, command, which, when invoked after M-., brings you back to the point you were. In addition, the customizable variable 'fuel-edit-word-method' is used to decide how to open the word definition buffer when M-. is called: same window (useful now that we have M-,),

[Factor-talk] Pull request: Better word refactoring in Factor

2009-01-12 Thread Jose A. Ortega Ruiz
This patch enhances fuel-refactor-extract-region (or sexp) in two ways: - Before asking for a new word, it scans the buffer for definitions that are equal to the words you're refactoring, offering the choice of using any of them instead of creating a new one. - After performing the refa

[Factor-talk] Pull request: correct indentation for SYMBOLS:, TUPLE: &c. continuation lines in FUEL.

2009-01-12 Thread Jose A. Ortega Ruiz
The following changes since commit fb98eaf9905126006e8c9e45ea1a29d175096c18: Jose A. Ortega Ruiz (1): FUEL: Fix stack effect font-lock. are available in the git repository at: http://git.hacks-galore.org/jao/factor.git emacs Jose A. Ortega Ruiz (2): FUEL: Use better defaults

Re: [Factor-talk] Pull request: fuel vocabulary refactoring

2009-01-11 Thread Jose A. Ortega Ruiz
Here you have a first cut at it: M-x fuel-refactor-extract-vocab, or C-cC-xv. Is that more or less what you had in mind? The following changes since commit 960b67f6c9d37c6ba328463817a1bab51cd60920: Jose A. Ortega Ruiz (1): FUEL: Subvocabularies factored out from fuel. are available in

Re: [Factor-talk] Pull request: fuel vocabulary refactoring

2009-01-11 Thread Slava Pestov
Jose, When I first read the subject line I thought you had implement 'extract vocabulary' :-) That would be cool, select a set of words, invoke a command, and put them in a new vocab. This could use the scaffold tool in conjunction with the auto-use insertion. The only caveat is that it would be

[Factor-talk] Pull request: fuel vocabulary refactoring

2009-01-11 Thread Jose A. Ortega Ruiz
I've extracted some subvocabs out of fuel, making also words private when they should. Seems i haven't broken anything, but please bug me if something stops working after the patchs below get merged! Thanks! -- The following changes since commit 82a7e28082f97548fadd78fc632e90e715f666d9: Sl

[Factor-talk] Pull request: FUEL interface with tools.scaffold

2009-01-11 Thread Jose A. Ortega Ruiz
The patches below fix some bugs and provide an interface with scaffolding utilities: M-x fuel-scaffold-vocab will create a vocab and M-x fuel-scaffold-help a docs file for you. Thanks! - The following changes since commit 342e459ebedbd1b79351ca9986dcd47447e2b491: Slava Pestov (1):

[Factor-talk] Pull request: Better fallback when listener fails to load FUEL.

2009-01-08 Thread Jose A. Ortega Ruiz
With this patch, if loading of the fuel vocabulary fails when starting the listener, emacs doesn't block and a log of the error is shown. Although an inferior comint factor process keeps running (might be useful for diagnosis), FUEL's emacs side is aware that no connection is available. -

[Factor-talk] Pull request: Improvements to FUEL's factor-mode-visit-other-file

2009-01-08 Thread Jose A. Ortega Ruiz
In factor buffers, C-co visits the next file in the source-docs-tests sequence. With this patch, if the corresponding file does not exist, it will offer you its creation. By default, it will ask everytime; but you can customize the variable factor-mode-cycle-always-ask-p: if set to nil, FUEL will

Re: [Factor-talk] Pull request: FUEL: extract word refactoring

2009-01-08 Thread Adam
Blog post + reddit? On Wed, Jan 7, 2009 at 7:02 PM, Slava Pestov wrote: > Cool! > > I've been talking about the 'cut and paste factoring' property of > concatenative languages for a while now; it was already very easy to > extract sub-expressions into new words. With this command it is even > eas

[Factor-talk] Pull request: New FUEL command: fuel-show-file-words

2009-01-08 Thread Jose A. Ortega Ruiz
Try C-C-dv in a factor buffer. - The following changes since commit b3b4d0bf7c63115607866ef97e0cd85bf0acaa7f: Daniel Ehrenberg (1): Merge branch 'master' of git://factorcode.org/git/factor are available in the git repository at: http://git.hacks-galore.org/jao/fa

[Factor-talk] Pull request: better word extraction in FUEL.

2009-01-08 Thread Jose A. Ortega Ruiz
Word extraction commands changed to: - C-cC-xs : extract innermost sexp (up to point) as a separate word - C-cC-xr : extract region as a separate word They behave like fuel-show-stack-effect; C-cC-xs is usually handier, since you don't need to mark a region. Just give it a try to see ho

Re: [Factor-talk] Pull request: FUEL: extract word refactoring

2009-01-07 Thread Slava Pestov
Cool! I've been talking about the 'cut and paste factoring' property of concatenative languages for a while now; it was already very easy to extract sub-expressions into new words. With this command it is even easier, and Factor can finally live up to its namesake! Slava On Wed, Jan 7, 2009 at 6

[Factor-talk] Pull request: FUEL: extract word refactoring

2009-01-07 Thread Jose A. Ortega Ruiz
The patch below adds a new command, fuel-refactor-extract-word, available in factor source files with key binding C-cC-xw. It takes the current region, infers its stack effect, ask for a new word name, and does what you're thinking with all this information. -- The following changes s

[Factor-talk] Pull request: more primes numbers

2009-01-07 Thread Samuel Tardieu
The following changes since commit 67c37de79cee0148b224d7a8828f903c797ae2e3: Slava Pestov (1): Merge branch 'emacs' of http://git.hacks-galore.org/jao/factor are available in the git repository at: git://git.rfc1149.net/factor.git for-slava Samuel Tardieu (4): Refactor prime fa

[Factor-talk] Pull request: misc improvements to FUEL help browser

2009-01-06 Thread Jose A. Ortega Ruiz
The patches below include many improvements to the help system, which now renders almost all markup. In particular, vocabulary word lists, and vocabs per tag and author, which were missing. Table rendering is now much faster (i've dropped the dependency on emacs' table.el). Thanks! The

[Factor-talk] Pull request: FUEL: edit help article command

2009-01-05 Thread Jose A. Ortega Ruiz
The patches below implement two new commands in help buffers: - e : edit current article - k : kill current page and go to previous or next I find the first one specially useful. Thanks! -- The following changes since commit 6416cb78b09c91cd8ccbd34c997c09be1bd1a5d4:

[Factor-talk] Pull request: bookmarks facility for FUEL help pages

2009-01-03 Thread Jose A. Ortega Ruiz
A simple bookmarking mechanism for help pages. In FUEL's help browser: - ba : bookmark current page - bb : display bookmarks - bd : delete bookmark at point Very useful, IMHO. Thanks! - The following changes since commit c13a6efe976a400f56180aaf72525d5c71b9c34a: Jose A. Ortega Ru

[Factor-talk] Pull request: new FUEL command: fuel-apropos

2009-01-03 Thread Jose A. Ortega Ruiz
'M-x fuel-apropos' (C-cC-dp in factor buffers) asks for a string and uses Factor's apropos mechanism to display a list of words containing the given string, linked to their definition. -- The following changes since commit 992633dd32f9131a6bdf56b2a032617e98cd098b: Jose A. Ortega Ruiz (1

[Factor-talk] Pull request: some improvements to FUEL help system: vocab help displayed.

2009-01-03 Thread Jose A. Ortega Ruiz
The following changes since commit 796a7e9d3701dfc3343b687d54e6f5b1bb52adef: Jose A. Ortega Ruiz (1): FUEL: Help system overhaul. are available in the git repository at: http://git.hacks-galore.org/jao/factor.git emacs Jose A. Ortega Ruiz (2): FUEL: Help index pages implemente

[Factor-talk] Pull request: FUEL help now displays index pages.

2009-01-03 Thread Jose A. Ortega Ruiz
The following changes since commit 303735db5a48b6f5c8c941a8b0d962fdf0eb0b74: Jose A. Ortega Ruiz (1): FUEL: Offer a command to add missing vocabs after run-file. are available in the git repository at: http://git.hacks-galore.org/jao/factor.git emacs Jose A. Ortega Ruiz (2): F

[Factor-talk] Pull request: Improved help system in FUEL

2009-01-03 Thread Jose A. Ortega Ruiz
With the patch below, FUEL now understands help markup. As a result, help buffers have links and are able to display articles in addition to word help. In the group fuel-help you'll find some faces for customization. See README for shortcuts. $index and $vocab* not (yet) implemented. Thanks! ---

[Factor-talk] Pull request: FUEL: new command to add missing vocabs at the end of compilation

2008-12-30 Thread Jose A. Ortega Ruiz
With the patch below, if you keep adding invoking missing vocab restarts during a compilation (C-cC-k), and succeed at the end, you can press 'u' to get the missing vocabs added to your .factor. Thanks! --- The following changes since commit a89b5d6a8ac32ffbd31084592acc0347e5587af4: Jo

[Factor-talk] Pull request: some fixes to FUEL.

2008-12-30 Thread Jose A. Ortega Ruiz
Some bug fixes discussed today in #concatenative. Thanks! The following changes since commit 071e01c1062421494b926d27b5a48c42e9acd990: Slava Pestov (1): Merge branch 'emacs' of http://git.hacks-galore.org/jao/factor are available in the git repository at: http:

[Factor-talk] Pull request: "sigma" change

2008-12-27 Thread Samuel Tardieu
While using "count", I noticed that "sigma" stored the current subtotal on the stack, preventing the quotation to fully manipulate items on the stack. The following changes since commit 6cfb951d82cf35f632e3794a4c971250e2ccfcdd: Doug Coleman (1): Merge branch 'master' of git://factorcode.

Re: [Factor-talk] Pull request: math.primes reorganization

2008-12-26 Thread Slava Pestov
Hi Samuel, Thanks for the patches, it is good to see you contributing again. Slava On Fri, Dec 26, 2008 at 2:06 PM, Samuel Tardieu wrote: > In addition to the bit-arrays fix, I made some changes to math.primes > and related packages: > > - "math.primes" now uses an Eratosthene sieve rather tha

[Factor-talk] Pull request: math.primes reorganization

2008-12-26 Thread Samuel Tardieu
In addition to the bit-arrays fix, I made some changes to math.primes and related packages: - "math.primes" now uses an Eratosthene sieve rather than a built-in list; computing a bitmap for all odd numbers between 3 and 4,999,999 takes almost the same time and space as parsing the list

[Factor-talk] Pull request: bit arrays were not properly set or cleared

2008-12-26 Thread Samuel Tardieu
The following changes since commit 321919d210182f30d0ca63fc4cd67c137118f0f4: Eduardo Cavazos (1): easy-help: Add 'List:' are available in the git repository at: git://git.rfc1149.net/factor.git for-slava Samuel Tardieu (1): Properly set bits in large bit arrays basis/bit-arra

Re: [Factor-talk] Pull request: latest HEAD fixes

2008-12-23 Thread Jose A. Ortega Ruiz
Hi again, "Slava Pestov" writes: > Hi Jose, > > First, I will address your original problem by storing the auto-use > info in variables to make it easier to extract without parsing. > Related to this, try running extra/boids/boids.factor without USING: line. Compilation fails, with no vocabula

Re: [Factor-talk] Pull request: latest HEAD fixes

2008-12-23 Thread Jose A. Ortega Ruiz
Hi Slava, "Slava Pestov" writes: > Hi Jose, > > First, I will address your original problem by storing the auto-use > info in variables to make it easier to extract without parsing. > Excellent. What i'm doing now is storing amended-use, getting its value in a hook in print-use-hook. > As for

Re: [Factor-talk] Pull request: latest HEAD fixes

2008-12-22 Thread Slava Pestov
Hi Jose, First, I will address your original problem by storing the auto-use info in variables to make it easier to extract without parsing. As for the issue of restarts in the case of multiple words having the same name, that's a feature ;-) Can't FUEL just present the user with a prompt, or eve

Re: [Factor-talk] Pull request: latest HEAD fixes

2008-12-22 Thread Jose A. Ortega Ruiz
"Slava Pestov" writes: > Try this, > > Remove the USING: form from a file, then do > > auto-use? on > "path/to/my/file.factor" run-file > I'm adding support for auto-use to FUEL (using a variation of the procedure above), but got a problem. It seems than when a word (e.g. write) can be imported

Re: [Factor-talk] Pull request: Stack inference support in FUEL.

2008-12-21 Thread Jose A. Ortega Ruiz
"Nicholas Seckar" writes: > Thanks Jose, I'm finding these really useful. :-) > Yeah, me too: that was a great idea on your side :). In case you missed it, a later patch added fuel-stack-mode to the listener (C-cs to toggle). ---

Re: [Factor-talk] Pull request: Stack inference support in FUEL.

2008-12-21 Thread Nicholas Seckar
Thanks Jose, I'm finding these really useful. :-) On Sat, Dec 20, 2008 at 7:58 AM, Jose A. Ortega Ruiz wrote: > > The patch below adds stack inference support to FUEL. In factor files > you can: > > - C-cC-de : show the stack effect of current sexp > - C-uC-cC-de : show the stack effect of cur

  1   2   >