Standards


Havoc,

I totally agree that embeddable languages is the way to go.  I’ve been using JavaScript heavily lately, along with the excellent Firebug for debugging (decent debuggers are something some very big languages are missing btw).  The biggest issue I have with JavaScript  is it’s lack of structure and horrendous scoping rules (this certainly doesn’t mean you are calling the containing object, especially when running a “method” from a callback).

What would really make JavaScript even more useful is the proposal for JavaScript 2. Unfortunately that presentation was made in 2006 but some, if not all of those features are part of the ECMA Script 4 proposal.  They even have a reference implementation up which is under a liberal license (I haven’t looked into it much but it links to a GPLv3 library).  As anything in committee, it is slow moving.  Hopefully we will see a finished spec sometime soon but I couldn’t find a timeline.

In the meantime there is an ECMAScript 4.0 to JavaScript converter call Mascara.  Unfortunately it is under the Creative Commons Attribution-Noncommercial-Share Alike 3.0 license which means the code can not be distributed on many distributions because of the Noncommercial clause.  It isn’t always clear what constitutes commercial and most distributions I know of want to allow the possibility of for pay distribution or use in a commercial product by 3rd parties.  It also isn’t clear if that license extends to the generated code.  Does anyone want to write a GPL version?

Truthfully, I have a dirty little secret - I like JavaScript with all of its warts and hackish workarounds.  I like it because I know non-programmers who can grok JavaScript but can’t wrap their heads around Python or C.  I attribute that more to the environment than the language itself because it allows for the instant gratification of hitting the reload button and seeing something happen.  But what I like even more is the idea of embeddable languages bringing that sort of development process to GNOME.  There are a few apps that already do this and though it isn’t as easy as it is with the web whenever I have jumped into one of those apps, such as experimenting with writing a quick Vi mode for gEdit, it is amazingly simple.

What would keep me working in those environments would be an embeddable debugger, object viewer and UI/extension point tree.  Whoever writes those components and makes it simple to add scripting to any GObject app will be a hero in the community.  Anyone willing to sign up?

[read this post in: ar de es fr it ja ko pt ru zh-CN ]

You know what I dislike about emotional arguments?  They are backed up by specious logic and anicdotal evidence which is often so out there it verges on being part of a fantasy land people build up to feel that they are right.  Lets examine the argument:

