Re: How to develop a random number generation device
- From: John Devereux <jdREMOVE@xxxxxxxxxxxxxxxxxx>
- Date: Mon, 10 Sep 2007 18:55:53 +0100
John Larkin <jjlarkin@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> writes:
[...]
C doesn't encourage subroutines that have multiple entry and multiple
exit points. Pity.
Multiple exit points are no problem - you can easily
return;
from a function wherever you like.
Multiple entry points to a *function* are a bit more awkward - but you
can enter other types of block at multiple points. If you know C you
might enjoy this:
<http://groups.google.com/group/net.lang.c/msg/66008138e07aa94c>
I's occurred to me, more than once, that C was invented to run on a
PDP-11, and that a $400 Dell has 10,000 times the memory and a
thousand times the speed of an 11. So why doesn't somebody invent a
language (and a methodology) that produces/forces reliable code and
requires less debugging, and does rudimentary stuff like data and code
separation, at some expense in runtime resources?
They have, of course - not many people use C to write applications for
desktop machines any more. They use C#, java, all sorts of other
languages and frameworks that do most or all of what you are asking.
However, to take up your analogy, todays microcontroller *is* similar
in power to a PDP-11, so C is now in fact quite a good fit!
--
John Devereux
.
- Follow-Ups:
- Re: How to develop a random number generation device
- From: MooseFET
- Re: How to develop a random number generation device
- References:
- Re: How to develop a random number generation device
- From: Spehro Pefhany
- Re: How to develop a random number generation device
- From: John Larkin
- Re: How to develop a random number generation device
- From: John Fields
- Re: How to develop a random number generation device
- From: John Larkin
- Re: How to develop a random number generation device
- From: MooseFET
- Re: How to develop a random number generation device
- From: John Larkin
- Re: How to develop a random number generation device
- From: MooseFET
- Re: How to develop a random number generation device
- From: John Larkin
- Re: How to develop a random number generation device
- From: MooseFET
- Re: How to develop a random number generation device
- From: John Larkin
- Re: How to develop a random number generation device
- Prev by Date: Re: What's the Toughest Branch in Electronics?
- Next by Date: Re: Recommended USB oscilloscopes?
- Previous by thread: Re: How to develop a random number generation device
- Next by thread: Re: How to develop a random number generation device
- Index(es):
Relevant Pages
|