Prev: AVR BASIC COMPILER source code released
Next: ATtiny10
From: Colin Paul Gloster on 4 Sep 2009 16:13 On Tue, 1 Sep 2009, D Yuniskis wrote: |------------------------------------------------------------------| |"[..] | | | |It is exactly this problem that has me vacillating about whether | |a "highly structured C approach" would be better or worse than | |doing it in C++ (or other 4G HLL). I.e., which are "average Joes"| |least likely to screw up? :-/" | |------------------------------------------------------------------| Do not use C. Do not use C++. Do not use average Joes.
From: Cesar Rabak on 4 Sep 2009 17:13 Niklas Holsti escreveu: > D Yuniskis wrote: [snipped] >> I'd be more impressed if google/nokia had claimed that they had >> developed the iPhone using Ada (etc.) > > Yes, that would have been nice. But saying that "X cannot be good, > because Y is not using X" is a vicious-circle argument, at best. > Correct, but saying X has to be good, but its practical usage is decreasing is somewhat akin to nostalgia or wishful thinking. -- Cesar Rabak GNU/Linux User 52247. Get counted: http://counter.li.org/
From: Niklas Holsti on 5 Sep 2009 07:58 Cesar Rabak wrote: > Niklas Holsti escreveu: >> D Yuniskis wrote: > [snipped] > >>> I'd be more impressed if google/nokia had claimed that they had >>> developed the iPhone using Ada (etc.) >> >> Yes, that would have been nice. But saying that "X cannot be good, >> because Y is not using X" is a vicious-circle argument, at best. >> > Correct, but saying X has to be good, but its practical usage is > decreasing is somewhat akin to nostalgia or wishful thinking. I don't get your point. Did I say "Ada has to be good"? No, I pointed to real experience where Ada worked better than C/C++. Is Ada usage decreasing? I don't know; some users are switching from Ada to other languages, but some are staying with Ada, and there are also new users switching to Ada. AdaCore, the main developer of GNU Ada, seems to be doing well and expanding its compiler line. Anyway, the number of users of a tool is not a reliable indicator of the intrinsic quality of the tool; there are lots of rational and irrational reasons why users choose tools of lower quality -- initial cost, legacy code, inertia, ignorance, etc. I admit to thinking wishfully that it would be nice if there were more Ada users. -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .
From: Cesar Rabak on 8 Sep 2009 13:05 Niklas Holsti escreveu: > Cesar Rabak wrote: >> Niklas Holsti escreveu: >>> D Yuniskis wrote: >> [snipped] >> >>>> I'd be more impressed if google/nokia had claimed that they had >>>> developed the iPhone using Ada (etc.) >>> >>> Yes, that would have been nice. But saying that "X cannot be good, >>> because Y is not using X" is a vicious-circle argument, at best. >>> >> Correct, but saying X has to be good, but its practical usage is >> decreasing is somewhat akin to nostalgia or wishful thinking. > > I don't get your point. Did I say "Ada has to be good"? No, I pointed to > real experience where Ada worked better than C/C++. Is Ada usage > decreasing? I don't know; some users are switching from Ada to other > languages, but some are staying with Ada, and there are also new users > switching to Ada. AdaCore, the main developer of GNU Ada, seems to be > doing well and expanding its compiler line. Anyway, the number of users > of a tool is not a reliable indicator of the intrinsic quality of the > tool; there are lots of rational and irrational reasons why users choose > tools of lower quality -- initial cost, legacy code, inertia, ignorance, > etc. > > I admit to thinking wishfully that it would be nice if there were more > Ada users. > ;-) -- Cesar Rabak GNU/Linux User 52247. Get counted: http://counter.li.org/
From: Marco on 19 Sep 2009 11:22
On Sep 1, 7:43 am, D Yuniskis <not.going.to...(a)seen.com> wrote: > > Any tips you can share that can help me get C-like > behavior from a C++-like implementation? (besides the > obvious: "use only the C subset of C++" :> ) If you have enough target memory you can probably afford to use C++ OO constructs and maybe venture into templates. Create some explicit sample code and check out what your compiler generates. Be aware that all C++ compilers for embedded targets are not created equally. Try before you buy. |