update
[sdlgit/SDL-Site.git] / pages / blog-0000.html-inc
1 <div class="blog">
2 <div class="hover" onclick="window.location.href='blog-0001.html'"><a href="blog-0001.html">Once in a while .... (set_event_filter)</a><br /><span style="font-size: 10px">Friday, 13 November 2009</span><br />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  <br />   1   #!/usr/bin/perl -w<br />  2    use  strict;<br />[more]<br /><br /></div><hr /><div class="hover" onclick="window.location.href='blog-0002.html'"><a href="blog-0002.html">Hello Mouse? An Example of the New Event Code</a><br /><span style="font-size: 10px">Wednesday, 11 November 2009</span><br />You need the new code from the    redesign branch   to use this . <br /> #!/usr/bin/env perl<br />use SDL;<br />[more]<br /><br /></div><hr /><div class="hover" onclick="window.location.href='blog-0003.html'"><a href="blog-0003.html">Development Update</a><br /><span style="font-size: 10px">Monday, 09 November 2009</span><br />Had an exam on the weekend so I am a bit late. Here is the progress so far. <br />   SDL::Video at 97%    SDL::Events at 25%    ~1000 tests cases passing on Windows and Linux   <br />    <br />[more]<br /><br /></div><hr /><div class="hover" onclick="window.location.href='blog-0004.html'"><a href="blog-0004.html">Development Update</a><br /><span style="font-size: 10px">Monday, 02 November 2009</span><br />In the past week the SDL Perl team has been busy! This is what we have accomplished<br /> 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.<br /> 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. <br />[more]<br /><br /></div><hr /><div class="hover" onclick="window.location.href='blog-0005.html'"><a href="blog-0005.html">The Future and Beyond!</a><br /><span style="font-size: 10px">Saturday, 24 October 2009</span><br /> 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.<br /> Core Development  Acme ( Leon Brocard ):  Has started to work on the Redesign Effort with me. The help is much appreciated! Enjoy your vacation. <br /> 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. <br />[more]<br /><br /></div><hr /><div class="hover" onclick="window.location.href='blog-0006.html'"><a href="blog-0006.html">The beginnings of modular design for SDL Perl</a><br /><span style="font-size: 10px">Sunday, 11 October 2009</span><br /> The design before <br />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. <br /> The design we are aiming for Simple  one XS  per Module. This would also simplify the Build code.<br />[more]<br /><br /></div><hr /><div class="hover" onclick="window.location.href='blog-0007.html'"><a href="blog-0007.html">Why and How Frozen Bubble is going to CPAN</a><br /><span style="font-size: 10px">Friday, 02 October 2009</span><br /> <br /> [more]<br /><br /></div><hr /><div class="hover" onclick="window.location.href='blog-0008.html'"><a href="blog-0008.html">HackFest: Results</a><br /><span style="font-size: 10px">Monday, 28 September 2009</span><br />  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. <br />  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.<br /> Developers All developers please tell me what to put you guys want to be put down as on the  <br />[more]<br /><br /></div><hr /><div class="hover" onclick="window.location.href='blog-0009.html'"><a href="blog-0009.html">Updates, Falling Block Game, and Hack Fest</a><br /><span style="font-size: 10px">Wednesday, 23 September 2009</span><br />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.<br /> 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 <a href="http://widget.mibbit.com/?settings=89f140215d60860684cee2f6a917607f&amp;server=irc.perl.org&amp;channel=%23sdl">#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]<br /><br /></div><hr /><div class="hover" onclick="window.location.href='blog-0010.html'"><a href="blog-0010.html">Thanks nothingmuch, and updates</a><br /><span style="font-size: 10px">Friday, 18 September 2009</span><br /> 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.<br /> SDL Perl Tutorials <br />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.<br />[more]<br /><br /></div><hr /><div class="hover" onclick="window.location.href='blog-0011.html'"><a href="blog-0011.html">Design of SDL::Rect</a><br /><span style="font-size: 10px">Saturday, 12 September 2009</span><br />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. <br />  <br />Using the awesome  perlobject.map  as a reference I was able to create a  blessed perl  object in  XS . So now SDL::Rect-&gt;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.<br />[more]<br /><br /></div><hr /><div class="hover" onclick="window.location.href='blog-0012.html'"><a href="blog-0012.html">Updates and Design Decisions</a><br /><span style="font-size: 10px">Wednesday, 09 September 2009</span><br /> <br /> <br /> --yapgh [more]<br /><br /></div><hr /><div class="hover" onclick="window.location.href='blog-0013.html'"><a href="blog-0013.html">Why I will be sticking to CPAN</a><br /><span style="font-size: 10px">Sunday, 06 September 2009</span><br />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. <br />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. <br />If there are people looking to package SDL Perl for their platform please contact us at sdl-devel@perl.org.[more]<br /><br /></div><hr /><div class="hover" onclick="window.location.href='blog-0014.html'"><a href="blog-0014.html">Frozen Bubble coming to CPAN</a><br /><span style="font-size: 10px">Friday, 04 September 2009</span><br /> 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. &nbsp;If contributors need more information please contact me. [more]<br /><br /></div><hr /><div class="hover" onclick="window.location.href='blog-0015.html'"><a href="blog-0015.html">Newbie Friendly Perl Projects</a><br /><span style="font-size: 10px">Thursday, 03 September 2009</span><br />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.<br />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:<br />  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 [<a href="mailto:kthakore@cpan.org">link ]<br />  <br />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 .<br /> --yapgh  [more]<br /><br /></div><hr /><div class="hover" onclick="window.location.href='blog-0016.html'"><a href="blog-0016.html">Can someone please point me to good XS documentation!</a><br /><span style="font-size: 10px">Thursday, 03 September 2009</span><br /> A poor man begs,<br />A troubled man prays,<br />who shall answer?  <br />[more]<br /><br /></div><hr /><div class="hover" onclick="window.location.href='blog-0017.html'"><a href="blog-0017.html">More Games + Update</a><br /><span style="font-size: 10px">Tuesday, 01 September 2009</span><br />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). <br /> --yapgh <br />These where reported by Garry Taylor. Here is the rest of the email:<br />[more]<br /><br /></div><hr /><div class="hover" onclick="window.location.href='blog-0018.html'"><a href="blog-0018.html">Updates on Plan for v2.4</a><br /><span style="font-size: 10px">Monday, 31 August 2009</span><br /> 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. <br /> 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.  <br /> Obviously this will take some time and effort, but it will pay off in the long run. Any help will be greatly appreciated. <br />[more]<br /><br /></div><hr /><div class="hover" onclick="window.location.href='blog-0019.html'"><a href="blog-0019.html">Code is not the only thing</a><br /><span style="font-size: 10px">Sunday, 30 August 2009</span><br /> 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 .  <br /> 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.<br /> [more]<br /><br /></div><hr /><div class="hover" onclick="window.location.href='blog-0020.html'"><a href="blog-0020.html">SDL Perl v2.2.2 out and Plans for v2.4</a><br /><span style="font-size: 10px">Saturday, 29 August 2009</span><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I have release v2.2.2 which includes several bug fixes:<br />  Made App loop() faster  RT &nbsp;  Patched support for add support for gluquadric* sub  RT &nbsp;  Made App init slimer  RT &nbsp;  Added faster SDL::Color alternative  RT &nbsp;  Added better error reporting for TTFont errors  Added experimental win32 support RT  [Update: v2.2.2.5 is better for windows support] <br />  You can grab this release off  CPAN . <br />[more]<br /><br /></div><hr /><div class="hover" onclick="window.location.href='blog-0021.html'"><a href="blog-0021.html">Catching memory leaks in XS</a><br /><span style="font-size: 10px">Friday, 28 August 2009</span><br />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<br />  RETVAL   = (cast *) safemalloc( ... );  &nbsp;and safefree(...) is never called.<br />Here is a in  code example  lines 1082 on. <br />[more]<br /><br /></div><hr /><div class="hover" onclick="window.location.href='blog-0022.html'"><a href="blog-0022.html">Alien::SDL 0.01 released!!!</a><br /><span style="font-size: 10px">Thursday, 27 August 2009</span><br />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&nbsp; 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.<br />The above script is in test/testsprite.pl. <br />Until then you can do:<br />[more]<br /><br /></div><hr /><div class="hover" onclick="window.location.href='blog-0023.html'"><a href="blog-0023.html">SDL perl is coming to Strawberry!!</a><br /><span style="font-size: 10px">Wednesday, 26 August 2009</span><br />You can follow the history  here .<br />It has been tested on winXP 32/64 bit strawberry so far. Here is how you can get it.<br />  Go here to get the  code &nbsp;  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&nbsp;     or post a  bug report &nbsp; <br />[more]<br /><br /></div><hr /><div class="hover" onclick="window.location.href='blog-0024.html'"><a href="blog-0024.html">My milestones (itches) for gaming in Perl</a><br /><span style="font-size: 10px">Tuesday, 25 August 2009</span><br />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.<br />  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 <br />  <br />[more]<br /><br /></div><hr /><div class="hover" onclick="window.location.href='blog-0025.html'"><a href="blog-0025.html">SDL Perl Windows Status</a><br /><span style="font-size: 10px">Monday, 24 August 2009</span><br />Hello windows users,<br />     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. <br />Here are steps needed to solve this:<br />[more]<br /><br /></div><hr /></div>