<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>dukeleto.factor</title>
    <link rel="alternate" type="text/html" href="http://leto.net/factor/" />
    <link rel="self" type="application/atom+xml" href="http://leto.net/factor/atom.xml" />
    <id>tag:leto.net,2008-04-19:/factor//7</id>
    <updated>2008-11-13T07:00:23Z</updated>
    <subtitle>[ t ] [ dukeleto ] unit-test
</subtitle>
    <generator uri="http://www.sixapart.com/movabletype/">Movable Type Open Source 4.1</generator>

<entry>
    <title>New blog for my Factor ramblings</title>
    <link rel="alternate" type="text/html" href="http://leto.net/factor/2008/11/new-blog-for-my-factor-ramblin.html" />
    <id>tag:leto.net,2008:/factor//7.118</id>

    <published>2008-11-13T06:15:34Z</published>
    <updated>2008-11-13T07:00:23Z</updated>

    <summary>I have split off a new blog so that I can concentrate my concatenative nerdiness into one area and enhance it&apos;s effect. I have been hacking on the GSL bindings to Factor, specifically the Special Functions. What can I say,...</summary>
    <author>
        <name>Jonathan Leto</name>
        
    </author>
    
        <category term="GSL" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="factor" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="factorgsl" label="factor gsl" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en-US" xml:base="http://leto.net/factor/">
        <![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>]]>
        
    </content>
</entry>

<entry>
    <title>Running a Factor Script</title>
    <link rel="alternate" type="text/html" href="http://leto.net/factor/2008/11/running-a-factor-script.html" />
    <id>tag:leto.net,2008:/x//1.98</id>

    <published>2008-11-06T15:32:56Z</published>
    <updated>2008-11-06T16:18:33Z</updated>

    <summary>For those who are put off by the interactive UI part of Factor, you can run a script from the command-line like so#! /Users/leto/git/factor/factor  -scriptUSING: gsl gsl.sf.result gsl.sf.bessel gsl.sf.log kernel tools.test ;&quot;gsl.sf&quot; testNote the space after the ! is necessary...</summary>
    <author>
        <name>Jonathan Leto</name>
        
    </author>
    
        <category term="GSL" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="factor" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="factor" label="factor" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en-US" xml:base="http://leto.net/factor/">
        <![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>]]>
        
    </content>
</entry>

<entry>
    <title>GSL for Factor</title>
    <link rel="alternate" type="text/html" href="http://leto.net/factor/2008/11/gsl-for-factor.html" />
    <id>tag:leto.net,2008:/x//1.93</id>

    <published>2008-11-01T14:15:41Z</published>
    <updated>2008-11-13T07:08:31Z</updated>

    <summary>Factor 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 Google Tech Talk. Over beers and pizza at the Lucky Lab...</summary>
    <author>
        <name>Jonathan Leto</name>
        
    </author>
    
        <category term="factor" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="git" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en-US" xml:base="http://leto.net/factor/">
        <![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>]]>
        
    </content>
</entry>

</feed>
