Movatterモバイル変換


[0]ホーム

URL:


Free Market Fantasies

byMiguel de Icaza

Thisrecording of a Q&A with Noam Chomsky in 1997 could bea Q&A session done last night about bailouts, corporatewellfare, and the various distractions that they use fromkeeping us in the dark, like caring about "fiscalresponsibility".

AlsooniTunesandAmazon.

Posted on07 Sep 2012


2012 Update: Running C# on the Browser

byMiguel de Icaza

With our push to share the kernel of your software inreusable C# libraries and build a native experience perplatform (iOS, Android, WP7 on phones and WPF/Windows,MonoMac/OSX, Gtk/Linux) one component that is always missingis what about doing a web UI that also shares some of thecode.

Until very recently the answer was far from optimal, andincluded things like: put the kernel on the server and usesome .NET stack to ship the HTML to the client.

Today there are two solid choices to run your C# code onthe browser and share code between the web and your nativeUIs.

JSIL

JSIL will translate theECMA/.NET Intermediate Language into Javascript and will runyour code in the browser. JSIL is pretty sophisticated andtheir approach at running IL code on the browser also includesa bridge that allows your .NET code to reference web pageelements. This means that you can access the DOM directlyfrom C#.

You can try theirTryJSIL page to get a taste of what is possible.

Saltarelle Compiler

TheSaltarelleCompiler takes a different approach. It is a C# 4.0compiler that generates JavaScript instead of generating IL.It is interesting that this compiler is built on top of thenew NRefactory which is in turn built on top ofourC#Compiler as a Service.

It is a fresh, new compiler and unlik JSIL it is limited tocompiling the C# language. Although itismissingsome language features, it is actively being developed.

This compiler was inspired by Script# which is aC#-look-alike language that generated Javascript for consumingon the browser.

Native Client

I left NativeClient out, which is not fair, consideringthatbothBastionandGoHome Dinosaurs are both powered by Mono running on NativeClient.

The only downside with Native Client today is that it doesnot run on iOS or Android.

Posted on06 Sep 2012



Blog Search

Contact

Email:[email protected].
RSSmiguel.rss2
Twitter@migueldeicaza
MonoMac/MonoTouch blog.

Archive


[8]ページ先頭

©2009-2026 Movatter.jp