Re: [Factor-talk] An example for aspiring gadget writers

2008-11-27 Thread Chris Double
On Thu, Nov 27, 2008 at 11:34 PM, John Pallister [EMAIL PROTECTED] wrote: Creativity is great once you've mastered the idiom. Otherwise you just get bad poetry. Ed creates the idioms. Many of the idioms in Factor that we use today stem directly from things that Ed came up with and some of us

Re: [Factor-talk] An example for aspiring gadget writers

2008-11-27 Thread Jonathan Leto
Howdy, A little humor never hurt anyone: http://i108.photobucket.com/albums/n24/conor_jm92/Bush_doing_it_wrong.jpg For me, programming is about being creative, not following your rules. I very much agree with this principle. Not to mention any example is better than no example. Let's not

Re: [Factor-talk] An example for aspiring gadget writers

2008-11-27 Thread Ricardo Boccato Alves
In order to show how to draw a gadget with a diferent coordinate system, I guess It would be nice to abstract the pattern into a word, something like: : with-coords ( gadget x1 y1 x2 y2 quotation -- ) ... ; M: sine-gadget draw-gadget* ( SINE -- ) -10 10 -10 10 [ -10 10 0.5 range [ dup sin

Re: [Factor-talk] An example for aspiring gadget writers

2008-11-27 Thread Eduardo Cavazos
Ricardo Boccato Alves wrote: In order to show how to draw a gadget with a diferent coordinate system, I guess It would be nice to abstract the pattern into a word, something like: : with-coords ( gadget x1 y1 x2 y2 quotation -- ) ... ; M: sine-gadget draw-gadget* ( SINE -- ) -10 10

[Factor-talk] ortho and extent

2008-11-27 Thread Eduardo Cavazos
Ricardo, The stack effect of the 'ortho*' combinator we ended up with is: ortho* ( gadget left right bottom top quot -- ) Six inputs is a alot. For me that's usually a signal to look for another abstraction. The left, right, bottom, and top values seem related. :-) TUPLE: extent left

Re: [Factor-talk] ortho and extent

2008-11-27 Thread Ricardo Boccato Alves
Ed, ortho ( gadget extent quot -- ) It really looks better, maybe you could use rect instead of creating a new tuple. []s, Ricardo Boccato Alves - This SF.Net email is sponsored by the Moblin Your Move Developer's

[Factor-talk] Pull request: ElDoc mode for factor-mode

2008-11-27 Thread Jose A. Ortega Ruiz
Hi, Besides a bug fix, the two patches below provide 'see' fontified output in the minibuffer (try C-cC-s in a factor buffer) and ElDoc support (try M-x eldoc-mode in a factor buffer and see what happens when moving around). Both things need a previous M-x run-factor to start the listener. I've

[Factor-talk] Pull request: Small improvements to emacs factor eldoc mode

2008-11-27 Thread Jose A. Ortega Ruiz
The following changes since commit d7587282fd315ae87517c4e85dd94fb040e519b3: Jose A. Ortega Ruiz (1): Emacs factor mode: 'see' in minibuffer and Eldoc mode available. are available in the git repository at: http://git.hacks-galore.org/jao/factor.git emacs Jose A. Ortega Ruiz (1):

Re: [Factor-talk] Pull request: ElDoc mode for factor-mode

2008-11-27 Thread Eduardo Cavazos
On Thursday 27 November 2008 18:58:20 Jose A. Ortega Ruiz wrote: Besides a bug fix, the two patches below provide 'see' fontified output in the minibuffer (try C-cC-s in a factor buffer) and ElDoc support (try M-x eldoc-mode in a factor buffer and see what happens when moving around). Both

[Factor-talk] factor.el first impressions

2008-11-27 Thread Slava Pestov
Hi Jose, I'm very impressed with factor.el. I did find a few problems though, it would make factor.el even nicer to use if they were fixed: - There should be a command to transmit the current file's USE:/USING:/IN: forms into the listener. Don't forget about PRIVATE; that's like USE: my