<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    
    <title>Lunesu - D</title>
    <link>http://lunesu.com/</link>
    <description>Random Notes</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.6 - http://www.s9y.org/</generator>
    
    

<item>
    <title>Modern COM Programming in D</title>
    <link>http://lunesu.com/index.php?/archives/126-Modern-COM-Programming-in-D.html</link>
            <category>D</category>
    
    <comments>http://lunesu.com/index.php?/archives/126-Modern-COM-Programming-in-D.html#comments</comments>
    <wfw:comment>http://lunesu.com/wfwcomment.php?cid=126</wfw:comment>

    <slash:comments>5</slash:comments>
    <wfw:commentRss>http://lunesu.com/rss.php?version=2.0&amp;type=comments&amp;cid=126</wfw:commentRss>
    

    <author>nospam@example.com (Lio)</author>
    <content:encoded>
    I finally got around to asking for permission to share the slides of a tech talk I did more than a year ago: &lt;a href=&quot;http://lunesu.com/uploads/ModernCOMProgramminginD.pdf&quot; title=&quot;Modern COM Programming in D&quot; target=&quot;_blank&quot;&gt;Modern COM Programming in D&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
In the slides I explain how I&#039;ve made a projection for COM into D, which allows you to use COM objects without the usual hassle of refcount/QueryInterface/HRESULT/BSTR/etc... Sharing the code will be hard (mostly because of the shape it&#039;s in) but the slides basically contain all you need. Actually, D has progressed a lot since, so a rewrite might be in order anyway.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;UPDATE:&lt;/strong&gt; Add your comments below or on &lt;a href=&quot;http://www.reddit.com/r/programming/comments/ow7qc/modern_com_programming_in_d/&quot; title=&quot;Reddit&quot;&gt;Reddit&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;pre name=&quot;code&quot; class=&quot;c&quot;&gt;import std.stdio, comxml;

void main()
{
    // Create a new empty document 
    auto doc = XmlDocument();

    // Load an XML document from an inline string
    doc.LoadXml(&quot;&lt;root&gt;世界你好&lt;a&gt;hello&lt;/a&gt;&lt;a&gt;world&lt;/a&gt;&lt;/root&gt;&quot;);

    // Get the first node&#039;s value 
    auto text = doc.DocumentElement.FirstChild;
    // Write the node&#039;s value to the console
    writeln(text.NodeValue);

    // Perform a simple XPath query
    auto nodes = doc.SelectNodes(&quot;/root/a/text()&quot;);

    // Do iteration through the child nodes
    foreach (node; nodes.First)
        writeln(node.NodeValue);

    // Access the child nodes by index 
    for (uint t = 0; t &lt; nodes.length; ++t)
        writeln(nodes[t].NodeValue);
}
&lt;/pre&gt; 
    </content:encoded>

    <pubDate>Tue, 24 Jan 2012 16:53:25 +0000</pubDate>
    <guid isPermaLink="false">http://lunesu.com/index.php?/archives/126-guid.html</guid>
    
</item>
<item>
    <title>Presenting the D Programming Language</title>
    <link>http://lunesu.com/index.php?/archives/102-Presenting-the-D-Programming-Language.html</link>
            <category>D</category>
    
    <comments>http://lunesu.com/index.php?/archives/102-Presenting-the-D-Programming-Language.html#comments</comments>
    <wfw:comment>http://lunesu.com/wfwcomment.php?cid=102</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://lunesu.com/rss.php?version=2.0&amp;type=comments&amp;cid=102</wfw:commentRss>
    

    <author>nospam@example.com (Lio)</author>
    <content:encoded>
    I&#039;ll be presenting the D Programming Language at the next monthly BLUG meeting. It&#039;ll mostly be for people who haven&#039;t heard of D yet. There&#039;ll be a fair chunk of D1 in there, but I&#039;m hoping to touch some of D2&#039;s new features as well.&lt;br /&gt;
&lt;br /&gt;
These meetings are free for everyone to attend, so come by if you live in Beijing, or you happen to be there.&lt;br /&gt;
&lt;br /&gt;
More information at &lt;a href=&quot;http://tinyurl.com/y9ttldt&quot; title=&quot;BLUG website&quot;&gt;the BLUG website&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
See you there!&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;UPDATE:&lt;/strong&gt; &lt;a href=&quot;http://lunesu.com/uploads/DforBLUG1.odp&quot; title=&quot;DforBLUG.odp&quot; target=&quot;_blank&quot;&gt;my slides&lt;/a&gt; are now available. 
    </content:encoded>

    <pubDate>Wed, 10 Mar 2010 14:48:59 +0000</pubDate>
    <guid isPermaLink="false">http://lunesu.com/index.php?/archives/102-guid.html</guid>
    
</item>
<item>
    <title>As if 0xDEADBEEF and 0xDECAFBAD were not enough...</title>
    <link>http://lunesu.com/index.php?/archives/63-As-if-0xDEADBEEF-and-0xDECAFBAD-were-not-enough....html</link>
            <category>D</category>
    
    <comments>http://lunesu.com/index.php?/archives/63-As-if-0xDEADBEEF-and-0xDECAFBAD-were-not-enough....html#comments</comments>
    <wfw:comment>http://lunesu.com/wfwcomment.php?cid=63</wfw:comment>

    <slash:comments>2</slash:comments>
    <wfw:commentRss>http://lunesu.com/rss.php?version=2.0&amp;type=comments&amp;cid=63</wfw:commentRss>
    

    <author>nospam@example.com (Lio)</author>
    <content:encoded>
    Long time no post. My page is still being blocked (I might just as well resurrect that post about Tbet) and having to use VPN to write a post is just too much effort. &lt;br /&gt;
&lt;br /&gt;
So why this post? I just had to share my latest brainchild with the rest of the world:&lt;br /&gt;
&lt;blockquote&gt;&lt;a title=&quot;Ce faci ba!?&quot;&gt;0xCEFAC1BA&lt;/a&gt;&lt;/blockquote&gt;&lt;br /&gt;
Hover the mouse over the text to see its meaning. It&#039;s a hexadecimal value that when considered as words is Romanian for &quot;WTF are you doing!&quot;. This turns out to be applicable because similar &#039;magic numbers&#039; are often used to catch software bugs: when the the special value appears, the programmer knows something is wrong.&lt;br /&gt;
&lt;br /&gt;
People who liked this also liked &lt;a href=&quot;http://en.wikipedia.org/wiki/Hexspeak&quot; title=&quot;Hexspeak&quot;&gt;this&lt;/a&gt;. 
    </content:encoded>

    <pubDate>Thu, 14 May 2009 10:28:00 +0000</pubDate>
    <guid isPermaLink="false">http://lunesu.com/index.php?/archives/63-guid.html</guid>
    
</item>

</channel>
</rss>