Re: [Factor-talk] Defining enumerations

2009-01-21 Thread Paul Moore
2009/1/21 Slava Pestov sl...@factorcode.org: Have you seen C-ENUM: in alien.syntax? No, I hadn't. Thanks for the pointer. It's nice to see that it's quite similar to mine :-) This word is in alien.syntax because we generally only use it when interfacing with C libraries. If you just need

Re: [Factor-talk] Defining enumerations

2009-01-21 Thread Slava Pestov
Hi Paul, If you're looking to make instruction dispatch fast in your VM, one thing worth trying is to use a 'case' indexed by enum elements. You'll need to cook up some parsing words, first. IN: lpeg ... SYMBOL: instructions H{ } clone instructions set-global ! INSN: word body ; : INSN:

[Factor-talk] Fuel bug with quotes

2009-01-21 Thread V. Glenn Tarcea
Hi Jose, I'd like to echo the sentiments expressed on this list about how amazing FUEL is. In many ways this is as nice as or sometimes even nicer than SLIME. I found one small bug in FUEL (from the 01/15 download from Factor website of Windows binaries) with quoting. FUEL seems to be

[Factor-talk] multiple threads using file system monitors

2009-01-21 Thread Eduardo Cavazos
Slava, Here's a simple word which uses monitors: :: show-dir-changes ( PATH -- ) [ [let | MONITOR [ PATH t monitor ] | [ MONITOR next-change drop . t ] loop ] ] with-monitors ; If I open three ui listener windows and in each one do: home show-dir-changes

Re: [Factor-talk] Fuel bug with quotes

2009-01-21 Thread Jose A. Ortega Ruiz
Hi Glenn, V. Glenn Tarcea gtar...@umich.edu writes: Hi Jose, I’d like to echo the sentiments expressed on this list about how amazing FUEL is. In many ways this is as nice as or sometimes even nicer than SLIME. Thank you. I come from a lisp background, and slime is of course a source of

Re: [Factor-talk] updated with-slots

2009-01-21 Thread Jean-François Bigot
Hi Your with-slots word would be interesting to reimplement the loadable-values vocab I proposed a few days ago. Nevertheless I really don't understand why the slots of abc are lowercase and accessors in the scope are uppercase. It's really hard for me to switch from the one to other and

[Factor-talk] git-tool

2009-01-21 Thread Eduardo Cavazos
Hello, There's a Git frontend written in Factor available in my dharmalab repository: git://github.com/dharmatech/dharmalab.git This is alpha software. Bug reports are not welcome. :-) I'm sharing it for folks who are curious. If you have fixes or design suggestions, they are welcome.

[Factor-talk] with-slots using all caps slots

2009-01-21 Thread Eduardo Cavazos
Jean-François Bigot wrote: Nevertheless I really don't understand why the slots of abc are lowercase and accessors in the scope are uppercase. It's really hard for me to switch from the one to other and keeping in mind that it's the same object behind. Hi Jeff! Right now, with-slots is

[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.