Time loop RSS

“What if there is no tomorrow? There wasn’t one today.”

Archive

Nov
8th
Sun
permalink
Nov
5th
Thu
permalink
Nov
1st
Sun
permalink
Oct
30th
Fri
permalink
Changing GNOME Panel autohide options with gconf-editor. Interesting options: auto_hide, auto_hide_size, hide_delay, and unhide_delay.

Changing GNOME Panel autohide options with gconf-editor. Interesting options: auto_hide, auto_hide_size, hide_delay, and unhide_delay.

Oct
28th
Wed
permalink
permalink

pSX on Ubuntu AMD64

via dfreer

I believe this will solve the problems for most people unable to launch pSX in Ubuntu Hardy/Intrepid.

#!/bin/bash
# A script to disable pulseaudio, run pSX, then renable pulseaudio

gksu /etc/init.d/pulseaudio stop
sleep 1
gksu killall pulseaudio # Forcefully ends pulseaudio if still running
sleep 1
exec /usr/local/games/psx/pSX
sleep 1
gksu /etc/init.d/pulseaudio start
permalink

just for the heck of it: I have tuned a very CPU-heavy function I wrote in Common Lisp over a year ago so it went from the unsatisfactory 623 µs per call to the very pleasant 4.7 µs per call.

the strictly equivalent C function that people are entirely satisfied with, performance-wise, takes 92 µs per call. very frequently, I find that Common Lisp allows me to experiment with algorithms so much faster than I can in C and the like, so I can change methodology and approach as fast as they can do another optimization attempt. this means that a good Common Lisp programmer can find the optimal algorithm and the optimal implementation in less time than the C programmer can find the optimal implementation.

the C mind-set is that C is fast. this is even less true than their idea that CL is slow. writing really fast C code is incredibly hard, and you might as well write it in assembly after you have seen what the compiler is doing to the overall code. I have squeezed the last drop of blood out of many a CPU in my time, but never has it been easier to do it than with Allegro CL with its instruction-level profiler, hackable LAP code (thanks, Duane!), and code transformation with compiler macros (a standard CL facility). this stuff just isn’t available to C programmers.

if you can’t outperform C in CL, you’re too good at C.

Oct
27th
Tue
permalink
permalink
Oct
25th
Sun
permalink