|nyef||Heh. I got into Lisp over writing computer emulators. Unsigned bytes come second nature to me.|
|_3b||ed-t8: comprehensible/maintainable is a good place tos tart :)|
|jonathon||Oh believe me, I was raised on them. I just enjoyed the break. Actually, that reminds me, I need to install vice and grab some of those old c64 games I used to play|
nyef: do you have any docs on the device you are working with?
|ed-t8||jaoswald: its not really a university exercise, its my final year project. it involves graphics programming and the representation of genes. I don't think they really expect me to go through the optimization process but it would be cool to learn how. :)|
|nyef||It's a Buslink MP3-14XS.|
(Rebadged Hansori HAN-14XS.)
|jonathon||so, an mp3 player driver in lisp?|
|nyef||Got it basically all nailed down except for two functions, and some fragility in the uploads.|
Yeah. Just file transfers, really.
Thing maintains a FAT filesystem internally, near as I can tell.
|ed-t8||_3b: How do you know when your code is comprehensible/maintainable? I mean I can understand it but how will I know anyone else will? heh|
|nyef||(Directory format is vfat with 16-bit character LFNs, upload commands take two filenames, delete command takes the short filename, etc.)|
|araujo||ed-t8, you never know|
|jonathon||nyef: sometimes i wonder if there are win-specific tricks that keep non-authorized drivers from working as well|
|Modius||Is it considered good (Common) Lisp programming form to not assume tail call optimization?|
|Zhivago||it is considered prudent|
|nyef||Well, in this case, I suspect that the real problem is that the device is a piece of crap.|
Even the windows drivers don't work worth a damn.
|jaoswald||ed-t8: genes can refer to relatively large data sets. you may have to learn optimization in order to run your program more than once before your deadline. :-)|
|nyef||And I don't dare plug it into my WinXP box because of the chances of a bluescreen while coLinux is running.|
|jaoswald||ed-t8: http://dept-info.labri.fr/~strandh/Teaching/MTP/Common/David-Lamkins/chapter28.html may give some helpful tips.|
|ed-t8||jaoswald: lol, it is not real genes that I am representing. The genes control basic drawing functions.|
|jonathon||nyef: so basically you want to write a file copy utility?|
|ed-t8||jaoswald: I am basically doing a slightly more complicated replica of Richard Dawkins Biomorph program.|
|nyef||jonathon: That's what it amounts to.|
I -think- I have the date and time encoding down, and I know I have the filesize and filename encodings down.
|jonathon||What are the 2 functions you have left?|
|nyef||I just need to spend a day or so wrapping up loose ends, and then add a #@%@ UI.|
Oh, reordering the playlist and downloading files from the device to the computer.
|jonathon||Ah, the UI. What are you think of there?|
|nyef||I'm not really bothered about the missing commands, and acquiring the traces is fairly easy anyway thanks to qemu having usb passthrough on linux and then usbmon in the kernel...|
I'm not at all sure what to do about the UI.
I mean, conceptually it's a couple of file lists and a fileselector.
|ed-t8||jaoswald: Actually, currently I'm using lispbuilder-sdl for the graphics, do you know if this is good for 2D? Do you know of any other package like this which is less C-like?|
|jaoswald||ed-t8: I don't do much graphics in Lisp, sorry.|
|jonathon||I've never done anything but a couple of UI tutorials on Lispworks CAPI|
|nyef||UI isn't really my strong point either.|