I've been playing around with a "formatted stream" that renders to a PDF,
and have gotten some of the Factor Help system to output to PDF. Would
something like this be useful?
See these PDF's for examples:
"Factor Cookbook"
https://raw.github.com/mrjbq7/re-factor/master/docs/cookbook.pdf
"Your First Program"
https://raw.github.com/mrjbq7/re-factor/master/docs/first-program.pdf
"Factor Handbook"
https://raw.github.com/mrjbq7/re-factor/master/docs/handbook.pdf
(Note: its a work-in-progress and so some of the formatting instructions
aren't fully supported. And I'd love to get intra-document links to
work.).
By the way, for the curious, it's about as easy as:
( scratchpad ) [ "cookbook" print-topic ] with-pdf-writer
Thanks,
John.
On Sun, Aug 28, 2011 at 5:52 PM, Slava Pestov <sl...@factorcode.org> wrote:
> Hi John,
>
> On Sun, Aug 28, 2011 at 5:22 PM, John Porubek <jporu...@gmail.com> wrote:
> > Eureka! I found the code example. I was looking into a way to provide
> > a simple small delay on the order of a few milliseconds. I searched
> > for "delay". The example is found in the first "delay" word entry in
> > Help. I input the "funny-slider" example and get the error:
>
> Thanks, I fixed the example.
>
> > By the way, I come from a Forth background where I could implement a
> > simple delay word by using a simple "do loop" for something quick and
> > dirty or use a hardware timer for something more efficient. I know I'm
> > not in Kansas anymore, but what's the easiest way to implement a
> > simple delay word in Factor?
>
> As Joe pointed out, you can use the 'sleep' word.
>
> Slava
>
>
> ------------------------------------------------------------------------------
> EMC VNX: the world's simplest storage, starting under $10K
> The only unified storage solution that offers unified management
> Up to 160% more powerful than alternatives and 25% more efficient.
> Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
> _______________________________________________
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>
------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management
Up to 160% more powerful than alternatives and 25% more efficient.
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk