<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
    <channel>
        <title>dukeleto.factor</title>
        <link>http://leto.net/factor/</link>
        <description>[ t ] [ dukeleto ] unit-test
</description>
        <language>en-US</language>
        <copyright>Copyright 2008</copyright>
        <lastBuildDate>Wed, 12 Nov 2008 22:15:34 -0800</lastBuildDate>
        <generator>http://www.sixapart.com/movabletype/</generator>
        <docs>http://www.rssboard.org/rss-specification</docs>
        
        <item>
            <title>New blog for my Factor ramblings</title>
            <description><![CDATA[I have split off a new blog so that I can concentrate my concatenative nerdiness into one area and enhance it's effect. I have been hacking on the GSL bindings to Factor, specifically the Special Functions. What can I say, <a href="http://leto.net/code/Math-GSL/2008/09/sexy-bessel-functions-with-cha.html">Bessel functions</a> are like sirens that sing me to shipwreck...<div><br /></div><div> I finally have <a href="http://leto.net/gitweb/?p=factor.git;a=blob;f=extra/gsl/sf/airy/airy-tests.factor">some tests which use the gsl_sf_result structure</a>. Now I need to make the API more Factorish.<div><br /><div><div><ul><li>internally checking the return status and throwing an exception with the proper stringified error message</li><li>make the user oblivious to the gsl_sf_result struct and return value and error to the data stack</li></ul><div>Any other suggestions?</div></div></div></div></div>]]></description>
            <link>http://leto.net/factor/2008/11/new-blog-for-my-factor-ramblin.html</link>
            <guid>http://leto.net/factor/2008/11/new-blog-for-my-factor-ramblin.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">GSL</category>
            
                <category domain="http://www.sixapart.com/ns/types#category">factor</category>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">factor gsl</category>
            
            <pubDate>Wed, 12 Nov 2008 22:15:34 -0800</pubDate>
        </item>
        
        <item>
            <title>Running a Factor Script</title>
            <description><![CDATA[For those who are put off by the interactive UI part of Factor, you can run a script from the command-line like so<div><br /></div><div><div><span class="Apple-style-span" style="font-weight: bold;">#! /Users/leto/git/factor/factor  -script</span></div><div><span class="Apple-style-span" style="font-weight: bold;"><br /></span></div><div><span class="Apple-style-span" style="font-weight: bold;">USING: gsl gsl.sf.result gsl.sf.bessel gsl.sf.log kernel tools.test ;</span></div><div><span class="Apple-style-span" style="font-weight: bold;"><br /></span></div><div><span class="Apple-style-span" style="font-weight: bold;">"gsl.sf" test</span></div><div><br /></div><div>Note the space after the ! is necessary because every "word" in Factor must be separated by a space. The practice of running factor as a non-interactive script is not encouraged, but in certain  situations it wins the day. The above script could be factored to take an argument of a subsystem to test and then I would make a key-binding in vim (or emacs or whatever) so that when I am editing a file and I type <span class="Apple-style-span" style="font-weight: bold;">,t </span>it shows me the results of that subsystems tests.</div><div><br /></div><div>All of this stuff can be done in the interactive UI, but I think people will fiddle with Factor more  if they can easily bolt it onto their current workflow. People tend not to even try things that require totally changing their current tool chain. For me, I am editing the source of the GSL bindings in VIM, so having that script is invaluable. I hack on the source and whenever I change anything important I run the tests by hitting <span class="Apple-style-span" style="font-weight: bold;">2 keys. </span>It is really important to make running and writing tests as easy as possible, or they won't get written at all. </div><div><br /></div><div>Today ...... is a good day to hack.</div><div><br /></div></div>]]></description>
            <link>http://leto.net/factor/2008/11/running-a-factor-script.html</link>
            <guid>http://leto.net/factor/2008/11/running-a-factor-script.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">GSL</category>
            
                <category domain="http://www.sixapart.com/ns/types#category">factor</category>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">factor</category>
            
            <pubDate>Thu, 06 Nov 2008 07:32:56 -0800</pubDate>
        </item>
        
        <item>
            <title>GSL for Factor</title>
            <description><![CDATA[<a href="http://factorcode.org">Factor</a> is a new language that is gaining momentum in the open source community. A few of the core members were in town visiting after the creator Slava gave a <a href="http://www.youtube.com/watch?v=f_0QlhYlS8g">Google Tech Talk</a>. Over beers and pizza at the Lucky Lab NW the Factor guys told me how <a href="http://docs.factorcode.org/content/article-alien.html">FFI</a> works and we had a binding to a Bessel function working within half an hour. It's that frickin' easy! <div><br /></div><div><a href="http://leto.net/gitweb/?p=factor.git;a=summary">Here</a> is the gitweb for factor-gsl, which currently has support for all Bessel functions. </div><div><br /></div><div>To clone master repo:</div><div><br /></div><div>git clone http://leto.net<span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: -webkit-sans-serif; ">/code/factor.git</span></div><div><span class="Apple-style-span" style="font-weight: bold;"><br /></span></div><div><span class="Apple-style-span" style="font-weight: bold;">Example usage: </span></div><div><br /></div><div><div>( scratchpad ) USE: gsl.sf.bessel</div><div>( scratchpad ) 10 gsl_sf_bessel_J0 .</div><div>-0.2459357644513484</div><div><br /></div><div>There are tests also, but the docs are still a bit rough. </div></div>]]></description>
            <link>http://leto.net/factor/2008/11/gsl-for-factor.html</link>
            <guid>http://leto.net/factor/2008/11/gsl-for-factor.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">factor</category>
            
                <category domain="http://www.sixapart.com/ns/types#category">git</category>
            
            
            <pubDate>Sat, 01 Nov 2008 07:15:41 -0800</pubDate>
        </item>
        
    </channel>
</rss>
