Motorcycle Adventures and Free Software
Henri Bergius
Biker, free software consultant, neogeographer

See also my JavaScript blog, The Universal Runtime

This entry was posted on 2010-06-23 12:02:17 UTC in 47° 0.000 N 13° 0.000 E 48km SE of Saalfelden am Steinernen Meer, AT to

Midgard Runtime brings our web framework to the desktop

  1. So, what can I do with it?

Midgard2 10.05.1 was released yesterday, bringing a long-waited feature finally to the Midgard installation packages: the Midgard Runtime.

Midgard Runtime is an application that consists of a simple Qt WebKit viewer that, when run, starts a local Midgard web server on the background and connects to it. This means that you'll have the full Midgard MVC stack available on your own desktop, in a way that is easy to install and easy to run. Get it for your favorite Linux distribution from OBS!

midgard-runtime-ratatoskr-small.png

As a whole, the Midgard Runtime stack is quite interesting:

The AppServer is particularly something that other PHP projects might find useful. Since the server itself is written in PHP you don't have any additional dependencies besides php-cli. It also means your application can use a lot more efficient caching as files have to be loaded only once, and things can be kept in memory between requests. Of course the downside is that if your PHP script dies, then the whole server is down. But that is easy to deal with by a bit of defensive programming.

At this point the Runtime is targeted at web developers interested in trying out Midgard, but eventually we'll be using the bundle system also for distributing full Midgard-powered web applications to the desktop. The progress on this can be followed on GitHub.

Compared to Nokia's Web Runtime, the Midgard Runtime should be more familiar to developers as you'll be able to write also server-side PHP code, not just JavaScript. In addition to PHP, the whole system is also accessible via any language that can handle GObject Introspection.

So, what can I do with it?

  • Install a Midgard environment with $ midgard2-runtime-bundle-simple-install
  • Start the runtime with $ midgard2-runtime-bundle-simple-run
  • Midgard MVC and components are located in ~/.midgard2/simple-bundle/. This is where you can also place your own code

Sponsored links

save money using, phone card

Comments:

Edvard Immonen on 06/23/10 14:01:28

Any chance of a dmg -install in the near future?

Henri Bergius on 06/23/10 14:10:07

At the moment Runtime is Linux-only, but we're looking at getting it to the Mac. Either this current Qt version (though that'd be a bit big because we would have to bundle lots of libraries with it), or making a Cocoa version of the thing

Edvard Immonen on 06/23/10 14:30:12

How big? 500Mb - no problems :)

Henri Bergius on 06/23/10 14:45:14

Midgard itself isn't very big, but Qt, WebKit, GLib, PHP, ... it starts to add up

Henri Bergius on 06/23/10 14:47:09

Alexey is working on the Mac port with the initial step of packaging Midgard (and Runtime) with Homebrew. When that works, then making a DMG shouldn't be hard. But as said, it may be a big download.

http://github.com/indeyets/homebrew

Edvard Immonen on 06/23/10 14:57:05

Thanks. When it's there it's on my computer. Midgard2 should be a lot easier to do stuff on, so perhaps I'll even give it a shot :)

Post a comment:

Post a comment via Google Buzz

Back