tag:blogger.com,1999:blog-4640356191314871951.post622964856491851832..comments2023-08-12T10:42:29.208+02:00Comments on The Doric Temple: C# Native CompilerBabnikhttp://www.blogger.com/profile/04040986319920784464noreply@blogger.comBlogger15125tag:blogger.com,1999:blog-4640356191314871951.post-27540606744621104402010-01-19T15:32:12.026+01:002010-01-19T15:32:12.026+01:00@deksden: you can't use C++ class from Delphi ...@deksden: you can't use C++ class from Delphi for a couple of reasons: first their inner implementations are different, and IIRC you have issue to use C++ classes among different C++ compilers too.<br />That's why most libraries use plain C functions or wrappers like COM (i.e. Windows 7 ribbon API).<br />Actually Delphi can easily use C code both in .obj and .dll files (not .lib, which often are compiler dependent). C++ is different.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4640356191314871951.post-49777993924095179382010-01-19T10:54:48.182+01:002010-01-19T10:54:48.182+01:00IMHO, ngen is slightly different thing. Ngen compi...IMHO, ngen is slightly different thing. Ngen compile only application code, but large part of framework leaved as is. No linking with rtl. Maybe it is like Delphi's "compile with run time packages". <br /><br />But native c# compiler must be supplied with framework(and rtl), and is able to link rtl with application.deksdenhttps://www.blogger.com/profile/14875114625608323641noreply@blogger.comtag:blogger.com,1999:blog-4640356191314871951.post-36257415750516683542010-01-18T22:42:44.157+01:002010-01-18T22:42:44.157+01:00As to a native compiler for C# (and every other fi...As to a native compiler for C# (and every other first class .NET language, including Delphi Prism which I like a Great Deal, see the following:<br />http://msdn.microsoft.com/en-us/library/6t9t5wcf(VS.80).aspx<br /><br />M$ already thought of that when they released .NET, it's called the Native Image Generator or NGEN. Look for it in your Visual Studio install or with the SDK, you should already have it.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4640356191314871951.post-13764135392958486742010-01-18T22:33:43.409+01:002010-01-18T22:33:43.409+01:00The Gnome linux guys have such a language: VALA.
I...The Gnome linux guys have such a language: VALA.<br />It's c# syntax, but compiles natively. It's even supported in the MonoDevelop IDE.<br /><br />I've personally never tried it, but it looks like behind the scenes it automagically converts all your c# into plain-c code, links in a bunch of supporting libraries, and then compiles that all together into a native EXE.<br /><br />http://live.gnome.org/Vala<br /><br />http://en.wikipedia.org/wiki/Vala_%28programming_language%29Unknownhttps://www.blogger.com/profile/07272624816482591981noreply@blogger.comtag:blogger.com,1999:blog-4640356191314871951.post-85808423917031741322010-01-18T15:22:37.757+01:002010-01-18T15:22:37.757+01:00Why not to make multi-language tool?
Why I can n...Why not to make multi-language tool? <br /><br />Why I can not use some c++ classes in Delphi code? Or even inherit Delphi class from C++ class? <br /><br />Why i can not use C/C++ RTL in my Delphi application? A lot of C libraries exists, and Delphi is limited in using them. And a lot of problems to use C++ library in Delphi application.deksdenhttps://www.blogger.com/profile/14875114625608323641noreply@blogger.comtag:blogger.com,1999:blog-4640356191314871951.post-83364032962012659252010-01-18T09:35:31.337+01:002010-01-18T09:35:31.337+01:00If they can make it support the VCL as-is, I would...If they can make it support the VCL as-is, I would jump at it. Pascal is too verbose.<br /><br />But too much effort for too little gain.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4640356191314871951.post-13786090970670075752010-01-18T02:45:38.599+01:002010-01-18T02:45:38.599+01:00Leave C# for .NET and save the time/resource to wo...Leave C# for .NET and save the time/resource to work on 64bit native Delphi.williamnoreply@blogger.comtag:blogger.com,1999:blog-4640356191314871951.post-81216432350388029192010-01-17T20:46:10.985+01:002010-01-17T20:46:10.985+01:00Mono has an ahead-of-time compiling option which c...Mono has an ahead-of-time compiling option which created native exes. It's mostly used in monotouch but can be used in windows exes as wellSeanhttps://www.blogger.com/profile/09419639577416328173noreply@blogger.comtag:blogger.com,1999:blog-4640356191314871951.post-4126493219728449352010-01-17T18:38:05.172+01:002010-01-17T18:38:05.172+01:00What would be the benefit? If you choose C# is not...What would be the benefit? If you choose C# is not for its syntax only. MS too didn't care about it. And when someone needs native code, usually needs something like pointers too :) Both C# and Java are designed with their VM, JIT and frameworks in mind.<br />Embarcadero is already enough scarce on resources - that would be another compiler to write and mantain. The only benefit I can see is that C# is fashionable now while Pascal is not - but IMHO it is not enough to attract developers to something that could look like a depowered C# - with a wholly different library.LDShttps://www.blogger.com/profile/04633789460476801953noreply@blogger.comtag:blogger.com,1999:blog-4640356191314871951.post-35685960467981046352010-01-17T14:24:24.673+01:002010-01-17T14:24:24.673+01:00The COSMOS guys have a IL to ASM compiler: http://...The COSMOS guys have a IL to ASM compiler: http://www.gocosmos.org/docs/Dev/FromCSharpToBoot.EN.aspx<br /><br />--jeroenAnonymoushttps://www.blogger.com/profile/04244706419710554421noreply@blogger.comtag:blogger.com,1999:blog-4640356191314871951.post-50750657665590169152010-01-17T13:34:29.795+01:002010-01-17T13:34:29.795+01:00Or make Delphi prism a win32 compiler.
it has ver...Or make Delphi prism a win32 compiler.<br /><br />it has very nice syntax, and will compete with c# more than Delphi win32.Mohammed Nasmanhttps://www.blogger.com/profile/09506552235481159974noreply@blogger.comtag:blogger.com,1999:blog-4640356191314871951.post-14255198196609240452010-01-17T12:56:01.345+01:002010-01-17T12:56:01.345+01:00Take a loook at .NET Internals and Native Compilin...Take a loook at .NET Internals and Native Compiling at http://www.ntcore.com/files/netint_native.htmPanayiotisnoreply@blogger.comtag:blogger.com,1999:blog-4640356191314871951.post-23667512436154504722010-01-17T11:16:25.110+01:002010-01-17T11:16:25.110+01:00Or even better - make Delphi support Pascal and C#...Or even better - make Delphi support Pascal and C# syntax.Azerothnoreply@blogger.comtag:blogger.com,1999:blog-4640356191314871951.post-37178892424013279682010-01-17T08:16:03.803+01:002010-01-17T08:16:03.803+01:00The Mono guys have come up with something like thi...The Mono guys have come up with something like this for the IPhone.<br />It's called Mono-Touch. I've played with it on my Mac and it works great.<br />That said, I don't see the point in competing with MS/Mono in the C# arena.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4640356191314871951.post-89778991894497395502010-01-17T07:38:07.393+01:002010-01-17T07:38:07.393+01:00It's called C++, or if you prefer something mo...It's called C++, or if you prefer something more portable, try Java.<br /><br />C# is less language than framework - the same is true for all dotNet languages.Anonymousnoreply@blogger.com