Subject:
|
Re: FW: Something else is needed, I think...
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Wed, 5 May 1999 17:34:01 GMT
|
Original-From:
|
John A. Tamplin <JAT@nospamLIVEONTHENET.COM>
|
Viewed:
|
1322 times
|
| |
| |
On Wed, 5 May 1999, stephen p spackman wrote:
> But suppose for instance that we were talking about a language like Java
> that has static typing. Why not put support for fixed point into the
> compiler. It would then have ZERO impact on the runtime, not even new
> library routines, and still let you do the calculations you want in the
> notation you want - with a simpler semantics to boot.
For Java specificallly, it can't be in the compiler since it would no
longer be Java. However, you could easily have a FixedPoint class which
implements Number and use that. Since Java doesn't support operator methods
you have clunky syntax like a=b.multiply(c) etc, but it works.
> Anyway, sorry if I was sounding exasperated; I'm persistently bewildered
> by the extent to which computer people (informaticians) like their tools
> and seek to perpetuate what seem - from my specialised background! -
> very clear mistakes.
I'm not sure exactly what you are referring to. Floating point and fixed
point each have their proper place. Personally, what I want is an
environment flexible enough to accomodate what each person wants and
modular enough to do it without negatively impacting people who don't
want it.
John A. Tamplin Traveller Information Services
jat@LiveOnTheNet.COM 2104 West Ferry Way
256/705-7007 - FAX 256/705-7100 Huntsville, AL 35801
--
Did you check the web site first?: http://www.crynwr.com/lego-robotics
|
|
Message has 2 Replies: | | Re: FW: Something else is needed, I think...
|
| (...) I see what you like about having a FixedPoint type and being able to say a = b.Multiply(c) This gives you the flexibility to add modules as you need them by dumping all the work onto the compiler, which is not a bad place if you are not the (...) (26 years ago, 5-May-99, to lugnet.robotics)
| | | Re: FW: Something else is needed, I think...
|
| (...) Those who think Java is a good idea are already discussing using variants. (...) Um, C family languages were obsolete before their introduction. Von Neumann thought that floating point was a bad idea, he was right then and he's right now. If (...) (26 years ago, 6-May-99, to lugnet.robotics)
|
Message is in Reply To:
| | Re: FW: Something else is needed, I think...
|
| (...) But suppose for instance that we were talking about a language like Java that has static typing. Why not put support for fixed point into the compiler. It would then have ZERO impact on the runtime, not even new library routines, and still let (...) (26 years ago, 5-May-99, to lugnet.robotics)
|
32 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|