From: Tobias Leich Date: Sat, 14 Nov 2009 23:08:54 +0000 (+0100) Subject: update X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=be685547960940c8fbaaed2142f0a7eca36b8c3f;p=sdlgit%2FSDL-Site.git update --- diff --git a/pages/blog-0000.html-inc b/pages/blog-0000.html-inc index 2b8a005..ea87d5d 100644 --- a/pages/blog-0000.html-inc +++ b/pages/blog-0000.html-inc @@ -1,2 +1,2 @@
-
Once in a while .... (set_event_filter)
Friday, 13 November 2009
Tags: [Perl] [SDL] [XS]
So I have been hacking for a while on SDL::Events::set_event_filter. The code below is an example usage. The magic behind this is here
1 #!/usr/bin/perl -w
2 use strict;
[more]


Hello Mouse? An Example of the New Event Code
Wednesday, 11 November 2009
Tags: [Perl] [SDL] [Sneak Preview]
You need the new code from the redesign branch to use this .
#!/usr/bin/env perl
use SDL;
[more]


Development Update
Monday, 09 November 2009
Tags: [Perl] [SDL] [Updates]
Had an exam on the weekend so I am a bit late. Here is the progress so far.
SDL::Video at 97% SDL::Events at 25% ~1000 tests cases passing on Windows and Linux

[more]


Development Update
Monday, 02 November 2009
Tags: [Perl] [SDL] [Updates]
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.
[more]


The Future and Beyond!
Saturday, 24 October 2009
Tags: [Design] [SDL] [Updates] [games]
Updates Since the last post SDL Perl has seen an increase of interest to both use and contribute to SDL Perl. Before I dig into the updates, I would like to acknowledge them.
Core Development Acme ( Leon Brocard ): Has started to work on the Redesign Effort with me. The help is much appreciated! Enjoy your vacation.
Website and Windows Testing FROGGS (Tobias Leich): Came in as a new user to SDL Perl. And after breaking the redesigned SDL Perl in as many ways possible he has decided to help out on the new site.
[more]


The beginnings of modular design for SDL Perl
Sunday, 11 October 2009
Tags: [Design] [SDL] [Updates]
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.
[more]


Why and How Frozen Bubble is going to CPAN
Friday, 02 October 2009
Tags: [Frozen Bubble] [Perl] [SDL]


[more]


HackFest: Results
Monday, 28 September 2009
Tags: [HackFest] [Perl] [SDL]
MacOSX build is working again. It's still rough but Tetris works on it now. dngor++ SDL::Tutorial::Tetris is on CPAN as v0.15. nferraz++ SDL Perl docs are a little better now. magnet++ Finally experimental Rect and Game::Rect are behaving. There is still more work needed in Game::Rect. Moreover there are more tests on the experimental release. garu++ Also POGL is working experimentally with SDL.
Hopefully I can get the first three results into the next release soon. The next release 2.2.3 will go up as a developmental release first. Also the experimental branch is going up as version 2_4.
Developers All developers please tell me what to put you guys want to be put down as on the
[more]


Updates, Falling Block Game, and Hack Fest
Wednesday, 23 September 2009
Tags: [Docs] [Perl] [SDL]
You can grab the code . Note you will have to install deps yourself. Read the README file. It is not a tutorial yet, because it was hacked together in ~50 hours. But it playable now. During building this I found out that MacOSX (and Snow Leopard) has died again.
Hackfest So with dngor's help this sunday (27/09/09) we will have a hackfest to fix MacOSX support. Anyone with a MacOSX and wants to help is welcome on #sdl irc.perl.org . We will also try to fix up a lot of docs and the tutorial for a early next week release. Also if we can we will migrate to the new site.
[more]


Thanks nothingmuch, and updates
Friday, 18 September 2009
Tags: [Design] [Perl] [SDL] [Tutorial]
After a struggling with XS and opaque C structs in the experimental SDL::Rect for a long time. Nothingmuch comes along and solves my problem with this beautiful module XS::Object::Magic . So I will start moving my ugly XS to Magic Land.
SDL Perl Tutorials
This past week I have been working on the sorry state of SDL Perl tutorials. Currently I am working on a Tetris Clone . I am hoping to have it done by next Thrusday for TPM meeting. This tutorial is a mix of several tutorials I found online . Another Lunar Lander tutorial has been submitted by Nelson Ferraz.
[more]


Design of SDL::Rect
Saturday, 12 September 2009
Tags: [Design] [Perl] [SDL]
Lately we have been working on cleaning up the XS name spaces of SDL perl. After some bumps and falls we came up with a separated Rect module. Rect is one of the most simple C struct as shown below.

