-
-Storm clouds loom,
-Thunder cracks,
-Lightning blinds,
-Farmers rejoice.
-
-
Some quick updates:
-After someone bugged me to update the Ohloh site for
SDL perl, I finally got around to doing it.
+
â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.
-
Some good news:
-v2.2.2.11 seems to be doing a good job considering it has been started to be picked up
Debian, Mandriva and other packager maintainers. The
stats are currently at
[PASS(11) FAIL(6) NA(1) UNKNOWN(35)].
+
The design we are aiming for
Simple
one XS per Module. This would also simplify the Build code.
-
Some OK news:
-As you can see we have some fails occurring in the smoke tests. This is occurring due to the
test on Mixer.pm. Mixer.pm depends on a
sound card being available to the user running the test. This can be fixed by adjusting the test to check for sound cards before it runs but I am at a lost on how to do that.
-In regards to the unknowns occurring it is due to the *nixes and macs not having SDL libs installed. The will be fixed when Alien::SDL downloads and compiles sources.
+
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.
-
Some not-so-great news:
-Currently the XS code simplification work requires redesign and there are several different ways of redesigning. This may break backwards compatibility, hopefully we can work around this. Soon we will present the two arguments for the designs in the
mailing list.
+
Before
+SDL::Rect->new( -x => 0, -y => 0, -width => 0, -height => 0);
-Until next time here is a hint of something coming soon (credits go to garu):
-
-
-
--yapgh
-
-