Linked by Thom Holwerda on Tue 1st May 2012 21:59 UTC
Mono Project Wow. "One crazy idea that the team had at that dinner was to translate Android's source code to C#. Android would benefit from C# performance features like structures, P/Invoke, real generics and our more mature runtime. [...] We decided it was crazy enough to try. So we started a small skunkworks project with the goal of doing a machine translation of Android from Java to C#. We called this project XobotOS." Most of Android's layouts and controls are now in C#. The small benchmark is stunning, but as much as I admire the work, I'm wondering that this like going from bad to worse - from Oracle's Java to Microsoft's C#.
Thread beginning with comment 516642
To read all comments associated with this story, please click here.
Comment by snorkel1
by snorkel1 on Wed 2nd May 2012 03:37 UTC
snorkel1
Member since:
2012-02-25

I can't believe the load of bull love for C#, it's not that great, I would take Free Pascal over C# any day.
P/Invoke is a freaking pain in the ass, I don't have to
do any of that crap with Free Pascal and or Delphi and I have Generics etc.

They could have easily used Free Pascal instead of Java to make a Phone OS.....

Reply Score: 1

RE: Comment by snorkel1
by Priest on Wed 2nd May 2012 04:55 in reply to "Comment by snorkel1"
Priest Member since:
2006-05-12

It is a shame Object Pascal/Delphi never became more popular.

It looks like CodeGear and the Delphi trademark are now owned by Embarcadero technologies. They might make a good acquisition for Google and to be honest Google probably should have bought up CodeGear for the ~23 million Embarcadero paid Borland for it in 2008.


Also, to add to this, the primary developer responsible for Delphi eventually went on to work at Microsoft to make J++ and C#. Partly because of this extending Delphi to do what Google needs it to do would legally be cleaner than starting from scratch.

Edited 2012-05-02 05:10 UTC

Reply Parent Score: 3

RE[2]: Comment by snorkel1
by moondevil on Wed 2nd May 2012 06:17 in reply to "RE: Comment by snorkel1"
moondevil Member since:
2005-07-08

They were quite popular in Europe, but then Borland managed to mess things up, and developers lost thrust in the company.

Reply Parent Score: 3

RE: Comment by snorkel1
by henderson101 on Wed 2nd May 2012 11:02 in reply to "Comment by snorkel1"
henderson101 Member since:
2006-05-30

I can't believe the load of bull love for C#, it's not that great, I would take Free Pascal over C# any day.


Pascal is a compiled language with no garbage collection. C# is a garbage collected language that targets a VM. <sarcasm> Yes, I can see why they are exactly the same. </sarcasm> You may as well have said "why don't they use Python" or some other random language. Object Pascal is something I did as a day job for over 10 years, I know enough to tell you that you are delusional.

You also don't even know basic facts about C# and the CLR, as proven by your next statement:

P/Invoke is a freaking pain in the ass, I don't have to do any of that crap with Free Pascal and or Delphi


You prove you are clueless. Yes you do. Frequently. How do you import a function in a library in Borland's Object Pascal dialect?


procedure Foo(X: Integer); external 'BAR';


How do you do this in C#?


[DllImport("bar.dll")] void Foo( int X);


Or, if you are going to be pedantic and insist on Pascal, in Delphi Prism :


[DllImport("bar.dll")] procedure Foo(X: integer); external;


Yeah, so very different and so very hard. <sarcasm> Let's hate on P/Invoke because the syntax is just ridiculously complicated, yeah, impossible... </sarcasm>


and I have Generics etc.


No, you have "kinds of generics". The FreePascal version is more like templates (and depending on compiler build can be quite broken in my experience) and the Delphi version depends on which flavour you mean. Delphi Prism uses .Net, Delphi for Windows uses Borland/Codegear "version" and Delphi for Mac OS X and iOS uses FreePascal, which is not an exact analogue.

Reply Parent Score: 3

RE[2]: Comment by snorkel1
by Rugxulo on Wed 2nd May 2012 20:10 in reply to "RE: Comment by snorkel1"
Rugxulo Member since:
2007-10-09

Pascal is a compiled language with no garbage collection. C# is a garbage collected language that targets a VM. Yes, I can see why they are exactly the same.


FPC now has optional JVM target support. Also, don't forget that Pascal's cousin, Oberon, does have garbage collection. So it's not that far of a stretch.


"and I have Generics etc.


No, you have "kinds of generics". The FreePascal version is more like templates (and depending on compiler build can be quite broken in my experience) and the Delphi version depends on which flavour you mean.
"

I could be wrong, but I think FPC now supports both kinds of generics (their own and the Delphi variant).

Reply Parent Score: 1