Using the awesome perlobject.map as a reference I was able to create a blessed perl object in XS . So now SDL::Rect->new(...) gave us a blessed reference ready to go. And as an icing it would destroy itself properly no matter where it was used. But once I brought it into our existing code base, garu pointed out the extending it was a little bit of a mess. So far to extend Rect we have to something like below. Any comment or advice would be much appreciated.
[more]


Updates and Design Decisions
Wednesday, 09 September 2009
Tags: [Design] [Perl] [SDL] [Updates]


--yapgh
[more]


Why I will be sticking to CPAN
Sunday, 06 September 2009
Tags: [CPAN] [Perl] [SDL]
Recently there was really long discussion on sdl-devel@perl.org about providing packages for SDL perl rather than focusing on CPAN releases. The gists of the argument was that SDL perl should be making platform specific packages for end users. I agree with this idea but I do have to face the truth.
The truth is there are very few developers currently working on SDL Perl. The truth is CPAN provides several tools that which currently drives development for SDL Perl. There are people interested in packaging SDL Perl ( kmx , jean and Jerome Quelin). The truth is there are other very critical areas we can focus on.
If there are people looking to package SDL Perl for their platform please contact us at sdl-devel@perl.org.
[more]


Frozen Bubble coming to CPAN
Friday, 04 September 2009
Tags: [CPAN] [Frozen Bubble] [Perl] [SDL]
To do this the Makefile.PL will need to be rewritten a little bit. Moreover we will need to make test using code from Frozen Bubble so that it can be smoke tested on CPAN.  If contributors need more information please contact me.
[more]


Newbie Friendly Perl Projects
Thursday, 03 September 2009
Tags: [CPAN] [Perl] [SDL] [personal]
This is a reply to szabgab's post on how to get newbies interested in Perl modules. Being a newbie in Perl myself I thought I should take a shot.
I was thinking you can make projects more accessible to newbies by having a step by step plan included with where they need to look. For example for docs of SDL_perl:
Look at SDL docs [ link ] See where SDL_perl is using the same functions [ link ] and the docs to this file [ link ] Use the pod format to add it to the source [ link to using pod ] {BONUS} Come up with tutorial or cookbook [ link to example ] Submit code to github [ link ] or email them to me [link ]

Basically assume nothing is known. I know this may seem demeaning but I am a newbie to Perl and sometimes I hate looking for crust (docs). I call it crust because a crust is useful for me to eat a pizza slice, but it has no flavor .
--yapgh
[more]


Can someone please point me to good XS documentation!
Thursday, 03 September 2009
Tags: [Perl] [Tutorial] [XS]
A poor man begs,
A troubled man prays,
who shall answer?
[more]


