The Cyber-Spy.Com Usenet Archive Feeds Directly
From The Open And Publicly Available Newsgroup
This Group And Thousands Of Others Are Available
On Most IS NNTP News Servers On Port 119.
Cyber-Spy.Com Is NOT Responsible For Any Topic,
Opinions Or Content Posted To This Or Any Other
Newsgroup. This Web Archive Of The Newsgroup And
Posts Are For Informational Purposes Only.
From: "Frank Bemelman"
References: <3D9F33B3.E4B561BB@webaccess.net> <email@example.com> <3D9F5649.57327EDF@webaccess.net> <firstname.lastname@example.org> <3D9FAA0B.3E57BD60@webaccess.net>
Subject: Re: Basic Stamp vs Pic processors
Date: Sun, 6 Oct 2002 10:18:15 +0200
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
Organization: EuroNet Internet
NNTP-Posting-Date: 06 Oct 2002 08:18:42 GMT
"Chuck Simmons" schreef in bericht
> Frank Bemelman wrote:
> > "Chuck Simmons" schreef in bericht
> > news:3D9F5649.57327EDF@webaccess.net...
> > > The loss of line numbers from Basic would seem to render it
> > > After all, Basic was invented to teach students how to increment line
> > > numbers.
> > Well, since it still is an interpreted language in most cases, so you
> > the advantage that it doesn't crash the system. It can safely escape,
> > complaining about an undesired situation occured at runtime etc. Without
> > linenumbers it is a lot like other procedural languages, like pascal or
> No. I don't think so. Basic does not have proper data types. Not that I
> have ever seen. Basic inherited implicit variables from Fortran and that
> makes Basic programs difficult to debug because typos work.
Private Sub Command1_Click()
Dim sText As String
Dim lTextLength As Long
Dim sChar As String
Dim bASCII As Byte
Dim x As Long
sText = "This VB stuff is pretty darn cool..!"
lTextLength = Len(sText) 'Gets # of chars in sText
For x = 1 To lTextLength 'Loop through string one char at a time
sChar = Mid$(sText, x, 1)'Gets the x'th charcter in sText
bASCII = Asc(sChar) 'Gets ASCII value of character
MsgBox "The ASCII value of '" & sChar & "' is " & bASCII 'Display results
> Pascal has strong data typing and data structures. It requires
> declaration of variables in advance so typos typically don't work. The
> rigorous data typing makes some tasks difficult but the structure makes
> the language readable and largely self documenting. In fact, I have seen
> assembly programs commented with Pascal to make algorithms clear.
> C has weak data typing and data structures and C++ adds objects. Weak
> data typing allows implicit conversions. Generally C allows convenience
> in writing algorithms that are difficult to express in Basic or Pascal
> in that it provides access to more primative functions.
> > In my book, assembly is dead. C has become an excellent replacement, now
> > that processors have become much faster - and cheaper. Programmable
> > has also helped making assembly become redundant. Stuff that requires
> > screaming
> > speed can often be isolated enough into function blocks that can be
> > implemented
> > with programmable logic. The less speed-demanding stuff can be done all
> > C/C++. I never liked Forth, I tried it a couple of times, but it's too
> > oriented for me, I have difficulties translating my 'problems' into
> In embedded systems, memory is very expensive. The reason is that memory
> is a silicon hog. It is so nasty that one would not have it if it could
> be avoided. Consider an optimal chip design that just fits a pad limited
> die that just fits a package with the right number of pins. Now add more
> memory. Yikes! The die grows out of the pad limited size and becomes too
> big for the desired package die cavity. Very very bad because the larger
> package costs more. OK, why not an external bus? Wrong answer. More
> chips cost more. An external bus requires more pins so cost goes up.
> Major loser. If that's you best shot, pack your personal stuff and go
There will always be examples where a few lines of asm are the sensible
thing to do, but life has become a lot easier, in the embedded world.
In 1978 I wrote a stackless program for a Z80, no ram chip to save money,
as I could keep all stuff in the available registers. Handcoded ;) A simple
jump at the end to close the loop. Today, in *my* book, assembly is dead.
(remove 'x' & .invalid when sending email)
Go Back To The Cyber-Spy.Com
Usenet Web Archive Index Of
The sci.electronics.design Newsgroup