<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Porting upb to C++?</title>
	<atom:link href="http://blog.reverberate.org/2009/11/28/porting-upb-to-c/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.reverberate.org/2009/11/28/porting-upb-to-c/</link>
	<description>parsing, performance, minimalism with C99</description>
	<lastBuildDate>Thu, 26 Jan 2012 04:15:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Rehno Lindeque</title>
		<link>http://blog.reverberate.org/2009/11/28/porting-upb-to-c/comment-page-1/#comment-1493</link>
		<dc:creator>Rehno Lindeque</dc:creator>
		<pubDate>Sun, 06 Dec 2009 11:50:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.reverberate.org/?p=287#comment-1493</guid>
		<description>I&#039;ve also been lazily contemplating upb for use in my projects. Since I tend to write my code in strange languages like D and Haskell, I&#039;ll second the other&#039;s comments! I would not mind having a thin C++ wrapper though.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve also been lazily contemplating upb for use in my projects. Since I tend to write my code in strange languages like D and Haskell, I&#8217;ll second the other&#8217;s comments! I would not mind having a thin C++ wrapper though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam Quigley</title>
		<link>http://blog.reverberate.org/2009/11/28/porting-upb-to-c/comment-page-1/#comment-1487</link>
		<dc:creator>Sam Quigley</dc:creator>
		<pubDate>Wed, 02 Dec 2009 07:52:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.reverberate.org/?p=287#comment-1487</guid>
		<description>Have you checked with the security team about this yet?  C++ might reduce the number of potentially unsafe manual casting that goes on in the code, but it also introduces a whole host of (often very subtle) security risks of its ownâ€¦  (For example, see: http://chargen.matasano.com/chargen/2009/10/9/a-c-challenge.html and some of the links there)  Depending on how much you&#039;re planning on changing â€” and depending on your security folks â€” it might well be faster to tighten up the current codebase than to rewrite it.  (It&#039;s been a little while since I looked at the code, and I certainly haven&#039;t tried to do a formal review, but I didn&#039;t notice too many scary things going on in thereâ€¦)

On a more selfish note â€” I too was eyeing upb for use in a (pure C) project of mine, and would just as soon see it stay Câ€¦  So take my comments with a grain of salt.  :)

-sq</description>
		<content:encoded><![CDATA[<p>Have you checked with the security team about this yet?  C++ might reduce the number of potentially unsafe manual casting that goes on in the code, but it also introduces a whole host of (often very subtle) security risks of its ownâ€¦  (For example, see: <a href="http://chargen.matasano.com/chargen/2009/10/9/a-c-challenge.html" rel="nofollow">http://chargen.matasano.com/chargen/2009/10/9/a-c-challenge.html</a> and some of the links there)  Depending on how much you&#8217;re planning on changing â€” and depending on your security folks â€” it might well be faster to tighten up the current codebase than to rewrite it.  (It&#8217;s been a little while since I looked at the code, and I certainly haven&#8217;t tried to do a formal review, but I didn&#8217;t notice too many scary things going on in thereâ€¦)</p>
<p>On a more selfish note â€” I too was eyeing upb for use in a (pure C) project of mine, and would just as soon see it stay Câ€¦  So take my comments with a grain of salt.  <img src='http://blog.reverberate.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>-sq</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alejandro M.</title>
		<link>http://blog.reverberate.org/2009/11/28/porting-upb-to-c/comment-page-1/#comment-1485</link>
		<dc:creator>Alejandro M.</dc:creator>
		<pubDate>Tue, 01 Dec 2009 17:59:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.reverberate.org/?p=287#comment-1485</guid>
		<description>assuming the generated C code is good, why not? ;-) thanks!</description>
		<content:encoded><![CDATA[<p>assuming the generated C code is good, why not? <img src='http://blog.reverberate.org/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh</title>
		<link>http://blog.reverberate.org/2009/11/28/porting-upb-to-c/comment-page-1/#comment-1484</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Tue, 01 Dec 2009 17:55:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.reverberate.org/?p=287#comment-1484</guid>
		<description>@Alejandro: Wow, I didn&#039;t realize there was already someone wanting to use upb on an embedded platform!  I definitely want to keep supporting your use case if I can.  I think the best way forward will be for me to get a C++ to C translator like Comeau C++.  Then I can keep writing in C++, but ship C files that you can build with a plain C compiler.  Do you think that will work for you?</description>
		<content:encoded><![CDATA[<p>@Alejandro: Wow, I didn&#8217;t realize there was already someone wanting to use upb on an embedded platform!  I definitely want to keep supporting your use case if I can.  I think the best way forward will be for me to get a C++ to C translator like Comeau C++.  Then I can keep writing in C++, but ship C files that you can build with a plain C compiler.  Do you think that will work for you?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alejandro M.</title>
		<link>http://blog.reverberate.org/2009/11/28/porting-upb-to-c/comment-page-1/#comment-1483</link>
		<dc:creator>Alejandro M.</dc:creator>
		<pubDate>Tue, 01 Dec 2009 17:02:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.reverberate.org/?p=287#comment-1483</guid>
		<description>@Josh: Hi! You mentioned my reason... I work on a CXX-free embedded controller. Moving from ASN.1 to protocol buffer at IPC (hate threads) level thanks to your awesome upb and I was starting to write the Lua bindings to finish the migration integrating the http front-end and some Lua based helpers running inside the controller. So porting ucb to C++ because will hit me... badly :( ... your implementation is great!. I understand porting it to C++ will save you some lines...  but maybe some refactoring can help to reduce the complexity without having to switch to C++? you can do all the bindings you aim keeping it in C... with all it&#039;s current benefits</description>
		<content:encoded><![CDATA[<p>@Josh: Hi! You mentioned my reason&#8230; I work on a CXX-free embedded controller. Moving from ASN.1 to protocol buffer at IPC (hate threads) level thanks to your awesome upb and I was starting to write the Lua bindings to finish the migration integrating the http front-end and some Lua based helpers running inside the controller. So porting ucb to C++ because will hit me&#8230; badly <img src='http://blog.reverberate.org/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  &#8230; your implementation is great!. I understand porting it to C++ will save you some lines&#8230;  but maybe some refactoring can help to reduce the complexity without having to switch to C++? you can do all the bindings you aim keeping it in C&#8230; with all it&#8217;s current benefits</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh</title>
		<link>http://blog.reverberate.org/2009/11/28/porting-upb-to-c/comment-page-1/#comment-1482</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Tue, 01 Dec 2009 16:30:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.reverberate.org/?p=287#comment-1482</guid>
		<description>@Alejandro: If you want to influence my decision, you should tell me why you don&#039;t want me to.  :)  I definitely have resisted, but practical reasons are demanding that I do.  But maybe you are thinking of practical reasons that I&#039;m missing.</description>
		<content:encoded><![CDATA[<p>@Alejandro: If you want to influence my decision, you should tell me why you don&#8217;t want me to.  <img src='http://blog.reverberate.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   I definitely have resisted, but practical reasons are demanding that I do.  But maybe you are thinking of practical reasons that I&#8217;m missing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alejandro M.</title>
		<link>http://blog.reverberate.org/2009/11/28/porting-upb-to-c/comment-page-1/#comment-1481</link>
		<dc:creator>Alejandro M.</dc:creator>
		<pubDate>Tue, 01 Dec 2009 14:49:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.reverberate.org/?p=287#comment-1481</guid>
		<description>please don&#039;t :&#039;(</description>
		<content:encoded><![CDATA[<p>please don&#8217;t :&#8217;(</p>
]]></content:encoded>
	</item>
</channel>
</rss>

