X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pages%2Fblog-0005.html-inc;h=3b3edbfd256145b8fad9cac38ad9e53a8755fcba;hb=9270755094c52becbd4c19c9512fbac25e0917a9;hp=8ce79ead6166ae0274c623977976f3eaeb2198a4;hpb=ec946b6b14ea9423892698e8edfac4664f979b3c;p=sdlgit%2FSDL-Site.git diff --git a/pages/blog-0005.html-inc b/pages/blog-0005.html-inc index 8ce79ea..3b3edbf 100644 --- a/pages/blog-0005.html-inc +++ b/pages/blog-0005.html-inc @@ -1,6 +1,6 @@

-The beginnings of modular design for SDL Perl +Development Update

-
“Do or do not... there is no try.”
--yoda

The design before


The bindings before were all in one huge XS file. This was then exported into the SDL module. This means that the XS file has to handle with macros if any component (e.x SDL_Mixer) is not compiled. Moreover having ever binding in one XS file prevents use to treat C structs as object with only one point of free and malloc. This would be BEGIN and DESTROY in Perl. Also the monolithic design introduces a lot of bugs because we have to use free and malloc all over the place. Lastly SDL monolithic design has the constructor for all structs in both Perl and in XS.

The design we are aiming for

Simple one XS per Module. This would also simplify the Build code.

First Step


We have began with SDL Rect. It is in github master branch now. We are in the progress of making it back compatible. Originally SDL::Rect took named variables as parameters for new(). Now since the constructor is in XS we have only unnamed parameters.


Before


SDL::Rect->new( -x => 0, -y => 0, -width => 0, -height => 0);

After


SDL::Rect->new(0, 0, 0, 0);

Ideally we would like both ways of constructing Rect.
\ No newline at end of file +

A stoic stone will sit idle,
but will some effort,
A rolling rock will run!


In the past week the SDL Perl team has been busy! This is what we have accomplished


Commitment to Testing!

In an effort to focus on continuing our focus on testing we have setup a Smolder site for the SDL redesign process. Currently we have two platforms (linux, windows32) regularly tested on here. If there are more people following the redesign process and would like to share their test results; contact us at sdl-devel@perl.org and we will provide access to you.

SDL::Video

For the core development most of the focus has been on redesigning around the Video category of the SDL perl API. As of now we are 50% done. 19 functions out of 38 functions have been implemented and tested.


Site Redesign + Migration

On the end of the spectrum, Froggs has been hard at work on the graphical design of the site. More over with mst's help we will soon be migrating to http://sdl.perl.org.



Documentation

Moreover this week we have seen an increase effort from magnet on the SDL docs. Kudos!


SWIG Experimentation

Finally Katrina has begun looking into SWIG as alternative for SDL in the future.
\ No newline at end of file