new article
[sdlgit/SDL-Site.git] / pages / tags-Perl.html-inc
1 <div class="blog"><h1>Results for tag: Perl</h1><div><a href="blog-0001.html">SDL Alpha 2: A sneak preview</a><br /><span style="font-size: 10px">Sunday, 06 December 2009</span><br /><span style="font-size: 10px">Tags:  <a href="tags-Perl.html" style="font-size: 10px">[Perl]</a> <a href="tags-Releases.html" style="font-size: 10px">[Releases]</a> <a href="tags-SDL.html" style="font-size: 10px">[SDL]</a></span><br />So over the past week we have been working hard to release the next Alpha for SDL-2.3. In this release we have ported SDL_Image completely, fixed false negatives in our testing suite, improved conditional building. Also we have also started to migrate the very pretty SDL_GFX library. Here is the test for it, enjoy.<br />    <br /> <br /><a href="blog-0001.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0002.html">Developer Release of SDL 2.3_1</a><br /><span style="font-size: 10px">Monday, 30 November 2009</span><br /><span style="font-size: 10px">Tags:  <a href="tags-Perl.html" style="font-size: 10px">[Perl]</a> <a href="tags-Releases.html" style="font-size: 10px">[Releases]</a> <a href="tags-SDL.html" style="font-size: 10px">[SDL]</a></span><br /> Alpha Release of new API After a considerable amount of hacking and rewriting we have release the first development release of SDL perl on  CPAN . <br /> Overview of 2.3_1 In this version our goal was to tackle the proper allocations and destruction of SDL resources. We have accomplished this for all SDL Core structures. Moreover we have also improved the test suite and documentation considerably. Please read the  CHANGELOG  for a more detailed look. <br /> Next steps   Complete bindings for Image, Mixer, ... so on  Come up with a method to provide threading in callbacks  Maintain and improve SDL Core as results for CPANTS come in   <br /><a href="blog-0002.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0003.html">SDL Perl Documentation: Reviewers need</a><br /><span style="font-size: 10px">Thursday, 26 November 2009</span><br /><span style="font-size: 10px">Tags:  <a href="tags-Docs.html" style="font-size: 10px">[Docs]</a> <a href="tags-Perl.html" style="font-size: 10px">[Perl]</a> <a href="tags-SDL.html" style="font-size: 10px">[SDL]</a></span><br /> Documentation   In an effort to learn from past versions of SDL Perl and improve. We have been writing lots of documentation for our users. Of course since this is the first time we have been providing documentation we need your help. Please review our docs, at  sdl.perl.org  and give us some feed back. Send us the feeback at sdl-devel@mail.org or join us at #sdl irc.perl.org <br /> --yapgh <br /><a href="blog-0003.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0004.html">Migrating Sol's Tutorial of SDL to SDL_Perl</a><br /><span style="font-size: 10px">Sunday, 15 November 2009</span><br /><span style="font-size: 10px">Tags:  <a href="tags-Example.html" style="font-size: 10px">[Example]</a> <a href="tags-Perl.html" style="font-size: 10px">[Perl]</a> <a href="tags-SDL.html" style="font-size: 10px">[SDL]</a></span><br />  Sol's Tutorials   <br /> When I was struggling with SDL C a while ago, someone recommended  Sol's Tutorial  to me. It had not only help me understand video in SDL, but I believe my code has improved using Sol's code style. I would like to pass these along to fellow SDL_Perl users too. So here is the  Ch 02  code of Sol's Tutorial in SDL_Perl. It will be getting more and more Perly as our team hacks on it.  There is more to come!<br /> <br /><a href="blog-0004.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0005.html">Once in a while .... (set_event_filter)</a><br /><span style="font-size: 10px">Friday, 13 November 2009</span><br /><span style="font-size: 10px">Tags:  <a href="tags-Perl.html" style="font-size: 10px">[Perl]</a> <a href="tags-SDL.html" style="font-size: 10px">[SDL]</a> <a href="tags-XS.html" style="font-size: 10px">[XS]</a></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 /><a href="blog-0005.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0006.html">Hello Mouse? An Example of the New Event Code</a><br /><span style="font-size: 10px">Wednesday, 11 November 2009</span><br /><span style="font-size: 10px">Tags:  <a href="tags-Perl.html" style="font-size: 10px">[Perl]</a> <a href="tags-SDL.html" style="font-size: 10px">[SDL]</a> <a href="tags-Sneak-Preview.html" style="font-size: 10px">[Sneak Preview]</a></span><br />You need the new code from the    redesign branch   to use this . <br /> #!/usr/bin/env perl<br />use SDL;<br /><a href="blog-0006.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0007.html">Development Update</a><br /><span style="font-size: 10px">Monday, 09 November 2009</span><br /><span style="font-size: 10px">Tags:  <a href="tags-Perl.html" style="font-size: 10px">[Perl]</a> <a href="tags-SDL.html" style="font-size: 10px">[SDL]</a> <a href="tags-Updates.html" style="font-size: 10px">[Updates]</a></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 /><a href="blog-0007.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0008.html">Development Update</a><br /><span style="font-size: 10px">Monday, 02 November 2009</span><br /><span style="font-size: 10px">Tags:  <a href="tags-Perl.html" style="font-size: 10px">[Perl]</a> <a href="tags-SDL.html" style="font-size: 10px">[SDL]</a> <a href="tags-Updates.html" style="font-size: 10px">[Updates]</a></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 /><a href="blog-0008.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0011.html">Why and How Frozen Bubble is going to CPAN</a><br /><span style="font-size: 10px">Friday, 02 October 2009</span><br /><span style="font-size: 10px">Tags:  <a href="tags-Frozen-Bubble.html" style="font-size: 10px">[Frozen Bubble]</a> <a href="tags-Perl.html" style="font-size: 10px">[Perl]</a> <a href="tags-SDL.html" style="font-size: 10px">[SDL]</a></span><br /> <br /> <br /><a href="blog-0011.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0012.html">HackFest: Results</a><br /><span style="font-size: 10px">Monday, 28 September 2009</span><br /><span style="font-size: 10px">Tags:  <a href="tags-HackFest.html" style="font-size: 10px">[HackFest]</a> <a href="tags-Perl.html" style="font-size: 10px">[Perl]</a> <a href="tags-SDL.html" style="font-size: 10px">[SDL]</a></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 /><a href="blog-0012.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0013.html">Updates, Falling Block Game, and Hack Fest</a><br /><span style="font-size: 10px">Wednesday, 23 September 2009</span><br /><span style="font-size: 10px">Tags:  <a href="tags-Docs.html" style="font-size: 10px">[Docs]</a> <a href="tags-Perl.html" style="font-size: 10px">[Perl]</a> <a href="tags-SDL.html" style="font-size: 10px">[SDL]</a></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  #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.<br /><a href="blog-0013.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0014.html">Thanks nothingmuch, and updates</a><br /><span style="font-size: 10px">Friday, 18 September 2009</span><br /><span style="font-size: 10px">Tags:  <a href="tags-Design.html" style="font-size: 10px">[Design]</a> <a href="tags-Perl.html" style="font-size: 10px">[Perl]</a> <a href="tags-SDL.html" style="font-size: 10px">[SDL]</a> <a href="tags-Tutorial.html" style="font-size: 10px">[Tutorial]</a></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 /><a href="blog-0014.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0015.html">Design of SDL::Rect</a><br /><span style="font-size: 10px">Saturday, 12 September 2009</span><br /><span style="font-size: 10px">Tags:  <a href="tags-Design.html" style="font-size: 10px">[Design]</a> <a href="tags-Perl.html" style="font-size: 10px">[Perl]</a> <a href="tags-SDL.html" style="font-size: 10px">[SDL]</a></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 /><a href="blog-0015.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0016.html">Updates and Design Decisions</a><br /><span style="font-size: 10px">Wednesday, 09 September 2009</span><br /><span style="font-size: 10px">Tags:  <a href="tags-Design.html" style="font-size: 10px">[Design]</a> <a href="tags-Perl.html" style="font-size: 10px">[Perl]</a> <a href="tags-SDL.html" style="font-size: 10px">[SDL]</a> <a href="tags-Updates.html" style="font-size: 10px">[Updates]</a></span><br /> <br /> <br /> --yapgh <br /><a href="blog-0016.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0017.html">Why I will be sticking to CPAN</a><br /><span style="font-size: 10px">Sunday, 06 September 2009</span><br /><span style="font-size: 10px">Tags:  <a href="tags-CPAN.html" style="font-size: 10px">[CPAN]</a> <a href="tags-Perl.html" style="font-size: 10px">[Perl]</a> <a href="tags-SDL.html" style="font-size: 10px">[SDL]</a></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.<br /><a href="blog-0017.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0018.html">Frozen Bubble coming to CPAN</a><br /><span style="font-size: 10px">Friday, 04 September 2009</span><br /><span style="font-size: 10px">Tags:  <a href="tags-CPAN.html" style="font-size: 10px">[CPAN]</a> <a href="tags-Frozen-Bubble.html" style="font-size: 10px">[Frozen Bubble]</a> <a href="tags-Perl.html" style="font-size: 10px">[Perl]</a> <a href="tags-SDL.html" style="font-size: 10px">[SDL]</a></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. <br /><a href="blog-0018.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0019.html">Newbie Friendly Perl Projects</a><br /><span style="font-size: 10px">Thursday, 03 September 2009</span><br /><span style="font-size: 10px">Tags:  <a href="tags-CPAN.html" style="font-size: 10px">[CPAN]</a> <a href="tags-Perl.html" style="font-size: 10px">[Perl]</a> <a href="tags-SDL.html" style="font-size: 10px">[SDL]</a> <a href="tags-personal.html" style="font-size: 10px">[personal]</a></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 [ link ]<br /><a href="blog-0019.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0020.html">Can someone please point me to good XS documentation!</a><br /><span style="font-size: 10px">Thursday, 03 September 2009</span><br /><span style="font-size: 10px">Tags:  <a href="tags-Perl.html" style="font-size: 10px">[Perl]</a> <a href="tags-Tutorial.html" style="font-size: 10px">[Tutorial]</a> <a href="tags-XS.html" style="font-size: 10px">[XS]</a></span><br /> A poor man begs,<br />A troubled man prays,<br />who shall answer?  <br /><a href="blog-0020.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0021.html">More Games + Update</a><br /><span style="font-size: 10px">Tuesday, 01 September 2009</span><br /><span style="font-size: 10px">Tags:  <a href="tags-Perl.html" style="font-size: 10px">[Perl]</a> <a href="tags-SDL.html" style="font-size: 10px">[SDL]</a> <a href="tags-games.html" style="font-size: 10px">[games]</a></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 /><a href="blog-0021.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0022.html">Updates on Plan for v2.4</a><br /><span style="font-size: 10px">Monday, 31 August 2009</span><br /><span style="font-size: 10px">Tags:  <a href="tags-Perl.html" style="font-size: 10px">[Perl]</a> <a href="tags-SDL.html" style="font-size: 10px">[SDL]</a> <a href="tags-Updates.html" style="font-size: 10px">[Updates]</a></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 /><a href="blog-0022.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0023.html">Code is not the only thing</a><br /><span style="font-size: 10px">Sunday, 30 August 2009</span><br /><span style="font-size: 10px">Tags:  <a href="tags-Perl.html" style="font-size: 10px">[Perl]</a> <a href="tags-Questions.html" style="font-size: 10px">[Questions]</a> <a href="tags-SDL.html" style="font-size: 10px">[SDL]</a></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 /> <br /><a href="blog-0023.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0024.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 /><span style="font-size: 10px">Tags:  <a href="tags-Perl.html" style="font-size: 10px">[Perl]</a> <a href="tags-SDL.html" style="font-size: 10px">[SDL]</a></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 /><a href="blog-0024.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0025.html">Catching memory leaks in XS</a><br /><span style="font-size: 10px">Friday, 28 August 2009</span><br /><span style="font-size: 10px">Tags:  <a href="tags-Perl.html" style="font-size: 10px">[Perl]</a> <a href="tags-SDL.html" style="font-size: 10px">[SDL]</a></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 /><a href="blog-0025.html" style="font-size: 12px">[more]</a><br /><br /></div></div>