Merge branch 'master' of git.shadowcat.co.uk:SDL-Site
Kartik Thakore [Fri, 27 Nov 2009 18:43:35 +0000 (13:43 -0500)]
48 files changed:
pages/SDL-Mouse.html-inc
pages/SDL-Video.html-inc
pages/blog-0000.html-inc
pages/blog-0001.html-inc
pages/blog-0002.html-inc
pages/blog-0003.html-inc
pages/blog-0004.html-inc
pages/blog-0005.html-inc
pages/blog-0006.html-inc
pages/blog-0007.html-inc
pages/blog-0008.html-inc
pages/blog-0009.html-inc
pages/blog-0010.html-inc
pages/blog-0011.html-inc
pages/blog-0012.html-inc
pages/blog-0013.html-inc
pages/blog-0014.html-inc
pages/blog-0015.html-inc
pages/blog-0016.html-inc
pages/blog-0017.html-inc
pages/blog-0018.html-inc
pages/blog-0019.html-inc
pages/blog-0020.html-inc
pages/blog-0021.html-inc
pages/blog-0022.html-inc
pages/blog-0023.html-inc
pages/blog-0024.html-inc
pages/blog-0025.html-inc
pages/documentation.html-inc
pages/tags-Alien.html-inc
pages/tags-CPAN.html-inc
pages/tags-Design.html-inc
pages/tags-Docs.html-inc
pages/tags-Example.html-inc
pages/tags-Frozen-Bubble.html-inc
pages/tags-HackFest.html-inc
pages/tags-Perl.html-inc
pages/tags-Questions.html-inc
pages/tags-Releases.html-inc
pages/tags-SDL.html-inc
pages/tags-Sneak-Preview.html-inc
pages/tags-Tutorial.html-inc
pages/tags-Updates.html-inc
pages/tags-XS.html-inc
pages/tags-games.html-inc
pages/tags-index
pages/tags-personal.html-inc
tools/LinkResolver.pm [deleted file]

index 46cbaf4..ecb828d 100644 (file)
@@ -13,7 +13,7 @@
 </ul>
 </li>
 </ul><hr />
-<!-- INDEX END -->
+<!-- INDEX END --><a href="assets/Mouse.png" target="_blank"><img src="assets/Mouse.png" style="height: 160px" alt="Mouse.png"/></a><hr />
 
 <h1 id="NAME">NAME</h1><p><a href="#TOP" class="toplink">Top</a></p>
 <div id="NAME_CONTENT">
index aef1190..56f9900 100644 (file)
@@ -21,7 +21,7 @@
 <li><a href="#set_colors_surface_start_colors">set_colors(surface,start,colors)</a></li>
 <li><a href="#set_palette_surface_flags_start_colo">set_palette(surface,flags,start,colors)</a></li>
 <li><a href="#set_gamma_r_g_b">set_gamma(r,g,b)</a></li>
-<li><a href="#get_gamma_ramp_rt_gt_bt_to_be_coded">get_gamma_ramp(rt,gt,bt) * to be coded</a></li>
+<li><a href="#get_gamma_ramp_rt_gt_bt">get_gamma_ramp(rt,gt,bt)</a></li>
 <li><a href="#set_gamma_ramp_rt_gt_bt">set_gamma_ramp(rt,gt,bt)</a></li>
 <li><a href="#map_RGB_pixel_format_r_g_b">map_RGB(pixel_format,r,g,b)</a></li>
 <li><a href="#map_RGBA_pixel_format_r_g_b_a">map_RGBA(pixel_format,r,g,b,a)</a></li>
@@ -58,7 +58,7 @@
 </ul>
 </li>
 </ul><hr />
-<!-- INDEX END -->
+<!-- INDEX END --><a href="assets/Video.png" target="_blank"><img src="assets/Video.png" style="height: 160px" alt="Video.png"/></a><hr />
 
 <h1 id="NAME">NAME</h1><p><a href="#TOP" class="toplink">Top</a></p>
 <div id="NAME_CONTENT">
@@ -382,90 +382,267 @@ The rectangle must be confined within the screen boundaries because there's no c
 </div>
 <h2 id="flip_surface">flip(surface)</h2>
 <div id="flip_surface_CONTENT">
+<pre> $flip = SDL::Video::flip( $screen_surface );
+
+</pre>
 <p>On hardware that supports double-buffering, this function sets up a flip and returns. 
 The hardware will wait for vertical retrace, and then swap video buffers before the next video surface blit or lock will return. 
-On hardware that doesn't support double-buffering or if SDL_SWSURFACE was set, this is equivalent to calling SDL::update_rect(screen, 0, 0, 0, 0)</p>
+On hardware that doesn't support double-buffering or if <code>SDL_SWSURFACE</code> was set, this is equivalent to calling 
+<code>SDL::Video::update_rect( $screen, 0, 0, 0, 0 )</code>.</p>
 <p>A software screen surface is also updated automatically when parts of a SDL window are redrawn, caused by overlapping windows or by 
 restoring from an iconified state. As a result there is no proper double buffer behavior in windowed mode for a software screen, in 
 contrast to a full screen software mode.</p>
-<p>The SDL_DOUBLEBUF flag must have been passed to SDL::set_video_mode, when setting the video mode for this function to perform hardware 
-flipping.
-flip returns 0 on success or -1 on error.</p>
-<p>Note : If you want to swap the buffers of an initialized OpenGL context, use the function SDL::gl_swap_buffers instead. </p>
+<p>The <code>SDL_DOUBLEBUF</code> flag must have been passed to <code>SDL::Video::set_video_mode</code>, when setting the video mode for this function to 
+perform hardware flipping.</p>
+<p><code>flip</code> returns <code>0</code> on success or <code>-1</code> on error.</p>
+<p><strong>Note</strong>: If you want to swap the buffers of an initialized OpenGL context, use the function <code>SDL::Video::GL_swap_buffers</code> instead. </p>
+<p>Example:</p>
+<pre> use SDL;
+ use SDL::Video;
+ use SDL::Surface;
+
+ # the size of the window box or the screen resolution if fullscreen
+ my $screen_width   = 800;
+ my $screen_height  = 600;
+
+ SDL::init(SDL_INIT_VIDEO);
+
+ # setting video mode
+ my $screen_surface = SDL::Video::set_video_mode($screen_width, $screen_height, 32, SDL_DOUBLEBUF|SDL_FULLSCREEN);
+
+ # do some video operations here
+
+ # doing page flipping
+ unless( SDL::Video::flip($screen_surface) == 0 )
+ {
+     printf( STDERR &quot;failed to swap buffers: %s\n&quot;, SDL::get_error() );
+ }
+
+ SDL::quit();
+
+</pre>
 
 </div>
 <h2 id="set_colors_surface_start_colors">set_colors(surface,start,colors)</h2>
 <div id="set_colors_surface_start_colors_CONT">
+<pre> $set_colors = SDL::Video::set_colors( $surface, $start, $color1, $color2, ... )
+
+</pre>
 <p>Sets a portion of the colormap for the given 8-bit surface. </p>
 <p>When surface is the surface associated with the current display, the display colormap will be updated with the requested colors. 
-If SDL_HWPALETTE was set in SDL::set_video_mode flags, SDL::set_colors will always return 1, and the palette is guaranteed to be set the 
-way you desire, even if the window colormap has to be warped or run under emulation.
-The color components of a SDL::Color structure are 8-bits in size, giving you a total of 2563 = 16777216 colors.
-Palettized (8-bit) screen surfaces with the SDL_HWPALETTE flag have two palettes, a logical palette that is used for mapping blits to/from 
+If <code>SDL_HWPALETTE</code> was set in <code>SDL::Video::set_video_mode</code> flags, <code>SDL::Video::set_colors</code> will always return 1, and the palette is 
+guaranteed to be set the way you desire, even if the window colormap has to be warped or run under emulation.
+The color components of a <a href="/SDL-Color.html">SDL::Color</a> structure are 8-bits in size, giving you a total of 2563 = 16777216 colors.
+Palettized (8-bit) screen surfaces with the <code>SDL_HWPALETTE</code> flag have two palettes, a logical palette that is used for mapping blits to/from 
 the surface and a physical palette (that determines how the hardware will map the colors to the display). 
-SDL::SetColors modifies both palettes (if present), and is equivalent to calling SDL::SetPalette with the flags set to 
-(SDL_LOGPAL | SDL_PHYSPAL). </p>
-<p>If surface is not a palettized surface, this function does nothing, returning 0. 
-If all of the colors were set as passed to SDL::set_colors, it will return 1.
+<code>SDL::Video::set_colors</code> modifies both palettes (if present), and is equivalent to calling <code>SDL::Video::set_palette</code> with the flags set to 
+( <code>SDL_LOGPAL | SDL_PHYSPAL</code> ). </p>
+<p>If <code>surface</code> is not a palettized surface, this function does nothing, returning 0. 
+If all of the colors were set as passed to <code>SDL::Video::set_colors</code>, it will return 1.
 If not all the color entries were set exactly as given, it will return 0, and you should look at the surface palette to determine the 
 actual color palette.</p>
 
 </div>
 <h2 id="set_palette_surface_flags_start_colo">set_palette(surface,flags,start,colors)</h2>
 <div id="set_palette_surface_flags_start_colo-2">
+<pre> $set_palette = set_palette( $surface, $flags, $start, $color1, $color2, ... );
+
+</pre>
 <p>Sets a portion of the palette for the given 8-bit surface.</p>
-<p>Palettized (8-bit) screen surfaces with the SDL_HWPALETTE flag have two palettes, a logical palette that is used for mapping blits to/from 
+<p>Palettized (8-bit) screen surfaces with the <code>SDL_HWPALETTE</code> flag have two palettes, a logical palette that is used for mapping blits to/from 
 the surface and a physical palette (that determines how the hardware will map the colors to the display). 