More Games + Update
Tuesday, 01 September 2009
Tags: [Perl] [SDL] [games]
So while I am hacking away on v2.4 and breaking a lot of things. Here is a link to some more games for SDL Perl. These only work in windows now but I will look into bringing them to CPAN (with Garry's permission).
--yapgh
These where reported by Garry Taylor. Here is the rest of the email:
[more]


Updates on Plan for v2.4
Monday, 31 August 2009
Tags: [Perl] [SDL] [Updates]
After some hunting for memory leaks, it became obvious that some rewrite of XS will be necessary. Since this will be a big undertaking I asked for some help from chromatic and garu . We came up with the following plan for v2.4.
Currently all XS is mapped to the SDL_perl module. This does not reflect the modular nature of the sdl libs. So the plan is to gradually move SDL structs and their respective functions to their correct namespaces. We will start with SDL::Rect as garu has added many tests for it. This way the build system will be a lot easier to hack since Module::Build was made for one XS per module. Moreover we will move the Build utilities to Alien::SDL, making it even simpler. The main idea is to adhere to single responsibility principle and encapsulation.
Obviously this will take some time and effort, but it will pay off in the long run. Any help will be greatly appreciated.
[more]


Code is not the only thing
Sunday, 30 August 2009
Tags: [Perl] [Questions] [SDL]
After only several weeks of maintaining SDL perl, Today I have come to noticed how important it is to update README's, docs and so on. I will redouble my effort to do this .
However I am not sure where to start updating docs. Has anyone re-documented old modules before? Any advice? If anyone is interested in helping me to sort out documentation please contact me on sdl-devel@perl.org. For people wanting to learn the SDL base there is no better way.

[more]


SDL Perl v2.2.2 out and Plans for v2.4
Saturday, 29 August 2009
Tags: [Perl] [SDL]
       I have release v2.2.2 which includes several bug fixes:
Made App loop() faster RT   Patched support for add support for gluquadric* sub RT   Made App init slimer RT   Added faster SDL::Color alternative RT   Added better error reporting for TTFont errors Added experimental win32 support RT [Update: v2.2.2.5 is better for windows support]
You can grab this release off CPAN .
[more]


Catching memory leaks in XS
Friday, 28 August 2009
Tags: [Perl] [SDL]
So I am trying to find and plug memory leaks in SDL perl. Most of the memory leaks occur because in XS a reference is still held. One very expensive mem leak was caught by TELS really early on here . The problem occurs where in XS there is
RETVAL = (cast *) safemalloc( ... );  and safefree(...) is never called.
Here is a in code example lines 1082 on.
[more]


Alien::SDL 0.01 released!!!
Thursday, 27 August 2009
Tags: [Alien] [Perl] [Releases] [SDL]
With yesterday's frantic coding to get windows compatibility setup we were left with a very crude way of installing. After some late night hacking I finally came up with Alias's suggestion to have Alien::SDL. All thanks to Alias's  generous access to his windows farm , I was able to make a easier module to install SDL deps on windows. Future plans are in place to get sources and compile them for other platform.Hopefully a SDL perl release will be out soon to use Alien::SDL now.
The above script is in test/testsprite.pl.
Until then you can do:
[more]


SDL perl is coming to Strawberry!!
Wednesday, 26 August 2009
Tags: [Perl] [Releases] [SDL]
You can follow the history here .
It has been tested on winXP 32/64 bit strawberry so far. Here is how you can get it.
Go here to get the code   Click download, choose .tar.gz Save the resultant kthakore....tar.gz somewhere Get this and extract it on C:/strawberry/ Last do pip kthakore......tar.gz (I find this so amazing!!) Play with C:/strawberry/cpan/build/SDL/test/*.pl  or post a bug report  
[more]


My milestones (itches) for gaming in Perl
Tuesday, 25 August 2009
Tags: [Perl] [SDL] [personal]
As a new Perl developer I am able to contribute with great enthusiasm due to the great community and the fancies of the language. However I know that these things will fade and I will need something else to take the place. Usually what has worked for me in the past was to set milestones. These will act as roots, keeping me interested in being involved. After all in words better than mines.
We all “scratch our own itches”. It’s why I started Linux, it’s why I started git, and it’s why I am still involved. -- Linus

[more]


SDL Perl Windows Status
Monday, 24 August 2009
Tags: [Perl] [SDL] [Strawberry]
Hello windows users,
Here is a simple picture explaining the status of SDL Perl on windows. I am hoping this changes. I know that Alias is interested in this too.
Here are steps needed to solve this:
[more]


+
Once in a while .... (set_event_filter)
Friday, 13 November 2009
Tags: [Perl] [SDL] [XS]
So I have been hacking for a while on SDL::Events::set_event_filter. The code below is an example usage. The magic behind this is here
1 #!/usr/bin/perl -w
2 use strict;
[more]


Hello Mouse? An Example of the New Event Code
Wednesday, 11 November 2009
Tags: [Perl] [SDL] [Sneak Preview]
You need the new code from the redesign branch to use this .
#!/usr/bin/env perl
use SDL;
[more]


Development Update
Monday, 09 November 2009
Tags: [Perl] [SDL] [Updates]
Had an exam on the weekend so I am a bit late. Here is the progress so far.
SDL::Video at 97% SDL::Events at 25% ~1000 tests cases passing on Windows and Linux

[more]


Development Update
Monday, 02 November 2009
Tags: [Perl] [SDL] [Updates]
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.
[more]


The Future and Beyond!
Saturday, 24 October 2009
Tags: [Design] [SDL] [Updates] [games]
Updates Since the last post SDL Perl has seen an increase of interest to both use and contribute to SDL Perl. Before I dig into the updates, I would like to acknowledge them.
Core Development Acme ( Leon Brocard ): Has started to work on the Redesign Effort with me. The help is much appreciated! Enjoy your vacation.
Website and Windows Testing FROGGS (Tobias Leich): Came in as a new user to SDL Perl. And after breaking the redesigned SDL Perl in as many ways possible he has decided to help out on the new site.
[more]


The beginnings of modular design for SDL Perl
Sunday, 11 October 2009
Tags: [Design] [SDL] [Updates]
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.
[more]


Why and How Frozen Bubble is going to CPAN
Friday, 02 October 2009
Tags: [Frozen Bubble] [Perl] [SDL]


[more]


HackFest: Results
Monday, 28 September 2009
Tags: [HackFest] [Perl] [SDL]
MacOSX build is working again. It's still rough but Tetris works on it now. dngor++ SDL::Tutorial::Tetris is on CPAN as v0.15. nferraz++ SDL Perl docs are a little better now. magnet++ Finally experimental Rect and Game::Rect are behaving. There is still more work needed in Game::Rect. Moreover there are more tests on the experimental release. garu++ Also POGL is working experimentally with SDL.
Hopefully I can get the first three results into the next release soon. The next release 2.2.3 will go up as a developmental release first. Also the experimental branch is going up as version 2_4.
Developers All developers please tell me what to put you guys want to be put down as on the
[more]


Updates, Falling Block Game, and Hack Fest
Wednesday, 23 September 2009
Tags: [Docs] [Perl] [SDL]
You can grab the code . Note you will have to install deps yourself. Read the README file. It is not a tutorial yet, because it was hacked together in ~50 hours. But it playable now. During building this I found out that MacOSX (and Snow Leopard) has died again.
Hackfest So with dngor's help this sunday (27/09/09) we will have a hackfest to fix MacOSX support. Anyone with a MacOSX and wants to help is welcome on #sdl irc.perl.org . We will also try to fix up a lot of docs and the tutorial for a early next week release. Also if we can we will migrate to the new site.
[more]


Thanks nothingmuch, and updates
Friday, 18 September 2009
Tags: [Design] [Perl] [SDL] [Tutorial]
After a struggling with XS and opaque C structs in the experimental SDL::Rect for a long time. Nothingmuch comes along and solves my problem with this beautiful module XS::Object::Magic . So I will start moving my ugly XS to Magic Land.
SDL Perl Tutorials
This past week I have been working on the sorry state of SDL Perl tutorials. Currently I am working on a Tetris Clone . I am hoping to have it done by next Thrusday for TPM meeting. This tutorial is a mix of several tutorials I found online . Another Lunar Lander tutorial has been submitted by Nelson Ferraz.
[more]


Design of SDL::Rect
Saturday, 12 September 2009
Tags: [Design] [Perl] [SDL]
Lately we have been working on cleaning up the XS name spaces of SDL perl. After some bumps and falls we came up with a separated Rect module. Rect is one of the most simple C struct as shown below.

Using the awesome perlobject.map as a reference I was able to create a blessed perl object in XS . So now SDL::Rect->new(...) gave us a blessed reference ready to go. And as an icing it would destroy itself properly no matter where it was used. But once I brought it into our existing code base, garu pointed out the extending it was a little bit of a mess. So far to extend Rect we have to something like below. Any comment or advice would be much appreciated.
[more]


Updates and Design Decisions
Wednesday, 09 September 2009
Tags: [Design] [Perl] [SDL] [Updates]


--yapgh
[more]


Why I will be sticking to CPAN
Sunday, 06 September 2009
Tags: [CPAN] [Perl] [SDL]
Recently there was really long discussion on sdl-devel@perl.org about providing packages for SDL perl rather than focusing on CPAN releases. The gists of the argument was that SDL perl should be making platform specific packages for end users. I agree with this idea but I do have to face the truth.
The truth is there are very few developers currently working on SDL Perl. The truth is CPAN provides several tools that which currently drives development for SDL Perl. There are people interested in packaging SDL Perl ( kmx , jean and Jerome Quelin). The truth is there are other very critical areas we can focus on.
If there are people looking to package SDL Perl for their platform please contact us at sdl-devel@perl.org.
[more]


Frozen Bubble coming to CPAN
Friday, 04 September 2009
Tags: [CPAN] [Frozen Bubble] [Perl] [SDL]
To do this the Makefile.PL will need to be rewritten a little bit. Moreover we will need to make test using code from Frozen Bubble so that it can be smoke tested on CPAN.  If contributors need more information please contact me.
[more]


Newbie Friendly Perl Projects
Thursday, 03 September 2009
Tags: [CPAN] [Perl] [SDL] [personal]
This is a reply to szabgab's post on how to get newbies interested in Perl modules. Being a newbie in Perl myself I thought I should take a shot.
I was thinking you can make projects more accessible to newbies by having a step by step plan included with where they need to look. For example for docs of SDL_perl:
Look at SDL docs [ link ] See where SDL_perl is using the same functions [ link ] and the docs to this file [ link ] Use the pod format to add it to the source [ link to using pod ] {BONUS} Come up with tutorial or cookbook [ link to example ] Submit code to github [ link ] or email them to me [ link ]
[more]


Can someone please point me to good XS documentation!
Thursday, 03 September 2009
Tags: [Perl] [Tutorial] [XS]
A poor man begs,
A troubled man prays,
who shall answer?
[more]


More Games + Update
Tuesday, 01 September 2009
Tags: [Perl] [SDL] [games]
So while I am hacking away on v2.4 and breaking a lot of things. Here is a link to some more games for SDL Perl. These only work in windows now but I will look into bringing them to CPAN (with Garry's permission).
--yapgh
These where reported by Garry Taylor. Here is the rest of the email:
[more]


Updates on Plan for v2.4
Monday, 31 August 2009
Tags: [Perl] [SDL] [Updates]
After some hunting for memory leaks, it became obvious that some rewrite of XS will be necessary. Since this will be a big undertaking I asked for some help from chromatic and garu . We came up with the following plan for v2.4.
Currently all XS is mapped to the SDL_perl module. This does not reflect the modular nature of the sdl libs. So the plan is to gradually move SDL structs and their respective functions to their correct namespaces. We will start with SDL::Rect as garu has added many tests for it. This way the build system will be a lot easier to hack since Module::Build was made for one XS per module. Moreover we will move the Build utilities to Alien::SDL, making it even simpler. The main idea is to adhere to single responsibility principle and encapsulation.
Obviously this will take some time and effort, but it will pay off in the long run. Any help will be greatly appreciated.
[more]


Code is not the only thing
Sunday, 30 August 2009
Tags: [Perl] [Questions] [SDL]
After only several weeks of maintaining SDL perl, Today I have come to noticed how important it is to update README's, docs and so on. I will redouble my effort to do this .
However I am not sure where to start updating docs. Has anyone re-documented old modules before? Any advice? If anyone is interested in helping me to sort out documentation please contact me on sdl-devel@perl.org. For people wanting to learn the SDL base there is no better way.

[more]


SDL Perl v2.2.2 out and Plans for v2.4
Saturday, 29 August 2009
Tags: [Perl] [SDL]
       I have release v2.2.2 which includes several bug fixes:
Made App loop() faster RT   Patched support for add support for gluquadric* sub RT   Made App init slimer RT   Added faster SDL::Color alternative RT   Added better error reporting for TTFont errors Added experimental win32 support RT [Update: v2.2.2.5 is better for windows support]
You can grab this release off CPAN .
[more]


Catching memory leaks in XS
Friday, 28 August 2009
Tags: [Perl] [SDL]
So I am trying to find and plug memory leaks in SDL perl. Most of the memory leaks occur because in XS a reference is still held. One very expensive mem leak was caught by TELS really early on here . The problem occurs where in XS there is
RETVAL = (cast *) safemalloc( ... );  and safefree(...) is never called.
Here is a in code example lines 1082 on.
[more]


Alien::SDL 0.01 released!!!
Thursday, 27 August 2009
Tags: [Alien] [Perl] [Releases] [SDL]
With yesterday's frantic coding to get windows compatibility setup we were left with a very crude way of installing. After some late night hacking I finally came up with Alias's suggestion to have Alien::SDL. All thanks to Alias's  generous access to his windows farm , I was able to make a easier module to install SDL deps on windows. Future plans are in place to get sources and compile them for other platform.Hopefully a SDL perl release will be out soon to use Alien::SDL now.
The above script is in test/testsprite.pl.
Until then you can do:
[more]


SDL perl is coming to Strawberry!!
Wednesday, 26 August 2009
Tags: [Perl] [Releases] [SDL]
You can follow the history here .
It has been tested on winXP 32/64 bit strawberry so far. Here is how you can get it.
Go here to get the code   Click download, choose .tar.gz Save the resultant kthakore....tar.gz somewhere Get this and extract it on C:/strawberry/ Last do pip kthakore......tar.gz (I find this so amazing!!) Play with C:/strawberry/cpan/build/SDL/test/*.pl  or post a bug report  
[more]


My milestones (itches) for gaming in Perl
Tuesday, 25 August 2009
Tags: [Perl] [SDL] [personal]
As a new Perl developer I am able to contribute with great enthusiasm due to the great community and the fancies of the language. However I know that these things will fade and I will need something else to take the place. Usually what has worked for me in the past was to set milestones. These will act as roots, keeping me interested in being involved. After all in words better than mines.
We all “scratch our own itches”. It’s why I started Linux, it’s why I started git, and it’s why I am still involved. -- Linus

[more]


SDL Perl Windows Status
Monday, 24 August 2009
Tags: [Perl] [SDL] [Strawberry]
Hello windows users,
Here is a simple picture explaining the status of SDL Perl on windows. I am hoping this changes. I know that Alias is interested in this too.
Here are steps needed to solve this:
[more]