To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 4876
    Re: FW: Something else is needed, I think... —stephen p spackman
   (...) 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 (...) (25 years ago, 5-May-99, to lugnet.robotics)
   
        Re: FW: Something else is needed, I think... —John A. Tamplin
     (...) 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 (...) (25 years ago, 5-May-99, to lugnet.robotics)
    
         Re: FW: Something else is needed, I think... —Kekoa Proudfoot
      (...) 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 (...) (25 years ago, 5-May-99, to lugnet.robotics)
     
          Re: FW: Something else is needed, I think... —John A. Tamplin
      (...) If it is an object oriented language, it isn't the compiler writer it is a library writer. (...) Assuming the language has the flexibility, you could certainly do the FP emulation in the library as well. However, you lose the ability to take (...) (25 years ago, 5-May-99, to lugnet.robotics)
     
          Re: FW: Something else is needed, I think... —Kekoa Proudfoot
      (...) I meant that the compiler writer now needs to support objects, which is a bit of extra work over what I have imagined the compiler writer putting into this. I did not state this clearly by any means. I agree, it also adds work for the library (...) (25 years ago, 5-May-99, to lugnet.robotics)
    
         Re: FW: Something else is needed, I think... —stephen p spackman
     (...) 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 (...) (25 years ago, 6-May-99, to lugnet.robotics)
   
        Re: FW: Something else is needed, I think... —Kekoa Proudfoot
   (...) This is a possibility I had not thought of, also worth thinking about more. It certainly complicates the compiler writer's job, but aside from that it sounds like a reasonable of doing things. -Kekoa (25 years ago, 5-May-99, to lugnet.robotics)
 

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR