LightSpeed and Mono

While most Windows developers are used to the .NET Framework being a standard part of the system, Microsoft doesn’t offer an official release which targets Linux or OS X. The Mono Project was set up to bridge this gap, and provide an open source, cross platform .NET implementation. It supports most of the same capabilities that the standard .NET Framework supports, and even allows for easy interop with native frameworks such as Cocoa under OS X (using Cocoa#).

We have heard from a number of people querying if you can use LightSpeed when developing for Mono. Up until now, we have been somewhat naive to this, however the Mono site promotes "Binary Compatible", the FAQ tells me that you can run binaries produced by the Microsoft compilers and the Mono Migration Analysis tool only popped up a couple of warnings, so I thought we should certainly look deeper at this!

So lets start with a basic model, a film festival.

FilmFestivalModel

So a simple test over this model using LightSpeed would be to fetch out some entities, and perform an insert and update, so some example code might be:

Of course this runs happily under Windows, but how about under OS X using Mono? Lets start with the simple case, taking compiled output from Visual Studio on Windows and trying to run it under Mono on OS X.

ExecutingWindows

No problem – but how about if we natively compile the same code using the Mono compiler?

Compiling

Looks great, but how does it run?

ExecutingNative

Very exciting :)

We have started targetting Mono for all future nightly builds and we are integrating a fuller suite of tests for Mono into our build process – so take LightSpeed for a test drive on Mono today and let us know how you find it! Remember to check out the Getting Started screencast to learn how to get up and running quickly with LightSpeed and post your feedback in the forums! :)

 

Jeremy

Tagged as LightSpeed

2 Responses to “LightSpeed and Mono”

  • This is awesome!

    Thank you very much, I see you’re running MacOS X, from what we’ve experienced MONO, although “multiplatform”, runs better on linux (authors do say it’s the main devel platform, the most problem free) than any other platform.

    So I would suggest digging bugs first on Linux, then on any other (FreeBSD/MacOS X), we’ve run into this “issue” when our choosen platform was BSD, and (couple of months ago) we’ve needed to go for linux…

    but maybe the situation did change…

  • Hi Jeremy,

    This is great news that LightSpeed works with Mono!

    Is it possible to get sample of say a Web Service demo’ing LightSpeed CRUD operations under Mono?

    It would be really interesting if you could provide a sample with a silverlight 4 client:)

    I dont think mono wcf is complete yet (http://www.mono-project.com/WCF), if wcf isn’t complete or buggy what would you guys recommend as the best alternative?

    I think a LightSpeed CRUD WebService example demo’ing a SOA pattern that works on Linux would be really helpful because its getting harder to find web hosts supporting windows these days. Plus you have to pay atleast twice to three times more.

    Thanks

  • Leave a Reply

Archives

Join our mailer

You should join our newsletter! Sent monthly:

Back to Top