tag:blogger.com,1999:blog-37475554567357451152024-03-08T03:53:53.332-08:00Carter Chroniclescarter t schonwaldhttp://www.blogger.com/profile/16546056304179288828noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-3747555456735745115.post-89232286585303416472014-03-29T21:21:00.000-07:002014-03-29T21:21:15.517-07:00API design should be an alternating optimizationEvery tool you ever build will have some goal it supports. Start with writing the code/examples you want your tool to enable! They wont be quite <i>right,</i> but it gives you a start and a set of examples to evaluate your tool on. Then go write the dumbest implementation of the operations needed to make those examples run. Then write more examples, and discover better refinements for that API, and thence iterate back and forth quickly between top-down and bottom-up approaches to library engineering.<br />
<br />
I've spent too much of the past year bogged down in bottom-up only, and just now now starting to see the power of an "alternating minimization" approach.<br />
<br />
Speaking of which, I hope to start sharing some interesting writing about how to write and use Numerical solvers and optimization routines in the coming weeks, and Alternating Minimization will (I hope) be one class of optimization routines I'll discuss.<br />
<br />
Its been a busy year, and its about to get even busier and much more awesome. Numerical Computing, Compilers, Debugging, Optimization Routines, oh my!carter t schonwaldhttp://www.blogger.com/profile/16546056304179288828noreply@blogger.com0tag:blogger.com,1999:blog-3747555456735745115.post-25199642071488268942012-08-31T12:49:00.000-07:002012-08-31T12:54:09.116-07:00Stuff I tell people to read If you're doing any technical work whatsoever, or talking with startups (or technical companies generally) in some way, the following really lucid articles are required reading. I need to reread them myself sometimes! :)<br />
<br />
<br />
<br />
<div style="font-family: arial; font-size: small;">
heres some helpful reading regarding career navigation etc</div>
<div style="font-family: arial; font-size: small;">
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<a href="http://www.kalzumeus.com/2011/10/28/dont-call-yourself-a-programmer/" style="color: #1155cc;" target="_blank">http://www.kalzumeus.com/2011/<wbr></wbr>10/28/dont-call-yourself-a-<wbr></wbr>programmer/</a></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<a href="http://www.kalzumeus.com/2012/01/23/salary-negotiation/" style="color: #1155cc;" target="_blank">http://www.kalzumeus.com/2012/<wbr></wbr>01/23/salary-negotiation/</a></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<a href="http://www.kalzumeus.com/2009/12/31/engineering-your-way-to-marketing-success/" style="color: #1155cc;" target="_blank">http://www.kalzumeus.com/2009/<wbr></wbr>12/31/engineering-your-way-to-<wbr></wbr>marketing-success/</a></div>
</div>
<div style="font-family: arial; font-size: small;">
<br /></div>
<div style="font-family: arial; font-size: small;">
why or why not for most startups are a terrible idea to work at :-)</div>
<div style="font-family: arial; font-size: small;">
<a href="http://michaelochurch.wordpress.com/2012/07/08/dont-waste-your-time-in-crappy-startup-jobs/"><span style="color: blue;">http://michaelochurch.wordpress.com/2012/07/08/dont-waste-your-time-in-crappy-startup-jobs/</span></a></div>
<div style="font-family: arial; font-size: small;">
<br /></div>
<div style="font-family: arial; font-size: small;">
ANYWAYS, I've been dabbling with Agda and Idris lately, along with reading some fun things like a cute tome of bit twiddling called "Hackers Delight", a wonderful sequel to the famous "HACKMEM" memo that is pretty cool reading itself. Thats just been my procrasti(coding | reading), not my "day time" focus. Stay tuned :) </div>
<br />
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: { processEscapes: true
}
});
</script>
<script src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript">
</script>carter t schonwaldhttp://www.blogger.com/profile/16546056304179288828noreply@blogger.com2tag:blogger.com,1999:blog-3747555456735745115.post-72444965865340496752012-08-14T14:40:00.003-07:002013-11-20T22:50:30.678-08:00On Blas and Hmatrix So one thing I've been up to is sorting out how to help Haskell have working BSD3 licensed lin alg tools on hackage right now™. There are two packages on hackage that have all the basic algorithmic batteries presently!<br />
<br />
Heres their names, whats good/bad about them, and what i've done to help improve things :)<br />
<br />
<b>Blas</b>: bsd3, and has bindings to a whole bunch of blas, with support for banded matrices etc. Not currently maintained and the current hackage version wont build. I spoke with the author last week and he is no longer maintaining it, and pointed out that it does have a few problems in terms of api aesthetics etc.<br />
<br />
I have a buildable version that you can use on my github here: <a href="https://github.com/cartazio/hs-linear-algebra">https://github.com/cartazio/hs-linear-algebra</a>. There were a bunch of little things that needed to be fixed up so it'd build. (but now it does!)<br />
<br />
<br />
If someone is interested in taking over maintainer ship and cleaning up the api a bit plus updating the test suite code to use more modern unit test, and tracking down why 5 pieces of code in the test suite fail on certain instances in the complex double case. Also: only supports Doubles and Complex Doubles presently (which is fine, but seems like a needless restriction / overhead for folks who don't need as much precision in their computation)<br />
<br />
<b>Hmatrix:</b><br />
Has a nice api, but because GSL is tightly woven into some of the vector code, which means the entire package, even the linear algebra parts, is GPL licensed, which is viewed as problematical by the community.<br />
I've had some conversations with the maintainer Alberto (super nice guy), and if the blas/lapack/vector stuff can be factored out and no longer use the GSL code, he's open to refactoring the core hmatrix package into the lin alg part ("hmatrix-base") and a part with the gsl code ("some other name").<br />
(edit for clarity: the goal here being that hmatrix-base would be made bsd3)<br />
<br />
So right now I'm midway through a slash and burn rewrite of what i hope will become the "hmatrix-base" piece, in branch towardsBSD3 at my repo <a href="https://github.com/cartazio/hmatrix">https://github.com/cartazio/hmatrix</a>. One handy thing about getting the Blas package in working shape is that I actually can (hopefully) repurpose some of its vector c code for this. So for now I have a copy of the various C code bits from the hs-linear-algebra in the same subdir as the offending code.<br />
<br />
Basically the main piece of code that'll need to be changed is the code in<br />
<a href="https://github.com/cartazio/hmatrix">hmatrix</a> / <a href="https://github.com/cartazio/hmatrix/tree/TowardsBSD3/lib">lib</a> / <a href="https://github.com/cartazio/hmatrix/tree/TowardsBSD3/lib/Numeric">Numeric</a> / BSD/ Vector-aux.c , perhaps using the cbits code from blas as the starting point? (though it'll need to extended to Float and Complex Float cases). Basically i'm doing a hack and slash job in a branch, and then i'll do surgery merge / refactor later and then talk with Alberto about moving things along license wise etc.<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: { processEscapes: true
}
});
</script>
<script src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript">
</script><br />
<div>
<br /></div>
<div>
-----</div>
<div>
Thats not all I'm up to, but its all I can share right now :)</div>
<div>
<br /></div>
carter t schonwaldhttp://www.blogger.com/profile/16546056304179288828noreply@blogger.com0tag:blogger.com,1999:blog-3747555456735745115.post-28841190775308893082012-08-14T10:47:00.001-07:002012-08-14T11:06:30.097-07:00Whats currently afoot! (amazing numerical things in haskell)Hey internet. Sorry we've not spoken lately.<br />
<br />
So a few months ago I started working on designing some tools for doing numerical computation in a much nicer way (in haskell of course!). I've been pretty busy with it, but its very exciting stuff. I was even at one point considering submitting a proposal for technical area 1 of the DARPA <a href="http://www.darpa.mil/Our_Work/I2O/Programs/XDATA.aspx" target="_blank">XDATA</a> initiative (which was a bit of a challenge to even try to organize, as I only found out about the solicitation 2 weeks before it was due!).<br />
<br />
Anyways, turns out real businesses want to use (and pay for) my data analysis tools ( "Cashew") the moment I have them ready! So I'm a bit buried with coding right now. But stay tuned!<br />
<br />
Yes, Haskell + Data Analysis & Numerical Computation + business users! Have a look see at whats going on at <a href="http://www.wellposed.com/">www.wellposed.com</a> this fall to find out more :)<br />
<br />
<br />
(edit: one thing I'm also doing aside from writing these tools is doing a bunch of work to improve the open source numerical ecosystem in haskell. eg trying to get a bsd3 lin alg out the door, whether via teaming with a maintainer of current packages, or rolling my own. One way or another twill happen. see github for a rough view of the current state of that :) )<br />
<br />
(edit2: assuming the business gets off the ground this fall, hopefully i'll be fortunate enough to have the challenging problem of finding great colleagues to join me full time in my escapades)<br />
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: { processEscapes: true
}
});
</script>
<script src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript">
</script>carter t schonwaldhttp://www.blogger.com/profile/16546056304179288828noreply@blogger.com1tag:blogger.com,1999:blog-3747555456735745115.post-89599510699863516762011-07-04T17:01:00.000-07:002011-07-04T17:01:34.143-07:00Math renders! Time for Content!so to answer will it math? \( f(x)=\partial \phi / \sin \pi\)<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: { processEscapes: true
}
});
</script> <script src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript">
</script><br />
<div><br />
</div><div>yes it does.</div><div><br />
</div><div>Ok, now that I have a nice math rendering blog thing setup, I"ll stick with it :)</div><div><br />
</div>carter t schonwaldhttp://www.blogger.com/profile/16546056304179288828noreply@blogger.com2tag:blogger.com,1999:blog-3747555456735745115.post-28689927131155483642011-07-04T16:49:00.001-07:002011-07-04T16:50:08.679-07:00another test post<script type="text/x-mathjax-config"> MathJax.Hub.Config({ tex2jax: { processEscapes: true } }); </script> <script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"> </script><div><br /></div><div><br /></div><div><br /></div><div>I will \(\dfrac{\partial E}{\partial \widehat{C}}\)</div>carter t schonwaldhttp://www.blogger.com/profile/16546056304179288828noreply@blogger.com1tag:blogger.com,1999:blog-3747555456735745115.post-28428661886164560062011-07-04T16:47:00.001-07:002011-07-04T16:48:33.821-07:00testing latex<script type="text/x-mathjax-config"> MathJax.Hub.Config({ tex2jax: { processEscapes: true } }); </script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"> </script><br /><br /><br />\[\int f(x)=\partial g(y)\cdot \Theta\]carter t schonwaldhttp://www.blogger.com/profile/16546056304179288828noreply@blogger.com0