<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>insomnia bytes &#187; xmms2</title>
	<atom:link href="http://bytes.inso.cc/wp/category/xmms2/feed/" rel="self" type="application/rss+xml" />
	<link>http://bytes.inso.cc/wp</link>
	<description>Imagination is a nightbird's dream</description>
	<lastBuildDate>Sat, 07 Nov 2009 17:13:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>“XMMS2 Collections” presentation at Metaweb</title>
		<link>http://bytes.inso.cc/wp/2009/11/07/%e2%80%9cxmms2-collections%e2%80%9d-presentation-at-metaweb/</link>
		<comments>http://bytes.inso.cc/wp/2009/11/07/%e2%80%9cxmms2-collections%e2%80%9d-presentation-at-metaweb/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 16:46:27 +0000</pubDate>
		<dc:creator>theefer</dc:creator>
				<category><![CDATA[xmms2]]></category>
		<category><![CDATA[collections]]></category>
		<category><![CDATA[presentation]]></category>
		<category><![CDATA[slides]]></category>

		<guid isPermaLink="false">http://bytes.inso.cc/wp/?p=930</guid>
		<description><![CDATA[On my way to the Google Summer of Code Mentor Summit 2009, I accepted DraX&#8217;s invitation to give a 1-hour talk about XMMS2 Collections at his work, i.e. Metaweb, in San Francisco.
The topic was somewhat relevant for them as it&#8217;s reminiscent of MQL, the query language they developed for Freebase. It&#8217;s worth noting that although [...]]]></description>
			<content:encoded><![CDATA[<p>On my way to the <em>Google Summer of Code Mentor Summit 2009</em>, I accepted DraX&#8217;s invitation to give a 1-hour talk about <a href="http://wiki.xmms2.xmms.se/wiki/Collections_Concept">XMMS2 Collections</a> at his work, i.e. <a href="http://www.metaweb.com/">Metaweb</a>, in San Francisco.</p>
<p>The topic was somewhat relevant for them as it&#8217;s reminiscent of <a href="http://www.freebase.com/view/en/documentation">MQL</a>, the query language they developed for <a href="http://www.freebase.com/">Freebase</a>. It&#8217;s worth noting that although both share a pool of buzzwords such as “graph”, “loosely-structured”, “querying”, etc, they are not quite the same:</p>
<ul>
<li><strong>Freebase</strong> is essentially a giant graph-database, which you query with <strong>MQL</strong> to retrieve graph fragments.</li>
<li>The <strong>XMMS2 database</strong> is a flat denormalized store, which you query with graph-structured <strong>Collections</strong> to retrieve a list of entries.</li>
</ul>
<p>Note: Collections 2.0 should however allow fancier querying to retrieve tree-shaped structures.</p>
<p>About 10-20 people showed up and listened to me blurbing about the <em>concept</em> of Collections, the <em>rationale</em> behind them, the <em>API</em>, <em>Collections 2.0</em>, possible <em>UI uses</em>, what it represents for the user, pointers to <em>S4</em>, etc.</p>
<p>It&#8217;s all in those over-engineered slides that I have no choice but to put online, under <a href="http://creativecommons.org/licenses/by-sa/2.5/">Creative Commons Attribution-Share Alike 2.5 License</a>, for them to live on forever on the internets. And yes, it&#8217;s still either in <a href='http://bytes.inso.cc/wp/wp-content/uploads/2009/11/collections-presentation-20091022-metaweb.key'>evil Keynote format (source)</a>, or <a href='http://bytes.inso.cc/wp/wp-content/uploads/2009/11/collections-presentation-20091022-metaweb.pdf'>in PDF</a>.</p>
<p>Oh and Metaweb, thanks for the food!</p>
]]></content:encoded>
			<wfw:commentRss>http://bytes.inso.cc/wp/2009/11/07/%e2%80%9cxmms2-collections%e2%80%9d-presentation-at-metaweb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>“Music Player” session at the GSoC Mentor Summit 2009</title>
		<link>http://bytes.inso.cc/wp/2009/11/07/%e2%80%9cmusic-player%e2%80%9d-session-at-the-gsoc-mentor-summit-2009/</link>
		<comments>http://bytes.inso.cc/wp/2009/11/07/%e2%80%9cmusic-player%e2%80%9d-session-at-the-gsoc-mentor-summit-2009/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 16:20:20 +0000</pubDate>
		<dc:creator>theefer</dc:creator>
				<category><![CDATA[xmms2]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[gsoc]]></category>
		<category><![CDATA[mentorsummit]]></category>
		<category><![CDATA[mentorsummit2009]]></category>
		<category><![CDATA[music.player]]></category>

		<guid isPermaLink="false">http://bytes.inso.cc/wp/?p=926</guid>
		<description><![CDATA[Thanks to Google&#8217;s everlasting generosity, mentors from all Open Source projects that participated to the Google Summer of Code 2009 have flocked en masse to Mountain View to meet up and talk about code and drink beer. More in pictures in my Bay Area Flickr set, if you&#8217;re curious.
Sessions were organised spontaneously around various topics, [...]]]></description>
			<content:encoded><![CDATA[<p>Thanks to Google&#8217;s everlasting generosity, mentors from all Open Source projects that participated to the Google Summer of Code 2009 have flocked <em>en masse</em> to Mountain View to meet up and talk about code and drink beer. More in pictures in my <a href="http://www.flickr.com/photos/theefer/sets/72157622735996398/">Bay Area Flickr set</a>, if you&#8217;re curious.</p>
<p>Sessions were organised spontaneously around various topics, and one of which, proposed by Amarok2&#8217;s Lydia/nightrose, was “Problems Audio Players face today”. Which resulted in 15-20 people from various projects (incl. Amarok2, Rockbox, Maemo, XMMS2 &#038; others) talking about solving problems encountered by all music player developers (e.g. lyrics and cover art fetching), as well as features on our beloved users&#8217; wishlists (portable player support, tags, musicbrainz, etc).</p>
<p>And if you weren&#8217;t there, don&#8217;t despair, for I just (finally) posted <a href="http://gsoc-wiki.osuosl.org/index.php/Sunday_Sessions_2009/Problems_Audio_Players_Face_Today">minutes for this session on the GSoC wiki</a>. Some interesting ideas in there, so go and have a look, and get to work!</p>
]]></content:encoded>
			<wfw:commentRss>http://bytes.inso.cc/wp/2009/11/07/%e2%80%9cmusic-player%e2%80%9d-session-at-the-gsoc-mentor-summit-2009/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Embrace the community (Ep. I: The Fandom Menace)</title>
		<link>http://bytes.inso.cc/wp/2009/05/24/embrace-the-community-ep-i-the-fandom-menace/</link>
		<comments>http://bytes.inso.cc/wp/2009/05/24/embrace-the-community-ep-i-the-fandom-menace/#comments</comments>
		<pubDate>Sun, 24 May 2009 00:31:36 +0000</pubDate>
		<dc:creator>theefer</dc:creator>
				<category><![CDATA[xmms2]]></category>
		<category><![CDATA[client]]></category>
		<category><![CDATA[gui]]></category>
		<category><![CDATA[music.player]]></category>

		<guid isPermaLink="false">http://bytes.inso.cc/wp/?p=905</guid>
		<description><![CDATA[Or why and how the new XMMS2 GUI client should be extensible (and what I mean by extensible anyway).
Quizz: What do Winamp, Foobar2000, Emacs, Eclipse and Firefox have in common?
(Vim users, we love you too, but shut up for now please.)
They are very popular and they highly promote extensibility.
Now, we all know that correlation != [...]]]></description>
			<content:encoded><![CDATA[<p>Or why and how the new XMMS2 GUI client should be <strong>extensible</strong> (and what I mean by extensible anyway).</p>
<p>Quizz: <em>What do Winamp, Foobar2000, Emacs, Eclipse and Firefox have in common?</em></p>
<p><small>(Vim users, we love you too, but shut up for now please.)</small></p>
<p>They are very popular and they highly promote extensibility.</p>
<p>Now, we all know that <a href="http://xkcd.com/552/">correlation != causation</a>.  What is certain, however, is that all those projects boast many fan(boy)s, some of whom even get quite religious about it.</p>
<p>This enthusiasm reflects itself in the emergence of strong communities: people who share content, tips, modules, extensions, themes, configurations, scripts, etc.  And those people usually aren&#8217;t even core developers of the software, sometimes not developers at all; just users or hobbyists who like the project.</p>
<p>Paradoxically, most of what they share is aimed at personalizing the software, i.e. making it the user&#8217;s own, fitting the user&#8217;s wishes and needs.  This creates a feeling of ownership and satisfaction, because the user can bend it the way she likes and master it like a pro.</p>
<p>In essence, the idea here is <strong><span class="pullquote">give power to people to shape the software the way they want, and they will <em>extend</em> it in creative ways and get together to share these extensions</span></strong>.  And I think that encouraging this creative freedom is one of the many factors which contribute to popularity.</p>
<p>Obviously, each of the projects mentioned above have their own way of allowing user extensions.</p>
<ul>
<li><strong>Classic Winamp 2.*</strong> had (lots of) theme and some plugins (mostly effects, visualization), but remained otherwise quite static in terms of interaction or features.</li>
<li><strong>foobar2000</strong> goes much further with theming and interface customization, allowing varied usage and user experience.</li>
<li><strong>Eclipse</strong> focuses mainly on extension modules (to interact with the VCS, manage project workflow, etc) and a jungle of configuration options.</li>
<li><strong>Firefox</strong> boasts rich installable extensions which add powerful new features, two levels of configurability (standard Preferences and advanced about:config), and recently themes (<a href="http://www.getpersonas.com/">Personas</a>).</li>
<li><strong>emacs</strong> allows essentially everything through scripting: altering and extending looks, interaction, features, as long as you have a high enough Elisp-fu (or enough curiosity to install other people&#8217;s modes).</li>
</ul>
<p>More to the point, extensions can be mapped along three mostly orthogonal axes:</p>
<ul>
<li>Themeable appearance (look)</li>
<li>Configurable interaction (feel)</li>
<li>Scriptable features (personal usage)</li>
</ul>
<p>Let&#8217;s take each of them and see what it means for our beloved imaginary music player.</p>
<h3>Themeable appearance</h3>
<p>Not an easy one, especially when one wants to rely on advanced features and widgets from a toolkit, which doesn&#8217;t necessarily allow for heavy reskinning.</p>
<p>There are more and more ways to draw fancy stuff in a window (vectorial canvas, HTML view, etc) but those often come at the price of limited interactivity with the rest of the interface (drag and drop, event handling, interoperability with the MVC architecture).</p>
<p>Using Qt StyleSheets (possibly with the help of QtScript) to style native widgets might be a better option, though I haven&#8217;t yet investigated in depth how much can be achieved with them.</p>
<p>Anyone with a better clue is welcome to step up.</p>
<p>While the whole layout of the player could benefit from imaginative and beautiful theming, one of the oft talked about use of styling was for the rendering of the playlist (usually out of jealousy for gorgeous foobar2000 screenshots), with <strong><span class="pullquote">album grouping, sexy styling of information instead of boring columns, etc</span></strong>.</p>
<p>Viewing and browsing the medialib could definitely benefit from a rich, themeable design, which would ideally (and optionally?) <strong>smoothen navigation with animations</strong> (see a <a href="http://numbers.xmms.se/~theefer/demo-slide.html">hastily put together demo</a> I made with jQuery, a while ago).</p>
<div class="full-figure"><a href="http://www.flickr.com/photos/besttechie/2619697356/" title="My foobar2000 - 6-28-08"><img src="http://farm4.static.flickr.com/3033/2619697356_5f599c901b.jpg" class="illustration" alt="My foobar2000 - 6-28-08" /></a>
<p class="caption"><a href="http://www.flickr.com/photos/besttechie/2619697356/">My foobar2000 &#8211; 6-28-08</a>, by <a href="http://www.flickr.com/photos/besttechie/" title="BestTechie">BestTechie</a></p>
</div>
<h3>Customizable interaction</h3>
<p>Power-users get easily nervous about GUIs, as they fear that their personal preferences might not be respected:</p>
<blockquote><p>Will there be a STOP button, or only PAUSE?</p></blockquote>
<p>The best way to approach such religious questions is to set a default <em>reasonable with regards to the rest of the default settings</em> (i.e. coherent with the &#8220;default experience&#8221;), and let the user change it if she wants to.</p>
<p>Note that I put as much emphasis here on configurability as on picking a sensible default.  In parallel, fine-grained options should be hidden away from the main configuration panel to keep it usable — a standard configuration pane similar to Mozilla&#8217;s <code>about:config</code> can do the trick.</p>
<blockquote><p>Will it require me to reach for the mouse?</p></blockquote>
<p>I believe that <strong>a complete GUI player should be usable either exclusively with the mouse, exclusively with the keyboard, or with a combination of both</strong>.</p>
<p>The keyboard access is often assimilated to <em>keyboard shortcuts</em>, and indeed advanced users often rely on shortcuts to work quickly with an interface.  They should even be able to define their own shortcuts bound to arbitrary actions (jump to the playing song, enqueue the album for the track I&#8217;m viewing, etc).</p>
<p>However, <span class="pullquote"><!-- command-lines have been making a comeback into GUIs lately --> another underused keyboard-based interface has been making a comeback into GUIs lately</span>.  You might have heard of it, it&#8217;s called the <em>command-line</em>.</p>
<p>Apart from the venerable emacs and vim, command-lines have been creeping more or less discretely into various Mozilla projects.  <a href="https://bespin.mozilla.com/">Bespin</a>, the web-based text editor has attempted at allowing users to run smart commands directly in the editor.  And of course, the Firefox 3 Awesome Bar is just a step away from a command-line; a step taken by the <a href="https://wiki.mozilla.org/Taskfox">TaskFox</a> (see <a href="http://azarask.in/aza/TaskFox/">demo</a>), which brings Ubiquity into the browser address bar.</p>
<p>I had experimented with the idea of a CLI-based GUI (sounds strange doesn&#8217;t it?) with my unfinished <a href="http://git.xmms.se/?p=lindale.git;a=summary">lindalë</a> prototype, and I think it could bring a lot of interesting power to our new graphical player.</p>
<p>More on this idea in a future post.</p>
<h3>Scriptable features</h3>
<p>As usual, <span class="pullquote"><!-- the level of scriptability is a trade-off decision, somewhere between the horror of Excel inline formulas and the universal meta-ness of emacs --> the level of scriptability is a trade-off decision, somewhere between the horror of Excel inline formulas (a sad ad-hoc hack most of the time) and the universal meta-ness of emacs (which allows the editor to rewrite itself when you&#8217;re not looking)</span>.  The latter is naturally attractive to us geeks, but it&#8217;s probably excessive in terms of work required.</p>
<p>On the other hand, if we pursue our <a href="http://bytes.inso.cc/wp/2009/03/21/gentlemen-start-your-toolkits-ep-v-the-flamewar-strikes-back/">idea of using a high-level<br />
language for the GUI</a> (possibly QtScript, which is <a href="http://www.qtsoftware.com/developer/qt-roadmap#javascript-unification">being worked on</a>), it should be relatively easier to import self-contained extensions into the player.</p>
<p>In terms of design, it would be preferable to <strong>think of such &#8220;extensions&#8221; as features of the player, rather than external add-ons</strong> bolted onto it.  The player itself would therefore be nothing more than a platform hosting extensions/features, and even the default interface would be implemented as extensions, indistinguishable from third-party ones.</p>
<p>This would for instance allow anyone to tweak the widget that displays search results, or replace it with something completely different.  Even better, entirely new features could be imported, e.g. a rich interface exposing a bookmarking system (managing a generic bookmarking service client under the scene), or new widgets to explore one&#8217;s music library.</p>
<hr />
<p>Possibilities are endless, and our time to work on them isn&#8217;t.</p>
<p>I have been discussing some of those ideas with <em>greafine</em>, our student working on this project for this year&#8217;s Summer of Code, and we&#8217;ll work together to determine what is feasible technically and temporally.  In any case, I hope this post hints at various ways we shall explore to achieve high <strong>extensibility</strong>!</p>
<div class="full-figure"><a href="http://www.flickr.com/photos/91525158@N00/158068056/" title="starwars_rock"><img src="http://farm1.static.flickr.com/38/158068056_b1762592fb.jpg" class="illustration" alt="starwars_rock" /></a>
<p class="caption"><a href="http://creativecommons.org/licenses/by-nc/2.0/" title="Attribution-NonCommercial License"><img src="http://bytes.inso.cc/wp/wp-content/plugins/photo-dropper/images/cc.png" alt="Creative Commons License" class="icon cc-logo" /></a> <a href="http://www.flickr.com/photos/91525158@N00/158068056/">starwars_rock</a>, by <a href="http://www.flickr.com/people/Clint M Chilcott/" title="Clint M Chilcott">Clint M Chilcott</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://bytes.inso.cc/wp/2009/05/24/embrace-the-community-ep-i-the-fandom-menace/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Going beyond tracks and local data (Ep. VII: Return of the GUI)</title>
		<link>http://bytes.inso.cc/wp/2009/03/29/going-beyond-tracks-and-local-data-ep-vii-return-of-the-gui/</link>
		<comments>http://bytes.inso.cc/wp/2009/03/29/going-beyond-tracks-and-local-data-ep-vii-return-of-the-gui/#comments</comments>
		<pubDate>Sun, 29 Mar 2009 23:35:37 +0000</pubDate>
		<dc:creator>theefer</dc:creator>
				<category><![CDATA[xmms2]]></category>
		<category><![CDATA[client]]></category>
		<category><![CDATA[gui]]></category>
		<category><![CDATA[music.player]]></category>

		<guid isPermaLink="false">http://bytes.inso.cc/wp/?p=881</guid>
		<description><![CDATA[Now that we have defined what/whose problem we&#8217;re trying to solve, and debated about the implementation details, it would be worth asking why a graphical XMMS2 client would be a good fit.
After all, we have a brand new korving CLI (nycli), isn&#8217;t that enough?  In a sense it is, but it fills a different [...]]]></description>
			<content:encoded><![CDATA[<p>Now that we have defined <a href="http://bytes.inso.cc/wp/2009/03/18/we-need-a-dream-ep-iv-a-new-hope/">what/whose problem we&#8217;re trying to solve</a>, and debated about the <a href="http://bytes.inso.cc/wp/2009/03/21/gentlemen-start-your-toolkits-ep-v-the-flamewar-strikes-back/">implementation details</a>, it would be worth asking why a graphical XMMS2 client would be a good fit.</p>
<p>After all, we have a <a href="http://wiki.xmms2.xmms.se/wiki/New_korving_CLI">brand new korving CLI (nycli)</a>, isn&#8217;t that enough?  In a sense it is, but it fills a different niche.  GUI applications are good at things that CLI applications aren&#8217;t, and vice-versa.  So the goal is to exploit the specific advantages of graphical music players.</p>
<p>For instance, even the most hardcore fans of the command-line will admit that the following tasks are easier with a graphical player:</p>
<ul>
<li>Edit a playlist, using mouse selection and drag-and-drop.</li>
<li>Browse albums by cover.</li>
<li>Organize music manually into playlists or using dynamic collections.</li>
</ul>
<p>But these are just simple examples that are now expected of any standard graphical music player.</p>
<p>Can&#8217;t we get something more <strong>exciting</strong>?</p>
<p>As Obama taught us, &#8220;yes, we can!&#8221;</p>
<p>Three main aspects usually poorly supported and under-exploited in music players are powerful tools to:</p>
<ul>
<li>Browse</li>
<li>Organize</li>
<li>Explore/discover</li>
</ul>
<h3>Browsing</h3>
<p>Graphical applications provide a rich visual experience that can be exploited to <strong>navigate large amounts of information</strong>, in particular using the spatial aspect and our ability to recognize images quickly.</p>
<p>Typically, users have become familiar with widgets like <a href="http://en.wikipedia.org/wiki/Cover_Flow">iTunes Cover Flow</a>, which exploit the visual clue of album covers to quickly flick through releases.  Several XMMS2 developers have expressed their interest in a more &#8220;album-centric&#8221; client, which essentially means supporting album entities in the interface, as opposed to just tracks.</p>
<p>An extra step would be to also promote the artists, and possibly other properties (e.g. genre, year, label), as premium entities.  So rather than &#8220;album-centric&#8221;, the client would be &#8220;entity-centric&#8221; (in the sense that most existing music players are track-centric).  <span class="pullquote">Each entity could have its own fullscreen pane (or &#8220;page&#8221;), with corresponding information (more below) and links to browse the related entities.</span>  This would lead to a web-like navigation, where for instance each artist would get a page with the list of his releases (plus a photo, bio, etc), and clicking on a release would bring the page for that release, with the list of tracks.</p>
<p>However, browsing doesn&#8217;t have to follow a rigid path: we&#8217;re used to browsing inside categories (e.g. releases) alphabetically, and to jump between categories using the explicit hierarchy from the data (e.g. from an artist to its releases to their tracks), but that&#8217;s just one of many possibilities.</p>
<p>The user may want to browse a subset of her media library, for instance filtering by a range of release years and genre (e.g. &#8220;70&#8217;s rock&#8221;), or a custom collection she assembled herself.  She may want to follow connections from an artist page to pages of &#8220;related artists&#8221;, to use tags to jump from a track to a list of albums, to find all the music she added the same week as a given release.</p>
<p>It&#8217;s time to think beyond the simple local data and harvest The Cloud to enrich the user experience; services like <a href="http://www.last.fm/">Last.Fm</a> already provide an API to retrieve Similar Artists, social Tags, etc.  And with our Collections API, it&#8217;s just a whole lot of power waiting to be unleashed!</p>
<h3>Organizing</h3>
<p>While <em>browsing</em> is the passive process of visiting what&#8217;s there, <strong>organizing</strong> is the active process of applying your own order on the content.</p>
<p><em>Playlists</em> are the most common organizational tool, usually directly tied to playback, and the usual editing features should naturally be supported (insert, enqueue, move, remove).  Special playlist behavior (queue, party shuffle, random, etc) should also be configurable easily.  (Note: fancy playlist formatting is outside the scope of this post.)</p>
<p>The second main organizational tool is <em>collections</em>.  A collection is akin to a &#8220;themed-bucket&#8221;, i.e. a set of music that the user has put together in order to reuse it later.  But rather than focusing on the underlying nature of a collection (a graph of operators), the interface should emphasize the organic process of someone creating a custom group of music.  <span class="pullquote">Any search, or essentially any &#8220;view&#8221; of music, should be recordable as a collection</span>; and it should always be possible to refine or further filter a collection, as well as add custom content to it.  It should be as easy as typing a search or dropping content in a folder, rather than as complex as setting up a network of mail filters.</p>
<p>Finally, <em>tags</em> should be at the user&#8217;s disposal for applying a minimal <em>description</em> to content.  There is a subtle difference between tags and collections (and how they play together), and I don&#8217;t have much in mind regarding tags so far, but I think they will definitely be a powerful addition.</p>
<h3>Exploring/Discovering</h3>
<p>In the browsing section above, different new ways to navigate one&#8217;s music have been evoked.  The next logical step after that, however, is to help the user <strong>discover new music</strong> he doesn&#8217;t yet know about, by giving pointers to music and information outside of his media library.</p>
<p>Many online services offer to make you discover new music, but this feature remains unusual in desktop music players, except <a href="http://spotify.com/">Spotify</a> (with a tab of related artists) and recent versions of <a href="http://banshee-project.org/">Banshee</a> (with custom recommendations, perhaps based off Last.Fm?).</p>
<p>Those illustrate two interesting directions.</p>
<p>First, providing pointers from a certain point in the user&#8217;s media library to complementary information and new music.  For instance, on an artist pane, show the list of all its releases, including those missing from the user&#8217;s music files, show related artists, both present in the user&#8217;s media library or not, show the artist&#8217;s news feed, etc.  Or show reviews for albums, or lyrics for individual tracks.  Basically, gather information from external sources about the user&#8217;s music, and invite him to discover new music as well.</p>
<p>The second direction is more general: given the user&#8217;s music profile and playback history, suggest new artists or genres he might be interested in exploring.  For instance, using all the artists present in the media library, infer what will be the user&#8217;s <a href="http://yournextfavband.com/">next favorite band</a>.  Or suggest popular releases, based on the kind of music recently played.  Here, suggestions are made spontaneously, based on the behavior of the user.</p>
<p>The goal of these two features is to get the user excited about not just his current music files, but the whole portion of the music world they span.  They should <span class="pullquote">invite the user to be curious about his or new music</span>.</p>
<p>One place to put these suggestions on would be the music player&#8217;s &#8220;home screen&#8221;.  Without entering into too much details yet, the player could provide the user with ideas on what he might want to listen, based on what he played recently, his collections, tags, etc.  Rather than a long table of &#8220;all the tracks&#8221;, the entry screen could be a richer, custom view of different ways he could start playing his music.</p>
<p>Obviously, this post hinted at a lot of potentially complex features, which would take a lot of time and effort to all put together perfectly.  The main point, however, was to point at various ways of making the experience of this music player a little special.  In particular, most existing players are still nothing more than a fancy dressing over music tracks (i.e. files).</p>
<p>But to make a really rich and complete experience, I believe that one must embrace music as a culture; promoting entities (e.g. artists, genre, releases, etc) to key navigation points and tying it to all the information available on the web would be a good start in that direction.</p>
<div class="full-figure"><a href="http://www.flickr.com/photos/7702002@N08/891283152/" title="Darth Cee-Lo"><img src="http://farm2.static.flickr.com/1147/891283152_0939251efb.jpg" class="illustration" alt="Darth Cee-Lo" /></a>
<p class="caption"><a href="http://creativecommons.org/licenses/by/2.0/" title="Attribution License"><img src="http://bytes.inso.cc/wp/wp-content/plugins/photo-dropper/images/cc.png" alt="Creative Commons License" class="icon cc-logo" /></a> <a href="http://www.flickr.com/photos/7702002@N08/891283152/">Darth Cee-Lo</a>, by <a href="http://www.flickr.com/people/Ethan Hein/" title="Ethan Hein">Ethan Hein</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://bytes.inso.cc/wp/2009/03/29/going-beyond-tracks-and-local-data-ep-vii-return-of-the-gui/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gentlemen, start your toolkits (Ep. V: The Flamewar Strikes Back)</title>
		<link>http://bytes.inso.cc/wp/2009/03/21/gentlemen-start-your-toolkits-ep-v-the-flamewar-strikes-back/</link>
		<comments>http://bytes.inso.cc/wp/2009/03/21/gentlemen-start-your-toolkits-ep-v-the-flamewar-strikes-back/#comments</comments>
		<pubDate>Sat, 21 Mar 2009 01:29:31 +0000</pubDate>
		<dc:creator>theefer</dc:creator>
				<category><![CDATA[xmms2]]></category>
		<category><![CDATA[client]]></category>
		<category><![CDATA[gui]]></category>
		<category><![CDATA[music.player]]></category>

		<guid isPermaLink="false">http://bytes.inso.cc/wp/?p=877</guid>
		<description><![CDATA[Note: tru just blogged about this subject, so I&#8217;m adapting my original draft and replying to tru&#8217;s post.
All graphical application projects face the dreaded perspective of endless flamewars about technical choices, and XMMS2 clients haven&#8217;t been spared:
What language to write the client in?  What toolkit to use?  What platform to support?  Where [...]]]></description>
			<content:encoded><![CDATA[<p><em>Note: tru <a href="http://deadsilversky.blogspot.com/2009/03/official-xmms2-client-should-be-written.html">just blogged about this subject</a>, so I&#8217;m adapting my original draft and replying to tru&#8217;s post.</em></p>
<p>All graphical application projects face the dreaded perspective of endless flamewars about technical choices, and XMMS2 clients haven&#8217;t been spared:</p>
<blockquote><p>What language to write the client in?  What toolkit to use?  What platform to support?  <span class="sarcasm">Where to put the opening curly brace?</span></p></blockquote>
<p>In fact, this freedom of choice seems to always have been one of the major obstacles to the creation of an official GUI client.</p>
<p>At FOSDEM &#8216;09, perhaps helped by the virtues of IRL discussions (and all the great food &amp; beer), we had a debate about the pros and cons of all possible combinations and came up with a reasonable proposition that should hopefully suit most interested developers in the XMMS2 community.</p>
<p>Because we don&#8217;t want to require users to install unusual graphical toolkit libraries (good morning <a href="http://www.enlightenment.org/">Rasterman</a>), GTK+ and Qt are the only two obvious choices, with GTK+ having the slight advantage of being more widely installed in the GNU/Linux world.  However, nobody really contests the claim that Qt is a superior API in terms of design.</p>
<p>One important argument brought into the discussion was platform support.  In line with the <a href="http://wiki.xmms2.xmms.se/wiki/XMMS2_Vision">XMMS2 Vision</a>, we want to respect the users&#8217; freedom to choose their OS by making the official GUI client run on a wide selection of systems, at least GNU/Linux, MacOS X and Windows. In the current state, GTK+ integration in MacOS X simply isn&#8217;t good enough, and given the new Qt licensing as fully Free Software, the Qt toolkit is the most appropriate choice.</p>
<p>The other touchy subject is obviously the programming language.  Most people agreed that using high-level interpreted languages would make for a more dynamic and simple development process.  The most popular contestants for the code throne are Python and Ruby, with Python more widely used and installed on GNU/Linux.</p>
<p>Either choice would require bundling the runtime with the client on proprietary platforms.  A <a href="http://arstechnica.com/open-source/guides/2009/03/how-to-deploying-pyqt-applications-on-windows-and-mac-os-x.ars">recent article on Ars Technica</a> analyzed the deployment of PyQt apps on Windows and OS X, and while it seems reasonably good on Windows, the OS X support was quite lacking according to the author.</p>
<p>An alternative solution suggested by DraX was to develop the client QtScript, which is the ECMAScript (think JavaScript) implementation embedded in the newer Qt.  It remains uncertain, however, how much can be done purely in QtScript and where are the limits, both in terms of performance and design limitations.  tru hinted at it, but I think it&#8217;d still be worth investigating and experimenting before we draw final conclusions.</p>
<p>If QtScript was too limited, we&#8217;d have to rely on more C++ code (which is somewhat annoying for rapid development) or switch to Python (which isn&#8217;t particularly my language of preference, as some may know).  In case of a draw, it might also simply be up to the people who start working on the project, including a potential <a href="http://wiki.xmms2.xmms.se/wiki/Summer_of_Code_2009/Proposed_projects">Google Summer of Code student with XMMS2</a>!</p>
<p>As tru suggested, it&#8217;d probably be best to use the native C++/Qt XMMS2 bindings, and stabilizing them could be part of the preparatory work for this project (and a good motivation).</p>
<p>In short, the current idea is to write the new XMMS2 client using Qt and C++/QtScript or possibly PyQt, and to have it available at least on the main desktop platforms (GNU/Linux, MacOS X, Windows). Discussions still open, but avoid feeding the trolls please.</p>
<div class="full-figure"><a href="http://www.flickr.com/photos/7667534@N04/2932711624/" title="Darth Vader on the violin"><img src="http://farm4.static.flickr.com/3179/2932711624_464f17810d.jpg" class="illustration" alt="Darth Vader on the violin" /></a>
<p class="caption"><a href="http://creativecommons.org/licenses/by-nc/2.0/" title="Attribution-NonCommercial License"><img src="http://bytes.inso.cc/wp/wp-content/plugins/photo-dropper/images/cc.png" alt="Creative Commons License" class="icon cc-logo" /></a> <a href="http://www.flickr.com/photos/7667534@N04/2932711624/">Darth Vader on the violin</a>, by <a href="http://www.flickr.com/people/Houston Marsh/" title="Houston Marsh">Houston Marsh</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://bytes.inso.cc/wp/2009/03/21/gentlemen-start-your-toolkits-ep-v-the-flamewar-strikes-back/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>We need a dream (Ep. IV: A New Hope)</title>
		<link>http://bytes.inso.cc/wp/2009/03/18/we-need-a-dream-ep-iv-a-new-hope/</link>
		<comments>http://bytes.inso.cc/wp/2009/03/18/we-need-a-dream-ep-iv-a-new-hope/#comments</comments>
		<pubDate>Wed, 18 Mar 2009 00:49:22 +0000</pubDate>
		<dc:creator>theefer</dc:creator>
				<category><![CDATA[xmms2]]></category>
		<category><![CDATA[client]]></category>
		<category><![CDATA[gui]]></category>
		<category><![CDATA[music.player]]></category>

		<guid isPermaLink="false">http://bytes.inso.cc/wp/?p=871</guid>
		<description><![CDATA[As I said earlier, what&#8217;s lacking to make an awesome XMMS2 GUI client is a common vision.
We need a dream!
I have a dream that one day this community will rise up and live out the true meaning of its creed: &#8220;when the music is end xmms power of the pc.&#8221;
I have a dream that one [...]]]></description>
			<content:encoded><![CDATA[<p>As I <a href="http://bytes.inso.cc/wp/2009/02/13/xmms2-gui-clients-all-sort-of-suck/">said earlier</a>, what&#8217;s lacking to make an awesome XMMS2 GUI client is a common <strong>vision</strong>.</p>
<p><strong>We need a dream!</strong></p>
<blockquote><p>I have a dream that one day this community will rise up and live out the true meaning of its creed: &#8220;when the music is end xmms power of the pc.&#8221;</p>
<p>I have a dream that one day on #xmms2, the sons of former GTK+ developers and the sons of former Qt developers will be able to work together on the code of a GUI client.</p>
<p>I have a dream that one day even the state of Microsoft, a state sweltering with the heat of instability, sweltering with the heat of dull interfaces, will be transformed into an oasis of freedom and music.</p>
<p>I have a dream that XMMS2 clients will one day live in a community where they will not be judged by their GUI toolkit but by the content of their user experience.</p>
<p>I have a dream today!</p></blockquote>
<p>(Kudos to Martin Luther King for the <a href="http://www.americanrhetoric.com/speeches/mlkihaveadream.htm">original draft</a>.)</p>
<p>In the end, all we want is an awesome music player.</p>
<p>But do we all share the same definition of what an awesome music player is?  Probably not.  In fact, I don&#8217;t think most of us even <em>knows</em> what an awesome music player is; if there were one, we wouldn&#8217;t have to build one, right?</p>
<p>So the goal here is to gather qualities that we expect of such a project, and refine them into a common vision.  I won&#8217;t start dropping design mockups or fancy feature ideas until we have established what we all want, conceptually.</p>
<p>What I expect of this GUI client, and the vision for the project, is that it should be:</p>
<ul>
<li>Exciting</li>
<li>Original</li>
<li>Expandable</li>
<li>Clearly focused</li>
</ul>
<p>Nobody wants to work on boring project — at least nobody in the FOSS community.  Elsewhere, people do code for money and dream of larger cars and larger breasts, but in the XMMS2 community, all we dream of are <strong>exciting</strong> coding projects.  It should be exciting enough to make developers drop their own projects to work on it, and to make users fret about it.  It should be exciting enough to compensate compromises by the quality of the end result.</p>
<p>One way to make it exciting is to make sure it is <strong>original</strong>.  It&#8217;s way more thriving to build something new and unique than to try to replicate something everyone has seen before.  Harder, yes, but more exciting!  For the users, it will also help it stand apart from the variety of existing music players, either as a grand fiasco, or as a sexy newcomer.</p>
<p>Because people love to experiment and to make things their own, it should be <strong>expandable</strong>: rather than a static monolith, it should let developers and users play with it and customize it and adapt it to their needs.  There will always be limits of course, but to remain true to the XMMS2 spirit, we should favor a modular design and bundle freedom inside.</p>
<p>Finally, it is primordial to establish a <strong>clear focus</strong> on what problem this client is meant to solve.  The worst usability often comes from a blurry focus, or the wish to solve too many (or all) different problems.</p>
<p>I will come back to the first three qualities in future posts, and elaborate on the clear focus in the rest of this post.</p>
<p>Before anything else, we need to define what we want the <strong>target audience</strong> to be: newbies? your mum? the average random user? hardcore music fans? &#8220;everyone&#8221;?</p>
<p>It&#8217;s a tough call, but clearly, by trying to content everyone, we couldn&#8217;t provide the best solution for each group of users.  But if we look at the XMMS2 demographics and, more importantly, the (brand new) <a href="http://wiki.xmms2.xmms.se/wiki/XMMS2_Vision">Vision</a>, it&#8217;s easy to see that we already target a particular niche of music listeners: <strong>demanding audiophiles, passionate fans who care about music</strong>.  Which is very different from &#8220;everyone&#8221; or an average user.</p>
<p>Concretely, they might tend to have larger music libraries and more complete releases than scattered tracks.  They might be more keen on browsing and organizing their music (using tags, folders, or their own semantics), on fine-tuning their audio setup (soundcard, equalizer, gapless playback), on joining music networks (e.g. Last.Fm) and discovering new music.  They are the people who spend multiple nights getting complicated plugins and fancy themes working in <a href="http://www.foobar2000.org/">foobar2000</a>, to provide a full experience for their music; not the people who gaze in wonder at the atrocious WMP fullscreen visualization.</p>
<p>We can expect slightly more patience and curiosity from them but in return, we must provide them with powerful tools, with a great user experience and ways to make it their own.</p>
<p>Now, it doesn&#8217;t mean that the player should be unusable by anybody outside that niche.  Simply, it should focus on filling it as best as possible, before anything else.</p>
<p>Therefore, my suggestion is to <strong>make this XMMS2 GUI client a great music player for people who care about and love music, and make it a rich experience for playing, browsing, searching, organizing, discovering and enjoying music</strong>.</p>
<p>It is an ambitious goal, but I believe it is one that is exciting, original and expandable!</p>
<div class="full-figure"><a href="http://www.flickr.com/photos/23049857@N04/3105492898/" title="Pearl"><img src="http://farm4.static.flickr.com/3193/3105492898_496d465ccb.jpg" class="illustration" alt="Pearl" /></a>
<p class="caption"><a href="http://creativecommons.org/licenses/by-nc-sa/2.0/" title="Attribution-NonCommercial-ShareAlike License"><img src="http://bytes.inso.cc/wp/wp-content/plugins/photo-dropper/images/cc.png" alt="Creative Commons License" class="icon cc-logo" /></a> <a href="http://www.flickr.com/photos/23049857@N04/3105492898/">Pearl</a>, by <a href="http://www.flickr.com/people/Camila.../" title="Camila...">Camila&#8230;</a></p>
</div>
<p><em>Addendum: FLACvest just posted <a href="http://amot.wordpress.com/2009/03/16/re-xmms2-visibility-a-post-id-left-at-the-island-of-eleusis-blog/">a<br />
very flattering post about XMMS2</a> and mentions similar attributes<br />
that would benefit XMMS2: Totally Fresh and Unique, Beautiful,<br />
Cross-Platform, some &#8220;magic&#8221; ingredient!</em></p>
]]></content:encoded>
			<wfw:commentRss>http://bytes.inso.cc/wp/2009/03/18/we-need-a-dream-ep-iv-a-new-hope/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>XMMS2 GUI clients all sort of suck</title>
		<link>http://bytes.inso.cc/wp/2009/02/13/xmms2-gui-clients-all-sort-of-suck/</link>
		<comments>http://bytes.inso.cc/wp/2009/02/13/xmms2-gui-clients-all-sort-of-suck/#comments</comments>
		<pubDate>Fri, 13 Feb 2009 00:36:32 +0000</pubDate>
		<dc:creator>theefer</dc:creator>
				<category><![CDATA[xmms2]]></category>
		<category><![CDATA[gui]]></category>
		<category><![CDATA[music.player]]></category>

		<guid isPermaLink="false">http://bytes.inso.cc/wp/?p=857</guid>
		<description><![CDATA[Ask anyone on the street why they are not using XMMS2 right now and they will tell you the same thing:
But, like, all your GUI clients suck lol!
You needn&#8217;t have punched the poor guy in the face, because I also believe it is quite true.
We have quite a few clients (you will have to check [...]]]></description>
			<content:encoded><![CDATA[<p>Ask anyone on the street why they are not using XMMS2 right now and they will tell you the same thing:</p>
<blockquote><p>But, like, all your GUI clients suck lol!</p></blockquote>
<p>You needn&#8217;t have punched the poor guy in the face, because I also believe it is quite true.</p>
<p>We have <a href="http://wiki.xmms2.xmms.se/wiki/Clients">quite a few clients</a> (you will have to check out the <a href="http://wiki.xmms2.xmms.se/wiki/Clientlist">matrix</a> by yourself), but none that can really be called polished, mature or attractive enough to motivate people to switch.  No disrespect to the authors (I&#8217;m even one of them), some cool stuff has been done, but graphical clients aren&#8217;t really &#8220;ready for the desktop&#8221; yet. Which is really a pity, given the <strong>awesome framework we have in place to create a great music player</strong>.</p>
<p>I believe that the reason for this isn&#8217;t that we don&#8217;t have competent developers, but rather that all of these projects are one- or two-men effort and not really thrived by the community.  Because of the freedom you have to write your own client, well, people do: they follow their personal vision of what they want their music player to be like and start coding.  Unfortunately, this isn&#8217;t the most effective strategy.</p>
<p>Perhaps thanks to the physicality of our meeting at FOSDEM, or to all the Belgium beer, we acknowledged that and decided that, now that the new official command-line interface (AKA <a href="http://wiki.xmms2.xmms.se/wiki/New_korving_CLI">nycli</a>) has been merged and is being worked on by various people (thanks greafine, AnthonyG, nesciens!), it was time to get serious about a graphical client.</p>
<p>The best way to get people to work together on a new project is to establish a <strong>clear and common vision of what we&#8217;re aiming at</strong>, what are the <strong>ideas that structure the project</strong>, and <strong>get people excited about it</strong>! The vision should be compatible with the <a href="http://wiki.xmms2.xmms.se/wiki/XMMS2_Vision">XMMS2 vision</a> we&#8217;re currently discussing (thanks to Debian&#8217;s Bdale Garbee for the inspiration).</p>
<p>I want to make it clear that even if members of the XMMS2 community start working together on a common client, it is in no way incompatible with other people writing their own client if they so wish.  Simply, we hope to gather people working on similar clients and focus the effort to build something really, really cool!</p>
<p>So I&#8217;m going to start posting things on this blog to propose directions for a vision to follow, and <strong>everyone is welcome to comment, reply, blog and debate the ideas</strong> so we solidify the basis we will start from.  There will be a lot of things to discuss, from technical choices to interface challenges, so let&#8217;s get started!</p>
]]></content:encoded>
			<wfw:commentRss>http://bytes.inso.cc/wp/2009/02/13/xmms2-gui-clients-all-sort-of-suck/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Dance to the FOSDEM &#8216;09 beat</title>
		<link>http://bytes.inso.cc/wp/2009/02/12/dance-to-the-fosdem-09-beat/</link>
		<comments>http://bytes.inso.cc/wp/2009/02/12/dance-to-the-fosdem-09-beat/#comments</comments>
		<pubDate>Thu, 12 Feb 2009 23:59:07 +0000</pubDate>
		<dc:creator>theefer</dc:creator>
				<category><![CDATA[xmms2]]></category>
		<category><![CDATA[collections]]></category>
		<category><![CDATA[fosdem]]></category>
		<category><![CDATA[gui]]></category>
		<category><![CDATA[organisation]]></category>

		<guid isPermaLink="false">http://bytes.inso.cc/wp/?p=849</guid>
		<description><![CDATA[Over last weekend (February 6-8), I shared a fantastic time in Brussels with people from the XMMS2 team (and a few thousands over geeks and almost as many beers). We got together, mostly off our Google Summer of Code money, and spent some IRL time thinking of how to make XMMS2 better. Thanks to everyone [...]]]></description>
			<content:encoded><![CDATA[<p>Over last weekend (February 6-8), I shared a fantastic time in Brussels with people from the XMMS2 team (and a few thousands over geeks and almost as many beers). We got together, mostly off our Google Summer of Code money, and spent some IRL time thinking of how to make XMMS2 better. Thanks to everyone who was involved, it&#8217;s been great fun!</p>
<p>Although tilman and DraX hacked fervently on <a href="http://wiki.xmms2.xmms.se/wiki/Genipc">GenIPC</a>, most of what we worked on wasn&#8217;t code, but rather discussions on the organisation of the project, the status of projects waiting to be merged into the main tree (GenIPC, service clients, collections 2.0), as well as future projects we want to explore, such as mergestatus (a pimped up iteration of <a href="http://git.xmms.se/merge/">the merge page</a>) and an official GUI (yes!).</p>
<p>The main issue we identified with organisation is the lack of clear vision of where we are heading. Projects like GenIPC or mergestatus are being worked on without a general and agreed upon (let alone written down) specification of all they entail. The decision we took was to try to get tru back into a role of project manager and require proper wiki pages to be written about all the major features that are being developed. I personally want to start blogging more about thoughts and projects I&#8217;m working on (I know I&#8217;ve said it before, but this time it is true).</p>
<div class="full-figure"><a href="http://www.flickr.com/photos/9297521@N08/3267454741/" title="Saturday Night Hacking"><img src="http://farm4.static.flickr.com/3301/3267454741_17078916c9.jpg" class="illustration" alt="Saturday Night Hacking" /></a>
<p class="caption"><a href="http://creativecommons.org/licenses/by-nc-sa/2.0/" title="Attribution-NonCommercial-ShareAlike License"><img src="http://bytes.inso.cc/wp/wp-content/plugins/photo-dropper/images/cc.png" alt="Creative Commons License" class="icon cc-logo" /></a> <a href="http://www.flickr.com/photos/9297521@N08/3267454741/">Saturday Night Hacking</a>, by <a href="http://www.flickr.com/people/theefer/" title="theefer">theefer</a></p>
</div>
<p>I had several discussions with nesciens, who has been hacking on <a href="http://wiki.xmms2.xmms.se/wiki/Summer_of_Code_2008/Collections_2.0">collections 2.0</a> last summer, and we identified different topics that should be explained on the wiki and possibly discussed with the rest of the team:</p>
<ul>
<li><strong><a href="http://wiki.xmms2.xmms.se/wiki/Summer_of_Code_2008/Collections_2.0/Querying_concept">Advanced (insane) queries</a></strong> (to retrieve all sorts of information and structures from the mlib using collections)</li>
<li><strong><a href="http://wiki.xmms2.xmms.se/wiki/Summer_of_Code_2008/Collections_2.0/Source-preference">Source goodness</a></strong> (server magic to make collections select the right value according to a global ranking of sources)</li>
<li><strong>Token operator</strong> (to match tokens, which is what you usually search for, using an external token table)</li>
<li><strong><a href="http://wiki.xmms2.xmms.se/wiki/Summer_of_Code_2008/Collections_2.0/Operator_list">Other new collection operators</a></strong> (in particular, related to treating medialists, i.e. keep collections ordered throughout the DAG)</li>
</ul>
<p>Note: most of the links above are work in progress, meaning they&#8217;re not total rubbish, but don&#8217;t rely on them to launch your personal space capsule.</p>
<p>Other fancy stuff that has been debated:</p>
<ul>
<li>Proper serialisation of the collection DAG over IPC</li>
<li>Usage of <code>xmmsv_t</code> dict to store collection attributes, possibly richer than strings (already started by anders)</li>
<li>Idlist as a simple attribute in Idlist collections</li>
<li>String table (optimisation of strings in the DB to avoid duplication of data)</li>
</ul>
<p>nesciens has already started updating the <a href="http://wiki.xmms2.xmms.se/wiki/Summer_of_Code_2008/Collections_2.0/Todo_list">todolist/roadmap</a>.</p>
<p>And of course, the super exciting new project that nobody even expected: a common effort to work on an official GUI client!</p>
<p>I have a lots of thoughts about this, and I need to summarise all the discussions related to it at FOSDEM. And that will be the topic of my next post!</p>
<p>(Who said you couldn&#8217;t have cliffhangers in blog posts?)</p>
<div class="full-figure"><a href="http://www.flickr.com/photos/9297521@N08/3267461517/" title="Farewell group photo"><img src="http://farm4.static.flickr.com/3430/3267461517_5b717bcb82.jpg" class="illustration" alt="Farewell group photo" /></a>
<p class="caption"><a href="http://creativecommons.org/licenses/by-nc-sa/2.0/" title="Attribution-NonCommercial-ShareAlike License"><img src="http://bytes.inso.cc/wp/wp-content/plugins/photo-dropper/images/cc.png" alt="Creative Commons License" class="icon cc-logo" /></a> <a href="http://www.flickr.com/photos/9297521@N08/3267461517/">Farewell group photo</a>, by <a href="http://www.flickr.com/people/theefer/" title="theefer">theefer</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://bytes.inso.cc/wp/2009/02/12/dance-to-the-fosdem-09-beat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrade to rv-split now!</title>
		<link>http://bytes.inso.cc/wp/2008/12/09/upgrade-to-rv-split-now/</link>
		<comments>http://bytes.inso.cc/wp/2008/12/09/upgrade-to-rv-split-now/#comments</comments>
		<pubDate>Tue, 09 Dec 2008 16:49:42 +0000</pubDate>
		<dc:creator>theefer</dc:creator>
				<category><![CDATA[xmms2]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[rv-split]]></category>

		<guid isPermaLink="false">http://bytes.inso.cc/wp/?p=819</guid>
		<description><![CDATA[If you&#8217;ve been hanging around the XMMS2 hype-sphere lately, you&#8217;ve certainly heard &#8220;wait for rv-split to be merged&#8221; almost as often as &#8220;it should be a service client&#8221;.  Well, wait no more, for rv-split has made it into the -devel tree!
It means that all C clients are broken now, and possibly clients in other [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve been hanging around the XMMS2 hype-sphere lately, you&#8217;ve certainly heard &#8220;wait for rv-split to be merged&#8221; almost as often as &#8220;it should be a service client&#8221;.  Well, wait no more, for rv-split has made it into the -devel tree!</p>
<p>It means that all C clients are broken now, and possibly clients in other languages too.  Yes, yours too.  It needs fixing, and I&#8217;m going to explain how.</p>
<p>But, you ask, what <em>is</em> rv-split in the first place?</p>
<p>The <strong>result/value-split</strong>, AKA &#8220;rv-split&#8221; or sometimes just &#8220;rv&#8221;, is a change in the XMMS2 clientlib.  Up until now, values returned by the server were kept inside the <code>xmmsc_result_t</code> structure that you got back from the call. The data was to be fetched directly from the result.</p>
<p>In sync mode, it went something like this:</p>
<p>[code lang="c"]<br />
xmmsc_result_t *result;<br />
const char *name;</p>
<p>result = xmmsc_playlist_current_active (conn);<br />
xmmsc_result_wait (result);</p>
<p>if (xmmsc_result_iserror (result)) {<br />
   printf ("Server error: %s\n", xmmsc_result_get_error (result));<br />
   exit (1);<br />
}</p>
<p>// The name is retrieved from the result<br />
if (xmmsc_result_get_string (result, &#038;name)) {<br />
   printf ("Active playlist is %s\n", name);<br />
}</p>
<p>// We free the result, which also frees all the data it referenced,<br />
// i.e. the 'name' string<br />
xmmsc_result_unref (result);<br />
[/code]</p>
<p>The goal of rv-split was to isolate values outside of the result structure (for reasons that will become more obvious when we talk about the async calls).  To do that, we introduced a new structure called <code>xmmsv_t</code> (for &#8220;xmms value&#8221;), that can contain any type of value. Accessor functions are used to extract each type from it, in a similar way to how it was done with result structures.</p>
<p>Let&#8217;s show the sync example again:<br />
[code lang="c"]<br />
xmmsc_result_t *result;<br />
xmmsv_t *value;<br />
const char *name, *errbuf;</p>
<p>result = xmmsc_playlist_current_active (conn);<br />
xmmsc_result_wait (result);<br />
value = xmmsc_result_get_value (result);</p>
<p>if (xmmsv_get_error (value, &#038;errbuf)) {<br />
   printf ("Server error: %s\n", errbuf);<br />
   exit (1);<br />
}</p>
<p>if (xmmsv_get_string (value, &#038;name)) {<br />
   printf ("Active playlist is %s\n", name);<br />
}</p>
<p>// We free the result, which also frees the value it contained,<br />
// i.e. the 'value' variable, and the 'name' string<br />
xmmsc_result_unref (result);<br />
[/code]</p>
<p>All we have to do is extract the <code>xmmsv_t</code> from the <code>xmmsc_result_t</code>.  No raw data is stored in the result structure anymore.</p>
<p>Note that it also affects the error handling: if the server returns an error, it&#8217;s not a special state; it just returns an <code>xmmsv_t</code> of type <code>ERROR</code>.  <code>xmmsv_get_error</code> is used to retrieve the error message, or the function will return <code>FALSE</code> if the value was not an error.  Just like before, the value is freed automatically, so no need to worry about anything, just free the result structure.</p>
<p>Now, let&#8217;s move to the async case.  In async, we don&#8217;t wait on results, we register one (or more) callback (AKA notifier) that will be called when the answer comes back from the server.  Up until now, callbacks received the original result structure in argument (plus a userdata pointer).  Like before, the result contained the value returned by the server.  It could also be used to restart signals or disconnect broadcasts (more on that later).</p>
<p>In code:<br />
[code lang="c"]<br />
void<br />
callback (xmmsc_result_t *result, void *udata)<br />
{<br />
   const char *name;</p>
<p>   if (xmmsc_result_iserror (result)) {<br />
      printf ("Server error: %s\n", xmmsc_result_get_error (result));<br />
      exit (1);<br />
   }</p>
<p>   // The name is retrieved from the result<br />
   if (xmmsc_result_get_string (result, &#038;name)) {<br />
      printf ("Active playlist is %s\n", name);<br />
   }</p>
<p>   // Each notifier holds a reference to the result<br />
   xmmsc_result_unref (result);<br />
}</p>
<p>int<br />
main ()<br />
{<br />
   // [...]</p>
<p>   xmmsc_result *result;</p>
<p>   result = xmmsc_playlist_current_active (conn);<br />
   xmmsc_result_notifier_set (result, callback, NULL);<br />
   xmmsc_result_unref (result);<br />
}<br />
[/code]</p>
<p>One of the arguments for the rv-split refactoring was that the result structure is meant to handle the command and how we treat it, but we don&#8217;t really need it to be passed to the callback.  It allows developers to do weird stuff (wait on the result in the callback, restart a non-signal, etc — don&#8217;t try this at home).</p>
<p>All we need really is the value that the server returned.  That is, the <code>xmmsv_t</code>!</p>
<p>Which gives:<br />
[code lang="c"]<br />
int<br />
callback (xmmsv_t *value, void *udata)<br />
{<br />
   const char *name, *errbuf;</p>
<p>   if (xmmsv_get_error (value, &#038;errbuf)) {<br />
      printf ("Server error: %s\n", errbuf);<br />
      exit (1);<br />
   }</p>
<p>   // The name is retrieved from the value<br />
   if (xmmsv_get_string (value, &#038;name)) {<br />
      printf ("Active playlist is %s\n", name);<br />
   }</p>
<p>   // Note that we do not need to unref anything here!<br />
   // The value will be freed automagically after this!</p>
<p>   // I will explain this in a minute...<br />
   return FALSE;<br />
}</p>
<p>int<br />
main ()<br />
{<br />
   // [...]</p>
<p>   xmmsc_result *result;</p>
<p>   result = xmmsc_playlist_current_active (conn);<br />
   xmmsc_result_notifier_set (result, callback, NULL);<br />
   xmmsc_result_unref (result);<br />
}<br />
[/code]</p>
<p>Easy and safer!</p>
<p>But maybe you noticed a hitch: hey, how do I restart my signals or disconnect my broadcasts from the callback now?</p>
<p>Well, it&#8217;s even easier than before.  Previously, here is how you restarted signals:<br />
[code lang="c"]<br />
void<br />
signal_callback (xmmsc_result_t *result, void *udata)<br />
{<br />
   xmmsc_result_t *newres;</p>
<p>   // [...]</p>
<p>   newres = xmmsc_result_restart (result);<br />
   xmmsc_unref (result);<br />
   xmmsc_unref (newres);<br />
}<br />
[/code]</p>
<p>This simply becomes:<br />
[code lang="c"]<br />
int<br />
signal_callback (xmmsv_t *value, void *udata)<br />
{<br />
   // [...]</p>
<p>   return TRUE;<br />
}<br />
[/code]</p>
<p>That&#8217;s right, it&#8217;s that simple!  The return value of a callback is some sort of &#8220;keep alive&#8221; flag.  If a callback returns <code>TRUE</code>, the signal will be restarted or the broadcast will keep going.  If it returns <code>FALSE</code>, the signal will die off (not restarted) or the broadcast will be disconnected.</p>
<p>Note that the return value has no meaning in the case of regular commands, like the earlier example.</p>
<p>Here are a couple of other things you might need to know about the new API:</p>
<ul>
<li>By default, the <code>xmmsv_t</code> is freed automatically (since it&#8217;s owned by the <code>xmmsc_result_t</code>). If you want to keep it around for some reason, you can ref it using <code>xmmsv_ref</code>, but don&#8217;t forget to unref it again when you&#8217;re done with <code>xmmsv_unref</code>, else your client will leak!</li>
<li>Dict and List accessors have been made more generic and sexy, so check the documentation to learn how to access these types!</li>
<li>PropDicts (returned by <code>xmmsc_medialib_get_info</code>) have been replaced by dict-in-dicts, but you can convert them back to regular Dicts using the <code>xmmsv_propdict_to_dict</code> helper function. Again, use the Doc, Luke!</li>
<li>Check how your favorite bindings handled the upgrade, the upgrade path might be softer depending on the language.</li>
<li>The tutorials have been updated (or will be shortly as soon as my patch for #2018 is merged — you can check it in the meantime). It features some code working with propdicts and list iterators, and other things in general.</li>
</ul>
<p>I think you should now be ready to upgrade your clients to rv-split! It&#8217;s been fun hacking on the new code this summer, and getting help from everyone to improve it and get it into -devel!</p>
<p>Feel free to ask questions on IRC or in the comments!</p>
]]></content:encoded>
			<wfw:commentRss>http://bytes.inso.cc/wp/2008/12/09/upgrade-to-rv-split-now/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XMMS2 GSoC 2008 wrap-up</title>
		<link>http://bytes.inso.cc/wp/2008/09/19/xmms2-gsoc-2008-wrap-up/</link>
		<comments>http://bytes.inso.cc/wp/2008/09/19/xmms2-gsoc-2008-wrap-up/#comments</comments>
		<pubDate>Fri, 19 Sep 2008 13:37:55 +0000</pubDate>
		<dc:creator>theefer</dc:creator>
				<category><![CDATA[xmms2]]></category>
		<category><![CDATA[collections]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[genipc]]></category>
		<category><![CDATA[gsoc]]></category>
		<category><![CDATA[nycli]]></category>
		<category><![CDATA[s4]]></category>
		<category><![CDATA[service.clients]]></category>

		<guid isPermaLink="false">http://inso.cc/wp/?p=587</guid>
		<description><![CDATA[I&#8217;m still waiting for nesciens&#8217; conclusion notes about his very successful project, Collections 2.0, but he&#8217;s been busy with his starting university so it will take a few more days.
In the meantime, I wanted to write a wrap-up post about this year&#8217;s mildly successful Google Summer of Code with XMMS2.  Out of 6 projects, [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m still waiting for nesciens&#8217; conclusion notes about his very successful project, Collections 2.0, but he&#8217;s been busy with his starting university so it will take a few more days.</p>
<p>In the meantime, I wanted to write a wrap-up post about this year&#8217;s mildly successful <a href="http://code.google.com/soc/">Google Summer of Code</a> with <a href="http://xmms2.sf.net/">XMMS2</a>.  Out of 6 projects, we&#8217;ve had 3 successful projects and 3 failed ones.  That&#8217;s a pretty high and disappointing failure rate to be honest.  You always have to be prepared to face unplanned obstacles, but it got a bit out of hand this time.</p>
<p>It is especially frustrating as the projects were all pretty sexy or important, or both.</p>
<p>The long-awaited <strong>Generic IPC</strong> project seems to be one of those cursed projects that nobody manages to get done.  We ran that project last year but it was not finished in time, so Leonid Evdokimov (darkk) took over this year, but he wasn&#8217;t able to complete it either.</p>
<p>We had been lucky to get an extra slot to run the <a href="http://wiki.xmms2.xmms.se/wiki/New_medialib_backend"><strong>S4</strong></a> project, an experimental new backend for the medialib optimized (in structure, space and performance) for the specific semantics of our data (basically, short property strings attached to objects). Unfortunately, Tobias Bengtsson (ydo) got more busy than expected with his master thesis and a major hardware failure put an end to his hopes of completing S4.</p>
<p>The last failing project was probably the most original/experimental: <strong>cloudstream</strong>, or a smart blend of xmms2 local music playing and <a href="http://www.last.fm/">last.fm</a>&#8217;s social &amp; semantic information, allowing to play &#8220;local radios&#8221; of your tracks using a sexy graphical cloud interface.  We were especially excited as it had come as a spontaneous suggestion by the student, Arpith Siromoney.  Sadly, only <a href="http://git.xmms.se/?p=cloudstream.git;a=tree">little code</a> was produced; we hope that the idea will live on and end up being implemented in one way or the other!</p>
<p>On the brighter side of things, the three other projects were a great success and we hope to include them in the -devel tree and the main release ASAP.</p>
<p>Daniel Chokola (puzzles) worked on getting Ning Shi (zeegeek)&#8217;s <strong>Service clients</strong> (which I mentored for GSoC &#8216;07) ready for merge.  He reworked the concept a bit (operations involved, atomicity of registration, etc), gave the API a refresh and rebased the tree onto the latest -devel releases.  From early on, it had also become clear that it would all be nicer with the <a href="http://bugs.xmms2.xmms.se/view.php?id=1835">result/value-split</a> refactoring that had been discussed for some time.  Nobody had time to hack it up so I did, and I worked closely with puzzles to update service clients to use the new code and giving him a hand cleaning up the server-side and IPC layer.  It&#8217;s now a good showcase of the cool new <code>xmmsv_t</code> API!</p>
<p>The first project I mentored was <a href="http://wiki.xmms2.xmms.se/wiki/New_korving_CLI"><strong>nycli</strong></a>, also referred to as &#8220;the new korving CLI&#8221;, a new CLI client for XMMS2 in C that I had started to take over from my previous C++ client, <a href="http://nyello.inso.cc/">nyello</a>.  I had run out of time to work on nycli but Igor Ribeiro de Assis (greafine) did a great job taking over the code, improving it and completing all the missing features and adding some of his own: commands to interact with the playlist, collections and server actions, support for subcommands, file path globbing, interactive status command, and the super cool <em>aliases</em>!</p>
<p>The second student I mentored, Erik Massop (nesciens), hacked heaps of new features into <a href="http://wiki.xmms2.xmms.se/wiki/Collections_Concept">Collections</a> (my GSoC &#8216;06 project): <a href="http://wiki.xmms2.xmms.se/wiki/Summer_of_Code_2008/Collections_2.0/Operator_list">new operators</a> (incl. Order, Limit, generic comparison, Token, etc.), server-side source preferences, support for medialists (ordered collections), new query mechanisms allowing aggregates, functions on values and more complex results, conversion of all values to strings, optimized prefix matching, etc.  Here come <a href="http://wiki.xmms2.xmms.se/wiki/Summer_of_Code_2008/Collections_2.0"><strong>Collections 2.0</strong></a>!</p>
<p>As an organization, we acknowledge our failure at choosing students able to complete their projects in full and in time.  We had a much better success ratio in the previous editions, so I guess this year is a combination of bad luck and small defects on the part of mentors and students.</p>
<p>Next year, I&#8217;d like us to improve communication between mentor and student, and also between the GSoC participants and the XMMS2 community.  Status updates on the planet, clearer project descriptions, better linking throughout the wiki, etc.  I&#8217;d also like to focus on working on a stricter list of objectives, roadmap and deadlines with the student, to help us keep track of progress more formally.  I think we already had a pretty good selection process, but that might be improved too.</p>
<p>Nevertheless, I&#8217;m very happy with the students I mentored (nesciens, greafine, and puzzles unofficially): they all showed dedication and genuine interest in their projects, they were very open to criticism but also ready to provide arguments and new ideas to make solutions more elegant.</p>
<p>I look forward to seeing the GSoC code merged in official releases; it has sometimes taken longer than we would have liked in the past, but nycli and service clients should make it to your Git tree in the near future.  Collections 2.0 still need review and tests, but the possibilities are already quite exciting!</p>
<p>Congratulations to all the successful students, thanks to Google for sponsoring this program, and let&#8217;s make it even more successful next year!</p>
]]></content:encoded>
			<wfw:commentRss>http://bytes.inso.cc/wp/2008/09/19/xmms2-gsoc-2008-wrap-up/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
