Actually, I wrote a circular vocabulary on 09/18/2006 for a game I was coding.
Of course Slava beat us all to it by a year. http://tunes.org/~nef//logs/concatenative/05.08.21 05.08.21:14:06:16 <slava> TUPLE: circular ; 05.08.21:14:06:21 <slava> C: circular [ set-delegate ] keep ; 05.08.21:14:06:29 <slava> M: circular nth [ length mod ] keep delegate nth ; 05.08.21:14:06:52 <slava> 101 { 1 2 } <circular> nth . ==> 1 Circular buffers are pretty common. They come out really clean in Factor because of the generic sequence protocol, but I doubt Factor was the first to implement them in this way. http://en.wikipedia.org/wiki/Circular_buffer Doug On Feb 5, 2009, at 2:50 PM, Daniel Ehrenberg wrote: > Alex Chapman wrote the first version of circular, for vertex buffers I > think. I, unaware of this, wrote another implementation of the same > thing for the XML parser, and then I realized they were the same and > merged the two libraries. The idea of a circular buffer is kinda > trivial and I'm sure it's not really a Factor innovation. I remember > seeing an implementation of something similar in a C book I was > reading years ago. Maybe it's an innovation to make it a virtual > sequence. I doubt that, but haven't seen it anywhere else following > the same protocol that arrays do. It'd be easy to implement circular > in, say, Python following the equivalent of the sequence protocol. > > Dan > > On Thu, Feb 5, 2009 at 11:54 AM, Eduardo Cavazos <[email protected] > > wrote: >> Hello, >> >> The 'circular' vocabulary is pretty neat. I actually use it in the >> 'trails' demo. To try it do: >> >> "trails" run >> >> So I'm curious, what was the precedent for 'circular'? Was it >> borrowed >> from another language? Or is it a Factor innovation? >> >> Ed >> >> ------------------------------------------------------------------------------ >> Create and Deploy Rich Internet Apps outside the browser with >> Adobe(R)AIR(TM) >> software. With Adobe AIR, Ajax developers can use existing skills >> and code to >> build responsive, highly engaging applications that combine the >> power of local >> resources and data with the reach of the web. Download the Adobe >> AIR SDK and >> Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com >> _______________________________________________ >> Factor-talk mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/factor-talk >> > > ------------------------------------------------------------------------------ > Create and Deploy Rich Internet Apps outside the browser with > Adobe(R)AIR(TM) > software. With Adobe AIR, Ajax developers can use existing skills > and code to > build responsive, highly engaging applications that combine the > power of local > resources and data with the reach of the web. Download the Adobe AIR > SDK and > Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com > _______________________________________________ > Factor-talk mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/factor-talk ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ Factor-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/factor-talk
