X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pages%2Fblog-0007.html-inc;h=6e3de5785ff63fe5d5bee4838b6f576db4c2c038;hb=ca0a3441dd72000cbbbb4be484b18d0d305fdb29;hp=8c28eca94b46751695aef8b7f72582a2a6b8c279;hpb=6e0d970b5047980a17d230b86d5c27c49213d18c;p=sdlgit%2FSDL-Site.git diff --git a/pages/blog-0007.html-inc b/pages/blog-0007.html-inc index 8c28eca..6e3de57 100644 --- a/pages/blog-0007.html-inc +++ b/pages/blog-0007.html-inc @@ -1,6 +1,21 @@

-The beginnings of modular design for SDL Perl +A summer of possibilities (SDL_perl and GSOC 2010 )

-
“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 +

GSOC 2010


+

As many of the readers must know The Perl Foundation has been accepted for the GSOC 2010 program. There are several SDL_perl mentors involved in it too. Right now we are accepting student applications.


+
+Process to Apply
+


+
+

Ideas


+

Here are some ideas for SDL perl but we happily accepted student ideas.
+ Make a student wiki page on this site of your ideas! We look forward to helping you guys with your ideas :)


+
+--yapgh
+


+

\ No newline at end of file