Re: [Factor-talk] list

2009-05-26 Thread Slava Pestov
Hugh, What you've implemented is like Factor's dlists, http://docs.factorcode.org/content/article-dlists.html. They are an implementation of the deque abstract data type, http://docs.factorcode.org/content/article-deques.html Slava On Tue, May 26, 2009 at 11:59 PM, Hugh Aguilar wrote: > Here i

Re: [Factor-talk] OOP tutorial

2009-05-26 Thread Jean-François Bigot
Hi I posted february 5 about a latex output for doc. You can find my code on git://github.com/Bigot/work-bgt.git I'm quite sure the code is broken since I didn't maintained it and factor evolved a lot but give it a look and send me feedbacks. Jeff Le 27 mai 09 à 05:24, Adam a écrit :

[Factor-talk] list

2009-05-26 Thread Hugh Aguilar
Here is a very simple program that I wrote (www.rosycrew.org/list.factor) that you might be interested in. I think that I am just duplicating what Factor's vectors do, but I haven't really figured out vectors yet and it was easier for me to just write my own --- I'm not very good at learning thi

Re: [Factor-talk] OOP tutorial

2009-05-26 Thread Adam
Hugh, Why not create your tutorial in the help system itself? A ps/pdf back end could be written later if you wanted a nice printable copy but at least then the tutorial would be contained within the existing documentation. Also, this would subject the examples provided in the tutorial to the he

[Factor-talk] voting-system simulation

2009-05-26 Thread Hugh Aguilar
My symtab program was somewhat boring. I am working on another program now that should hopefully be more interesting. This is a simulation of voting systems, derived from the book: "Mathematics and Democracy" (Steven Brams). Brams is a long-time proponent of Approval Voting. This is a system whe

Re: [Factor-talk] OOP tutorial

2009-05-26 Thread Chris Double
On 5/27/09, Hugh Aguilar wrote: > I have experience with LaTeX. When you guys are ready to write a tutorial, I > could be the technical writer. Factor used to have a handbook written in LaTeX but it was superceded by the help. Here's an old copy: http://bluishcoder.co.nz/handbook.pdf Chris. -

[Factor-talk] OOP tutorial

2009-05-26 Thread Hugh Aguilar
Thanks for your help; that first form is a lot clearer. I have a slightly upgraded version of my program (www.rosycrew.com/symtab.factor) that adds the words new-symtab and new-forth-word --- as this seems to be the idiomatic way to do it (rather than require the user to do his own xxx new and

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] input-stream dynamic var by default? (csv)

2009-05-26 Thread Doug Coleman
Hi Phil, The CSV parser is missing some features that would make it more usable. Also, the code no longer looks idiomatic to me -- maybe a rewrite is in order? * Take a look at Python's CSV API http://www.python.org/dev/peps/pep-0305/ where they define dialects to be a set of TUPLE: dial

[Factor-talk] input-stream dynamic var by default? (csv)

2009-05-26 Thread Phil Dawes
Hi Factor list, Quick question about factor style: - Should words taking input use the imput-stream dynamic var by default? I'm thinking of changing my csv vocab to do this instead of taking a stream since I always use 'with-file-reader'. Is this a good idea? Cheers, Phil --