Re: [Factor-talk] New here

2009-06-19 Thread Samuel Tardieu
Hugh == Hugh Aguilar hugoagui...@rosycrew.com writes: Hugh On the other hand, the downside of Factor is that the built-in Hugh data structures may not do exactly what you want them to Hugh do. Programming in Factor is like buying a suit off the rack; it Hugh is not going to be a perfect fit for

Re: [Factor-talk] Interleaving two arrays?

2009-06-19 Thread Slava Pestov
Your code still has the inefficiency of dynamic variable lookups on every call to , as well as resizing the underlying array of the vector being constructed. Here is a more direct version: : intersperse ( seq1 seq2 -- seq ) 2dup [ length ] bi@ + vector [ '[ [ _ push ] bi@ ] 2each ] keep

[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

Re: [Factor-talk] New here

2009-06-19 Thread Tadhg O'Meara
For me this FAQ was a helpful intro to the ideas behind stack languages: http://www.latrobe.edu.au/philosophy/phimvt/joy/faq.html 2009/6/18 Emeka emekami...@gmail.com Hello All, I'm new here and I would like to know where to start? i need introductory materials and summary of what Factor

Re: [Factor-talk] New here

2009-06-19 Thread Darrin Thompson
On Thu, Jun 18, 2009 at 11:40 AM, Emekaemekami...@gmail.com wrote: So, I should first study Forth... It may be overwhelming for a mere mortal like me. Is Forth a stable language? If that puts you off don't bother. I've been able to get pretty productive on Factor without studying Forth. The