Re: Delphi to bytecode compiler

From: Jonathan Neve (jonathan_at_!nospam!microtec.fr)
Date: 08/28/04

  • Next message: Delphinews.net: "Re: Publish your News Immediately on DelphiNews.net !"
    Date: Sat, 28 Aug 2004 07:48:00 +0200
    
    

    Phil Shrimpton wrote:
    > Jonathan Neve wrote:
    >
    >
    >>I don't see why it would be easier to write a Delphi compiler for .NET
    >>than for Java.
    >
    >
    > Because all the visual stuff uses the Windows API, which is still
    > available in .Net via PInvoke. A VCL.Java would need to be totally
    > rewritten not to use it.

    Yes, that's a good point. Still, I don't see any technical limitation or
    anything major that couldn't be done. It's basically just a bit of work.

    Besides, as I pointed out elsewhere in this thread, it wouldn't really
    be a matter of "rewriting" the VCL, since most of the functionality
    provided by the VCL is already available, in a different form, with the
    standard Java library. All that would be required would be to create
    wrapper classes with the same names as the Delphi equivalents, and add a
    few nice things from the VCL which Java doesn't have.

    >>It
    >>might be necessary to take only a subset of the Delphi language, but
    >>most of it should still be convertable...
    >
    >
    > I think the 'language' would be the easy part to do, it is the visual
    > stuff that would be major work. I think this is why Borland aborted
    > their attempt; they had a working compiler for the 'language' side of
    > things, but soon realised that people would want the 'visual' side of
    > things, which would be too much work and effort.

    I quite agree, but I think it's worth the effort. Imagine: you would
    basically have a cross-platform Delphi! If Java were a more attractive
    environnement for developping desktop applications, I expect a lot more
    applications would be written in Java, and therefore, people would no
    longer be tied into Microsoft Windows, they would be free to choose a
    better OS if they wish.

    I don't think the performance of Java is really a big issue. I think the
    real issue is that no existing IDE for Java can enable one to write a
    Java desktop application with anything like the ease of IDEs like VB or
    Delphi. Therefore, it seems to me that Java is currently used mostly for
    the web (applets, J2EE, JSP, servlets, etc).

    The only other big issue I have with Java is the deployment aspect
    (deploying a JAR isn't as user friendly as deploying a native
    exectuable), and the memory consumption (due to loading one JVM per Java
    application!). But I expect both of these issues will be addressed as
    soon as people start using Java for the desktop in a serious way...

    Jonathan Neve.


  • Next message: Delphinews.net: "Re: Publish your News Immediately on DelphiNews.net !"

    Relevant Pages

    • Re: Definition of outdated...
      ... There are often a reference to a programming language to be 'outdated', ... Looking strictly at the wording, then Java is more outdated than Delphi, ... What imo should be outdated is how money controls hype that controls ...
      (borland.public.delphi.non-technical)
    • Re: OOP style
      ... > create separate units for each of those dialogs, or do you make them as ... > a bunch of "helper" methods (if you have broken down your Save, Load, ... > 2.5) Is a Unit equivalent to a .java file in Java? ... > like I fight Delphi at almost every turn. ...
      (comp.lang.pascal.delphi.misc)
    • Re: RubyOnRails and Intraweb
      ... When I use C++ or Java or Delphi, I do not start from scratch. ... I do not worry that if I use a JB wizard that the code it produces is non standard Java, ... So the emphasis has left the EJB model, and Entity Beans have practically been abandoned altogether as impractical. ... Now Web Services are the next best thing to sliced bread. ...
      (borland.public.delphi.non-technical)
    • Re: VCLs Future
      ... I have been in the Java world for a while, and, like most of you, struggle ... If I had Java clients and Delphi clients needing ... Security is built into the app and the database server. ... Delphi gives it all to me way too easily. ...
      (borland.public.delphi.non-technical)
    • Re: Response a negative view about Delphi
      ... Window desktop is no longer such an interesting environment. ... In fact I challenge your freind to write a CD burning application in ASP.NET or Java without having to prop it up with native code written in C/C++ running locally. ... We as developers have no reason to continue developing in Delphi unless it's about maintaining old legacy code. ...
      (borland.public.delphi.non-technical)