<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<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">
	<channel>
		<title>LeafLabs Garden &#187; Topic: Standard C++ for the win</title>
		<link>http://forums.leaflabs.com/topic.php?id=1213</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:15:56 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://forums.leaflabs.com/search.php</link>
		</textInput>
		<atom:link href="http://forums.leaflabs.com/rss.php?topic=1213" rel="self" type="application/rss+xml" />

		<item>
			<title>gbulmer on "Standard C++ for the win"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1213#post-7398</link>
			<pubDate>Mon, 19 Dec 2011 13:33:07 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">7398@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;poslathian - &#38;lt;&#38;gt;... I imagine that even at 700MHz, there are some applications where the MCU will blow the rasberryPi away, just because of overhead. &#38;lt;/&#38;gt;&#60;/p&#62;
&#60;p&#62;There is interest in using the 700MHz, $25 RaspeberryPi without Linux, in which case, NO, there would be no application where a 72MHz MCU, or even 168MHz MCU will blow it away. There are several boards being designed to give access to its existing hardware I/O, or give it low-cost (sub $10) extended I/O, which may hasten those software developments.&#60;/p&#62;
&#60;p&#62;Yes, there is an enormous range of stuff that might THEORETICALLY be done by combining different types of hardware. That has always been the case.&#60;br /&#62;
I'm still waiting to see the LeafLabs offering, but several others are making progress. e.g.&#60;br /&#62;
&#60;a href=&#34;http://papilio.cc/&#34; rel=&#34;nofollow&#34;&#62;http://papilio.cc/&#60;/a&#62;&#60;br /&#62;
&#60;a href=&#34;http://www.xess.com/&#34; rel=&#34;nofollow&#34;&#62;http://www.xess.com/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;IMHO, the obstacle to using combined hardware, including MCU+FPGA is the software tools and technology, not the hardware.&#60;br /&#62;
The RaspeberryPi has onboard DSP and GPU, but that is constrained by Broadcom proprietary technology and licensing, so it could offer even more.&#60;/p&#62;
&#60;p&#62;Hopefully ARM's efforts will cause some progress to be made.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>poslathian on "Standard C++ for the win"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1213#post-7366</link>
			<pubDate>Fri, 16 Dec 2011 17:26:59 +0000</pubDate>
			<dc:creator>poslathian</dc:creator>
			<guid isPermaLink="false">7366@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;rasberryPi should be cool. However, I think it will be a while before stock linux setups replace MCUs for hardware - for cost, performance, and real-time guarantee reasons. Cost doesnt really come in to play in the devboard space, because most of the cost of the device is PCB/assembly/test/dev/packaging, not the MCU. For commercial prototyping, the difference between a 1$ MCU, a 5$ MCU, and a 15$ broadcom arm9 can be huge. &#60;/p&#62;
&#60;p&#62;I imagine that even at 700MHz, there are some applications where the MCU will blow the rasberryPi away, just because of overhead. Further still, try bitbanging pwm - or any other hard real time protocol - under linux, wont be easy. &#60;/p&#62;
&#60;p&#62;Personally, I see the future as combining standard procs with parallel hardware, like FPGAs. The proc can give you the OS, high level languages like python, standard libraries, file systems, sockets, etc. etc. and the coprocessor gives you your DSP, hard real time logic, pwm, gpio, etc. etc. &#60;/p&#62;
&#60;p&#62;Thanks to myHDL, an all python environment for FPGA+Software codevelopment (aka hardware software codevelopment) running under linux or pymite is definitely a near-term possibility.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gbulmer on "Standard C++ for the win"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1213#post-7334</link>
			<pubDate>Tue, 13 Dec 2011 12:10:27 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">7334@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;maniacbug - I don't want to distract you (too much) from Maple, but you could probably make all of those projects with a RaspberryPi:&#60;br /&#62;
&#60;a href=&#34;http://www.raspberrypi.org/&#34; rel=&#34;nofollow&#34;&#62;http://www.raspberrypi.org/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;It runs 'proper' Linux, has real video out, Ethernet, and runs at 700MHz, so not too far from an Apple TV.&#60;br /&#62;
Their aim is $25, so not too expensive for experiments.&#60;/p&#62;
&#60;p&#62;Just to be clear, RaspeberryPi isn't on sale yet, but they have an initial batch available soon.&#60;br /&#62;
I have no commercial relationship with RaspeberryPi
&#60;/p&#62;</description>
		</item>
		<item>
			<title>maniacbug on "Standard C++ for the win"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1213#post-7331</link>
			<pubDate>Tue, 13 Dec 2011 00:18:31 +0000</pubDate>
			<dc:creator>maniacbug</dc:creator>
			<guid isPermaLink="false">7331@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;&#38;gt; Now the question is, what will you do with the other ~440kB of FLASH? &#60;/p&#62;