It seems that a “feature” that Microsoft implemented in the Windows 9.x days has appeared in Plymouth. Yes that’s right, that “feature” the I.T. world grew to hate, holding down the Ctrl or F8 keys to get into Windows Safe Mode (http://support.microsoft.com/kb/180902/en-us) has invaded Fedora. Ouch!


Now, if I take a step back, I can completely claim the following:

  • Plymouth takes away my freedom of choice (a freedom that has become a basic Human Right
  • Fedora has taken three steps back to gain one step in the name of ‘usability’

The funny thing is Mac has this feature also (hold c to boot from cdrom etc). Let’s repeat after me, “having to hold down one key after boot does not take away my freedom of choice”. And while we are at it, why do people fling around phrases like “freedom of choice” so cavalierly? It gets to the point where those once powerful words become watered down and an instantly marks ones argument as suspect. I know, let’s give more freedom of choice by bringing up the bios every time they boot. There is a lot of choices in there.

If there is an argument to be had here it is about continuity and discoverability. On the continuity side, if someone is used to seeing grub every time they boot it might be nice to keep that feature or something equivalent on upgrade but not on a fresh install. On discoverability of the feature, I would agree this is where the fustration comes from. However for the small number of (potential) users who actually like grub it would be wrong to add another option to the install. It would be much better as part of system-config-boot and if possible as an option in grub itself so that people who need to switch often can set it the first time and never have to hold down a key again. Hell, if I dual booted a lot I would like to have a key assigned to each OS I boot into but then again with virtualization being pretty good, there are better ways to run a separate OS.

Put it this way. Users may have kicked and screamed when Windows integrated DOS but Windows usage still grew. When MS decided not to show the text boot menu, again usage still grew. The way I see it is polish opened up the world of computing to more and more people.  By not polishing Linux and staying in a mindset that change is bad we will be stuck in the past while the rest of the world moves on. That is not to say every change is good but good reasoning went into this particular change and so far I haven’t seen any legitimate argument for not having it. Let’s repeat again, “having to hold down one key after boot does not take away my freedom of choice”.

[read this post in: ar de es fr it ja ko pt ru zh-CN ]

For my Fedora friends who don’t read Planet GNOME (you should):

[read this post in: ar de es fr it ja ko pt ru zh-CN ]

This really gives a kick in the pants to those who take short cuts and lose sight of software freedom.  Kudos to Mozilla who actually has the critical mass to effect real change by endorsing Vorbis and Theora on all of their OS platforms.  Soon it will be up to the content producers to make open formats ubiquitous.  Having a delivery channel which people use on a regular basis means we can finally work from start to finish without touching a closed format if we so choose.  That to me is freedom - not forcing everyone to encode in open codecs, but to allow for those who prefer open formats the ability to deliver their content without any barriers between them and their end users. There are those who don’t want to see this happen but I have to believe that momentum is starting to swing our way.

[read this post in: ar de es fr it ja ko pt ru zh-CN ]

We’ll I’m going to dive into the deep end (flames welcome) because I have been talking to people about the Qt “possibility” since Nokia bought Trolltech and GNOME was considering what to do for the future of its toolkit.  I can see the headlines of yet another GNOME developer advocating using Qt4 as the basis of future releases but this simply is not the case.  It is, in its basic form, an exercise in “what ifs?” and an iterative process of looking inward at our ecosystem and seeing the pros and cons of certain directions we could take.

Is this going to happen?

First off this is a highly unlikely scenario. The planets would have to align, Qt would have to go LGPL, Nokia would have to loosen controls on contributions to avoid a fork, the Qt team would have to accept a community which has slightly different goals and the GTK+ team would have to signal their willingness to move. We are not going to turn our back on the great work the GTK+ teams are doing and most certainly the base libraries we use such as GStreamer wouldn’t change.

What are the possible advantages?

  • Less confusion for the non-insiders on what to learn and program for
  • We can get rid of the whole Freedesktop common widgets talk (e.g. Print and File dialogs) which is nonsense and a distraction anyway
  • Hopefully less bickering in the community meaning a more unified and focused front against larger threats
  • Focus can move from the lower toolkit layers to the higher level desktop layer which really define the value differences between GNOME and KDE
  • Easier technology sharing

Note that these are all only possible advantages and may not even happen even if there was a move.

 What are the possible disadvantages?

  • More bickering on how to write applications (who’s approach to usability wins out?)
  • Less focus and a return to writing applications without a shared guideline (just look at old XLib interfaces - almost like snowflakes)
  • A loss of identity
  • Loss of amazing GTK+ developers who may feel abandoned
  • Splintering of the community so we have parallel GTK+ GNOME and Qt4 GNOME development
  • Screwing ISV’s who bank on GTK+’s stable interface
  • GTK+ isn’t just a license - we would be losing a lot by switching away from the codebase
  • Falling into the growing pains GTK+ 2.0 brought GNOME and Qt4 is still bringing KDE
  • A loss of activity at Freedesktop.org which is actually sometimes useful in producing dialogue and shared practices
  • A loss of control over the direction of the toolkit effecting the quality and feel of the GNOME desktop
  • Really a lot of development is moving to the web - will toolkits be important enough to warrant the pain of the move

What this wouldn’t be

This wouldn’t be a merging of GNOME and KDE.  Each community has a different idea of what constitutes a usable desktop and Qt would simply be an implementation detail bellow GNOME.

Conclusion

This is pretty much a pipe dream.  It solves some issues while creating a whole host of different ones.  I’m not going to advocate it other than seeing what peoples reactions are.  On the flip side if the work was put behind it, the planets aligned, and both communities came to an agreement I wouldn’t object to the arrangement.  Needless to say, I’m not holding my breath nor would I be elated or saddened if it did or did not happen. To me it is all what is best for Linux, GNOME, Free Software and the wider market. It is unclear what direction would be best (any claims to that knowledge would be suspect) but honestly and actively looking at the possibilities is a useful activity, however remote. People reading should not put their “hopes and dreams” on this or believe it to be more than it is.

[read this post in: ar de es fr it ja ko pt ru zh-CN ]

A little over a year after releasing D-Bus 1.0.0 I am proud to announce the beginning of a new series of stable releases. This is effectively the 1.2.x stable series though the version does not reflect that yet due to non-technical reasons discussed in the release notes bellow. This replaces the 1.0.x series while still staying ABI compatible. What this means is that applications written for the 1.0.x versions of D-Bus should still run unmodified using the 1.2.x library and bus.

D-Bus is a message bus system, a simple way for applications to talk to one another. In addition to interprocess communication, D-Bus helps coordinate process lifecycle; it makes it simple and reliable to code a “single instance” application or daemon, and to launch applications and daemons on demand when their services are needed.

Major Version Feature List

  • Features
    • The system bus now supports starting services on demand. This uses a setuid helper program because system bus daemon runs as a nobody user, while services it launches may need to run as a different user.
      • A design doc is available in doc/system-activation.txt
    • The TCP address format has been enhanced, such that TCP may be actually usable.
      • The dbus-daemon man page describes the new elements in the address format.
    • Support ANONYMOUS mechanism for authentication, which allows a client to authenticate as nobody in particular
      • The ANONYMOUS support means you can now use D-Bus (without a bus daemon) as a protocol for a network service provided to anonymous Internet or LAN clients.
    • Autolaunched busses now save their parameters in X11 if possible making them behave closer to busses launched through the normal mechanisms
    • inotify is now the default backend for watching configuration file changes
    • Better thread support.
    • The bus daemon now generates a globally-unique ID for itself.
      • Use this as a unique ID for a user’s session, for example.
    • Support for message serialization added for use with external transports like TUBES!!!
    • Better eavesdropping support now picks up reply messages for debugging
  • Library API additions
    • dbus_connection_set_allow_anonymous() - allow the message stream to begin if the client auths as anonymous (otherwise, the client will be dropped unless they auth as a user).
    • dbus_watch_get_unix_fd() - replaces dbus_watch_get_fd
    • dbus_watch_get_socket() - replaces dbus_watch_get_fd
    • dbus_server_get_id() - available to access the unique ID of a particular address
    • dbus_connection_get_server_id() - available to access the unique ID of a particular address
    • dbus_message_marshal() - serializes a message into a byte array
    • dbus_message_demarshal() - de-serializes a byte array into a message
  • Library API deprecations
    • dbus_watch_get_fd() - had unclear cross-platform semantics
  • Protocol additions
    • Argument path matching of the type arg0path=’/aa/bb/’ is now supported
    • New error org.freedesktop.DBus.Error.ObjectPathInUse added
    • ANONYMOUS auth support added
    • GetAll call added to the properties interface for getting a list of properties an object exports

Release Notes

  • This is the next generation supported STABLE release of D-Bus. For all intents and purposes this is the 1.2.0 release WITHOUT the planned X11/MIT license change due to a couple of license holders who have yet to respond. For the most part this license change is being pursued to simplify licensing issues and fix a couple of licensing corner cases. When this happens D-Bus will be released under the 1.2.0 version.
  • D-Bus 1.0.x effectively goes into security fix mode and will only be updated for major issues.
  • Fixed CVE-2008-0595 - security policy of the type <allow send_interface= “some.interface.WithMethods“/> work as an implicit allow for messages sent without an interface bypassing the default deny rules and potentially allowing restricted methods exported on the bus to be executed by unauthorized users.
  • Fixes dbus-launch so the session bus goes away so does D-Bus
  • Builds against latest gcc/glibc changes
  • Correctly unref connections without guids during shutdown
  • About the name: Submitted by Greg K Nicholson, Coniston Water is a lake in Cumbria, England where several water speed records have been broken. Between 1956 and 1959 Sir Malcolm’s son Donald Campbell set four successive records on the lake in Bluebird K7, a hydroplane. Wikipedia

Get D-Bus 1.1.20 “Coniston Water”!!!

Go to the D-Bus web site for more information.

[read this post in: ar de es fr it ja ko pt ru zh-CN ]

Well folks, D-Bus 1.1.3 has a little bug introduced via the inotify patch which would consume 100% of your memory, go into the OOM killer and subsequently consume 100% of your CPU. This is exactly why we have the Release Candidate series, to root out any last minute issues. Thanks to all who tested and sacrificed their productivity to get us to this next release. D-Bus 1.1.4 (1.2.0RC2) is now available for your perusal.

Download: http://dbus.freedesktop.org/releases/dbus/dbus-1.1.4.tar.gz
Homepage: http://www.freedesktop.org/wiki/Software/dbus

[read this post in: ar de es fr it ja ko pt ru zh-CN ]

Who knew if you promise something you have to deliver. Well here you are, D-Bus 1.1.3 or as I like to refer to it 1.2.0RC1. That’s right, if everything goes well within a week we should have our second major D-Bus release. I’ll wait until then to get nostalgic about the great old days of 1.0.0 “Blue Bird”. Why when I was your age D-Bus wasn’t even at a major version and we didn’t even have a recursive type system…but I digress. Here is the info you have been waiting for:

  • This release is intended to be Release Candidate 1 of major release D-Bus 1.2.0. If nothing is found to be wrong with this release it will become 1.2.0 within a week. If we need to make major changes we will release an RC2 and start the process over
    again. 
  • This is a development release, so API’s may still change if problems are found (though this is extremely unlikely). 
  • DTD for the introspection format is fixed and uploaded to the servers 
  • Sources now reside in a git repository at http://gitweb.freedesktop.org/?p=dbus/dbus.git;a=summary 
  • Argument path matching of the type arg0path=’/aa/bb/’ is now supported (see the specification for more information) 
  • New error org.freedesktop.DBus.Error.ObjectPathInUse added 
  • Autolaunched busses now save their parameters in X11 if possible making them behave closer to busses launched through the normal mechanisms 
  • inotify is now the default backend for watching configuration file changes 
  • More support for the AIX platform has been added 
  • Numerous bug fixes and performance enhancements

Download: http://dbus.freedesktop.org/releases/dbus/dbus-1.1.3.tar.gz
Homepage: http://www.freedesktop.org/wiki/Software/dbus

P.S. Anyone want to suggest a name for 1.2.0? The rules are it needs to have some logical connection to the previous major release “Blue Bird”.

[read this post in: ar de es fr it ja ko pt ru zh-CN ]

It seems Apple is not the entity fighting for a DRM-less world we thought they were and Nokia isn’t such a great patron for open source software either. For those who haven’t heard the news, lobbying by both companies have caused the W3C to strike a provision in a HTML5 draft which would make OGG Vorbis and Theora a standard media format on the web. What baffles me about this is having Vorbis and Theora media formats does not stop Apple or Nokia from distributing content using whatever proprietary format they wish. This just hobbles the web which had exploded thanks to open standards, open formats and open source. In recent years though the web has become more and more proprietary. Allowing companies to remove open formats from an open standard without nominating another equally open format to take its place allows special interests to control the development of the web. This effectively locks out a large portion of the small independent content providers from distributing next generation content such as video while moving us toward a world where a few entities control the distribution of all content.

There is a light at the end of the tunnel though. It is time for us to make the OGG family of codecs ubiquitous with or without the mandate of a standard. A large step in that direction is Firefox developing native OGG support. Easily installed IE plugins would go a long way also. It is also up to the community to post their content in an open format. The next time linux.com post a link to mp3 content that they produced and not have a Vorbis link associated with it I hope people take them to task. The same goes for people posting content on the various planets. Open formats are essential to a free and open web.

[read this post in: ar de es fr it ja ko pt ru zh-CN ]

Colin, wrong way around.  I don’t think D-Bus wants a dependency on upstart.  For various reasons we strive hard to not have complex external dependencies with the exception of some security models which is just out of necessity.   The other way around is more fesable.

[read this post in: ar de es fr it ja ko pt ru zh-CN ]

Next Page »