Ok so i stuffed up in the last post. Recursive set-of returning functions are just fine in postgresql. I was just using the wrong return function – you need to use RETURN QUERY. Also, the functions I wrote although useful for part of the problem, don’t help us in others. e.g. we need to know [...]
Author Archives: zucchi
squelch
Been busy. Had to go away for a week for work. Very strange experience, not sure I want to repeat that again any time soon. Oh well. I had started looking into writing a vorbis decoder before that major interruption. Something a bit more challenging than normal. About all i’ve gathered so far is that [...]
Spewing bits
A followup to the last post about bit manipulation. I ran the same code on a SPU on a PS3. As expected, rather different results. The branchelss code (fls()) compiled without branches, and was reasonably fast still – 8s or 6.2s inline. Still, my lowly 1.5Ghz Pentium M creamed it in performance (well a little [...]
Bits of lists
As I suggested I might, I’ve written up a little about some of the list sorting I was playing with lately. It compares a non-recursive sorting algorithm to GList’s recursive algorithm, it compares an embedded node structure to GList’s internal node/external data structure, and it throws in an array sort for good measure. I try [...]
unexpected bits of bits
After years of mind-numbing .net stuff I’ve started getting into hacking C again. Sorting, balanced trees, memory allocators, hash tables, playing with literate programming, all sorts of things. Mostly just for the intellectual challenge of it all too – nice change from tweaking buttons in a shitty ui. This morning I was trying to write [...]
Blah.
Why do so many car drivers suck? Selfish probably. Australia has become so selfish and nasty. Full of racists and bigots and crazy religious people. My days lately start pleasantly enough – it’s been warmer than it has for a while, I feed the cat, have a shower, water some pot plants usually. But all [...]
Job queue?
Well I was playing with the SPU code again tonight – trying to get it to spread the load across multiple SPUs. And how to get timing info out of it. I dunno, about the best I could come up with was: i.e. not a particularly linear scaling. Although I have a feeling the kernel [...]
My first CELL code
Well I finally wrote some code on the CELL. I originally thought I’d do a Mandelbrot calculator – it seemed a pretty simple thing to do, yet still demonstrate some vectorisation concepts. But when I was looking on the net – that seemed to be what everyone else thought too! So it put me off [...]
![[FSF Associate Member 6418]](http://blogs.gnome.org/zucchi/files/2008/03/fsf-member.png)