&#60;p&#62;Time will tell :)  For me, this is just the time for learning what this baby can do.&#60;/p&#62;
&#60;p&#62;This Maple Native board occupies an interesting places in the computing spectrum.  It lies somewhere between an AVR8 and a phone.  I was thinking about a replacement for my Apple TV, but that seems just a bit outside Cortex-M3 power.  A web streaming audio player?  Probably right in the sweet spot.  NAS controller?  Maybe, if I can cram uclinux on it.&#60;/p&#62;
&#60;p&#62;Anyway for now I'll just be happy to get the sd card going.&#60;/p&#62;
&#60;p&#62;&#38;gt; That said the IDE has some annoying inferiorities to the command line&#60;/p&#62;
&#60;p&#62;Indeed.  And tacking on an ENTIRE main function (!?!)  Anyway one thing I learned from Arduino was to always release code that works with the IDE because the platform fulfills the needs of many people without ever requiring a command shell, and there's no sense in excluding those people from using your stuff.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>poslathian on "Standard C++ for the win"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1213#post-7326</link>
			<pubDate>Mon, 12 Dec 2011 19:47:45 +0000</pubDate>
			<dc:creator>poslathian</dc:creator>
			<guid isPermaLink="false">7326@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;just wait until we get to 1MB ;)&#60;/p&#62;
&#60;p&#62;We built Maple from the command line first, and added the IDE later, so underneath the hood are real standard tools that are still usable (actually more so...) outside the IDE. &#60;/p&#62;
&#60;p&#62;We absolutely hate IDE lock-in, or proprietary environments that dont play nicely with the standard tools of the programming community. A lot of vendors act as though because they are selling hardware, their customers wont miss linux support, have never heard of Make, and will almost certainly never have any reason to do anything not directly supported by the IDE. &#60;/p&#62;
&#60;p&#62;We're glad you like it!&#60;/p&#62;
&#60;p&#62;That said the IDE has some annoying inferiorities to the command line, such as the WProgram.h issue you enumerated. Were working on improving the IDE build system which should take care of bits and pieces like that and change the IDE build system (currently java) to be the same as the command line toolchain (make). There is plenty of work to do on the preprocessor as well.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>robodude666 on "Standard C++ for the win"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1213#post-7309</link>
			<pubDate>Mon, 12 Dec 2011 13:43:10 +0000</pubDate>
			<dc:creator>robodude666</dc:creator>
			<guid isPermaLink="false">7309@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Now the question is, what will you do with the other ~440kB of FLASH?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>maniacbug on "Standard C++ for the win"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1213#post-7307</link>
			<pubDate>Mon, 12 Dec 2011 00:33:08 +0000</pubDate>
			<dc:creator>maniacbug</dc:creator>
			<guid isPermaLink="false">7307@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Just got a Maple Native after spending the last year working with Arduino.  So happy to be able to use standard c++.  I just about fell out of my chair with joy being able to run this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;  vector&#38;lt;string&#38;gt; v;
  v.push_back(&#38;quot;Hello&#38;quot;);
  v.push_back(&#38;quot;world&#38;quot;);
  v.push_back(&#38;quot;std C++ FTW!!!&#38;quot;);

  copy(v.begin(),v.end(),ostream_iterator&#38;lt;string&#38;gt;(cout,&#38;quot;\n&#38;quot;));&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Of course, that comes with a wee bit of a penalty :)  Obviously some will hate this, but to me it means the shackles of avr8 are off!&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$ arm-none-eabi-size out/mix/stdcpptest.elf
   text    data     bss     dec     hex filename
  68836    4312    2704   75852   1284c out/mix/stdcpptest.elf&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Along the way I noticed a handful of unimplemented syscalls, _getpid, _kill, and _exit.  Also this doesn't work from PDE files, only CPP files, because the IDE tacks on WProgram.h to the front which has #defines which conflict with stdlib.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
