Domain: bdash.net.nz
Stories and comments across the archive that link to bdash.net.nz.
Comments · 6
-
Mirror without the BS
-
Tail calls in C
Try writing properly tail recursive functions in C
This is a compiler issue. A compiler can choose to optimize tail calls, or it can choose not to. GCC since at least version 3.3 does optimize tail calls in many circumstances.
-
Player Souce/API?
I wish they'd open the source to the base WinAmp5 player, at least Read-Only. I've been trying for months to figure out the API for a few essential functions to make an interactive playlist plugin that replaces, or at least can be used instead of, the default playlist GUI. Wasabi was a project forked off WinAmp3 that released its source years ago, but that's a dead end (no codebase shared with WinAmp5).
If you've got insights, how would you implement my playlist, which lets you click Artist - Title - Album "columns" in the display of song rows, sorting the clicked column, and restyling (eg. italicizing, bolding, underlining) the font of all text only in that column? It has to 1> get the click, 2> know which row was clicked, 3> get the data from that row, 4> resort the rows in the display, 5> restyle some of the text in each row. If I can't get the coordinates of the click, I can just rotate the sort column after each click. And if I can't restyle some of the row text, I can insert "***" characters or something. And if I can't make a plugin override the default playlist (make it appear instead), I suppose I can make it a MediaLibrary plugin or something. And for real wizardry, I'd like the plugin to use WinAmp's builting HTTP client to periodically retrieve and install plugin updates from my Internet server.
I don't need the algorithms to do those things, I need the API hooks to call the rest of WinAmp to do its part. I want to call them, but I also want to trace them for debugging, as the datapath "submerges" into the main app. If AOL won't open the source to WinAmp5 entirely, maybe some Slashdotter already knows how to do it "anyway". -
Mirror of Videos
-
Mirror of Videos
-
MSN's Web Messenger Is Impressive
MSN's http://webmessenger.msn.com/ is a web-based MSN client implemented using a combination of HTML and Javascript. The source for the javascript is available here. I was looking into how it worked the other day and tidied the source into a more readable form. At least MSN had the decency to leave human-readable function names... this fact alone makes the code reasonably understandable.