-Non screen surfaces have a logical palette only. SDL::blit_surface always uses the logical palette when blitting surfaces (if it has to 
+Non screen surfaces have a logical palette only. <code>SDL::Video::blit</code> always uses the logical palette when blitting surfaces (if it has to 
 convert between surface pixel formats). Because of this, it is often useful to modify only one or the other palette to achieve various 
 special color effects (e.g., screen fading, color flashes, screen dimming).</p>
-<p>This function can modify either the logical or physical palette by specifying SDL_LOGPAL or SDL_PHYSPAL the in the flags parameter.</p>
+<p>This function can modify either the logical or physical palette by specifying <code>SDL_LOGPAL</code> or <code>SDL_PHYSPAL</code> the in the flags parameter.</p>
 <p>When surface is the surface associated with the current display, the display colormap will be updated with the requested colors.
-If SDL_HWPALETTE was set in SDL::set_video_mode flags, SDL::set_palette will always return 1, and the palette is guaranteed to be set the 
-way you desire, even if the window colormap has to be warped or run under emulation.
-The color components of a SDL::Color structure are 8-bits in size, giving you a total of 2563 = 16777216 colors. </p>
-<p>If surface is not a palettized surface, this function does nothing, returning 0. If all of the colors were set as passed to SDL_SetPalette, 
-it will return 1. If not all the color entries were set exactly as given, it will return 0, and you should look at the surface palette 
+If <code>SDL_HWPALETTE</code> was set in <code>SDL::Video::set_video_mode</code> flags, <code>SDL::Video::set_palette</code> will always return 1, and the palette is 
+guaranteed to be set the way you desire, even if the window colormap has to be warped or run under emulation.
+The color components of a <code>SDL::Color</code> structure are 8-bits in size, giving you a total of 2563 = 16777216 colors. </p>
+<p>If <code>surface</code> is not a palettized surface, this function does nothing, returning <code>0</code>. If all of the colors were set as passed to <code>set_palette</code>,
+it will return <code>1</code>. If not all the color entries were set exactly as given, it will return <code>0</code>, and you should look at the surface palette 
 to determine the actual color palette.</p>
 
 </div>
 <h2 id="set_gamma_r_g_b">set_gamma(r,g,b)</h2>
 <div id="set_gamma_r_g_b_CONTENT">
+<pre> $set_gamma = SDL::Video::set_gamma( $red_gamma, $green_gamma, $blue_gamma );
+
+</pre>
 <p>Sets the &quot;gamma function&quot; for the display of each color component. Gamma controls the brightness/contrast of colors displayed on the screen. 
 A gamma value of 1.0 is identity (i.e., no adjustment is made).</p>
 <p>This function adjusts the gamma based on the &quot;gamma function&quot; parameter, you can directly specify lookup tables for gamma adjustment 
 with SDL::set_gamma_ramp.</p>
-<p>Not all display hardware is able to change gamma.
-SDL::set_gamma returns -1 on error.</p>
-<p>Warning: Under Linux (X.org Gnome and Xfce), gamma settings affects the entire display (including the desktop)! </p>
+<p><strong>Note</strong>: Not all display hardware is able to change gamma.</p>
+<p><code>SDL::Video::set_gamma</code> returns <code>-1</code> on error.</p>
+<p><strong>Warning</strong>: Under Linux (X.org Gnome and Xfce), gamma settings affects the entire display (including the desktop)! </p>
+<p>Example:</p>
+<pre> use SDL;
+ use SDL::Video;
+ use SDL::Surface;
+ use SDL::Rect;
+ use Time::HiRes qw( usleep );
+
+ # the size of the window box or the screen resolution if fullscreen
+ my $screen_width   = 800;
+ my $screen_height  = 600;
+
+ SDL::init(SDL_INIT_VIDEO);
+
+ # setting video mode
+ my $screen_surface = SDL::Video::set_video_mode($screen_width, $screen_height, 32, SDL_SWSURFACE);
+
+ # drawing something somewhere
+ my $mapped_color   = SDL::Video::map_RGB($screen_surface-&gt;format(), 128, 128, 128); # gray
+ SDL::Video::fill_rect($screen_surface, 
+                       SDL::Rect-&gt;new($screen_width / 4, $screen_height / 4, $screen_width / 2, $screen_height / 2), 
+                       $mapped_color);
+
+ # update the whole screen
+ SDL::Video::update_rect($screen_surface, 0, 0, $screen_width, $screen_height);
+
+ usleep(500000);
+
+ for(1..20)
+ {
+    SDL::Video::set_gamma( 1 - $_ / 20, 1, 1 );
+       usleep(40000);
+ }
+
+ for(1..20)
+ {
+    SDL::Video::set_gamma( $_ / 20, 1, 1 );
+       usleep(40000);
+ }
+
+ SDL::Video::set_gamma( 1, 1, 1 );
+
+ usleep(500000);
+
+ SDL::quit();
+
+</pre>
 
 </div>
-<h2 id="get_gamma_ramp_rt_gt_bt_to_be_coded">get_gamma_ramp(rt,gt,bt) * to be coded</h2>
-<div id="get_gamma_ramp_rt_gt_bt_to_be_coded_">
+<h2 id="get_gamma_ramp_rt_gt_bt">get_gamma_ramp(rt,gt,bt)</h2>
+<div id="get_gamma_ramp_rt_gt_bt_CONTENT">
+<pre> $get_gamma_ramp = SDL::Video::get_gamma_ramp( \@red_table, \@green_table, \@blue_table );
+
+</pre>
 <p>Gets the gamma translation lookup tables currently used by the display. Each table is an array of 256 Uint16 values.
 SDL::get_gamma_ramp returns -1 on error.</p>
+<pre> use SDL;
+ use SDL::Video;
+
+ SDL::init(SDL_INIT_VIDEO);
+
+ my (@red, @green, @blue);
+
+ my $ret = SDL::Video::get_gamma_ramp( \@red, \@green, \@blue );
+
+ if( -1 == $ret )
+ {
+     print( &quot;an error occoured&quot; );
+ }
+ else
+ {
+     printf( &quot;for gamma = 1.0: red=0x%04X, green=0x%04X, blue=0x%04X\n&quot;, $red[255], $green[255], $blue[255] );
+     printf( &quot;for gamma = 0.5: red=0x%04X, green=0x%04X, blue=0x%04X\n&quot;, $red[127], $green[127], $blue[127] );
+     printf( &quot;for gamma = 0.0: red=0x%04X, green=0x%04X, blue=0x%04X\n&quot;, $red[0],   $green[0],   $blue[0]   );
+ }
+
+ SDL::quit();
+
+</pre>
 
 </div>
 <h2 id="set_gamma_ramp_rt_gt_bt">set_gamma_ramp(rt,gt,bt)</h2>
 <div id="set_gamma_ramp_rt_gt_bt_CONTENT">
-<p>Sets the gamma lookup tables for the display for each color component. Each table is an array of 256 Uint16 values, representing a 
+<pre> $set_gamma_ramp = SDL::Video::set_gamma_ramp( \@red_table, \@green_table, \@blue_table );
+
+</pre>
+<p>Sets the gamma lookup tables for the display for each color component. Each table is an array ref of 256 Uint16 values, representing a 
 mapping between the input and output for that channel.
 The input is the index into the array, and the output is the 16-bit gamma value at that index, scaled to the output color precision. 
 You may pass NULL to any of the channels to leave them unchanged.</p>
 <p>This function adjusts the gamma based on lookup tables, you can also have the gamma calculated based on a &quot;gamma function&quot; parameter 
-with SDL::set_gamma.</p>
+with <code>SDL::Video::set_gamma</code>.</p>
 <p>Not all display hardware is able to change gamma. 
-SDL::set_gamma_ramp returns -1 on error.</p>
+<code>SDL::Video::set_gamma_ramp</code> returns <code>-1</code> on error (or if gamma adjustment is not supported).</p>
+<p>Example:</p>
+<pre> use SDL;
+ use SDL::Video;
+
+ SDL::init(SDL_INIT_VIDEO);
+
+ my (@red, @green, @blue);
+
+ my $ret = SDL::Video::get_gamma_ramp( \@red, \@green, \@blue );
+
+ $red[127] = 0xFF00;
+
+    $ret = SDL::Video::set_gamma_ramp( \@red, \@green, \@blue );
+
+    $ret = SDL::Video::get_gamma_ramp( \@red, \@green, \@blue );
+
+ if( -1 == $ret )
+ {
+     print( &quot;an error occoured&quot; );
+ }
+ else
+ {
+     printf( &quot;for gamma = 1.0: red=0x%04X, green=0x%04X, blue=0x%04X\n&quot;, $red[255], $green[255], $blue[255] );
+     printf( &quot;for gamma = 0.5: red=0x%04X, green=0x%04X, blue=0x%04X\n&quot;, $red[127], $green[127], $blue[127] );
+     printf( &quot;for gamma = 0.0: red=0x%04X, green=0x%04X, blue=0x%04X\n&quot;, $red[0],   $green[0],   $blue[0]   );
+ }
+
+ SDL::quit();
+
+</pre>
 
 </div>
 <h2 id="map_RGB_pixel_format_r_g_b">map_RGB(pixel_format,r,g,b)</h2>
 <div id="map_RGB_pixel_format_r_g_b_CONTENT">
-<p>Maps the RGB color value to the specified SDL::pixel_format and returns the pixel value as a 32-bit int.
+<pre> $pixel = SDL::Video::map_RGB( $pixel_format, $r, $g, $b );
+
+</pre>
+<p>Maps the RGB color value to the specified <a href="/SDL-PixelFormat.html">SDL::PixelFormat</a> and returns the pixel value as a 32-bit int.
 If the format has a palette (8-bit) the index of the closest matching color in the palette will be returned.
 If the specified pixel format has an alpha component it will be returned as all 1 bits (fully opaque). </p>
-<p>SDL::map_RGP returns a pixel value best approximating the given RGB color value for a given pixel format.
-If the SDL::pixel_format's  bpp (color depth) is less than 32-bpp then the unused upper bits of the return value can safely be ignored 
+<p><code>SDL::Video::map_RGB</code> returns a pixel value best approximating the given RGB color value for a given pixel format.
+If the <a href="/SDL-PixelFormat.html">SDL::PixelFormat</a>'s  bpp (color depth) is less than 32-bpp then the unused upper bits of the return value can safely be ignored 
 (e.g., with a 16-bpp format the return value can be assigned to a Uint16, and similarly a Uint8 for an 8-bpp format).</p>
+<pre> use SDL;
+ use SDL::Video;
+ use SDL::PixelFormat;
+ use SDL::Surface;
+
+ SDL::init(SDL_INIT_VIDEO);
+
+ my $screen_surface = SDL::Video::set_video_mode(640, 480, 16, SDL_SWSURFACE);
+ #                                                          ^-- 16 bits per pixel
+
+ $r = 0x9C;
+ $g = 0xDC;
+ $b = 0x67;
+
+ printf( &quot;for 24bpp it is: 0x%02X 0x%02X 0x%02X\n&quot;, $r, $g, $b);
+
+ my $_16bit = SDL::Video::map_RGB( $screen_surface-&gt;format, $r, $g, $b );
+
+ # 16bpp is 5 bits red, 6 bits green and 5 bits blue
+ # we will obtain the values for each color and calculating them back to 24bit color system
+ $r = (($_16bit &amp; 0b1111100000000000) &gt;&gt; 11) / 0b11111  * 0b11111111;
+ $g = (($_16bit &amp; 0b0000011111100000) &gt;&gt;  5) / 0b111111 * 0b11111111;
+ $b =  ($_16bit &amp; 0b0000000000011111)        / 0b11111  * 0b11111111;
+
+ printf( &quot;for 16bpp it is: 0x%02X 0x%02X 0x%02X\n&quot;, $r, $g, $b );
+
+ # so color #9CDC67 becomes #9CDE62
+
+ SDL::quit();
+
+</pre>
 
 </div>
 <h2 id="map_RGBA_pixel_format_r_g_b_a">map_RGBA(pixel_format,r,g,b,a)</h2>
index db57701..09455c2 100644 (file)
@@ -1,2 +1,2 @@
 <div class="blog"><h1>Articles</h1>
-<div><a href="blog-0001.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:</span> <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><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-0001.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0002.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:</span> <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><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-0002.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0003.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:</span> <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><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-0003.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0004.html">Development Update</a><br /><span style="font-size: 10px">Monday, 09 November 2009</span><br /><span style="font-size: 10px">Tags:</span> <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><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-0004.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0005.html">Development Update</a><br /><span style="font-size: 10px">Monday, 02 November 2009</span><br /><span style="font-size: 10px">Tags:</span> <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><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-0005.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0006.html">The Future and Beyond!</a><br /><span style="font-size: 10px">Saturday, 24 October 2009</span><br /><span style="font-size: 10px">Tags:</span> <a href="tags-Design.html" style="font-size: 10px">[Design]</a> <a href="tags-SDL.html" style="font-size: 10px">[SDL]</a> <a href="tags-Updates.html" style="font-size: 10px">[Updates]</a> <a href="tags-games.html" style="font-size: 10px">[games]</a><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 /><a href="blog-0006.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0007.html">The beginnings of modular design for SDL Perl</a><br /><span style="font-size: 10px">Sunday, 11 October 2009</span><br /><span style="font-size: 10px">Tags:</span> <a href="tags-Design.html" style="font-size: 10px">[Design]</a> <a href="tags-SDL.html" style="font-size: 10px">[SDL]</a> <a href="tags-Updates.html" style="font-size: 10px">[Updates]</a><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 /><a href="blog-0007.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0008.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:</span> <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><br /> <br /> <br /><a href="blog-0008.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0009.html">HackFest: Results</a><br /><span style="font-size: 10px">Monday, 28 September 2009</span><br /><span style="font-size: 10px">Tags:</span> <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><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-0009.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0010.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:</span> <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><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-0010.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0011.html">Thanks nothingmuch, and updates</a><br /><span style="font-size: 10px">Friday, 18 September 2009</span><br /><span style="font-size: 10px">Tags:</span> <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><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-0011.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0012.html">Design of SDL::Rect</a><br /><span style="font-size: 10px">Saturday, 12 September 2009</span><br /><span style="font-size: 10px">Tags:</span> <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><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-0012.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0013.html">Updates and Design Decisions</a><br /><span style="font-size: 10px">Wednesday, 09 September 2009</span><br /><span style="font-size: 10px">Tags:</span> <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><br /> <br /> <br /> --yapgh <br /><a href="blog-0013.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0014.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:</span> <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><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-0014.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0015.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:</span> <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><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-0015.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0016.html">Newbie Friendly Perl Projects</a><br /><span style="font-size: 10px">Thursday, 03 September 2009</span><br /><span style="font-size: 10px">Tags:</span> <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><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-0016.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0017.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:</span> <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><br /> A poor man begs,<br />A troubled man prays,<br />who shall answer?  <br /><a href="blog-0017.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0018.html">More Games + Update</a><br /><span style="font-size: 10px">Tuesday, 01 September 2009</span><br /><span style="font-size: 10px">Tags:</span> <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><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-0018.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0019.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:</span> <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><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-0019.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0020.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:</span> <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><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-0020.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0021.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:</span> <a href="tags-Perl.html" style="font-size: 10px">[Perl]</a> <a href="tags-SDL.html" style="font-size: 10px">[SDL]</a><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-0021.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0022.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:</span> <a href="tags-Perl.html" style="font-size: 10px">[Perl]</a> <a href="tags-SDL.html" style="font-size: 10px">[SDL]</a><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-0022.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0023.html">Alien::SDL 0.01 released!!!</a><br /><span style="font-size: 10px">Thursday, 27 August 2009</span><br /><span style="font-size: 10px">Tags:</span> <a href="tags-Alien.html" style="font-size: 10px">[Alien]</a> <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><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 /><a href="blog-0023.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0024.html">SDL perl is coming to Strawberry!!</a><br /><span style="font-size: 10px">Wednesday, 26 August 2009</span><br /><span style="font-size: 10px">Tags:</span> <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><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 /><a href="blog-0024.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0025.html">My milestones (itches) for gaming in Perl</a><br /><span style="font-size: 10px">Tuesday, 25 August 2009</span><br /><span style="font-size: 10px">Tags:</span> <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><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 /><a href="blog-0025.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /></div>
+<div><a href="blog-0001.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:</span> <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><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-0001.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0002.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:</span> <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><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-0002.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0003.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:</span> <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><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-0003.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0004.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:</span> <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><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-0004.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0005.html">Development Update</a><br /><span style="font-size: 10px">Monday, 09 November 2009</span><br /><span style="font-size: 10px">Tags:</span> <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><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-0005.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0006.html">Development Update</a><br /><span style="font-size: 10px">Monday, 02 November 2009</span><br /><span style="font-size: 10px">Tags:</span> <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><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-0006.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0007.html">The Future and Beyond!</a><br /><span style="font-size: 10px">Saturday, 24 October 2009</span><br /><span style="font-size: 10px">Tags:</span> <a href="tags-Design.html" style="font-size: 10px">[Design]</a> <a href="tags-SDL.html" style="font-size: 10px">[SDL]</a> <a href="tags-Updates.html" style="font-size: 10px">[Updates]</a> <a href="tags-games.html" style="font-size: 10px">[games]</a><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 /><a href="blog-0007.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0008.html">The beginnings of modular design for SDL Perl</a><br /><span style="font-size: 10px">Sunday, 11 October 2009</span><br /><span style="font-size: 10px">Tags:</span> <a href="tags-Design.html" style="font-size: 10px">[Design]</a> <a href="tags-SDL.html" style="font-size: 10px">[SDL]</a> <a href="tags-Updates.html" style="font-size: 10px">[Updates]</a><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 /><a href="blog-0008.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0009.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:</span> <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><br /> <br /> <br /><a href="blog-0009.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0010.html">HackFest: Results</a><br /><span style="font-size: 10px">Monday, 28 September 2009</span><br /><span style="font-size: 10px">Tags:</span> <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><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-0010.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0011.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:</span> <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><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-0011.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0012.html">Thanks nothingmuch, and updates</a><br /><span style="font-size: 10px">Friday, 18 September 2009</span><br /><span style="font-size: 10px">Tags:</span> <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><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-0012.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0013.html">Design of SDL::Rect</a><br /><span style="font-size: 10px">Saturday, 12 September 2009</span><br /><span style="font-size: 10px">Tags:</span> <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><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-0013.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0014.html">Updates and Design Decisions</a><br /><span style="font-size: 10px">Wednesday, 09 September 2009</span><br /><span style="font-size: 10px">Tags:</span> <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><br /> <br /> <br /> --yapgh <br /><a href="blog-0014.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0015.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:</span> <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><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-0015.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0016.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:</span> <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><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-0016.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0017.html">Newbie Friendly Perl Projects</a><br /><span style="font-size: 10px">Thursday, 03 September 2009</span><br /><span style="font-size: 10px">Tags:</span> <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><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-0017.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0018.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:</span> <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><br /> A poor man begs,<br />A troubled man prays,<br />who shall answer?  <br /><a href="blog-0018.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0019.html">More Games + Update</a><br /><span style="font-size: 10px">Tuesday, 01 September 2009</span><br /><span style="font-size: 10px">Tags:</span> <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><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-0019.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0020.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:</span> <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><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-0020.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0021.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:</span> <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><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-0021.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0022.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:</span> <a href="tags-Perl.html" style="font-size: 10px">[Perl]</a> <a href="tags-SDL.html" style="font-size: 10px">[SDL]</a><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-0022.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0023.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:</span> <a href="tags-Perl.html" style="font-size: 10px">[Perl]</a> <a href="tags-SDL.html" style="font-size: 10px">[SDL]</a><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-0023.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0024.html">Alien::SDL 0.01 released!!!</a><br /><span style="font-size: 10px">Thursday, 27 August 2009</span><br /><span style="font-size: 10px">Tags:</span> <a href="tags-Alien.html" style="font-size: 10px">[Alien]</a> <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><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 /><a href="blog-0024.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0025.html">SDL perl is coming to Strawberry!!</a><br /><span style="font-size: 10px">Wednesday, 26 August 2009</span><br /><span style="font-size: 10px">Tags:</span> <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><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 /><a href="blog-0025.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /></div>
index bc1ede2..62c9b48 100644 (file)
@@ -1,6 +1,6 @@
 <div class="blog">
 <h1 id="NAME">
-Migrating Sol's Tutorial of SDL to SDL_Perl
+SDL Perl Documentation: Reviewers need
 </h1>
 <div class="CONTENT">
-<div style="text-align: right;"><i>If I have seen further it is only by standing on the shoulders of giants. --Newton</i><br /></div><br /><div class="separator" style="clear: both; text-align: center;"><a href="http://3.bp.blogspot.com/_NnqjAQEn1Xo/SwBpohYidDI/AAAAAAAAAB4/51y9QJh5osI/s1600-h/solsch2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/_NnqjAQEn1Xo/SwBpohYidDI/AAAAAAAAAB4/51y9QJh5osI/s320/solsch2.png" /></a><br /></div><br /><h1><a href="http://sol.gfxile.net/gp/index.html">Sol's Tutorials</a> </h1><br /><p>When I was struggling with SDL C a while ago, someone recommended <a href="http://sol.gfxile.net/gp/index.html">Sol's Tutorial</a> 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 <a href="http://github.com/kthakore/SDL_perl/blob/redesign/examples/sols/ch02.pl">Ch 02</a> 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 /></p><br /><p>To use this code you need the new Redesigned SDL_Perl Library </p><br /><h1>Getting SDL Dependencies </h1><br />Only If you are on Linux (debian/ubuntu) you need the following dependencies:<br /><br /><pre>$ sudo apt-get install libsdl-net1.2-dev libsdl-mixer1.2-dev libsmpeg-dev libsdl1.2-dev libsdl-image1.2-dev libsdl-ttf2.0-dev </pre><br />On Windows we recommend using <a href="http://strawberryperl.com/">Strawberry Perl</a>. It comes with SDL-1.2.13 header files and libs included.<br /><br />Both Windows and Linux needs to install Alien::SDL<br /><br /><pre>$ cpan Alien::SDL</pre>** Add sudo to this for Linux<br /><br /><h1>Getting Bleeding SDL </h1><br />The bleeding SDL is on github.  Click download on this <a href="http://github.com/kthakore/SDL_perl/tree/redesign"> site </a>.<br /><br />Extract it and cd into the folder run <br /><pre>$ cpan . </pre>** The dot is needed <br />** in Linux you may need to do sudo<br /><br />Then you can run this script by doing<br /><br /><pre>$ perl examples/sols/ch02.pl </pre><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-3277380868908060119?l=yapgh.blogspot.com' alt='' /></div></div></div>
\ No newline at end of file
+<div style="text-align: right;"><i><br />The written word, <br />survives; <br />the tests of Time,<br />the fires of Hades,<br />and wrath of Pluto.<br /></i><br /></div><br /><h1>Documentation </h1><p>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 <a href="http://sdl.perl.org/documentation.html">sdl.perl.org</a> and give us some feed back. Send us the feeback at sdl-devel@mail.org or join us at #sdl irc.perl.org</p><br /><i>--yapgh</i><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-1574568821593098925?l=yapgh.blogspot.com' alt='' /></div></div></div>
\ No newline at end of file
index 51a18a5..bc1ede2 100644 (file)
@@ -1,6 +1,6 @@
 <div class="blog">
 <h1 id="NAME">
-Once in a while .... (set_event_filter)
+Migrating Sol's Tutorial of SDL to SDL_Perl
 </h1>
 <div class="CONTENT">
-<div style="text-align: right;"><i> <br />Once in a while <br />Things just work! <br /></i><br /></div><br /><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 <a href="http://github.com/kthakore/SDL_perl/blob/1712fe42d62c2a3e382e6bf91366eb2ce9d2f5f4/src/Core/Events.xs">here</a> <br /><br /><pre><a href="" name="line1"> 1</a> <span style="color: #444444;">#!/usr/bin/perl -w<br /><a href="" name="line2"> 2</a> </span><b>use</b> strict;<br /><a href="" name="line3"> 3</a> <b>use</b> warnings;<br /><a href="" name="line4"> 4</a> <b>use</b> SDL v2.3; <span style="color: #444444;">#Require the redesign branch<br /><a href="" name="line5"> 5</a> </span><b>use</b> SDL::Video;<br /><a href="" name="line6"> 6</a> <b>use</b> SDL::Event;<br /><a href="" name="line7"> 7</a> <b>use</b> SDL::Events;<br /><a href="" name="line8"> 8</a> <br /><a href="" name="line9"> 9</a> SDL::init<span style="color: #4444ff;"><b>(</b></span>SDL_INIT_VIDEO<span style="color: #4444ff;"><b>)</b></span>;<br /><a href="" name="line10">10</a> <b>my</b> <span style="color: #2040a0;">$display</span> = SDL::Video::set_video_mode<span style="color: #4444ff;"><b>(</b></span>640,480,32, SDL_SWSURFACE <span style="color: #4444ff;"><b>)</b></span>;<br /><a href="" name="line11">11</a> <b>my</b>  <span style="color: #2040a0;">$event</span> = SDL::Event-&gt;<b>new</b><span style="color: #4444ff;"><b>(</b></span><span style="color: #4444ff;"><b>)</b></span>;<br /><a href="" name="line12">12</a> <br /><a href="" name="line13">13</a> <span style="color: #444444;">#This filters out all ActiveEvents<br /><a href="" name="line14">14</a> </span><b>my</b> <span style="color: #2040a0;">$filter</span> = sub <span style="color: #4444ff;"><b>{</b></span> <br /><a href="" name="line15">15</a>      <b>my</b> <span style="color: #4444ff;"><b>(</b></span><span style="color: #2040a0;">$e</span>, <span style="color: #2040a0;">$type</span><span style="color: #4444ff;"><b>)</b></span> = <span style="color: #4444ff;"><b>(</b></span><span style="color: #2040a0;">$_</span><span style="color: #4444ff;"><b>[</b></span>0<span style="color: #4444ff;"><b>]</b></span>, <span style="color: #2040a0;">$_</span><span style="color: #4444ff;"><b>[</b></span>0<span style="color: #4444ff;"><b>]</b></span>-&gt;type<span style="color: #4444ff;"><b>)</b></span>; <br /><a href="" name="line16">16</a>      <b>if</b><span style="color: #4444ff;"><b>(</b></span><span style="color: #2040a0;">$type</span> == SDL_ACTIVEEVENT<span style="color: #4444ff;"><b>)</b></span><span style="color: #4444ff;"><b>{</b></span> <b>return</b> 0 <span style="color: #4444ff;"><b>}</b></span> <br /><a href="" name="line17">17</a>      <b>elsif</b><span style="color: #4444ff;"><b>(</b></span><span style="color: #2040a0;">$type</span> == SDL_MOUSEBUTTONDOWN &amp;&amp; <span style="color: #2040a0;">$e</span>-&gt;button_button == 1<span style="color: #4444ff;"><b>)</b></span><span style="color: #4444ff;"><b>{</b></span> <b>return</b> 0 <span style="color: #4444ff;"><b>}</b></span><br /><a href="" name="line18">18</a>      <b>else</b> <span style="color: #4444ff;"><b>{</b></span> <b>return</b> 1; <span style="color: #4444ff;"><b>}</b></span><br /><a href="" name="line19">19</a>       <span style="color: #4444ff;"><b>}</b></span>;<br /><a href="" name="line20">20</a> <br /><a href="" name="line21">21</a> SDL::Events::set_event_filter<span style="color: #4444ff;"><b>(</b></span><span style="color: #2040a0;">$filter</span><span style="color: #4444ff;"><b>)</b></span>;<br /><a href="" name="line22">22</a> <br /><a href="" name="line23">23</a> <b>while</b><span style="color: #4444ff;"><b>(</b></span>1<span style="color: #4444ff;"><b>)</b></span><br /><a href="" name="line24">24</a> <span style="color: #4444ff;"><b>{</b></span><br /><a href="" name="line25">25</a> <br /><a href="" name="line26">26</a>   SDL::Events::pump_events<span style="color: #4444ff;"><b>(</b></span><span style="color: #4444ff;"><b>)</b></span>;<br /><a href="" name="line27">27</a>   <b>if</b><span style="color: #4444ff;"><b>(</b></span>SDL::Events::poll_event<span style="color: #4444ff;"><b>(</b></span><span style="color: #2040a0;">$event</span><span style="color: #4444ff;"><b>)</b></span><span style="color: #4444ff;"><b>)</b></span><br /><a href="" name="line28">28</a>   <span style="color: #4444ff;"><b>{</b></span><br /><a href="" name="line29">29</a> <br /><a href="" name="line30">30</a>   <b>if</b><span style="color: #4444ff;"><b>(</b></span>  <span style="color: #2040a0;">$event</span>-&gt;type == SDL_ACTIVEEVENT<span style="color: #4444ff;"><b>)</b></span><br /><a href="" name="line31">31</a>  <span style="color: #4444ff;"><b>{</b></span><br /><a href="" name="line32">32</a>  <span style="color: brown;"><b>print</b></span> <span style="color: green;">"Hello Mouse!!!<span style="color: #77dd77;">\n</span>"</span> <b>if</b> <span style="color: #4444ff;"><b>(</b></span><span style="color: #2040a0;">$event</span>-&gt;active_gain &amp;&amp; <span style="color: #4444ff;"><b>(</b></span><span style="color: #2040a0;">$event</span>-&gt;active_state == SDL_APPMOUSEFOCUS<span style="color: #4444ff;"><b>)</b></span> <span style="color: #4444ff;"><b>)</b></span>;<br /><a href="" name="line33">33</a>  <span style="color: brown;"><b>print</b></span> <span style="color: green;">"Bye Mouse!!!<span style="color: #77dd77;">\n</span>"</span> <b>if</b> <span style="color: #4444ff;"><b>(</b></span>!<span style="color: #2040a0;">$event</span>-&gt;active_gain &amp;&amp; <span style="color: #4444ff;"><b>(</b></span><span style="color: #2040a0;">$event</span>-&gt;active_state == SDL_APPMOUSEFOCUS<span style="color: #4444ff;"><b>)</b></span> <span style="color: #4444ff;"><b>)</b></span>;<br /><a href="" name="line34">34</a>         <span style="color: #4444ff;"><b>}</b></span><br /><a href="" name="line35">35</a>   <b>if</b><span style="color: #4444ff;"><b>(</b></span> <span style="color: #2040a0;">$event</span>-&gt;type == SDL_MOUSEBUTTONDOWN<span style="color: #4444ff;"><b>)</b></span><br /><a href="" name="line36">36</a>    <span style="color: #4444ff;"><b>{</b></span><br /><a href="" name="line37">37</a>  <b>my</b> <span style="color: #4444ff;"><b>(</b></span><span style="color: #2040a0;">$x</span>, <span style="color: #2040a0;">$y</span>, <span style="color: #2040a0;">$but</span> <span style="color: #4444ff;"><b>)</b></span> = <span style="color: #4444ff;"><b>(</b></span><span style="color: #2040a0;">$event</span>-&gt;button_x, <span style="color: #2040a0;">$event</span>-&gt;button_y, <span style="color: #2040a0;">$event</span>-&gt;button_button<span style="color: #4444ff;"><b>)</b></span>;<br /><a href="" name="line38">38</a>  <span style="color: brown;"><b>warn</b></span> <span style="color: green;">"<span style="color: #2040a0;">$but</span> CLICK!!! at <span style="color: #2040a0;">$x</span> and <span style="color: #2040a0;">$y</span> <span style="color: #77dd77;">\n</span>"</span>;<br /><a href="" name="line39">39</a>  <span style="color: #4444ff;"><b>}</b></span><br /><a href="" name="line40">40</a> <br /><a href="" name="line41">41</a>       <b>last</b> <b>if</b><span style="color: #4444ff;"><b>(</b></span><span style="color: #2040a0;">$event</span>-&gt;type == SDL_QUIT<span style="color: #4444ff;"><b>)</b></span>;<br /><a href="" name="line42">42</a>   <span style="color: #4444ff;"><b>}</b></span><br /><a href="" name="line43">43</a> <span style="color: #4444ff;"><b>}</b></span><br /><a href="" name="line44">44</a> SDL::quit<span style="color: #4444ff;"><b>(</b></span><span style="color: #4444ff;"><b>)</b></span>;&nbsp;</pre><pre>&nbsp;</pre><pre>&nbsp;</pre><pre>Tinker with $filter and look at perldoc lib/SDL/pods/Event.pod.&nbsp;</pre><pre>&nbsp;</pre><pre>Have fun,</pre><pre>--yapgh</pre><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-2301663122914111362?l=yapgh.blogspot.com' alt='' /></div></div></div>
\ No newline at end of file
+<div style="text-align: right;"><i>If I have seen further it is only by standing on the shoulders of giants. --Newton</i><br /></div><br /><div class="separator" style="clear: both; text-align: center;"><a href="http://3.bp.blogspot.com/_NnqjAQEn1Xo/SwBpohYidDI/AAAAAAAAAB4/51y9QJh5osI/s1600-h/solsch2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/_NnqjAQEn1Xo/SwBpohYidDI/AAAAAAAAAB4/51y9QJh5osI/s320/solsch2.png" /></a><br /></div><br /><h1><a href="http://sol.gfxile.net/gp/index.html">Sol's Tutorials</a> </h1><br /><p>When I was struggling with SDL C a while ago, someone recommended <a href="http://sol.gfxile.net/gp/index.html">Sol's Tutorial</a> 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 <a href="http://github.com/kthakore/SDL_perl/blob/redesign/examples/sols/ch02.pl">Ch 02</a> 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 /></p><br /><p>To use this code you need the new Redesigned SDL_Perl Library </p><br /><h1>Getting SDL Dependencies </h1><br />Only If you are on Linux (debian/ubuntu) you need the following dependencies:<br /><br /><pre>$ sudo apt-get install libsdl-net1.2-dev libsdl-mixer1.2-dev libsmpeg-dev libsdl1.2-dev libsdl-image1.2-dev libsdl-ttf2.0-dev </pre><br />On Windows we recommend using <a href="http://strawberryperl.com/">Strawberry Perl</a>. It comes with SDL-1.2.13 header files and libs included.<br /><br />Both Windows and Linux needs to install Alien::SDL<br /><br /><pre>$ cpan Alien::SDL</pre>** Add sudo to this for Linux<br /><br /><h1>Getting Bleeding SDL </h1><br />The bleeding SDL is on github.  Click download on this <a href="http://github.com/kthakore/SDL_perl/tree/redesign"> site </a>.<br /><br />Extract it and cd into the folder run <br /><pre>$ cpan . </pre>** The dot is needed <br />** in Linux you may need to do sudo<br /><br />Then you can run this script by doing<br /><br /><pre>$ perl examples/sols/ch02.pl </pre><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-3277380868908060119?l=yapgh.blogspot.com' alt='' /></div></div></div>
\ No newline at end of file
index 83a05ba..51a18a5 100644 (file)
@@ -1,6 +1,6 @@
 <div class="blog">
 <h1 id="NAME">
-Hello Mouse? An Example of the New Event Code
+Once in a while .... (set_event_filter)
 </h1>
 <div class="CONTENT">
-<div style="text-align: right;"><i>Any code that is not marketed is dead code <br />--mst</i><br /></div><br />You need the new code from the <b> <a href="http://http://github.com/kthakore/SDL_Perl/tree/redesign">redesign branch</a></b> to use this . <br /><br /><pre class="fake-gist" id="fake-gist-231987">#!/usr/bin/env perl<br /><br />use SDL;<br />use SDL::Events;<br />use SDL::Event;<br />use SDL::Video; <br /><br />SDL::init(SDL_INIT_VIDEO);<br /><br />my $display = SDL::Video::set_video_mode(640,480,32, SDL_SWSURFACE );<br />my $event   = SDL::Event-&gt;new(); <br /><br />while(1)<br />{   <br /> SDL::Events::pump_events();  <br /><br /> if(SDL::Events::poll_event($event) &amp;&amp; $event-&gt;type == SDL_ACTIVEEVENT)<br /> {<br />  print "Hello Mouse!!!\n" if ($event-&gt;active_gain  &amp;&amp; ($event-&gt;active_state == SDL_APPMOUSEFOCUS) );<br />  print "Bye Mouse!!!\n"   if (!$event-&gt;active_gain &amp;&amp; ($event-&gt;active_state == SDL_APPMOUSEFOCUS) );<br /> }   <br /> <br /> exit if($event-&gt;type == SDL_QUIT);<br />}</pre><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-4268622242266513664?l=yapgh.blogspot.com' alt='' /></div></div></div>
\ No newline at end of file
+<div style="text-align: right;"><i> <br />Once in a while <br />Things just work! <br /></i><br /></div><br /><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 <a href="http://github.com/kthakore/SDL_perl/blob/1712fe42d62c2a3e382e6bf91366eb2ce9d2f5f4/src/Core/Events.xs">here</a> <br /><br /><pre><a href="" name="line1"> 1</a> <span style="color: #444444;">#!/usr/bin/perl -w<br /><a href="" name="line2"> 2</a> </span><b>use</b> strict;<br /><a href="" name="line3"> 3</a> <b>use</b> warnings;<br /><a href="" name="line4"> 4</a> <b>use</b> SDL v2.3; <span style="color: #444444;">#Require the redesign branch<br /><a href="" name="line5"> 5</a> </span><b>use</b> SDL::Video;<br /><a href="" name="line6"> 6</a> <b>use</b> SDL::Event;<br /><a href="" name="line7"> 7</a> <b>use</b> SDL::Events;<br /><a href="" name="line8"> 8</a> <br /><a href="" name="line9"> 9</a> SDL::init<span style="color: #4444ff;"><b>(</b></span>SDL_INIT_VIDEO<span style="color: #4444ff;"><b>)</b></span>;<br /><a href="" name="line10">10</a> <b>my</b> <span style="color: #2040a0;">$display</span> = SDL::Video::set_video_mode<span style="color: #4444ff;"><b>(</b></span>640,480,32, SDL_SWSURFACE <span style="color: #4444ff;"><b>)</b></span>;<br /><a href="" name="line11">11</a> <b>my</b>  <span style="color: #2040a0;">$event</span> = SDL::Event-&gt;<b>new</b><span style="color: #4444ff;"><b>(</b></span><span style="color: #4444ff;"><b>)</b></span>;<br /><a href="" name="line12">12</a> <br /><a href="" name="line13">13</a> <span style="color: #444444;">#This filters out all ActiveEvents<br /><a href="" name="line14">14</a> </span><b>my</b> <span style="color: #2040a0;">$filter</span> = sub <span style="color: #4444ff;"><b>{</b></span> <br /><a href="" name="line15">15</a>      <b>my</b> <span style="color: #4444ff;"><b>(</b></span><span style="color: #2040a0;">$e</span>, <span style="color: #2040a0;">$type</span><span style="color: #4444ff;"><b>)</b></span> = <span style="color: #4444ff;"><b>(</b></span><span style="color: #2040a0;">$_</span><span style="color: #4444ff;"><b>[</b></span>0<span style="color: #4444ff;"><b>]</b></span>, <span style="color: #2040a0;">$_</span><span style="color: #4444ff;"><b>[</b></span>0<span style="color: #4444ff;"><b>]</b></span>-&gt;type<span style="color: #4444ff;"><b>)</b></span>; <br /><a href="" name="line16">16</a>      <b>if</b><span style="color: #4444ff;"><b>(</b></span><span style="color: #2040a0;">$type</span> == SDL_ACTIVEEVENT<span style="color: #4444ff;"><b>)</b></span><span style="color: #4444ff;"><b>{</b></span> <b>return</b> 0 <span style="color: #4444ff;"><b>}</b></span> <br /><a href="" name="line17">17</a>      <b>elsif</b><span style="color: #4444ff;"><b>(</b></span><span style="color: #2040a0;">$type</span> == SDL_MOUSEBUTTONDOWN &amp;&amp; <span style="color: #2040a0;">$e</span>-&gt;button_button == 1<span style="color: #4444ff;"><b>)</b></span><span style="color: #4444ff;"><b>{</b></span> <b>return</b> 0 <span style="color: #4444ff;"><b>}</b></span><br /><a href="" name="line18">18</a>      <b>else</b> <span style="color: #4444ff;"><b>{</b></span> <b>return</b> 1; <span style="color: #4444ff;"><b>}</b></span><br /><a href="" name="line19">19</a>       <span style="color: #4444ff;"><b>}</b></span>;<br /><a href="" name="line20">20</a> <br /><a href="" name="line21">21</a> SDL::Events::set_event_filter<span style="color: #4444ff;"><b>(</b></span><span style="color: #2040a0;">$filter</span><span style="color: #4444ff;"><b>)</b></span>;<br /><a href="" name="line22">22</a> <br /><a href="" name="line23">23</a> <b>while</b><span style="color: #4444ff;"><b>(</b></span>1<span style="color: #4444ff;"><b>)</b></span><br /><a href="" name="line24">24</a> <span style="color: #4444ff;"><b>{</b></span><br /><a href="" name="line25">25</a> <br /><a href="" name="line26">26</a>   SDL::Events::pump_events<span style="color: #4444ff;"><b>(</b></span><span style="color: #4444ff;"><b>)</b></span>;<br /><a href="" name="line27">27</a>   <b>if</b><span style="color: #4444ff;"><b>(</b></span>SDL::Events::poll_event<span style="color: #4444ff;"><b>(</b></span><span style="color: #2040a0;">$event</span><span style="color: #4444ff;"><b>)</b></span><span style="color: #4444ff;"><b>)</b></span><br /><a href="" name="line28">28</a>   <span style="color: #4444ff;"><b>{</b></span><br /><a href="" name="line29">29</a> <br /><a href="" name="line30">30</a>   <b>if</b><span style="color: #4444ff;"><b>(</b></span>  <span style="color: #2040a0;">$event</span>-&gt;type == SDL_ACTIVEEVENT<span style="color: #4444ff;"><b>)</b></span><br /><a href="" name="line31">31</a>  <span style="color: #4444ff;"><b>{</b></span><br /><a href="" name="line32">32</a>  <span style="color: brown;"><b>print</b></span> <span style="color: green;">"Hello Mouse!!!<span style="color: #77dd77;">\n</span>"</span> <b>if</b> <span style="color: #4444ff;"><b>(</b></span><span style="color: #2040a0;">$event</span>-&gt;active_gain &amp;&amp; <span style="color: #4444ff;"><b>(</b></span><span style="color: #2040a0;">$event</span>-&gt;active_state == SDL_APPMOUSEFOCUS<span style="color: #4444ff;"><b>)</b></span> <span style="color: #4444ff;"><b>)</b></span>;<br /><a href="" name="line33">33</a>  <span style="color: brown;"><b>print</b></span> <span style="color: green;">"Bye Mouse!!!<span style="color: #77dd77;">\n</span>"</span> <b>if</b> <span style="color: #4444ff;"><b>(</b></span>!<span style="color: #2040a0;">$event</span>-&gt;active_gain &amp;&amp; <span style="color: #4444ff;"><b>(</b></span><span style="color: #2040a0;">$event</span>-&gt;active_state == SDL_APPMOUSEFOCUS<span style="color: #4444ff;"><b>)</b></span> <span style="color: #4444ff;"><b>)</b></span>;<br /><a href="" name="line34">34</a>         <span style="color: #4444ff;"><b>}</b></span><br /><a href="" name="line35">35</a>   <b>if</b><span style="color: #4444ff;"><b>(</b></span> <span style="color: #2040a0;">$event</span>-&gt;type == SDL_MOUSEBUTTONDOWN<span style="color: #4444ff;"><b>)</b></span><br /><a href="" name="line36">36</a>    <span style="color: #4444ff;"><b>{</b></span><br /><a href="" name="line37">37</a>  <b>my</b> <span style="color: #4444ff;"><b>(</b></span><span style="color: #2040a0;">$x</span>, <span style="color: #2040a0;">$y</span>, <span style="color: #2040a0;">$but</span> <span style="color: #4444ff;"><b>)</b></span> = <span style="color: #4444ff;"><b>(</b></span><span style="color: #2040a0;">$event</span>-&gt;button_x, <span style="color: #2040a0;">$event</span>-&gt;button_y, <span style="color: #2040a0;">$event</span>-&gt;button_button<span style="color: #4444ff;"><b>)</b></span>;<br /><a href="" name="line38">38</a>  <span style="color: brown;"><b>warn</b></span> <span style="color: green;">"<span style="color: #2040a0;">$but</span> CLICK!!! at <span style="color: #2040a0;">$x</span> and <span style="color: #2040a0;">$y</span> <span style="color: #77dd77;">\n</span>"</span>;<br /><a href="" name="line39">39</a>  <span style="color: #4444ff;"><b>}</b></span><br /><a href="" name="line40">40</a> <br /><a href="" name="line41">41</a>       <b>last</b> <b>if</b><span style="color: #4444ff;"><b>(</b></span><span style="color: #2040a0;">$event</span>-&gt;type == SDL_QUIT<span style="color: #4444ff;"><b>)</b></span>;<br /><a href="" name="line42">42</a>   <span style="color: #4444ff;"><b>}</b></span><br /><a href="" name="line43">43</a> <span style="color: #4444ff;"><b>}</b></span><br /><a href="" name="line44">44</a> SDL::quit<span style="color: #4444ff;"><b>(</b></span><span style="color: #4444ff;"><b>)</b></span>;&nbsp;</pre><pre>&nbsp;</pre><pre>&nbsp;</pre><pre>Tinker with $filter and look at perldoc lib/SDL/pods/Event.pod.&nbsp;</pre><pre>&nbsp;</pre><pre>Have fun,</pre><pre>--yapgh</pre><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-2301663122914111362?l=yapgh.blogspot.com' alt='' /></div></div></div>
\ No newline at end of file
index 2b974bc..83a05ba 100644 (file)
@@ -1,6 +1,6 @@
 <div class="blog">
 <h1 id="NAME">
-Development Update
+Hello Mouse? An Example of the New Event Code
 </h1>
 <div class="CONTENT">
-<div style="text-align: right;"><i>Short and Sweet</i><br /></div><br />Had an exam on the weekend so I am a bit late. Here is the progress so far. <br /><ul><li> SDL::Video at 97% </li><li> SDL::Events at 25% </li><li> ~1000 tests cases passing on Windows and Linux </li></ul><br /><a href="http://sdlperl.ath.cx:8080/app/public_graphs/start/1"><img alt="SDL Smoke tests" src="http://sdlperl.ath.cx:8080/app/public_graphs/image/1" /> </a><br /><br />The major release maybe coming quicker than we thought. FROGGS++ for helping a lot out on this. However we need <b>more testers!!</b> Please contact us on <a href="http://widget.mibbit.com/?settings=89f140215d60860684cee2f6a917607f&amp;server=irc.perl.org&amp;channel=%23sdl">#sdl</a> and we will set you up with an account on <a href="http://sdlperl.ath.cx:8080/">Smolder</a>.<br /><br />[Edit] Please read http://sdlperl.ath.cx/projects/SDLPerl/wiki/Testing on how to get started in test!<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-4856093544888768121?l=yapgh.blogspot.com' alt='' /></div></div></div>
\ No newline at end of file
+<div style="text-align: right;"><i>Any code that is not marketed is dead code <br />--mst</i><br /></div><br />You need the new code from the <b> <a href="http://http://github.com/kthakore/SDL_Perl/tree/redesign">redesign branch</a></b> to use this . <br /><br /><pre class="fake-gist" id="fake-gist-231987">#!/usr/bin/env perl<br /><br />use SDL;<br />use SDL::Events;<br />use SDL::Event;<br />use SDL::Video; <br /><br />SDL::init(SDL_INIT_VIDEO);<br /><br />my $display = SDL::Video::set_video_mode(640,480,32, SDL_SWSURFACE );<br />my $event   = SDL::Event-&gt;new(); <br /><br />while(1)<br />{   <br /> SDL::Events::pump_events();  <br /><br /> if(SDL::Events::poll_event($event) &amp;&amp; $event-&gt;type == SDL_ACTIVEEVENT)<br /> {<br />  print "Hello Mouse!!!\n" if ($event-&gt;active_gain  &amp;&amp; ($event-&gt;active_state == SDL_APPMOUSEFOCUS) );<br />  print "Bye Mouse!!!\n"   if (!$event-&gt;active_gain &amp;&amp; ($event-&gt;active_state == SDL_APPMOUSEFOCUS) );<br /> }   <br /> <br /> exit if($event-&gt;type == SDL_QUIT);<br />}</pre><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-4268622242266513664?l=yapgh.blogspot.com' alt='' /></div></div></div>
\ No newline at end of file
index 63b22df..2b974bc 100644 (file)
@@ -3,4 +3,4 @@
 Development Update
 </h1>
 <div class="CONTENT">
-<div style="text-align: right;"><i><br />A stoic stone will sit idle, <br />but will some effort,<br />A rolling rock will run!<br /></i><br /></div><br />In the past week the SDL Perl team has been busy! This is what we have accomplished<br /><br /><br /><h3>Commitment to Testing!</h3>In an effort to focus on continuing our focus on testing we have setup a <a href="http://sdlperl.ath.cx:8080/app/public_projects/smoke_reports/1">Smolder</a> 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 /><br /><h3>SDL::Video</h3>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 <a href="http://bit.ly/2ar7bK">50% done</a>. 19 functions out of 38 functions have been implemented and tested. <br /><br /><br /><h3>Site Redesign + Migration</h3>On the end of the spectrum, Froggs has been hard at work on the <a href="http://froggs.de/sdlperl/">graphical design </a>of the site. More over with mst's help we will soon be migrating to http://sdl.perl.org. <br /><br /><br /><br /><h3>Documentation</h3>Moreover this week we have seen an increase effort from magnet on the <a href="http://github.com/kthakore/SDL_perl/commits/redesign">SDL docs</a>. Kudos!<br /><br /><br /><h3>SWIG Experimentation</h3>Finally <a href="http://github.com/kthakore/SDL_perl/commits/swig">Katrina</a> has begun looking into SWIG as alternative for SDL in the future.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-5353247044730007101?l=yapgh.blogspot.com' alt='' /></div></div></div>
\ No newline at end of file
+<div style="text-align: right;"><i>Short and Sweet</i><br /></div><br />Had an exam on the weekend so I am a bit late. Here is the progress so far. <br /><ul><li> SDL::Video at 97% </li><li> SDL::Events at 25% </li><li> ~1000 tests cases passing on Windows and Linux </li></ul><br /><a href="http://sdlperl.ath.cx:8080/app/public_graphs/start/1"><img alt="SDL Smoke tests" src="http://sdlperl.ath.cx:8080/app/public_graphs/image/1" /> </a><br /><br />The major release maybe coming quicker than we thought. FROGGS++ for helping a lot out on this. However we need <b>more testers!!</b> Please contact us on <a href="http://widget.mibbit.com/?settings=89f140215d60860684cee2f6a917607f&amp;server=irc.perl.org&amp;channel=%23sdl">#sdl</a> and we will set you up with an account on <a href="http://sdlperl.ath.cx:8080/">Smolder</a>.<br /><br />[Edit] Please read http://sdlperl.ath.cx/projects/SDLPerl/wiki/Testing on how to get started in test!<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-4856093544888768121?l=yapgh.blogspot.com' alt='' /></div></div></div>
\ No newline at end of file
index 76d8474..63b22df 100644 (file)
@@ -1,6 +1,6 @@
 <div class="blog">
 <h1 id="NAME">
-The Future and Beyond!
+Development Update
 </h1>
 <div class="CONTENT">
-<div style="text-align: right;"><i>I do not think about awesomeness...<br />I just am awesomeness<br />n.n<br />--<a href="http://irclog.perlgeek.de/sdl/2009-10-20#i_1620287">KatrinaTheLamia</a></i><br /></div><br /><h3>Updates</h3>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 /><h3>Core Development</h3><b>Acme (<a href="http://use.perl.org/%7Eacme/journal/">Leon Brocard</a>):</b> Has started to work on the Redesign Effort with me. The help is much appreciated! Enjoy your vacation. <br /><br /><h3>Website and Windows Testing</h3><b>FROGGS (Tobias Leich):</b> 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 /><br /><br /><h3>Last Legacy Release</h3><br />Ok! Now this weekend hopefully we will release our last legacy release, after this we move on! This release will focus on showing of SDL + Perl possibilities.<br /><h3>Pong + SDL::Game::Rect</h3><a href="http://onionstand.blogspot.com/">garu</a> has been working on making SDL object extensions that provide a more perly way to use and play with the SDL bindings. To demonstrate the benefits of this SDL::Tutorial::Pong is done and being polished up. SDL::Game::Rect is a peek in to the design and vision we have for SDL down the road.<br /><h3>Design</h3>The design we have settled on for future release for SDL Perl can be broken in to two layers, SDL::* and SDL::Game::*. Previously the SDL Perl library tried to provide C bindings and provide Perl Idiomatic access. This was messy in regards to the single responsibility principle (do one thing and do it well).<br /><br />We have decided to separate these two focuses into the two name spaces SDL::* and SDL::Game::*. SDL::* will provide straight access to SDL's C API, nothing less and nothing more. SDL::Game::* will extend and make pretty unicorns for Perl. <br /><br />This design has already begin to pay of. One major benefit been in the XS <a href="http://github.com/kthakore/SDL_perl/commit/20f544ea4f3e7b34c68445aba89ed9c69d411ddf">readability</a>. Moreover since structs are treated as objects, Perl manages their destruction, and deliver less memory leaks.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-4327446497206876141?l=yapgh.blogspot.com' alt='' /></div></div></div>
\ No newline at end of file
+<div style="text-align: right;"><i><br />A stoic stone will sit idle, <br />but will some effort,<br />A rolling rock will run!<br /></i><br /></div><br />In the past week the SDL Perl team has been busy! This is what we have accomplished<br /><br /><br /><h3>Commitment to Testing!</h3>In an effort to focus on continuing our focus on testing we have setup a <a href="http://sdlperl.ath.cx:8080/app/public_projects/smoke_reports/1">Smolder</a> 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 /><br /><h3>SDL::Video</h3>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 <a href="http://bit.ly/2ar7bK">50% done</a>. 19 functions out of 38 functions have been implemented and tested. <br /><br /><br /><h3>Site Redesign + Migration</h3>On the end of the spectrum, Froggs has been hard at work on the <a href="http://froggs.de/sdlperl/">graphical design </a>of the site. More over with mst's help we will soon be migrating to http://sdl.perl.org. <br /><br /><br /><br /><h3>Documentation</h3>Moreover this week we have seen an increase effort from magnet on the <a href="http://github.com/kthakore/SDL_perl/commits/redesign">SDL docs</a>. Kudos!<br /><br /><br /><h3>SWIG Experimentation</h3>Finally <a href="http://github.com/kthakore/SDL_perl/commits/swig">Katrina</a> has begun looking into SWIG as alternative for SDL in the future.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-5353247044730007101?l=yapgh.blogspot.com' alt='' /></div></div></div>
\ No newline at end of file
index fe4b8d4..76d8474 100644 (file)
@@ -1,6 +1,6 @@
 <div class="blog">
 <h1 id="NAME">
-The beginnings of modular design for SDL Perl
+The Future and Beyond!
 </h1>
 <div class="CONTENT">
-<div style="text-align: right;"><i>“Do or do not... there is no try.”</i><br /></div><div style="text-align: right;"><i>--yoda </i><br /><br /></div><h1>The design before</h1><br />The bindings before were all in <a href="http://github.com/kthakore/SDL_perl/blob/master/src/SDL.xs">one huge XS file</a>. 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 /><br /><h1>The design we are aiming for</h1>Simple <a href="http://github.com/kthakore/SDL_perl/blob/master/src/Rect.xs">one XS</a> per Module. This would also simplify the Build code.<br /><br /><h2>First Step </h2><br />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 <a href="http://github.com/kthakore/SDL_perl/blob/master/src/Rect.xs#L16">is in XS</a> we have only unnamed parameters. <br /><br /><br /><h3>Before</h3><br />SDL::Rect-&gt;new( -x =&gt; 0, -y =&gt; 0, -width =&gt; 0, -height =&gt; 0);<br /><br /><h3>After</h3><br />SDL::Rect-&gt;new(0, 0, 0, 0);<br /><br />Ideally we would like both ways of constructing Rect.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-6151839795039915111?l=yapgh.blogspot.com' alt='' /></div></div></div>
\ No newline at end of file
+<div style="text-align: right;"><i>I do not think about awesomeness...<br />I just am awesomeness<br />n.n<br />--<a href="http://irclog.perlgeek.de/sdl/2009-10-20#i_1620287">KatrinaTheLamia</a></i><br /></div><br /><h3>Updates</h3>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 /><h3>Core Development</h3><b>Acme (<a href="http://use.perl.org/%7Eacme/journal/">Leon Brocard</a>):</b> Has started to work on the Redesign Effort with me. The help is much appreciated! Enjoy your vacation. <br /><br /><h3>Website and Windows Testing</h3><b>FROGGS (Tobias Leich):</b> 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 /><br /><br /><h3>Last Legacy Release</h3><br />Ok! Now this weekend hopefully we will release our last legacy release, after this we move on! This release will focus on showing of SDL + Perl possibilities.<br /><h3>Pong + SDL::Game::Rect</h3><a href="http://onionstand.blogspot.com/">garu</a> has been working on making SDL object extensions that provide a more perly way to use and play with the SDL bindings. To demonstrate the benefits of this SDL::Tutorial::Pong is done and being polished up. SDL::Game::Rect is a peek in to the design and vision we have for SDL down the road.<br /><h3>Design</h3>The design we have settled on for future release for SDL Perl can be broken in to two layers, SDL::* and SDL::Game::*. Previously the SDL Perl library tried to provide C bindings and provide Perl Idiomatic access. This was messy in regards to the single responsibility principle (do one thing and do it well).<br /><br />We have decided to separate these two focuses into the two name spaces SDL::* and SDL::Game::*. SDL::* will provide straight access to SDL's C API, nothing less and nothing more. SDL::Game::* will extend and make pretty unicorns for Perl. <br /><br />This design has already begin to pay of. One major benefit been in the XS <a href="http://github.com/kthakore/SDL_perl/commit/20f544ea4f3e7b34c68445aba89ed9c69d411ddf">readability</a>. Moreover since structs are treated as objects, Perl manages their destruction, and deliver less memory leaks.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-4327446497206876141?l=yapgh.blogspot.com' alt='' /></div></div></div>
\ No newline at end of file
index 627ed29..fe4b8d4 100644 (file)
@@ -1,6 +1,6 @@
 <div class="blog">
 <h1 id="NAME">
-Why and How Frozen Bubble is going to CPAN
+The beginnings of modular design for SDL Perl
 </h1>
 <div class="CONTENT">
-<div style="text-align: right;"><i>A single drop,</i><br /></div><div style="text-align: right;"><i>causes the ocean to swell</i><br /></div><div style="text-align: left;"><br /></div><div style="text-align: left;">So 5 weeks ago, SDL Perl was broken. It had been for several years. After the last release SDL Perl works ... somewhat. The quick releases that you have seen have been work-arounds, fixes and refactoring. This is not bad for a few weeks of work but, there is a point where code smell and technical debt is too huge to fix with out redesigning. This is that point.<br /></div><div style="text-align: left;"><br /></div><div style="text-align: left;">Since the redesigning will take time and effort it will be good to have a leg up. This leg up is Frozen Bubble 2.20. Frozen Bubble employs a lot of C and Perl hacks to cover up for SDL Perl's lacking. This will help in a sense fast forward the code status to 2008. Since Frozen Bubble is helping us out, we can go one step forward and help it out! <br /></div><div style="text-align: left;"><br /></div><div style="text-align: left;">So Alias (Adam Kennedy) and I have started work on making Frozen Bubble CPAN accessible. Frozen Bubble is a well know game and making it cross-platform will bring lots of attention and hopefully contributions to SDL Perl.<br /></div><div style="text-align: left;"><br /></div><div style="text-align: left;">In Alias's <a href="http://use.perl.org/%7EAlias/journal/39701">earlier post</a> about this he mentioned about making a splash and some other stuff. I will talk about how and where we will be accomplishing this task. <br /></div><div style="text-align: left;"><br /></div><div style="text-align: left;">First we will be tracking Frozen Bubble on the new <a href="http://sdlperl.ath.cx/projects/SDLPerl/wiki">SDL Perl Trac website</a>. This site will be similar to Padre's Trac site. As a bonus for people looking to help out in SDL Perl I have separated tasks by <i>perceived </i>difficulty. This will help to breakdown harder task too.<br /></div><div style="text-align: left;"><br /></div><div style="text-align: left;">For example for Frozen Bubble the two major bumps we have run into so far are:<br /></div><div style="text-align: left;"><br /></div><div style="text-align: left;">Migrating the SDL Perl workarounds: <a href="http://sdlperl.ath.cx/projects/SDLPerl/ticket/3">Ticket #3</a><br /></div><div style="text-align: left;">Making the Build System Portable: <a href="http://sdlperl.ath.cx/projects/SDLPerl/ticket/7">Ticket #7</a><br /></div><div style="text-align: left;"><br /></div><div style="text-align: left;">The first one will be difficult as it involves XS. So I will break it down into easier tasks with specific instruction which can then hopefully be picked up by interested contributers. The second one there is sort of a forte of Adam so I will leave it up to him. This is the process I am proposing make hard tickets, break them down.<br /></div><div style="text-align: left;"><br /></div><div style="text-align: left;">This will generate a lot of easy tickets that will hopefully be synchronized.&nbsp; If you are interested in this please give me a shout on #sdl irc.perl.org or the mailing list at sdl-devel@perl.org and I will get you registered.<br /></div><div style="text-align: left;"><br /></div><div style="text-align: left;">--yapgh<br /></div><div style="text-align: left;"><br /></div><div style="text-align: left;"><br /></div><div style="text-align: left;"><br /></div><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-1296050942449452224?l=yapgh.blogspot.com' alt='' /></div></div></div>
\ No newline at end of file
+<div style="text-align: right;"><i>“Do or do not... there is no try.”</i><br /></div><div style="text-align: right;"><i>--yoda </i><br /><br /></div><h1>The design before</h1><br />The bindings before were all in <a href="http://github.com/kthakore/SDL_perl/blob/master/src/SDL.xs">one huge XS file</a>. 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 /><br /><h1>The design we are aiming for</h1>Simple <a href="http://github.com/kthakore/SDL_perl/blob/master/src/Rect.xs">one XS</a> per Module. This would also simplify the Build code.<br /><br /><h2>First Step </h2><br />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 <a href="http://github.com/kthakore/SDL_perl/blob/master/src/Rect.xs#L16">is in XS</a> we have only unnamed parameters. <br /><br /><br /><h3>Before</h3><br />SDL::Rect-&gt;new( -x =&gt; 0, -y =&gt; 0, -width =&gt; 0, -height =&gt; 0);<br /><br /><h3>After</h3><br />SDL::Rect-&gt;new(0, 0, 0, 0);<br /><br />Ideally we would like both ways of constructing Rect.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-6151839795039915111?l=yapgh.blogspot.com' alt='' /></div></div></div>
\ No newline at end of file
index 4f7d7ba..627ed29 100644 (file)
@@ -1,6 +1,6 @@
 <div class="blog">
 <h1 id="NAME">
-HackFest: Results
+Why and How Frozen Bubble is going to CPAN
 </h1>
 <div class="CONTENT">
-<div style="text-align: right;"><i>The beautiful sunset,</i><br /></div><div style="text-align: right;"><i>is no match for,</i><br /></div><div style="text-align: right;"><i>the ugly sunrise<br /></i><br /></div><h1>Results</h1>On Sunday we had a hackfest on #sdl irc.perl.org. This is what we got done.<br /><br /><div class="separator" style="clear: both; text-align: center;"><a href="http://4.bp.blogspot.com/_NnqjAQEn1Xo/SsEsVovCs8I/AAAAAAAAABw/5wMJtyamCpo/s1600-h/sdl-tetris-osx.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/_NnqjAQEn1Xo/SsEsVovCs8I/AAAAAAAAABw/5wMJtyamCpo/s320/sdl-tetris-osx.png" /></a><br /></div><br /><br /><ol><li>MacOSX build is working again. It's still rough but Tetris works on it now. dngor++</li><li><a href="http://search.cpan.org/%7Ekthakore/SDL-Tutorial-Tetris-0.015/">SDL::Tutorial::Tetris</a> is on CPAN as v0.15. nferraz++</li><li><a href="http://github.com/m4gnet/SDL_perl/commit/9957e76f888ac71a911e3a71c2783141748d2387">SDL Perl docs</a> are a little better now. magnet++</li><li>Finally experimental <a href="http://github.com/kthakore/SDL_perl/tree/experimental">Rect and Game::Rect</a> are behaving. There is still more work needed in Game::Rect. Moreover there are more tests on the experimental release. garu++</li><li>Also POGL is <a href="http://sdlperl.pastebin.com/f78b8c1b9">working</a> experimentally with SDL. <br /></li></ol>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 /><br /><h1>Developers</h1>All developers please tell me what to put you guys want to be put down as on the  <br />in the Docs for the SDL Perl Team section.<br /><br />--yapgh<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-8724981068699019715?l=yapgh.blogspot.com' alt='' /></div></div></div>
\ No newline at end of file
+<div style="text-align: right;"><i>A single drop,</i><br /></div><div style="text-align: right;"><i>causes the ocean to swell</i><br /></div><div style="text-align: left;"><br /></div><div style="text-align: left;">So 5 weeks ago, SDL Perl was broken. It had been for several years. After the last release SDL Perl works ... somewhat. The quick releases that you have seen have been work-arounds, fixes and refactoring. This is not bad for a few weeks of work but, there is a point where code smell and technical debt is too huge to fix with out redesigning. This is that point.<br /></div><div style="text-align: left;"><br /></div><div style="text-align: left;">Since the redesigning will take time and effort it will be good to have a leg up. This leg up is Frozen Bubble 2.20. Frozen Bubble employs a lot of C and Perl hacks to cover up for SDL Perl's lacking. This will help in a sense fast forward the code status to 2008. Since Frozen Bubble is helping us out, we can go one step forward and help it out! <br /></div><div style="text-align: left;"><br /></div><div style="text-align: left;">So Alias (Adam Kennedy) and I have started work on making Frozen Bubble CPAN accessible. Frozen Bubble is a well know game and making it cross-platform will bring lots of attention and hopefully contributions to SDL Perl.<br /></div><div style="text-align: left;"><br /></div><div style="text-align: left;">In Alias's <a href="http://use.perl.org/%7EAlias/journal/39701">earlier post</a> about this he mentioned about making a splash and some other stuff. I will talk about how and where we will be accomplishing this task. <br /></div><div style="text-align: left;"><br /></div><div style="text-align: left;">First we will be tracking Frozen Bubble on the new <a href="http://sdlperl.ath.cx/projects/SDLPerl/wiki">SDL Perl Trac website</a>. This site will be similar to Padre's Trac site. As a bonus for people looking to help out in SDL Perl I have separated tasks by <i>perceived </i>difficulty. This will help to breakdown harder task too.<br /></div><div style="text-align: left;"><br /></div><div style="text-align: left;">For example for Frozen Bubble the two major bumps we have run into so far are:<br /></div><div style="text-align: left;"><br /></div><div style="text-align: left;">Migrating the SDL Perl workarounds: <a href="http://sdlperl.ath.cx/projects/SDLPerl/ticket/3">Ticket #3</a><br /></div><div style="text-align: left;">Making the Build System Portable: <a href="http://sdlperl.ath.cx/projects/SDLPerl/ticket/7">Ticket #7</a><br /></div><div style="text-align: left;"><br /></div><div style="text-align: left;">The first one will be difficult as it involves XS. So I will break it down into easier tasks with specific instruction which can then hopefully be picked up by interested contributers. The second one there is sort of a forte of Adam so I will leave it up to him. This is the process I am proposing make hard tickets, break them down.<br /></div><div style="text-align: left;"><br /></div><div style="text-align: left;">This will generate a lot of easy tickets that will hopefully be synchronized.&nbsp; If you are interested in this please give me a shout on #sdl irc.perl.org or the mailing list at sdl-devel@perl.org and I will get you registered.<br /></div><div style="text-align: left;"><br /></div><div style="text-align: left;">--yapgh<br /></div><div style="text-align: left;"><br /></div><div style="text-align: left;"><br /></div><div style="text-align: left;"><br /></div><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-1296050942449452224?l=yapgh.blogspot.com' alt='' /></div></div></div>
\ No newline at end of file
index 40f22bb..4f7d7ba 100644 (file)
@@ -1,6 +1,6 @@
 <div class="blog">
 <h1 id="NAME">
-Updates, Falling Block Game, and Hack Fest
+HackFest: Results
 </h1>
 <div class="CONTENT">
-<div style="text-align: right;"><i>Silent but active,<br />Small but deadly. <br /></i><br /></div><br /><br /><h3>Updates</h3>Ok so my blog posts have gone down a bit due to me using my fingers for coding. We have started to get some updates to SDL docs so that good. Also some of the tutorials are shaping up. This is what I have been hacking this past week.<br /><br /><br /><br /><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><a href="http://2.bp.blogspot.com/_NnqjAQEn1Xo/SrmNTm9UkKI/AAAAAAAAAA0/S0XNvXsp9u4/s1600-h/tetris.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/_NnqjAQEn1Xo/SrmNTm9UkKI/AAAAAAAAAA0/S0XNvXsp9u4/s320/tetris.jpg" /></a><br /></div><br /><br /><br /><br />You can grab the <a href="http://github.com/kthakore/TetrisPL">code</a>. 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 /><br /><h3>Hackfest</h3>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</a>. 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.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-7382145297295717151?l=yapgh.blogspot.com' alt='' /></div></div></div>
\ No newline at end of file
+<div style="text-align: right;"><i>The beautiful sunset,</i><br /></div><div style="text-align: right;"><i>is no match for,</i><br /></div><div style="text-align: right;"><i>the ugly sunrise<br /></i><br /></div><h1>Results</h1>On Sunday we had a hackfest on #sdl irc.perl.org. This is what we got done.<br /><br /><div class="separator" style="clear: both; text-align: center;"><a href="http://4.bp.blogspot.com/_NnqjAQEn1Xo/SsEsVovCs8I/AAAAAAAAABw/5wMJtyamCpo/s1600-h/sdl-tetris-osx.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/_NnqjAQEn1Xo/SsEsVovCs8I/AAAAAAAAABw/5wMJtyamCpo/s320/sdl-tetris-osx.png" /></a><br /></div><br /><br /><ol><li>MacOSX build is working again. It's still rough but Tetris works on it now. dngor++</li><li><a href="http://search.cpan.org/%7Ekthakore/SDL-Tutorial-Tetris-0.015/">SDL::Tutorial::Tetris</a> is on CPAN as v0.15. nferraz++</li><li><a href="http://github.com/m4gnet/SDL_perl/commit/9957e76f888ac71a911e3a71c2783141748d2387">SDL Perl docs</a> are a little better now. magnet++</li><li>Finally experimental <a href="http://github.com/kthakore/SDL_perl/tree/experimental">Rect and Game::Rect</a> are behaving. There is still more work needed in Game::Rect. Moreover there are more tests on the experimental release. garu++</li><li>Also POGL is <a href="http://sdlperl.pastebin.com/f78b8c1b9">working</a> experimentally with SDL. <br /></li></ol>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 /><br /><h1>Developers</h1>All developers please tell me what to put you guys want to be put down as on the  <br />in the Docs for the SDL Perl Team section.<br /><br />--yapgh<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-8724981068699019715?l=yapgh.blogspot.com' alt='' /></div></div></div>
\ No newline at end of file
index 8d5d729..40f22bb 100644 (file)
@@ -1,6 +1,6 @@
 <div class="blog">
 <h1 id="NAME">
-Thanks nothingmuch, and updates
+Updates, Falling Block Game, and Hack Fest
 </h1>
 <div class="CONTENT">
-<div style="text-align: right;"><i>struggle,</i><br /></div><div style="text-align: right;"><i>live,</i><br /></div><div style="text-align: right;"><i><span id="goog_1253289394523"></span><span id="goog_1253289394524"></span><a href="http://www.blogger.com/"></a>cease,</i><br /></div><div style="text-align: right;"><i>die</i><br /></div><div style="text-align: right;"><br /></div><div style="text-align: left;">After a struggling with XS and opaque C structs in the experimental SDL::Rect for a long time. <a href="http://blog.woobling.org/2009/09/hackathon-summary.html">Nothingmuch </a>comes along and solves my problem with this beautiful module<a href="http://search.cpan.org/%7Enuffin/XS-Object-Magic-0.02/"> XS::Object::Magic</a>. So I will start moving my ugly XS to Magic Land.<br /><br /><b>SDL Perl Tutorials</b><br /><br />This past week I have been working on the sorry state of SDL Perl tutorials. Currently I am working on a <a href="http://github.com/kthakore/TetrisPL">Tetris Clone</a>. I am hoping to have it done by next Thrusday for TPM meeting. This tutorial is a mix of several tutorials I <a href="http://ezide.com/games/writing-games.html">found online</a>. Another <a href="http://www.nntp.perl.org/group/perl.sdl.devel/2009/09/msg1446.html">Lunar Lander tutorial</a> has been submitted by Nelson Ferraz.<br /><br />If anyone has any really good tutorials for game development (regardless of language) or even request of tutorials. Send it my way I will look into them.<br /><br /><b>New SDL Perl site</b><br /><br />Also we have begin work on a new site. It is still needs work. <a href="http://sdlperl.ath.cx/">New Site</a>.<br /><br /><i>--yapgh</i> <br /><br /><br /></div><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-1314526975514787247?l=yapgh.blogspot.com' alt='' /></div></div></div>
\ No newline at end of file
+<div style="text-align: right;"><i>Silent but active,<br />Small but deadly. <br /></i><br /></div><br /><br /><h3>Updates</h3>Ok so my blog posts have gone down a bit due to me using my fingers for coding. We have started to get some updates to SDL docs so that good. Also some of the tutorials are shaping up. This is what I have been hacking this past week.<br /><br /><br /><br /><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><a href="http://2.bp.blogspot.com/_NnqjAQEn1Xo/SrmNTm9UkKI/AAAAAAAAAA0/S0XNvXsp9u4/s1600-h/tetris.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/_NnqjAQEn1Xo/SrmNTm9UkKI/AAAAAAAAAA0/S0XNvXsp9u4/s320/tetris.jpg" /></a><br /></div><br /><br /><br /><br />You can grab the <a href="http://github.com/kthakore/TetrisPL">code</a>. 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 /><br /><h3>Hackfest</h3>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</a>. 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.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-7382145297295717151?l=yapgh.blogspot.com' alt='' /></div></div></div>
\ No newline at end of file
index c9a5692..8d5d729 100644 (file)
@@ -1,6 +1,6 @@
 <div class="blog">
 <h1 id="NAME">
-Design of SDL::Rect
+Thanks nothingmuch, and updates
 </h1>
 <div class="CONTENT">
-<div style="text-align: right;"><i><br />you say things,<br />I hear,<br />but don't listen,<br /><br />you show things,<br />I see,<br />but don't understand,<br /><br />you write things,<br />I read,<br />but don't know.<br /></i></div><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 /><script src="http://gist.github.com/185940.js"></script><br /><br />Using the awesome <a href="http://cpansearch.perl.org/src/DMR/CookBookB-19960430/perlobject.map">perlobject.map</a> as a reference I was able to create a <a href="http://github.com/kthakore/SDL_perl/blob/a1b835c168ec184abc01edbc01862ffa15624c26/lib/SDL/Rect.pm">blessed perl</a> object in <a href="http://github.com/kthakore/SDL_perl/blob/a1b835c168ec184abc01edbc01862ffa15624c26/src/Rect.xs">XS</a>. 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 /><br /><br /><script src="http://gist.github.com/185938.js"></script><br /><br /><br />Have at it I am a big boy. You can grab the code like this.<br />Only If you don't already have a local git repo:<br /><br /><blockquote>mkdir SDL<br />cd SDL<br />git init .</blockquote><br />Then do this or skip to this if you already have a local git repo<br /><blockquote>git pull git://github.com/kthakore/SDL_perl.git experimental</blockquote><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-3340771783563950133?l=yapgh.blogspot.com' alt='' /></div></div></div>
\ No newline at end of file
+<div style="text-align: right;"><i>struggle,</i><br /></div><div style="text-align: right;"><i>live,</i><br /></div><div style="text-align: right;"><i><span id="goog_1253289394523"></span><span id="goog_1253289394524"></span><a href="http://www.blogger.com/"></a>cease,</i><br /></div><div style="text-align: right;"><i>die</i><br /></div><div style="text-align: right;"><br /></div><div style="text-align: left;">After a struggling with XS and opaque C structs in the experimental SDL::Rect for a long time. <a href="http://blog.woobling.org/2009/09/hackathon-summary.html">Nothingmuch </a>comes along and solves my problem with this beautiful module<a href="http://search.cpan.org/%7Enuffin/XS-Object-Magic-0.02/"> XS::Object::Magic</a>. So I will start moving my ugly XS to Magic Land.<br /><br /><b>SDL Perl Tutorials</b><br /><br />This past week I have been working on the sorry state of SDL Perl tutorials. Currently I am working on a <a href="http://github.com/kthakore/TetrisPL">Tetris Clone</a>. I am hoping to have it done by next Thrusday for TPM meeting. This tutorial is a mix of several tutorials I <a href="http://ezide.com/games/writing-games.html">found online</a>. Another <a href="http://www.nntp.perl.org/group/perl.sdl.devel/2009/09/msg1446.html">Lunar Lander tutorial</a> has been submitted by Nelson Ferraz.<br /><br />If anyone has any really good tutorials for game development (regardless of language) or even request of tutorials. Send it my way I will look into them.<br /><br /><b>New SDL Perl site</b><br /><br />Also we have begin work on a new site. It is still needs work. <a href="http://sdlperl.ath.cx/">New Site</a>.<br /><br /><i>--yapgh</i> <br /><br /><br /></div><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-1314526975514787247?l=yapgh.blogspot.com' alt='' /></div></div></div>
\ No newline at end of file
index f2da0d7..c9a5692 100644 (file)
@@ -1,6 +1,6 @@
 <div class="blog">
 <h1 id="NAME">
-Updates and Design Decisions
+Design of SDL::Rect
 </h1>
 <div class="CONTENT">
-<div align="right"><i><br />Storm clouds loom,<br />Thunder cracks,<br />Lightning blinds,<br />Farmers rejoice.<br /></i></div><br /><b>Some quick updates:</b><br />After someone bugged me to update the Ohloh site for <a href="https://www.ohloh.net/p/sdlpl/">SDL perl</a>, I finally got around to doing it. <br /><br /><br /><b>Some good news:</b><br />v2.2.2.11 seems to be doing a good job considering it has been started to be picked up <a href="http://ftp.debian.org/pool/main/s/sdlperl/">Debian</a>, Mandriva and other packager maintainers. The <a href="http://search.cpan.org/dist/SDL_Perl/">stats</a> are currently at <span style="font-size: x-small;">[PASS(11) FAIL(6) NA(1) UNKNOWN(35)]</span>.<br /><br /><b>Some OK news:</b><br />As you can see we have some fails occurring in the smoke tests. This is occurring due to the <a href="http://cpansearch.perl.org/src/KTHAKORE/SDL_Perl-v2.2.2.11/t/mixerpm.t">test</a> on Mixer.pm. Mixer.pm depends on a <a href="http://www.nntp.perl.org/group/perl.cpan.testers/2009/09/msg5250346.html">sound card being available</a> 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.<br />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.<br /><br /><b>Some not-so-great news:</b><br />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 <a href="mailto:sdl-devel@perl.org">mailing list</a>. <br /><br /><br />Until next time here is&nbsp; a hint of something coming soon (credits go to garu):<br /><div class="separator" style="clear: both; text-align: center;"><a href="http://imgur.com/B0a1y.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="150" src="http://imgur.com/B0a1y.png" width="200" /></a></div><i><br /></i><br /><i>--yapgh</i><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-1014994097230880621?l=yapgh.blogspot.com' alt='' /></div></div></div>
\ No newline at end of file
+<div style="text-align: right;"><i><br />you say things,<br />I hear,<br />but don't listen,<br /><br />you show things,<br />I see,<br />but don't understand,<br /><br />you write things,<br />I read,<br />but don't know.<br /></i></div><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 /><script src="http://gist.github.com/185940.js"></script><br /><br />Using the awesome <a href="http://cpansearch.perl.org/src/DMR/CookBookB-19960430/perlobject.map">perlobject.map</a> as a reference I was able to create a <a href="http://github.com/kthakore/SDL_perl/blob/a1b835c168ec184abc01edbc01862ffa15624c26/lib/SDL/Rect.pm">blessed perl</a> object in <a href="http://github.com/kthakore/SDL_perl/blob/a1b835c168ec184abc01edbc01862ffa15624c26/src/Rect.xs">XS</a>. 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 /><br /><br /><script src="http://gist.github.com/185938.js"></script><br /><br /><br />Have at it I am a big boy. You can grab the code like this.<br />Only If you don't already have a local git repo:<br /><br /><blockquote>mkdir SDL<br />cd SDL<br />git init .</blockquote><br />Then do this or skip to this if you already have a local git repo<br /><blockquote>git pull git://github.com/kthakore/SDL_perl.git experimental</blockquote><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-3340771783563950133?l=yapgh.blogspot.com' alt='' /></div></div></div>
\ No newline at end of file
index 4f9d34c..f2da0d7 100644 (file)
@@ -1,6 +1,6 @@
 <div class="blog">
 <h1 id="NAME">
-Why I will be sticking to CPAN
+Updates and Design Decisions
 </h1>
 <div class="CONTENT">
-<div style="text-align: right;"><i>sculpted in clay,</i></div><div style="text-align: right;"><i>then fired to glass.<br /></i><i><br /></i></div><br />Recently there was really long <a href="http://www.nntp.perl.org/group/perl.sdl.devel/2009/09/msg1424.html">discussion </a>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 /><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 (<a href="http://rt.cpan.org/Ticket/Display.html?id=49003">kmx</a>, <a href="http://www.nntp.perl.org/group/perl.sdl.devel/2009/09/msg1433.html">jean</a> and Jerome Quelin). The truth is there are other very <a href="http://rt.cpan.org/Ticket/Display.html?id=49084">critical areas</a> we can focus on. <br /><br />If there are people looking to package SDL Perl for their platform please contact us at sdl-devel@perl.org.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-6565605958523853965?l=yapgh.blogspot.com' alt='' /></div></div></div>
\ No newline at end of file
+<div align="right"><i><br />Storm clouds loom,<br />Thunder cracks,<br />Lightning blinds,<br />Farmers rejoice.<br /></i></div><br /><b>Some quick updates:</b><br />After someone bugged me to update the Ohloh site for <a href="https://www.ohloh.net/p/sdlpl/">SDL perl</a>, I finally got around to doing it. <br /><br /><br /><b>Some good news:</b><br />v2.2.2.11 seems to be doing a good job considering it has been started to be picked up <a href="http://ftp.debian.org/pool/main/s/sdlperl/">Debian</a>, Mandriva and other packager maintainers. The <a href="http://search.cpan.org/dist/SDL_Perl/">stats</a> are currently at <span style="font-size: x-small;">[PASS(11) FAIL(6) NA(1) UNKNOWN(35)]</span>.<br /><br /><b>Some OK news:</b><br />As you can see we have some fails occurring in the smoke tests. This is occurring due to the <a href="http://cpansearch.perl.org/src/KTHAKORE/SDL_Perl-v2.2.2.11/t/mixerpm.t">test</a> on Mixer.pm. Mixer.pm depends on a <a href="http://www.nntp.perl.org/group/perl.cpan.testers/2009/09/msg5250346.html">sound card being available</a> 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.<br />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.<br /><br /><b>Some not-so-great news:</b><br />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 <a href="mailto:sdl-devel@perl.org">mailing list</a>. <br /><br /><br />Until next time here is&nbsp; a hint of something coming soon (credits go to garu):<br /><div class="separator" style="clear: both; text-align: center;"><a href="http://imgur.com/B0a1y.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="150" src="http://imgur.com/B0a1y.png" width="200" /></a></div><i><br /></i><br /><i>--yapgh</i><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-1014994097230880621?l=yapgh.blogspot.com' alt='' /></div></div></div>
\ No newline at end of file
index 61e4d70..4f9d34c 100644 (file)
@@ -1,6 +1,6 @@
 <div class="blog">
 <h1 id="NAME">
-Frozen Bubble coming to CPAN
+Why I will be sticking to CPAN
 </h1>
 <div class="CONTENT">
-<div style="text-align: right;"><i>The frozen wind,</i></div><div style="text-align: right;"><i> made me shiver,</i></div><div style="text-align: right;"><i> with excitement</i>.</div><div style="text-align: right;"></div><br /><div style="text-align: left;">There has been some interest in making Frozen Bubble cross platform so I have forked Frozen Bubble v2.0 to my github<a href="http://github.com/kthakore/frozen-bubble/tree/master"> repo</a>. Any contributors are welcome! I will eventually be removing hacks that were needed to make Frozen Bubble work with the old SDL perl. The plan is to make Frozen Bubble cross platform by removing platform specific hacks and dependencies. One of the major switch will be from BSD sockets to SDL_net through SDL perl or XS. The main goal would be to be able to do&nbsp;</div><div style="text-align: left;"></div><blockquote><div style="text-align: left;">cpan install FrozenBubble</div></blockquote><div style="text-align: left;"></div><div style="text-align: left;">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.</div><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-4948555691607200165?l=yapgh.blogspot.com' alt='' /></div></div></div>
\ No newline at end of file
+<div style="text-align: right;"><i>sculpted in clay,</i></div><div style="text-align: right;"><i>then fired to glass.<br /></i><i><br /></i></div><br />Recently there was really long <a href="http://www.nntp.perl.org/group/perl.sdl.devel/2009/09/msg1424.html">discussion </a>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 /><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 (<a href="http://rt.cpan.org/Ticket/Display.html?id=49003">kmx</a>, <a href="http://www.nntp.perl.org/group/perl.sdl.devel/2009/09/msg1433.html">jean</a> and Jerome Quelin). The truth is there are other very <a href="http://rt.cpan.org/Ticket/Display.html?id=49084">critical areas</a> we can focus on. <br /><br />If there are people looking to package SDL Perl for their platform please contact us at sdl-devel@perl.org.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-6565605958523853965?l=yapgh.blogspot.com' alt='' /></div></div></div>
\ No newline at end of file
index a8a1632..61e4d70 100644 (file)
@@ -1,6 +1,6 @@
 <div class="blog">
 <h1 id="NAME">
-Newbie Friendly Perl Projects
+Frozen Bubble coming to CPAN
 </h1>
 <div class="CONTENT">
-<div style="text-align: right;"><i>A seed needs soft soil and water to grow</i></div><div style="text-align: right;"></div>This is a reply to <a href="http://szabgab.com/blog/2009/09/1251862435.html">szabgab's</a> post on how to get newbies interested in Perl modules. Being a newbie in Perl myself I thought I should take a shot.<br /><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 /><ol><li>Look at SDL docs [<a href="http://www.libsdl.org/cgi/docwiki.cgi/SDL_API_by_name">link</a>]</li><li>See where SDL_perl is using the same functions [<a href="http://cpansearch.perl.org/src/KTHAKORE/SDL_Perl-v2.2.2.11/src/SDL.xs">link</a>] and the docs to this file [<a href="http://cpansearch.perl.org/src/KTHAKORE/SDL_Perl-v2.2.2.11/lib/SDL.pm">link</a>]</li><li>Use the pod format to add it to the source [<a href="http://perldoc.perl.org/perlpod.html">link to using pod</a>]</li><li>{BONUS} Come up with tutorial or cookbook [<a href="http://search.cpan.org/%7Edrolsky/Moose-0.89/lib/Moose/Cookbook.pod">link to example</a>]</li><li>Submit code to github [<a href="http://github.com/guides/home">link</a>] or email them to me [<a href="mailto:kthakore@cpan.org">link</a>]<br /></li></ol><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 /><br /><i>--yapgh </i><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-581981098917545448?l=yapgh.blogspot.com' alt='' /></div></div></div>
\ No newline at end of file
+<div style="text-align: right;"><i>The frozen wind,</i></div><div style="text-align: right;"><i> made me shiver,</i></div><div style="text-align: right;"><i> with excitement</i>.</div><div style="text-align: right;"></div><br /><div style="text-align: left;">There has been some interest in making Frozen Bubble cross platform so I have forked Frozen Bubble v2.0 to my github<a href="http://github.com/kthakore/frozen-bubble/tree/master"> repo</a>. Any contributors are welcome! I will eventually be removing hacks that were needed to make Frozen Bubble work with the old SDL perl. The plan is to make Frozen Bubble cross platform by removing platform specific hacks and dependencies. One of the major switch will be from BSD sockets to SDL_net through SDL perl or XS. The main goal would be to be able to do&nbsp;</div><div style="text-align: left;"></div><blockquote><div style="text-align: left;">cpan install FrozenBubble</div></blockquote><div style="text-align: left;"></div><div style="text-align: left;">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.</div><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-4948555691607200165?l=yapgh.blogspot.com' alt='' /></div></div></div>
\ No newline at end of file
index 464b658..a8a1632 100644 (file)
@@ -1,6 +1,6 @@
 <div class="blog">
 <h1 id="NAME">
-Can someone please point me to good XS documentation!
+Newbie Friendly Perl Projects
 </h1>
 <div class="CONTENT">
-<i style="float:right;">A poor man begs,<br />A troubled man prays,<br />who shall answer? </i><br /><br /><br /><br /><p>This is the first time perldoc has disappointed me. The example on perlxs is wrong and fails. I do not wish to flame writers of perlxs but please check that your examples work! Ironically I know that broken tutorials is a problem with SDL perl too. </p><p>If anyone can point me to the simplest working exaple of XS with a c struct, it would be greatly appreciated.</p><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-9063382931575650771?l=yapgh.blogspot.com' alt='' /></div></div></div>
\ No newline at end of file
+<div style="text-align: right;"><i>A seed needs soft soil and water to grow</i></div><div style="text-align: right;"></div>This is a reply to <a href="http://szabgab.com/blog/2009/09/1251862435.html">szabgab's</a> post on how to get newbies interested in Perl modules. Being a newbie in Perl myself I thought I should take a shot.<br /><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 /><ol><li>Look at SDL docs [<a href="http://www.libsdl.org/cgi/docwiki.cgi/SDL_API_by_name">link</a>]</li><li>See where SDL_perl is using the same functions [<a href="http://cpansearch.perl.org/src/KTHAKORE/SDL_Perl-v2.2.2.11/src/SDL.xs">link</a>] and the docs to this file [<a href="http://cpansearch.perl.org/src/KTHAKORE/SDL_Perl-v2.2.2.11/lib/SDL.pm">link</a>]</li><li>Use the pod format to add it to the source [<a href="http://perldoc.perl.org/perlpod.html">link to using pod</a>]</li><li>{BONUS} Come up with tutorial or cookbook [<a href="http://search.cpan.org/%7Edrolsky/Moose-0.89/lib/Moose/Cookbook.pod">link to example</a>]</li><li>Submit code to github [<a href="http://github.com/guides/home">link</a>] or email them to me [<a href="mailto:kthakore@cpan.org">link</a>]<br /></li></ol><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 /><br /><i>--yapgh </i><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-581981098917545448?l=yapgh.blogspot.com' alt='' /></div></div></div>
\ No newline at end of file
index 4ca8719..464b658 100644 (file)
@@ -1,6 +1,6 @@
 <div class="blog">
 <h1 id="NAME">
-More Games + Update
+Can someone please point me to good XS documentation!
 </h1>
 <div class="CONTENT">
-<div style="text-align: right;"><i><br />idle digits,<br />play,<br />away,<br />idle digits.<br /></i></div><br />So while I am hacking away on v2.4 and <a href="http://github.com/kthakore/SDL_perl/tree/experimental">breaking</a> a lot of things. Here is a link to some more <a href="http://home.comcast.net/%7Eg.f.taylor/GarrysGames.html">games</a> for SDL Perl. These only work in windows now but I will look into bringing them to CPAN (with Garry's permission). <br /><br /><i>--yapgh</i><br /><br />These where reported by Garry Taylor. Here is the rest of the email:<br /><br /><blockquote><i>Hi all,</i><br /><i>I hadn't checked this newsgroup in a while and was happy to see </i><br /><i>that it still alive and well.  I saw that some people had been sharing </i><br /><i>some SDL Perl games online, and I had a few to share as well. At </i><br /><i>"http://home.comcast.net/~g.f.taylor/GarrysGames.html" you can find four </i><br /><i>games I have written as well as a simple flip book program to let a </i><br /><i>child play at making animation on the computer.  The games are "Toad" (a </i><br /><i>Frogger wanna be), "RabbitHat" (like Centipede), "BunnyHunt" (sort of </i><br /><i>like Pac-Man) and "Bonk The Buggies".  All (with the exception of Toad </i><br /><i>which in its very first incarnation was a game I wrote in TRS-80 Basic </i><br /><i>back in 1981) were written originally to run on my Windows 3.11 PC for </i><br /><i>my little girl so that she could play games which were not quite so </i><br /><i>violent as games were starting to become at the time.</i><br /><i><br /></i><br /><i>A few years ago I got the idea of trying to get them to run again </i><br /><i>by rewriting them in Perl.  The downloads are Windows XP/Vista installs </i><br /><i>which include a bare bones Perl environment for running the games (the </i><br /><i>installs put the code into its own separate place, and shouldn't </i><br /><i>interfere with your existing Perl setups).  I did this so that I could </i><br /><i>share the games with friends and family who either don't have SDL </i><br /><i>installed, don't have Perl installed, or don't do any programming and </i><br /><i>just needed something that will run.  The code as it currently stands </i><br /><i>was not written for general publication, so there are probably places </i><br /><i>where the Perl code itself is not always the best looking it could be, </i><br /><i>but the games themselves work pretty well.  Also, it is worth noting </i><br /><i>that I wound up being lazy and made a few additions to the Perl SDL code </i><br /><i>that I was using to add an additional function or two for printing text </i><br /><i>onto the screen that was centered or right aligned.</i><br /><i><br /></i><br /><i>While I have not made any Unix installs for the code, I have </i><br /><i>actually run the games on a few Linux machines that I have access to, </i><br /><i>where I also had installed SDL.  I have not updated my SDL installs in </i><br /><i>several years now, so there may be complications that arise if running </i><br /><i>it with  a new version of SDL.</i><br /><i><br /></i><br /><i>I hope you enjoy the games (or at least aren't too mean about it </i><br /><i>if you don't).</i><br /><i>Garry Taylor</i></blockquote><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-500220938152318100?l=yapgh.blogspot.com' alt='' /></div></div></div>
\ No newline at end of file
+<i style="float:right;">A poor man begs,<br />A troubled man prays,<br />who shall answer? </i><br /><br /><br /><br /><p>This is the first time perldoc has disappointed me. The example on perlxs is wrong and fails. I do not wish to flame writers of perlxs but please check that your examples work! Ironically I know that broken tutorials is a problem with SDL perl too. </p><p>If anyone can point me to the simplest working exaple of XS with a c struct, it would be greatly appreciated.</p><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-9063382931575650771?l=yapgh.blogspot.com' alt='' /></div></div></div>
\ No newline at end of file
index 65ae515..4ca8719 100644 (file)
@@ -1,6 +1,6 @@
 <div class="blog">
 <h1 id="NAME">
-Updates on Plan for v2.4
+More Games + Update
 </h1>
 <div class="CONTENT">
-<div style="text-align: right;"><i>A fierce storm came,<br />With a crash,<br />Old oaks went lame.</i></div><p>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 <a href="http://modernperlbooks.com/mt/index.html">chromatic</a> and <a href="http://onionstand.blogspot.com/">garu</a>. We came up with the   following plan for v2.4.</p><br /><p>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 <a href="http://github.com/garu/SDL_perl/commit/68210590cb457b273ba0f1f891d378b876dc6cd7">added many tests</a>   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. </p><br /><p>Obviously this will take some time and effort, but it will pay off in the long run. Any help will be greatly appreciated. <br /></p><i>--yapgh</i><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-5293501082670630307?l=yapgh.blogspot.com' alt='' /></div></div></div>
\ No newline at end of file
+<div style="text-align: right;"><i><br />idle digits,<br />play,<br />away,<br />idle digits.<br /></i></div><br />So while I am hacking away on v2.4 and <a href="http://github.com/kthakore/SDL_perl/tree/experimental">breaking</a> a lot of things. Here is a link to some more <a href="http://home.comcast.net/%7Eg.f.taylor/GarrysGames.html">games</a> for SDL Perl. These only work in windows now but I will look into bringing them to CPAN (with Garry's permission). <br /><br /><i>--yapgh</i><br /><br />These where reported by Garry Taylor. Here is the rest of the email:<br /><br /><blockquote><i>Hi all,</i><br /><i>I hadn't checked this newsgroup in a while and was happy to see </i><br /><i>that it still alive and well.  I saw that some people had been sharing </i><br /><i>some SDL Perl games online, and I had a few to share as well. At </i><br /><i>"http://home.comcast.net/~g.f.taylor/GarrysGames.html" you can find four </i><br /><i>games I have written as well as a simple flip book program to let a </i><br /><i>child play at making animation on the computer.  The games are "Toad" (a </i><br /><i>Frogger wanna be), "RabbitHat" (like Centipede), "BunnyHunt" (sort of </i><br /><i>like Pac-Man) and "Bonk The Buggies".  All (with the exception of Toad </i><br /><i>which in its very first incarnation was a game I wrote in TRS-80 Basic </i><br /><i>back in 1981) were written originally to run on my Windows 3.11 PC for </i><br /><i>my little girl so that she could play games which were not quite so </i><br /><i>violent as games were starting to become at the time.</i><br /><i><br /></i><br /><i>A few years ago I got the idea of trying to get them to run again </i><br /><i>by rewriting them in Perl.  The downloads are Windows XP/Vista installs </i><br /><i>which include a bare bones Perl environment for running the games (the </i><br /><i>installs put the code into its own separate place, and shouldn't </i><br /><i>interfere with your existing Perl setups).  I did this so that I could </i><br /><i>share the games with friends and family who either don't have SDL </i><br /><i>installed, don't have Perl installed, or don't do any programming and </i><br /><i>just needed something that will run.  The code as it currently stands </i><br /><i>was not written for general publication, so there are probably places </i><br /><i>where the Perl code itself is not always the best looking it could be, </i><br /><i>but the games themselves work pretty well.  Also, it is worth noting </i><br /><i>that I wound up being lazy and made a few additions to the Perl SDL code </i><br /><i>that I was using to add an additional function or two for printing text </i><br /><i>onto the screen that was centered or right aligned.</i><br /><i><br /></i><br /><i>While I have not made any Unix installs for the code, I have </i><br /><i>actually run the games on a few Linux machines that I have access to, </i><br /><i>where I also had installed SDL.  I have not updated my SDL installs in </i><br /><i>several years now, so there may be complications that arise if running </i><br /><i>it with  a new version of SDL.</i><br /><i><br /></i><br /><i>I hope you enjoy the games (or at least aren't too mean about it </i><br /><i>if you don't).</i><br /><i>Garry Taylor</i></blockquote><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-500220938152318100?l=yapgh.blogspot.com' alt='' /></div></div></div>
\ No newline at end of file
index 93751a1..65ae515 100644 (file)
@@ -1,6 +1,6 @@
 <div class="blog">
 <h1 id="NAME">
-Code is not the only thing
+Updates on Plan for v2.4
 </h1>
 <div class="CONTENT">
-<div style="float: right;"><i><br />I did,<br />no one cared,<br />I spoke,<br />no one heard,<br />I wrote,<br />someone read.<br /></i><br /></div><br /><p style="clear: both;">After only several weeks of maintaining SDL perl, Today I have come to <a href="http://www.nntp.perl.org/group/perl.sdl.devel/2009/08/msg1405.html">noticed </a>how important it is to update README's, docs and so on. I will redouble my effort to do <a href="http://github.com/kthakore/SDL_perl/commit/e504c139e12e5592b5694292bb1882ee78b65b28">this</a>. </p><br /><p>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 /></p><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-2082858297367668517?l=yapgh.blogspot.com' alt='' /></div></div></div>
\ No newline at end of file
+<div style="text-align: right;"><i>A fierce storm came,<br />With a crash,<br />Old oaks went lame.</i></div><p>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 <a href="http://modernperlbooks.com/mt/index.html">chromatic</a> and <a href="http://onionstand.blogspot.com/">garu</a>. We came up with the   following plan for v2.4.</p><br /><p>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 <a href="http://github.com/garu/SDL_perl/commit/68210590cb457b273ba0f1f891d378b876dc6cd7">added many tests</a>   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. </p><br /><p>Obviously this will take some time and effort, but it will pay off in the long run. Any help will be greatly appreciated. <br /></p><i>--yapgh</i><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-5293501082670630307?l=yapgh.blogspot.com' alt='' /></div></div></div>
\ No newline at end of file
index 0347ee9..93751a1 100644 (file)
@@ -1,6 +1,6 @@
 <div class="blog">
 <h1 id="NAME">
-SDL Perl v2.2.2 out and Plans for v2.4
+Code is not the only thing
 </h1>
 <div class="CONTENT">
-<div style="text-align: right;"><i>The early bird may get the worm,</i></div><div style="text-align: right;"><i>and the second mouse may get the cheese,</i></div><div style="text-align: right;"><i>but I want neither the worm nor the cheese,</i><br /><i>'cause I am not a mouse or a bird.</i><br /><i><br /></i></div><div style="text-align: right;"></div><br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I have release v2.2.2 which includes several bug fixes:<br /><br /><ul><li>Made App loop() faster <a href="https://rt.cpan.org/Public/Bug/Display.html?id=16988">RT</a>&nbsp;</li><li>Patched support for add support for gluquadric* sub <a href="https://rt.cpan.org/Public/Bug/Display.html?id=25598">RT</a>&nbsp;</li><li>Made App init slimer <a href="https://rt.cpan.org/Public/Bug/Display.html?id=16987">RT</a>&nbsp;</li><li>Added faster SDL::Color alternative <a href="https://rt.cpan.org/Public/Bug/Display.html?id=17975">RT</a>&nbsp;</li><li>Added better error reporting for TTFont errors</li><li>Added experimental win32 support RT <b>[Update: v2.2.2.5 is better for windows support]</b><br /></li></ul>You can grab this release off <a href="http://search.cpan.org/%7Ekthakore/">CPAN</a>. <br /><br />This is still a stopover to the major release v2.4. Which will hope fully solve the memory leaks problems.<br /><i><br /></i><br /><i>--yapgh</i><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-3262180750381344183?l=yapgh.blogspot.com' alt='' /></div></div></div>
\ No newline at end of file
+<div style="float: right;"><i><br />I did,<br />no one cared,<br />I spoke,<br />no one heard,<br />I wrote,<br />someone read.<br /></i><br /></div><br /><p style="clear: both;">After only several weeks of maintaining SDL perl, Today I have come to <a href="http://www.nntp.perl.org/group/perl.sdl.devel/2009/08/msg1405.html">noticed </a>how important it is to update README's, docs and so on. I will redouble my effort to do <a href="http://github.com/kthakore/SDL_perl/commit/e504c139e12e5592b5694292bb1882ee78b65b28">this</a>. </p><br /><p>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 /></p><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-2082858297367668517?l=yapgh.blogspot.com' alt='' /></div></div></div>
\ No newline at end of file
index 07f9357..0347ee9 100644 (file)
@@ -1,6 +1,6 @@
 <div class="blog">
 <h1 id="NAME">
-Catching memory leaks in XS
+SDL Perl v2.2.2 out and Plans for v2.4
 </h1>
 <div class="CONTENT">
-<div style="text-align: right;"><i>&nbsp;I slay dragons, yonder</i></div><br />So I am trying to find and plug memory leaks in SDL perl. Most of the <a href="https://rt.cpan.org/Ticket/Display.html?id=49084">memory leaks</a> occur because in XS a reference is still held. One very expensive mem leak was caught by TELS really early on <a href="https://rt.cpan.org/Ticket/Display.html?id=17976">here</a>. The problem occurs where in XS there is<br /><br /><blockquote><i>RETVAL</i><i> = (cast *) safemalloc( ... );</i></blockquote>&nbsp;and safefree(...) is never called.<br />Here is a in <a href="http://github.com/kthakore/SDL_perl/blob/63ebaa682697728f5946f700a2b2c12534b1b821/src/SDL.xs">code example</a> lines 1082 on. <br /><br />My question is how I can mitigate these memory leaks? One idea I had was to store all malloc'd pointers to an array that is safefree'd on DESTROY or hooked into perl GC somehow .<br /><br /><br />Any guidance is helpful.<br /><br /><i>--yapgh</i><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-7742659740534179607?l=yapgh.blogspot.com' alt='' /></div></div></div>
\ No newline at end of file
+<div style="text-align: right;"><i>The early bird may get the worm,</i></div><div style="text-align: right;"><i>and the second mouse may get the cheese,</i></div><div style="text-align: right;"><i>but I want neither the worm nor the cheese,</i><br /><i>'cause I am not a mouse or a bird.</i><br /><i><br /></i></div><div style="text-align: right;"></div><br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I have release v2.2.2 which includes several bug fixes:<br /><br /><ul><li>Made App loop() faster <a href="https://rt.cpan.org/Public/Bug/Display.html?id=16988">RT</a>&nbsp;</li><li>Patched support for add support for gluquadric* sub <a href="https://rt.cpan.org/Public/Bug/Display.html?id=25598">RT</a>&nbsp;</li><li>Made App init slimer <a href="https://rt.cpan.org/Public/Bug/Display.html?id=16987">RT</a>&nbsp;</li><li>Added faster SDL::Color alternative <a href="https://rt.cpan.org/Public/Bug/Display.html?id=17975">RT</a>&nbsp;</li><li>Added better error reporting for TTFont errors</li><li>Added experimental win32 support RT <b>[Update: v2.2.2.5 is better for windows support]</b><br /></li></ul>You can grab this release off <a href="http://search.cpan.org/%7Ekthakore/">CPAN</a>. <br /><br />This is still a stopover to the major release v2.4. Which will hope fully solve the memory leaks problems.<br /><i><br /></i><br /><i>--yapgh</i><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-3262180750381344183?l=yapgh.blogspot.com' alt='' /></div></div></div>
\ No newline at end of file
index 24852d4..07f9357 100644 (file)
@@ -1,6 +1,6 @@
 <div class="blog">
 <h1 id="NAME">
-Alien::SDL 0.01 released!!!
+Catching memory leaks in XS
 </h1>
 <div class="CONTENT">
-<div style="text-align: right;"><div class="separator" style="clear: both; text-align: center;"></div><div style="text-align: left;"></div><i>I just code</i><br /><i>don't know where it leads</i><br />or<br /><i>how I will get there</i><br /><i>I just code </i><br /><a href="http://3.bp.blogspot.com/_NnqjAQEn1Xo/SpawTrdopaI/AAAAAAAAAAs/YZZzXDPh1a8/s1600-h/screen.bmp" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/_NnqjAQEn1Xo/SpawTrdopaI/AAAAAAAAAAs/YZZzXDPh1a8/s320/screen.bmp" /></a></div><br /><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 <a href="http://use.perl.org/%7EAlias/journal/39476">suggestion</a> to have Alien::SDL. All thanks to Alias's&nbsp; generous access to his <a href="http://use.perl.org/%7EAlias/journal/39318">windows farm</a>, 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 /><br /><br />The above script is in test/testsprite.pl. <br /><br />Until then you can do:<br /><blockquote><br />in cpan<br />cpan&gt;<b> install File::Fetch</b><br />cpan&gt; <b>install Archive::Extract</b><br />cpan&gt; <b>install Alien::SDL</b><br /><br />and in cmd <br /><b>pip http://cloud.github.com/downloads/kthakore/SDL_perl/SDL_Perl-v2.2.2.tar.gz</b></blockquote><br /><br />Please post any feedback here.<br /><br />Enjoy,<br /><i>yapgh</i><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-8996898299982319327?l=yapgh.blogspot.com' alt='' /></div></div></div>
\ No newline at end of file
+<div style="text-align: right;"><i>&nbsp;I slay dragons, yonder</i></div><br />So I am trying to find and plug memory leaks in SDL perl. Most of the <a href="https://rt.cpan.org/Ticket/Display.html?id=49084">memory leaks</a> occur because in XS a reference is still held. One very expensive mem leak was caught by TELS really early on <a href="https://rt.cpan.org/Ticket/Display.html?id=17976">here</a>. The problem occurs where in XS there is<br /><br /><blockquote><i>RETVAL</i><i> = (cast *) safemalloc( ... );</i></blockquote>&nbsp;and safefree(...) is never called.<br />Here is a in <a href="http://github.com/kthakore/SDL_perl/blob/63ebaa682697728f5946f700a2b2c12534b1b821/src/SDL.xs">code example</a> lines 1082 on. <br /><br />My question is how I can mitigate these memory leaks? One idea I had was to store all malloc'd pointers to an array that is safefree'd on DESTROY or hooked into perl GC somehow .<br /><br /><br />Any guidance is helpful.<br /><br /><i>--yapgh</i><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-7742659740534179607?l=yapgh.blogspot.com' alt='' /></div></div></div>
\ No newline at end of file
index 2ab0c8f..24852d4 100644 (file)
@@ -1,6 +1,6 @@
 <div class="blog">
 <h1 id="NAME">
-SDL perl is coming to Strawberry!!
+Alien::SDL 0.01 released!!!
 </h1>
 <div class="CONTENT">
-<div style="text-align: right;"><i>I am a part of all that I have met. --</i>Alfred Tennyson <br /></div><div style="text-align: right;">&nbsp; </div>I hope I am not jumping the gun but it looks good.&nbsp; This is all thanks to kmx!!<br /><br />Here is an obligatory pic since my last post on this matter. (That is one of the test script you can run for test/ in the distrobution).<br /><br /><div class="separator" style="clear: both; text-align: center;"><a href="http://2.bp.blogspot.com/_NnqjAQEn1Xo/SpWUmSBlt-I/AAAAAAAAAAc/hPZjdppeyu0/s1600-h/ok.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/_NnqjAQEn1Xo/SpWUmSBlt-I/AAAAAAAAAAc/hPZjdppeyu0/s320/ok.bmp" /></a></div><br /><br />You can follow the history <a href="https://rt.cpan.org/Ticket/Display.html?id=49003">here</a>.<br /><br />It has been tested on winXP 32/64 bit strawberry so far. Here is how you can get it.<br /><br /><ol><li>Go here to get the <a href="http://github.com/kthakore/SDL_perl/">code</a>&nbsp;</li><li>Click download, choose .tar.gz</li><li>Save the resultant kthakore....tar.gz somewhere</li><li>Get <a href="http://cloud.github.com/downloads/kthakore/SDL_perl/libsdl-1.2.13-bin_20090825.ZIP">this</a> and  extract it on C:/strawberry/ </li><li><b>Last do pip kthakore......tar.gz </b>(I find this so amazing!!)<b></b></li><li><b>Play with C:/strawberry/cpan/build/SDL/test/*.pl&nbsp;</b></li><ul><li><b>or post a <a href="https://rt.cpan.org/Ticket/Display.html?id=49003">bug report</a>&nbsp; <br /></b></li></ul></ol><blockquote>Enjoy</blockquote>--yapgh<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-8353082216465109784?l=yapgh.blogspot.com' alt='' /></div></div></div>
\ No newline at end of file
+<div style="text-align: right;"><div class="separator" style="clear: both; text-align: center;"></div><div style="text-align: left;"></div><i>I just code</i><br /><i>don't know where it leads</i><br />or<br /><i>how I will get there</i><br /><i>I just code </i><br /><a href="http://3.bp.blogspot.com/_NnqjAQEn1Xo/SpawTrdopaI/AAAAAAAAAAs/YZZzXDPh1a8/s1600-h/screen.bmp" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/_NnqjAQEn1Xo/SpawTrdopaI/AAAAAAAAAAs/YZZzXDPh1a8/s320/screen.bmp" /></a></div><br /><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 <a href="http://use.perl.org/%7EAlias/journal/39476">suggestion</a> to have Alien::SDL. All thanks to Alias's&nbsp; generous access to his <a href="http://use.perl.org/%7EAlias/journal/39318">windows farm</a>, 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 /><br /><br />The above script is in test/testsprite.pl. <br /><br />Until then you can do:<br /><blockquote><br />in cpan<br />cpan&gt;<b> install File::Fetch</b><br />cpan&gt; <b>install Archive::Extract</b><br />cpan&gt; <b>install Alien::SDL</b><br /><br />and in cmd <br /><b>pip http://cloud.github.com/downloads/kthakore/SDL_perl/SDL_Perl-v2.2.2.tar.gz</b></blockquote><br /><br />Please post any feedback here.<br /><br />Enjoy,<br /><i>yapgh</i><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-8996898299982319327?l=yapgh.blogspot.com' alt='' /></div></div></div>
\ No newline at end of file
index 9145c2c..2ab0c8f 100644 (file)
@@ -1,6 +1,6 @@
 <div class="blog">
 <h1 id="NAME">
-My milestones (itches) for gaming in Perl
+SDL perl is coming to Strawberry!!
 </h1>
 <div class="CONTENT">
-<div style="text-align: right;"><br /><blockquote><blockquote><i>As a young sprout in spring, </i><br /><i>the soil is moist,</i><br /><i>and the sun bright. </i><br /><i><br /></i><br /><i>But as fall comes,</i><br /><i>with fading leaves,</i><br /><i>my roots keep me standing.&nbsp;</i></blockquote></blockquote></div><br /><br /><br />As a new Perl developer I am able to contribute with <a href="http://github.com/kthakore/SDL_perl/commits/">great enthusiasm</a> due to the <a href="http://www.irc.perl.org/">great community</a> 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 /><blockquote><i>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. --<a href="http://www.linux-mag.com/cache/7439/1.html">Linus</a><br /></i></blockquote><br />So here are my evolving milestones for Gaming in Perl:<br /><ul><li> Make Tetris,Pong, so on [soon-ish]<br /></li><ul><li>Hack it until its Perly (shows the power Perl can provide for games) </li></ul><li>Do game-a-thon [Starting January 2010]<br /></li><ul><li>Simply</li><ul><li> Get two random words (Warp + hole = portal)<br /></li><li> Make a small game</li><li>Every week for 52 weeks</li></ul></ul><li>Use the results from this to make some Perl specific tools [Parallel to game-a-thon]<br /></li><ul><li>SDL::Game&nbsp;</li></ul></ul>--signed YAPGH<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-215619435826309735?l=yapgh.blogspot.com' alt='' /></div></div></div>
\ No newline at end of file
+<div style="text-align: right;"><i>I am a part of all that I have met. --</i>Alfred Tennyson <br /></div><div style="text-align: right;">&nbsp; </div>I hope I am not jumping the gun but it looks good.&nbsp; This is all thanks to kmx!!<br /><br />Here is an obligatory pic since my last post on this matter. (That is one of the test script you can run for test/ in the distrobution).<br /><br /><div class="separator" style="clear: both; text-align: center;"><a href="http://2.bp.blogspot.com/_NnqjAQEn1Xo/SpWUmSBlt-I/AAAAAAAAAAc/hPZjdppeyu0/s1600-h/ok.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/_NnqjAQEn1Xo/SpWUmSBlt-I/AAAAAAAAAAc/hPZjdppeyu0/s320/ok.bmp" /></a></div><br /><br />You can follow the history <a href="https://rt.cpan.org/Ticket/Display.html?id=49003">here</a>.<br /><br />It has been tested on winXP 32/64 bit strawberry so far. Here is how you can get it.<br /><br /><ol><li>Go here to get the <a href="http://github.com/kthakore/SDL_perl/">code</a>&nbsp;</li><li>Click download, choose .tar.gz</li><li>Save the resultant kthakore....tar.gz somewhere</li><li>Get <a href="http://cloud.github.com/downloads/kthakore/SDL_perl/libsdl-1.2.13-bin_20090825.ZIP">this</a> and  extract it on C:/strawberry/ </li><li><b>Last do pip kthakore......tar.gz </b>(I find this so amazing!!)<b></b></li><li><b>Play with C:/strawberry/cpan/build/SDL/test/*.pl&nbsp;</b></li><ul><li><b>or post a <a href="https://rt.cpan.org/Ticket/Display.html?id=49003">bug report</a>&nbsp; <br /></b></li></ul></ol><blockquote>Enjoy</blockquote>--yapgh<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-8353082216465109784?l=yapgh.blogspot.com' alt='' /></div></div></div>
\ No newline at end of file
index 03baec6..3ffbeee 100644 (file)
@@ -1,2 +1,2 @@
 <div class="pod">
-<h1>Documentation (latest development branch)</h1><table style="margin-left: 0px; margin-top: 5px"><tr><td colspan="3"><strong style="font-size: 14px">Core</strong></td></tr><tr><td><img src="assets/SDL_thumb.png" alt="thumb" /></td><td><a href="SDL.html">SDL</a></td><td>- Simple DirectMedia Layer for Perl</td></tr></table><table style="margin-left: 60px; margin-top: 5px"><tr><td colspan="3"><strong style="font-size: 14px">Structure</strong></td></tr><tr><td><img src="assets/bubble-5-mini.png" alt="thumb" /></td><td><a href="SDL-AudioCVT.html">SDL::AudioCVT</a></td><td>- Audio Conversion Structure</td></tr><tr><td><img src="assets/bubble-3-mini.png" alt="thumb" /></td><td><a href="SDL-AudioSpec.html">SDL::AudioSpec</a></td><td>- SDL Bindings for structure SDL::AudioSpec</td></tr></table><table style="margin-left: 30px; margin-top: 5px"><tr><td colspan="3"><strong style="font-size: 14px">CDROM</strong></td></tr><tr><td><img src="assets/bubble-4-mini.png" alt="thumb" /></td><td><a href="SDL-CDROM.html">SDL::CDROM</a></td><td>- SDL Bindings for the CDROM device</td></tr></table><table style="margin-left: 60px; margin-top: 5px"><tr><td colspan="3"><strong style="font-size: 14px">Structure</strong></td></tr><tr><td><img src="assets/bubble-3-mini.png" alt="thumb" /></td><td><a href="SDL-CD.html">SDL::CD</a></td><td>- SDL Bindings for structure SDL_CD</td></tr><tr><td><img src="assets/bubble-1-mini.png" alt="thumb" /></td><td><a href="SDL-CDTrack.html">SDL::CDTrack</a></td><td>- SDL Bindings for structure SDL_CDTrack</td></tr></table><table style="margin-left: 30px; margin-top: 5px"><tr><td colspan="3"><strong style="font-size: 14px">Events</strong></td></tr><tr><td><img src="assets/bubble-6-mini.png" alt="thumb" /></td><td><a href="SDL-Events.html">SDL::Events</a></td><td>- Bindings to the Events Category in SDL API</td></tr></table><table style="margin-left: 60px; margin-top: 5px"><tr><td colspan="3"><strong style="font-size: 14px">Structure</strong></td></tr><tr><td><img src="assets/bubble-1-mini.png" alt="thumb" /></td><td><a href="SDL-Event.html">SDL::Event</a></td><td>- General event structure</td></tr></table><table style="margin-left: 30px; margin-top: 5px"><tr><td colspan="3"><strong style="font-size: 14px">Joystick</strong></td></tr><tr><td><img src="assets/bubble-4-mini.png" alt="thumb" /></td><td><a href="SDL-Joystick.html">SDL::Joystick</a></td><td>- SDL Bindings for the Joystick device</td></tr></table><table style="margin-left: 60px; margin-top: 5px"><tr><td colspan="3"><strong style="font-size: 14px">Structure</strong></td></tr><tr><td><img src="assets/bubble-2-mini.png" alt="thumb" /></td><td><a href="SDL-Mixer-MixChunk.html">SDL::Mixer::MixChunk</a></td><td>- SDL Bindings for structure SDL_MixChunk</td></tr></table><table style="margin-left: 30px; margin-top: 5px"><tr><td colspan="3"><strong style="font-size: 14px">Mouse</strong></td></tr><tr><td><img src="assets/bubble-7-mini.png" alt="thumb" /></td><td><a href="SDL-Mouse.html">SDL::Mouse</a></td><td>- SDL Bindings for the Mouse device</td></tr></table><table style="margin-left: 60px; margin-top: 5px"><tr><td colspan="3"><strong style="font-size: 14px">Structure</strong></td></tr><tr><td><img src="assets/bubble-7-mini.png" alt="thumb" /></td><td><a href="SDL-Cursor.html">SDL::Cursor</a></td><td>- Mouse cursor structure</td></tr></table><table style="margin-left: 30px; margin-top: 5px"><tr><td colspan="3"><strong style="font-size: 14px">MultiThread</strong></td></tr><tr><td><img src="assets/bubble-6-mini.png" alt="thumb" /></td><td><a href="SDL-MultiThread.html">SDL::MultiThread</a></td><td>- Bindings to the MultiThread category in SDL API</td></tr></table><table style="margin-left: 30px; margin-top: 5px"><tr><td colspan="3"><strong style="font-size: 14px">Structure</strong></td></tr><tr><td><img src="assets/bubble-3-mini.png" alt="thumb" /></td><td><a href="SDL-Version.html">SDL::Version</a></td><td>- SDL Bindings for structure SDL_Version</td></tr></table><table style="margin-left: 30px; margin-top: 5px"><tr><td colspan="3"><strong style="font-size: 14px">Video</strong></td></tr><tr><td><img src="assets/bubble-2-mini.png" alt="thumb" /></td><td><a href="SDL-Video.html">SDL::Video</a></td><td>- Bindings to the video category in SDL API</td></tr></table><table style="margin-left: 60px; margin-top: 5px"><tr><td colspan="3"><strong style="font-size: 14px">Structure</strong></td></tr><tr><td><img src="assets/bubble-7-mini.png" alt="thumb" /></td><td><a href="SDL-Color.html">SDL::Color</a></td><td>- Format independent color description</td></tr><tr><td><img src="assets/bubble-4-mini.png" alt="thumb" /></td><td><a href="SDL-Overlay.html">SDL::Overlay</a></td><td>- YUV Video overlay</td></tr><tr><td><img src="assets/bubble-4-mini.png" alt="thumb" /></td><td><a href="SDL-Palette.html">SDL::Palette</a></td><td>- Color palette for 8-bit pixel formats </td></tr><tr><td><img src="assets/bubble-7-mini.png" alt="thumb" /></td><td><a href="SDL-PixelFormat.html">SDL::PixelFormat</a></td><td>- Stores surface format information</td></tr><tr><td><img src="assets/bubble-5-mini.png" alt="thumb" /></td><td><a href="SDL-Rect.html">SDL::Rect</a></td><td>- Defines a rectangular area</td></tr><tr><td><img src="assets/bubble-1-mini.png" alt="thumb" /></td><td><a href="SDL-Surface.html">SDL::Surface</a></td><td>- Graphic surface structure.</td></tr><tr><td><img src="assets/bubble-6-mini.png" alt="thumb" /></td><td><a href="SDL-VideoInfo.html">SDL::VideoInfo</a></td><td>- Video Target Information </td></tr></table><br /><table style="margin-left: 0px; margin-top: 5px"><tr><td colspan="3"><strong style="font-size: 14px">Cookbook</strong></td></tr><tr><td><img src="assets/bubble-3-mini.png" alt="thumb" /></td><td><a href="SDL-Cookbook.html">SDL::Cookbook</a></td><td></td></tr><tr><td><img src="assets/bubble-1-mini.png" alt="thumb" /></td><td><a href="SDL-Cookbook-PDL.html">SDL::Cookbook::PDL</a></td><td></td></tr></table><br /><table style="margin-left: 0px; margin-top: 5px"><tr><td colspan="3"><strong style="font-size: 14px">Extension</strong></td></tr><tr><td><img src="assets/bubble-3-mini.png" alt="thumb" /></td><td><a href="SDL-App.html">SDL::App</a></td><td>- a SDL perl extension</td></tr></table><br /><table style="margin-left: 0px; margin-top: 5px"><tr><td colspan="3"><strong style="font-size: 14px">Mixer</strong></td></tr><tr><td><img src="assets/bubble-7-mini.png" alt="thumb" /></td><td><a href="SDL-Mixer.html">SDL::Mixer</a></td><td>- a SDL perl extension</td></tr><table style="margin-left: 0px; margin-top: 5px"><tr><td colspan="3"><strong style="font-size: 14px">TODO</strong></td></tr><table style="margin-left: 30px; margin-top: 5px"><tr><td colspan="3"><strong style="font-size: 14px">Core</strong></td></tr></table><table style="margin-left: 60px; margin-top: 5px"><tr><td colspan="3"><strong style="font-size: 14px">Audio</strong></td></tr><tr><td><img src="assets/bubble-3-mini.png" alt="thumb" /></td><td><a href="SDL-Audio.html">SDL::Audio</a></td><td>- SDL Bindings for Audio</td></tr></table><table style="margin-left: 90px; margin-top: 5px"><tr><td colspan="3"><strong style="font-size: 14px">Structure</strong></td></tr><tr><td><img src="assets/bubble-1-mini.png" alt="thumb" /></td><td><a href="SDL-Mixer-MixMusic.html">SDL::Mixer::MixMusic</a></td><td>- SDL Bindings for structure SDL_MixMusic</td></tr></table><table style="margin-left: 60px; margin-top: 5px"><tr><td colspan="3"><strong style="font-size: 14px">Structure</strong></td></tr><tr><td><img src="assets/bubble-4-mini.png" alt="thumb" /></td><td><a href="SDL-RWOps.html">SDL::RWOps</a></td><td>- SDL Bindings to SDL_RWOPs</td></tr></table><br /><table style="margin-left: 0px; margin-top: 5px"><tr><td colspan="3"><strong style="font-size: 14px">Tutorials</strong></td></tr><tr><td><img src="assets/bubble-5-mini.png" alt="thumb" /></td><td><a href="SDL-Tutorial.html">SDL::Tutorial</a></td><td>- introduction to Perl SDL</td></tr><tr><td><img src="assets/bubble-4-mini.png" alt="thumb" /></td><td><a href="SDL-Tutorial-Animation.html">SDL::Tutorial::Animation</a></td><td></td></tr><tr><td><img src="assets/bubble-3-mini.png" alt="thumb" /></td><td><a href="SDL-Tutorial-Images.html">SDL::Tutorial::Images</a></td><td></td></tr><tr><td><img src="assets/bubble-4-mini.png" alt="thumb" /></td><td><a href="SDL-Tutorial-LunarLander.html">SDL::Tutorial::LunarLander</a></td><td>- a small tutorial on Perl SDL</td></tr><tr><td><img src="assets/bubble-3-mini.png" alt="thumb" /></td><td><a href="SDL-Tutorial-Pong.html">SDL::Tutorial::Pong</a></td><td></td></tr><tr><td><img src="assets/bubble-2-mini.png" alt="thumb" /></td><td><a href="SDL-Tutorial-Tetris.html">SDL::Tutorial::Tetris</a></td><td></td></tr></table><br /><table style="margin-left: 0px; margin-top: 5px"><tr><td colspan="3"><strong style="font-size: 14px">UNCATEGORIZED</strong></td></tr><tr><td><img src="assets/bubble-4-mini.png" alt="thumb" /></td><td><a href="SDL-Font.html">SDL::Font</a></td><td>- a SDL perl extension</td></tr><tr><td><img src="assets/bubble-2-mini.png" alt="thumb" /></td><td><a href="SDL-Game-Palette.html">SDL::Game::Palette</a></td><td>- a perl extension</td></tr><tr><td><img src="assets/bubble-5-mini.png" alt="thumb" /></td><td><a href="SDL-MPEG.html">SDL::MPEG</a></td><td>- a SDL perl extension</td></tr><tr><td><img src="assets/bubble-3-mini.png" alt="thumb" /></td><td><a href="SDL-Music.html">SDL::Music</a></td><td>- a perl extension</td></tr><tr><td><img src="assets/bubble-7-mini.png" alt="thumb" /></td><td><a href="SDL-OpenGL.html">SDL::OpenGL</a></td><td>- a perl extension</td></tr><tr><td><img src="assets/bubble-4-mini.png" alt="thumb" /></td><td><a href="SDL-SFont.html">SDL::SFont</a></td><td>- a perl extension</td></tr><tr><td><img src="assets/bubble-1-mini.png" alt="thumb" /></td><td><a href="SDL-SMPEG.html">SDL::SMPEG</a></td><td>- a SDL perl extension</td></tr><tr><td><img src="assets/bubble-2-mini.png" alt="thumb" /></td><td><a href="SDL-Sound.html">SDL::Sound</a></td><td>- a perl extension</td></tr><tr><td><img src="assets/bubble-6-mini.png" alt="thumb" /></td><td><a href="SDL-TTFont.html">SDL::TTFont</a></td><td>- a SDL perl extension</td></tr><tr><td><img src="assets/bubble-4-mini.png" alt="thumb" /></td><td><a href="SDL-Timer.html">SDL::Timer</a></td><td>- a SDL perl extension for managing timers.</td></tr><tr><td><img src="assets/bubble-2-mini.png" alt="thumb" /></td><td><a href="SDL-Tool-Font.html">SDL::Tool::Font</a></td><td>- a perl extension</td></tr><tr><td><img src="assets/bubble-7-mini.png" alt="thumb" /></td><td><a href="SDL-Tool-Graphic.html">SDL::Tool::Graphic</a></td><td></td></tr><tr><td><img src="assets/bubble-3-mini.png" alt="thumb" /></td><td><a href="SDL-old-cdrom.html">SDL::old-cdrom</a></td><td>- a SDL perl extension for managing CD-ROM drives</td></tr></table></div>
+<h1>Documentation (latest development branch)</h1><table style="margin-left: 0px; margin-top: 5px"><tr><td colspan="3"><strong style="font-size: 14px">Core</strong></td></tr><tr><td><img src="assets/SDL_thumb.png" alt="thumb" /></td><td><a href="SDL.html">SDL</a></td><td>- Simple DirectMedia Layer for Perl</td></tr></table><table style="margin-left: 60px; margin-top: 5px"><tr><td colspan="3"><strong style="font-size: 14px">Structure</strong></td></tr><tr><td><img src="assets/bubble-6-mini.png" alt="thumb" /></td><td><a href="SDL-AudioCVT.html">SDL::AudioCVT</a></td><td>- Audio Conversion Structure</td></tr><tr><td><img src="assets/bubble-2-mini.png" alt="thumb" /></td><td><a href="SDL-AudioSpec.html">SDL::AudioSpec</a></td><td>- SDL Bindings for structure SDL::AudioSpec</td></tr></table><table style="margin-left: 30px; margin-top: 5px"><tr><td colspan="3"><strong style="font-size: 14px">CDROM</strong></td></tr><tr><td><img src="assets/bubble-1-mini.png" alt="thumb" /></td><td><a href="SDL-CDROM.html">SDL::CDROM</a></td><td>- SDL Bindings for the CDROM device</td></tr></table><table style="margin-left: 60px; margin-top: 5px"><tr><td colspan="3"><strong style="font-size: 14px">Structure</strong></td></tr><tr><td><img src="assets/bubble-2-mini.png" alt="thumb" /></td><td><a href="SDL-CD.html">SDL::CD</a></td><td>- SDL Bindings for structure SDL_CD</td></tr><tr><td><img src="assets/bubble-2-mini.png" alt="thumb" /></td><td><a href="SDL-CDTrack.html">SDL::CDTrack</a></td><td>- SDL Bindings for structure SDL_CDTrack</td></tr></table><table style="margin-left: 30px; margin-top: 5px"><tr><td colspan="3"><strong style="font-size: 14px">Events</strong></td></tr><tr><td><img src="assets/bubble-3-mini.png" alt="thumb" /></td><td><a href="SDL-Events.html">SDL::Events</a></td><td>- Bindings to the Events Category in SDL API</td></tr></table><table style="margin-left: 60px; margin-top: 5px"><tr><td colspan="3"><strong style="font-size: 14px">Structure</strong></td></tr><tr><td><img src="assets/bubble-1-mini.png" alt="thumb" /></td><td><a href="SDL-Event.html">SDL::Event</a></td><td>- General event structure</td></tr></table><table style="margin-left: 30px; margin-top: 5px"><tr><td colspan="3"><strong style="font-size: 14px">Joystick</strong></td></tr><tr><td><img src="assets/bubble-1-mini.png" alt="thumb" /></td><td><a href="SDL-Joystick.html">SDL::Joystick</a></td><td>- SDL Bindings for the Joystick device</td></tr></table><table style="margin-left: 60px; margin-top: 5px"><tr><td colspan="3"><strong style="font-size: 14px">Structure</strong></td></tr><tr><td><img src="assets/bubble-1-mini.png" alt="thumb" /></td><td><a href="SDL-Mixer-MixChunk.html">SDL::Mixer::MixChunk</a></td><td>- SDL Bindings for structure SDL_MixChunk</td></tr></table><table style="margin-left: 30px; margin-top: 5px"><tr><td colspan="3"><strong style="font-size: 14px">Mouse</strong></td></tr><tr><td><img src="assets/bubble-4-mini.png" alt="thumb" /></td><td><a href="SDL-Mouse.html">SDL::Mouse</a></td><td>- SDL Bindings for the Mouse device</td></tr></table><table style="margin-left: 60px; margin-top: 5px"><tr><td colspan="3"><strong style="font-size: 14px">Structure</strong></td></tr><tr><td><img src="assets/bubble-2-mini.png" alt="thumb" /></td><td><a href="SDL-Cursor.html">SDL::Cursor</a></td><td>- Mouse cursor structure</td></tr></table><table style="margin-left: 30px; margin-top: 5px"><tr><td colspan="3"><strong style="font-size: 14px">MultiThread</strong></td></tr><tr><td><img src="assets/bubble-7-mini.png" alt="thumb" /></td><td><a href="SDL-MultiThread.html">SDL::MultiThread</a></td><td>- Bindings to the MultiThread category in SDL API</td></tr></table><table style="margin-left: 30px; margin-top: 5px"><tr><td colspan="3"><strong style="font-size: 14px">Structure</strong></td></tr><tr><td><img src="assets/bubble-4-mini.png" alt="thumb" /></td><td><a href="SDL-Version.html">SDL::Version</a></td><td>- SDL Bindings for structure SDL_Version</td></tr></table><table style="margin-left: 30px; margin-top: 5px"><tr><td colspan="3"><strong style="font-size: 14px">Video</strong></td></tr><tr><td><img src="assets/Video_thumb.png" alt="thumb" /></td><td><a href="SDL-Video.html">SDL::Video</a></td><td>- Bindings to the video category in SDL API</td></tr></table><table style="margin-left: 60px; margin-top: 5px"><tr><td colspan="3"><strong style="font-size: 14px">Structure</strong></td></tr><tr><td><img src="assets/bubble-2-mini.png" alt="thumb" /></td><td><a href="SDL-Color.html">SDL::Color</a></td><td>- Format independent color description</td></tr><tr><td><img src="assets/bubble-5-mini.png" alt="thumb" /></td><td><a href="SDL-Overlay.html">SDL::Overlay</a></td><td>- YUV Video overlay</td></tr><tr><td><img src="assets/bubble-5-mini.png" alt="thumb" /></td><td><a href="SDL-Palette.html">SDL::Palette</a></td><td>- Color palette for 8-bit pixel formats </td></tr><tr><td><img src="assets/bubble-1-mini.png" alt="thumb" /></td><td><a href="SDL-PixelFormat.html">SDL::PixelFormat</a></td><td>- Stores surface format information</td></tr><tr><td><img src="assets/bubble-1-mini.png" alt="thumb" /></td><td><a href="SDL-Rect.html">SDL::Rect</a></td><td>- Defines a rectangular area</td></tr><tr><td><img src="assets/bubble-3-mini.png" alt="thumb" /></td><td><a href="SDL-Surface.html">SDL::Surface</a></td><td>- Graphic surface structure.</td></tr><tr><td><img src="assets/bubble-3-mini.png" alt="thumb" /></td><td><a href="SDL-VideoInfo.html">SDL::VideoInfo</a></td><td>- Video Target Information </td></tr></table><br /><table style="margin-left: 0px; margin-top: 5px"><tr><td colspan="3"><strong style="font-size: 14px">Cookbook</strong></td></tr><tr><td><img src="assets/bubble-7-mini.png" alt="thumb" /></td><td><a href="SDL-Cookbook.html">SDL::Cookbook</a></td><td></td></tr><tr><td><img src="assets/bubble-5-mini.png" alt="thumb" /></td><td><a href="SDL-Cookbook-PDL.html">SDL::Cookbook::PDL</a></td><td></td></tr></table><br /><table style="margin-left: 0px; margin-top: 5px"><tr><td colspan="3"><strong style="font-size: 14px">Extension</strong></td></tr><tr><td><img src="assets/bubble-5-mini.png" alt="thumb" /></td><td><a href="SDL-App.html">SDL::App</a></td><td>- a SDL perl extension</td></tr></table><br /><table style="margin-left: 0px; margin-top: 5px"><tr><td colspan="3"><strong style="font-size: 14px">Mixer</strong></td></tr><tr><td><img src="assets/bubble-7-mini.png" alt="thumb" /></td><td><a href="SDL-Mixer.html">SDL::Mixer</a></td><td>- a SDL perl extension</td></tr><table style="margin-left: 0px; margin-top: 5px"><tr><td colspan="3"><strong style="font-size: 14px">TODO</strong></td></tr><table style="margin-left: 30px; margin-top: 5px"><tr><td colspan="3"><strong style="font-size: 14px">Core</strong></td></tr></table><table style="margin-left: 60px; margin-top: 5px"><tr><td colspan="3"><strong style="font-size: 14px">Audio</strong></td></tr><tr><td><img src="assets/bubble-5-mini.png" alt="thumb" /></td><td><a href="SDL-Audio.html">SDL::Audio</a></td><td>- SDL Bindings for Audio</td></tr></table><table style="margin-left: 90px; margin-top: 5px"><tr><td colspan="3"><strong style="font-size: 14px">Structure</strong></td></tr><tr><td><img src="assets/bubble-2-mini.png" alt="thumb" /></td><td><a href="SDL-Mixer-MixMusic.html">SDL::Mixer::MixMusic</a></td><td>- SDL Bindings for structure SDL_MixMusic</td></tr></table><table style="margin-left: 60px; margin-top: 5px"><tr><td colspan="3"><strong style="font-size: 14px">Structure</strong></td></tr><tr><td><img src="assets/bubble-2-mini.png" alt="thumb" /></td><td><a href="SDL-RWOps.html">SDL::RWOps</a></td><td>- SDL Bindings to SDL_RWOPs</td></tr></table><br /><table style="margin-left: 0px; margin-top: 5px"><tr><td colspan="3"><strong style="font-size: 14px">Tutorials</strong></td></tr><tr><td><img src="assets/bubble-2-mini.png" alt="thumb" /></td><td><a href="SDL-Tutorial.html">SDL::Tutorial</a></td><td>- introduction to Perl SDL</td></tr><tr><td><img src="assets/bubble-7-mini.png" alt="thumb" /></td><td><a href="SDL-Tutorial-Animation.html">SDL::Tutorial::Animation</a></td><td></td></tr><tr><td><img src="assets/bubble-4-mini.png" alt="thumb" /></td><td><a href="SDL-Tutorial-Images.html">SDL::Tutorial::Images</a></td><td></td></tr><tr><td><img src="assets/bubble-7-mini.png" alt="thumb" /></td><td><a href="SDL-Tutorial-LunarLander.html">SDL::Tutorial::LunarLander</a></td><td>- a small tutorial on Perl SDL</td></tr><tr><td><img src="assets/bubble-2-mini.png" alt="thumb" /></td><td><a href="SDL-Tutorial-Pong.html">SDL::Tutorial::Pong</a></td><td></td></tr><tr><td><img src="assets/bubble-5-mini.png" alt="thumb" /></td><td><a href="SDL-Tutorial-Tetris.html">SDL::Tutorial::Tetris</a></td><td></td></tr></table><br /><table style="margin-left: 0px; margin-top: 5px"><tr><td colspan="3"><strong style="font-size: 14px">UNCATEGORIZED</strong></td></tr><tr><td><img src="assets/bubble-1-mini.png" alt="thumb" /></td><td><a href="SDL-Font.html">SDL::Font</a></td><td>- a SDL perl extension</td></tr><tr><td><img src="assets/bubble-3-mini.png" alt="thumb" /></td><td><a href="SDL-Game-Palette.html">SDL::Game::Palette</a></td><td>- a perl extension</td></tr><tr><td><img src="assets/bubble-4-mini.png" alt="thumb" /></td><td><a href="SDL-MPEG.html">SDL::MPEG</a></td><td>- a SDL perl extension</td></tr><tr><td><img src="assets/bubble-1-mini.png" alt="thumb" /></td><td><a href="SDL-Music.html">SDL::Music</a></td><td>- a perl extension</td></tr><tr><td><img src="assets/bubble-1-mini.png" alt="thumb" /></td><td><a href="SDL-OpenGL.html">SDL::OpenGL</a></td><td>- a perl extension</td></tr><tr><td><img src="assets/bubble-7-mini.png" alt="thumb" /></td><td><a href="SDL-SFont.html">SDL::SFont</a></td><td>- a perl extension</td></tr><tr><td><img src="assets/bubble-3-mini.png" alt="thumb" /></td><td><a href="SDL-SMPEG.html">SDL::SMPEG</a></td><td>- a SDL perl extension</td></tr><tr><td><img src="assets/bubble-4-mini.png" alt="thumb" /></td><td><a href="SDL-Sound.html">SDL::Sound</a></td><td>- a perl extension</td></tr><tr><td><img src="assets/bubble-5-mini.png" alt="thumb" /></td><td><a href="SDL-TTFont.html">SDL::TTFont</a></td><td>- a SDL perl extension</td></tr><tr><td><img src="assets/bubble-2-mini.png" alt="thumb" /></td><td><a href="SDL-Timer.html">SDL::Timer</a></td><td>- a SDL perl extension for managing timers.</td></tr><tr><td><img src="assets/bubble-5-mini.png" alt="thumb" /></td><td><a href="SDL-Tool-Font.html">SDL::Tool::Font</a></td><td>- a perl extension</td></tr><tr><td><img src="assets/bubble-7-mini.png" alt="thumb" /></td><td><a href="SDL-Tool-Graphic.html">SDL::Tool::Graphic</a></td><td></td></tr><tr><td><img src="assets/bubble-3-mini.png" alt="thumb" /></td><td><a href="SDL-old-cdrom.html">SDL::old-cdrom</a></td><td>- a SDL perl extension for managing CD-ROM drives</td></tr></table></div>
index fcf33b7..a424a55 100644 (file)
@@ -1 +1 @@
-<div class="blog"><h1>Results for tag: Alien</h1><div><a href="blog-0023.html">Alien::SDL 0.01 released!!!</a><br /><span style="font-size: 10px">Thursday, 27 August 2009</span><br /><span style="font-size: 10px">Tags:  <a href="tags-Alien.html" style="font-size: 10px">[Alien]</a> <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 />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 /><a href="blog-0023.html" style="font-size: 12px">[more]</a><br /><br /></div></div>
\ No newline at end of file
+<div class="blog"><h1>Results for tag: Alien</h1><div><a href="blog-0024.html">Alien::SDL 0.01 released!!!</a><br /><span style="font-size: 10px">Thursday, 27 August 2009</span><br /><span style="font-size: 10px">Tags:  <a href="tags-Alien.html" style="font-size: 10px">[Alien]</a> <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 />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 /><a href="blog-0024.html" style="font-size: 12px">[more]</a><br /><br /></div></div>
\ No newline at end of file
index 1067e5b..fb35df6 100644 (file)
@@ -1 +1 @@
-<div class="blog"><h1>Results for tag: CPAN</h1><div><a href="blog-0014.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-0014.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0015.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-0015.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0016.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-0016.html" style="font-size: 12px">[more]</a><br /><br /></div></div>
\ No newline at end of file
+<div class="blog"><h1>Results for tag: CPAN</h1><div><a href="blog-0015.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-0015.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0016.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-0016.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0017.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-0017.html" style="font-size: 12px">[more]</a><br /><br /></div></div>
\ No newline at end of file
index 076c923..e9dd29b 100644 (file)
@@ -1 +1 @@
-<div class="blog"><h1>Results for tag: Design</h1><div><a href="blog-0006.html">The Future and Beyond!</a><br /><span style="font-size: 10px">Saturday, 24 October 2009</span><br /><span style="font-size: 10px">Tags:  <a href="tags-Design.html" style="font-size: 10px">[Design]</a> <a href="tags-SDL.html" style="font-size: 10px">[SDL]</a> <a href="tags-Updates.html" style="font-size: 10px">[Updates]</a> <a href="tags-games.html" style="font-size: 10px">[games]</a></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 /><a href="blog-0006.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0007.html">The beginnings of modular design for SDL Perl</a><br /><span style="font-size: 10px">Sunday, 11 October 2009</span><br /><span style="font-size: 10px">Tags:  <a href="tags-Design.html" style="font-size: 10px">[Design]</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 /> 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 /><a href="blog-0007.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0011.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-0011.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0012.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-0012.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0013.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-0013.html" style="font-size: 12px">[more]</a><br /><br /></div></div>
\ No newline at end of file
+<div class="blog"><h1>Results for tag: Design</h1><div><a href="blog-0007.html">The Future and Beyond!</a><br /><span style="font-size: 10px">Saturday, 24 October 2009</span><br /><span style="font-size: 10px">Tags:  <a href="tags-Design.html" style="font-size: 10px">[Design]</a> <a href="tags-SDL.html" style="font-size: 10px">[SDL]</a> <a href="tags-Updates.html" style="font-size: 10px">[Updates]</a> <a href="tags-games.html" style="font-size: 10px">[games]</a></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 /><a href="blog-0007.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0008.html">The beginnings of modular design for SDL Perl</a><br /><span style="font-size: 10px">Sunday, 11 October 2009</span><br /><span style="font-size: 10px">Tags:  <a href="tags-Design.html" style="font-size: 10px">[Design]</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 /> 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 /><a href="blog-0008.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0012.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-0012.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0013.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-0013.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0014.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-0014.html" style="font-size: 12px">[more]</a><br /><br /></div></div>
\ No newline at end of file
index f0d2d13..e1fe071 100644 (file)
@@ -1 +1 @@
-<div class="blog"><h1>Results for tag: Docs</h1><div><a href="blog-0010.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-0010.html" style="font-size: 12px">[more]</a><br /><br /></div></div>
\ No newline at end of file
+<div class="blog"><h1>Results for tag: Docs</h1><div><a href="blog-0001.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-0001.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0011.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-0011.html" style="font-size: 12px">[more]</a><br /><br /></div></div>
\ No newline at end of file
index da69811..2ed35bd 100644 (file)
@@ -1 +1 @@
-<div class="blog"><h1>Results for tag: Example</h1><div><a href="blog-0001.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-0001.html" style="font-size: 12px">[more]</a><br /><br /></div></div>
\ No newline at end of file
+<div class="blog"><h1>Results for tag: Example</h1><div><a href="blog-0002.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-0002.html" style="font-size: 12px">[more]</a><br /><br /></div></div>
\ No newline at end of file
index 3e8cf0d..8ed0ae1 100644 (file)
@@ -1 +1 @@
-<div class="blog"><h1>Results for tag: Frozen Bubble</h1><div><a href="blog-0008.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-0008.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0015.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-0015.html" style="font-size: 12px">[more]</a><br /><br /></div></div>
\ No newline at end of file
+<div class="blog"><h1>Results for tag: Frozen Bubble</h1><div><a href="blog-0009.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-0009.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0016.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-0016.html" style="font-size: 12px">[more]</a><br /><br /></div></div>
\ No newline at end of file
index 0faebe5..31d7c34 100644 (file)
@@ -1 +1 @@
-<div class="blog"><h1>Results for tag: HackFest</h1><div><a href="blog-0009.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-0009.html" style="font-size: 12px">[more]</a><br /><br /></div></div>
\ No newline at end of file
+<div class="blog"><h1>Results for tag: HackFest</h1><div><a href="blog-0010.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-0010.html" style="font-size: 12px">[more]</a><br /><br /></div></div>
\ No newline at end of file
index 2db04ee..d2b0210 100644 (file)
@@ -1 +1 @@
-<div class="blog"><h1>Results for tag: Perl</h1><div><a href="blog-0001.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-0001.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0002.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-0002.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0003.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-0003.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0004.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-0004.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0005.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-0005.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0008.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-0008.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0009.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-0009.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0010.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-0010.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0011.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-0011.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0012.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-0012.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0013.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-0013.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0014.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-0014.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0015.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-0015.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0016.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-0016.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0017.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-0017.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0018.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-0018.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0019.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-0019.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0020.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-0020.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0021.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-0021.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0022.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-0022.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0023.html">Alien::SDL 0.01 released!!!</a><br /><span style="font-size: 10px">Thursday, 27 August 2009</span><br /><span style="font-size: 10px">Tags:  <a href="tags-Alien.html" style="font-size: 10px">[Alien]</a> <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 />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 /><a href="blog-0023.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0024.html">SDL perl is coming to Strawberry!!</a><br /><span style="font-size: 10px">Wednesday, 26 August 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 />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 /><a href="blog-0024.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0025.html">My milestones (itches) for gaming in Perl</a><br /><span style="font-size: 10px">Tuesday, 25 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-personal.html" style="font-size: 10px">[personal]</a></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 /><a href="blog-0025.html" style="font-size: 12px">[more]</a><br /><br /></div></div>
\ No newline at end of file
+<div class="blog"><h1>Results for tag: Perl</h1><div><a href="blog-0001.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-0001.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0002.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-0002.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0003.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-0003.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0004.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-0004.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0005.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-0005.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0006.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-0006.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0009.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-0009.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0010.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-0010.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0011.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-0011.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0012.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-0012.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0013.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-0013.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0014.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-0014.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0015.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-0015.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0016.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-0016.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0017.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-0017.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0018.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-0018.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0019.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-0019.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0020.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-0020.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0021.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-0021.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0022.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-0022.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0023.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-0023.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0024.html">Alien::SDL 0.01 released!!!</a><br /><span style="font-size: 10px">Thursday, 27 August 2009</span><br /><span style="font-size: 10px">Tags:  <a href="tags-Alien.html" style="font-size: 10px">[Alien]</a> <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 />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 /><a href="blog-0024.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0025.html">SDL perl is coming to Strawberry!!</a><br /><span style="font-size: 10px">Wednesday, 26 August 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 />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 /><a href="blog-0025.html" style="font-size: 12px">[more]</a><br /><br /></div></div>
\ No newline at end of file
index 0d33ac8..6992c22 100644 (file)
@@ -1 +1 @@
-<div class="blog"><h1>Results for tag: Questions</h1><div><a href="blog-0020.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-0020.html" style="font-size: 12px">[more]</a><br /><br /></div></div>
\ No newline at end of file
+<div class="blog"><h1>Results for tag: Questions</h1><div><a href="blog-0021.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-0021.html" style="font-size: 12px">[more]</a><br /><br /></div></div>
\ No newline at end of file
index f8d0319..a97426a 100644 (file)
@@ -1 +1 @@
-<div class="blog"><h1>Results for tag: Releases</h1><div><a href="blog-0023.html">Alien::SDL 0.01 released!!!</a><br /><span style="font-size: 10px">Thursday, 27 August 2009</span><br /><span style="font-size: 10px">Tags:  <a href="tags-Alien.html" style="font-size: 10px">[Alien]</a> <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 />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 /><a href="blog-0023.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0024.html">SDL perl is coming to Strawberry!!</a><br /><span style="font-size: 10px">Wednesday, 26 August 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 />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 /><a href="blog-0024.html" style="font-size: 12px">[more]</a><br /><br /></div></div>
\ No newline at end of file
+<div class="blog"><h1>Results for tag: Releases</h1><div><a href="blog-0024.html">Alien::SDL 0.01 released!!!</a><br /><span style="font-size: 10px">Thursday, 27 August 2009</span><br /><span style="font-size: 10px">Tags:  <a href="tags-Alien.html" style="font-size: 10px">[Alien]</a> <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 />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 /><a href="blog-0024.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0025.html">SDL perl is coming to Strawberry!!</a><br /><span style="font-size: 10px">Wednesday, 26 August 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 />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 /><a href="blog-0025.html" style="font-size: 12px">[more]</a><br /><br /></div></div>
\ No newline at end of file
index 8e44a16..55b618e 100644 (file)
@@ -1 +1 @@
-<div class="blog"><h1>Results for tag: SDL</h1><div><a href="blog-0001.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-0001.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0002.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-0002.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0003.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-0003.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0004.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-0004.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0005.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-0005.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0006.html">The Future and Beyond!</a><br /><span style="font-size: 10px">Saturday, 24 October 2009</span><br /><span style="font-size: 10px">Tags:  <a href="tags-Design.html" style="font-size: 10px">[Design]</a> <a href="tags-SDL.html" style="font-size: 10px">[SDL]</a> <a href="tags-Updates.html" style="font-size: 10px">[Updates]</a> <a href="tags-games.html" style="font-size: 10px">[games]</a></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 /><a href="blog-0006.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0007.html">The beginnings of modular design for SDL Perl</a><br /><span style="font-size: 10px">Sunday, 11 October 2009</span><br /><span style="font-size: 10px">Tags:  <a href="tags-Design.html" style="font-size: 10px">[Design]</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 /> 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 /><a href="blog-0007.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0008.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-0008.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0009.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-0009.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0010.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-0010.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0011.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-0011.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0012.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-0012.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0013.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-0013.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0014.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-0014.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0015.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-0015.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0016.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-0016.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0018.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-0018.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0019.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-0019.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0020.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-0020.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0021.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-0021.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0022.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-0022.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0023.html">Alien::SDL 0.01 released!!!</a><br /><span style="font-size: 10px">Thursday, 27 August 2009</span><br /><span style="font-size: 10px">Tags:  <a href="tags-Alien.html" style="font-size: 10px">[Alien]</a> <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 />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 /><a href="blog-0023.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0024.html">SDL perl is coming to Strawberry!!</a><br /><span style="font-size: 10px">Wednesday, 26 August 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 />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 /><a href="blog-0024.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0025.html">My milestones (itches) for gaming in Perl</a><br /><span style="font-size: 10px">Tuesday, 25 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-personal.html" style="font-size: 10px">[personal]</a></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 /><a href="blog-0025.html" style="font-size: 12px">[more]</a><br /><br /></div></div>
\ No newline at end of file
+<div class="blog"><h1>Results for tag: SDL</h1><div><a href="blog-0001.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-0001.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0002.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-0002.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0003.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-0003.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0004.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-0004.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0005.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-0005.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0006.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-0006.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0007.html">The Future and Beyond!</a><br /><span style="font-size: 10px">Saturday, 24 October 2009</span><br /><span style="font-size: 10px">Tags:  <a href="tags-Design.html" style="font-size: 10px">[Design]</a> <a href="tags-SDL.html" style="font-size: 10px">[SDL]</a> <a href="tags-Updates.html" style="font-size: 10px">[Updates]</a> <a href="tags-games.html" style="font-size: 10px">[games]</a></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 /><a href="blog-0007.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0008.html">The beginnings of modular design for SDL Perl</a><br /><span style="font-size: 10px">Sunday, 11 October 2009</span><br /><span style="font-size: 10px">Tags:  <a href="tags-Design.html" style="font-size: 10px">[Design]</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 /> 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 /><a href="blog-0008.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0009.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-0009.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0010.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-0010.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0011.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-0011.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0012.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-0012.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0013.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-0013.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0014.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-0014.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0015.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-0015.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0016.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-0016.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0017.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-0017.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0019.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-0019.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0020.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-0020.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0021.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-0021.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0022.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-0022.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0023.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-0023.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0024.html">Alien::SDL 0.01 released!!!</a><br /><span style="font-size: 10px">Thursday, 27 August 2009</span><br /><span style="font-size: 10px">Tags:  <a href="tags-Alien.html" style="font-size: 10px">[Alien]</a> <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 />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 /><a href="blog-0024.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0025.html">SDL perl is coming to Strawberry!!</a><br /><span style="font-size: 10px">Wednesday, 26 August 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 />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 /><a href="blog-0025.html" style="font-size: 12px">[more]</a><br /><br /></div></div>
\ No newline at end of file
index cda25f3..c238db5 100644 (file)
@@ -1 +1 @@
-<div class="blog"><h1>Results for tag: Sneak Preview</h1><div><a href="blog-0003.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-0003.html" style="font-size: 12px">[more]</a><br /><br /></div></div>
\ No newline at end of file
+<div class="blog"><h1>Results for tag: Sneak Preview</h1><div><a href="blog-0004.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-0004.html" style="font-size: 12px">[more]</a><br /><br /></div></div>
\ No newline at end of file
index 04981f2..0a9082f 100644 (file)
@@ -1 +1 @@
-<div class="blog"><h1>Results for tag: Tutorial</h1><div><a href="blog-0011.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-0011.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0017.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-0017.html" style="font-size: 12px">[more]</a><br /><br /></div></div>
\ No newline at end of file
+<div class="blog"><h1>Results for tag: Tutorial</h1><div><a href="blog-0012.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-0012.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0018.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-0018.html" style="font-size: 12px">[more]</a><br /><br /></div></div>
\ No newline at end of file
index 18fabd2..45bdf3a 100644 (file)
@@ -1 +1 @@
-<div class="blog"><h1>Results for tag: Updates</h1><div><a href="blog-0004.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-0004.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0005.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-0005.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0006.html">The Future and Beyond!</a><br /><span style="font-size: 10px">Saturday, 24 October 2009</span><br /><span style="font-size: 10px">Tags:  <a href="tags-Design.html" style="font-size: 10px">[Design]</a> <a href="tags-SDL.html" style="font-size: 10px">[SDL]</a> <a href="tags-Updates.html" style="font-size: 10px">[Updates]</a> <a href="tags-games.html" style="font-size: 10px">[games]</a></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 /><a href="blog-0006.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0007.html">The beginnings of modular design for SDL Perl</a><br /><span style="font-size: 10px">Sunday, 11 October 2009</span><br /><span style="font-size: 10px">Tags:  <a href="tags-Design.html" style="font-size: 10px">[Design]</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 /> 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 /><a href="blog-0007.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0013.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-0013.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0019.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-0019.html" style="font-size: 12px">[more]</a><br /><br /></div></div>
\ No newline at end of file
+<div class="blog"><h1>Results for tag: Updates</h1><div><a href="blog-0005.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-0005.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0006.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-0006.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0007.html">The Future and Beyond!</a><br /><span style="font-size: 10px">Saturday, 24 October 2009</span><br /><span style="font-size: 10px">Tags:  <a href="tags-Design.html" style="font-size: 10px">[Design]</a> <a href="tags-SDL.html" style="font-size: 10px">[SDL]</a> <a href="tags-Updates.html" style="font-size: 10px">[Updates]</a> <a href="tags-games.html" style="font-size: 10px">[games]</a></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 /><a href="blog-0007.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0008.html">The beginnings of modular design for SDL Perl</a><br /><span style="font-size: 10px">Sunday, 11 October 2009</span><br /><span style="font-size: 10px">Tags:  <a href="tags-Design.html" style="font-size: 10px">[Design]</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 /> 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 /><a href="blog-0008.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0014.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-0014.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0020.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-0020.html" style="font-size: 12px">[more]</a><br /><br /></div></div>
\ No newline at end of file
index f782f51..f53ff9b 100644 (file)
@@ -1 +1 @@
-<div class="blog"><h1>Results for tag: XS</h1><div><a href="blog-0002.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-0002.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0017.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-0017.html" style="font-size: 12px">[more]</a><br /><br /></div></div>
\ No newline at end of file
+<div class="blog"><h1>Results for tag: XS</h1><div><a href="blog-0003.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-0003.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0018.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-0018.html" style="font-size: 12px">[more]</a><br /><br /></div></div>
\ No newline at end of file
index 0391343..8ed2b42 100644 (file)
@@ -1 +1 @@
-<div class="blog"><h1>Results for tag: games</h1><div><a href="blog-0006.html">The Future and Beyond!</a><br /><span style="font-size: 10px">Saturday, 24 October 2009</span><br /><span style="font-size: 10px">Tags:  <a href="tags-Design.html" style="font-size: 10px">[Design]</a> <a href="tags-SDL.html" style="font-size: 10px">[SDL]</a> <a href="tags-Updates.html" style="font-size: 10px">[Updates]</a> <a href="tags-games.html" style="font-size: 10px">[games]</a></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 /><a href="blog-0006.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0018.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-0018.html" style="font-size: 12px">[more]</a><br /><br /></div></div>
\ No newline at end of file
+<div class="blog"><h1>Results for tag: games</h1><div><a href="blog-0007.html">The Future and Beyond!</a><br /><span style="font-size: 10px">Saturday, 24 October 2009</span><br /><span style="font-size: 10px">Tags:  <a href="tags-Design.html" style="font-size: 10px">[Design]</a> <a href="tags-SDL.html" style="font-size: 10px">[SDL]</a> <a href="tags-Updates.html" style="font-size: 10px">[Updates]</a> <a href="tags-games.html" style="font-size: 10px">[games]</a></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 /><a href="blog-0007.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0019.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-0019.html" style="font-size: 12px">[more]</a><br /><br /></div></div>
\ No newline at end of file
index 439630c..f50eb41 100644 (file)
@@ -1,17 +1,17 @@
-Alien: blog-0023.html-inc
-CPAN: blog-0014.html-inc,blog-0015.html-inc,blog-0016.html-inc
-Design: blog-0006.html-inc,blog-0007.html-inc,blog-0011.html-inc,blog-0012.html-inc,blog-0013.html-inc
-Docs: blog-0010.html-inc
-Example: blog-0001.html-inc
-Frozen Bubble: blog-0008.html-inc,blog-0015.html-inc
-HackFest: blog-0009.html-inc
-Perl: blog-0001.html-inc,blog-0002.html-inc,blog-0003.html-inc,blog-0004.html-inc,blog-0005.html-inc,blog-0008.html-inc,blog-0009.html-inc,blog-0010.html-inc,blog-0011.html-inc,blog-0012.html-inc,blog-0013.html-inc,blog-0014.html-inc,blog-0015.html-inc,blog-0016.html-inc,blog-0017.html-inc,blog-0018.html-inc,blog-0019.html-inc,blog-0020.html-inc,blog-0021.html-inc,blog-0022.html-inc,blog-0023.html-inc,blog-0024.html-inc,blog-0025.html-inc
-Questions: blog-0020.html-inc
-Releases: blog-0023.html-inc,blog-0024.html-inc
-SDL: blog-0001.html-inc,blog-0002.html-inc,blog-0003.html-inc,blog-0004.html-inc,blog-0005.html-inc,blog-0006.html-inc,blog-0007.html-inc,blog-0008.html-inc,blog-0009.html-inc,blog-0010.html-inc,blog-0011.html-inc,blog-0012.html-inc,blog-0013.html-inc,blog-0014.html-inc,blog-0015.html-inc,blog-0016.html-inc,blog-0018.html-inc,blog-0019.html-inc,blog-0020.html-inc,blog-0021.html-inc,blog-0022.html-inc,blog-0023.html-inc,blog-0024.html-inc,blog-0025.html-inc
-Sneak Preview: blog-0003.html-inc
-Tutorial: blog-0011.html-inc,blog-0017.html-inc
-Updates: blog-0004.html-inc,blog-0005.html-inc,blog-0006.html-inc,blog-0007.html-inc,blog-0013.html-inc,blog-0019.html-inc
-XS: blog-0002.html-inc,blog-0017.html-inc
-games: blog-0006.html-inc,blog-0018.html-inc
-personal: blog-0016.html-inc,blog-0025.html-inc
+Alien: blog-0024.html-inc
+CPAN: blog-0015.html-inc,blog-0016.html-inc,blog-0017.html-inc
+Design: blog-0007.html-inc,blog-0008.html-inc,blog-0012.html-inc,blog-0013.html-inc,blog-0014.html-inc
+Docs: blog-0001.html-inc,blog-0011.html-inc
+Example: blog-0002.html-inc
+Frozen Bubble: blog-0009.html-inc,blog-0016.html-inc
+HackFest: blog-0010.html-inc
+Perl: blog-0001.html-inc,blog-0002.html-inc,blog-0003.html-inc,blog-0004.html-inc,blog-0005.html-inc,blog-0006.html-inc,blog-0009.html-inc,blog-0010.html-inc,blog-0011.html-inc,blog-0012.html-inc,blog-0013.html-inc,blog-0014.html-inc,blog-0015.html-inc,blog-0016.html-inc,blog-0017.html-inc,blog-0018.html-inc,blog-0019.html-inc,blog-0020.html-inc,blog-0021.html-inc,blog-0022.html-inc,blog-0023.html-inc,blog-0024.html-inc,blog-0025.html-inc
+Questions: blog-0021.html-inc
+Releases: blog-0024.html-inc,blog-0025.html-inc
+SDL: blog-0001.html-inc,blog-0002.html-inc,blog-0003.html-inc,blog-0004.html-inc,blog-0005.html-inc,blog-0006.html-inc,blog-0007.html-inc,blog-0008.html-inc,blog-0009.html-inc,blog-0010.html-inc,blog-0011.html-inc,blog-0012.html-inc,blog-0013.html-inc,blog-0014.html-inc,blog-0015.html-inc,blog-0016.html-inc,blog-0017.html-inc,blog-0019.html-inc,blog-0020.html-inc,blog-0021.html-inc,blog-0022.html-inc,blog-0023.html-inc,blog-0024.html-inc,blog-0025.html-inc
+Sneak Preview: blog-0004.html-inc
+Tutorial: blog-0012.html-inc,blog-0018.html-inc
+Updates: blog-0005.html-inc,blog-0006.html-inc,blog-0007.html-inc,blog-0008.html-inc,blog-0014.html-inc,blog-0020.html-inc
+XS: blog-0003.html-inc,blog-0018.html-inc
+games: blog-0007.html-inc,blog-0019.html-inc
+personal: blog-0017.html-inc
index a7db01e..8dbc4a7 100644 (file)
@@ -1 +1 @@
-<div class="blog"><h1>Results for tag: personal</h1><div><a href="blog-0016.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-0016.html" style="font-size: 12px">[more]</a><br /><br /></div><hr /><div><a href="blog-0025.html">My milestones (itches) for gaming in Perl</a><br /><span style="font-size: 10px">Tuesday, 25 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-personal.html" style="font-size: 10px">[personal]</a></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 /><a href="blog-0025.html" style="font-size: 12px">[more]</a><br /><br /></div></div>
\ No newline at end of file
+<div class="blog"><h1>Results for tag: personal</h1><div><a href="blog-0017.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-0017.html" style="font-size: 12px">[more]</a><br /><br /></div></div>
\ No newline at end of file
diff --git a/tools/LinkResolver.pm b/tools/LinkResolver.pm
deleted file mode 100644 (file)
index 998cd46..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-
-package LinkResolver;
-use Pod::ParseUtils;
-use base qw(Pod::Hyperlink);
-
-sub new
-{
-       my $class = shift;
-       my $css = shift;
-       my $self = $class->SUPER::new();
-       $self->{css} = $css;
-       return $self;
-}
-
-sub node
-{
-       my $self = shift;
-       if($self->SUPER::type() eq 'page')
-       {
-               my $url = "?module=".$self->SUPER::page();
-               $url.=";css=".$_ for @{$self->{css}};
-               return $url;
-       }
-       $self->SUPER::node(@_);
-}
-
-sub text
-{
-       my $self = shift;
-       return $self->SUPER::page() if($self->SUPER::type() eq 'page');
-       $self->SUPER::text(@_);
-}
-
-sub type
-{
-       my $self = shift;
-       return "hyperlink" if($self->SUPER::type() eq 'page');
-       $self->SUPER::type(@_);
-}
-
-1;
-