blog index is 0000
Tobias Leich [Fri, 13 Nov 2009 18:32:12 +0000 (19:32 +0100)]
28 files changed:
pages/blog-0000.html.inc [new file with mode: 0644]
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 [new file with mode: 0644]
pages/blog-index.html.inc
pages/tags-index

diff --git a/pages/blog-0000.html.inc b/pages/blog-0000.html.inc
new file mode 100644 (file)
index 0000000..f0a8ce6
--- /dev/null
@@ -0,0 +1,2 @@
+<div class="blog">
+<a href="/blog-0001.html">Once in a while .... (set_event_filter)</a><br /><br /><a href="/blog-0002.html">Hello Mouse? An Example of the New Event Code</a><br /><br /><a href="/blog-0003.html">Development Update</a><br /><br /><a href="/blog-0004.html">Development Update</a><br /><br /><a href="/blog-0005.html">The Future and Beyond!</a><br /><br /><a href="/blog-0006.html">The beginnings of modular design for SDL Perl</a><br /><br /><a href="/blog-0007.html">Why and How Frozen Bubble is going to CPAN</a><br /><br /><a href="/blog-0008.html">HackFest: Results</a><br /><br /><a href="/blog-0009.html">Updates, Falling Block Game, and Hack Fest</a><br /><br /><a href="/blog-0010.html">Thanks nothingmuch, and updates</a><br /><br /><a href="/blog-0011.html">Design of SDL::Rect</a><br /><br /><a href="/blog-0012.html">Updates and Design Decisions</a><br /><br /><a href="/blog-0013.html">Why I will be sticking to CPAN</a><br /><br /><a href="/blog-0014.html">Frozen Bubble coming to CPAN</a><br /><br /><a href="/blog-0015.html">Newbie Friendly Perl Projects</a><br /><br /><a href="/blog-0016.html">Can someone please point me to good XS documentation!</a><br /><br /><a href="/blog-0017.html">More Games + Update</a><br /><br /><a href="/blog-0018.html">Updates on Plan for v2.4</a><br /><br /><a href="/blog-0019.html">Code is not the only thing</a><br /><br /><a href="/blog-0020.html">SDL Perl v2.2.2 out and Plans for v2.4</a><br /><br /><a href="/blog-0021.html">Catching memory leaks in XS</a><br /><br /><a href="/blog-0022.html">Alien::SDL 0.01 released!!!</a><br /><br /><a href="/blog-0023.html">SDL perl is coming to Strawberry!!</a><br /><br /><a href="/blog-0024.html">My milestones (itches) for gaming in Perl</a><br /><br /><a href="/blog-0025.html">SDL Perl Windows Status</a><br /><br /></div>
index 9299b79..8db63a9 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'/></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'/></div></div></div>
\ No newline at end of file
index 29b3a3a..9299b79 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'/></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'/></div></div></div>
\ No newline at end of file
index 3b3edbf..29b3a3a 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'/></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'/></div></div></div>
\ No newline at end of file
index a69f1fc..3b3edbf 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'/></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'/></div></div></div>
\ No newline at end of file
index 8c28eca..a69f1fc 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'/></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'/></div></div></div>
\ No newline at end of file
index 6d16fab..8c28eca 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'/></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'/></div></div></div>
\ No newline at end of file
index 3edda7c..6d16fab 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'/></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'/></div></div></div>
\ No newline at end of file
index 3914b4b..3edda7c 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'/></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'/></div></div></div>
\ No newline at end of file
index 7372dee..3914b4b 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'/></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'/></div></div></div>
\ No newline at end of file
index 5d372f6..7372dee 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'/></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'/></div></div></div>
\ No newline at end of file
index 18374bc..5d372f6 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'/></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'/></div></div></div>
\ No newline at end of file
index bc22120..18374bc 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'/></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'/></div></div></div>
\ No newline at end of file
index 9d2f12c..bc22120 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'/></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'/></div></div></div>
\ No newline at end of file
index 2fd0e2b..9d2f12c 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'/></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'/></div></div></div>
\ No newline at end of file
index bdbb62b..2fd0e2b 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'/></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'/></div></div></div>
\ No newline at end of file
index e2a1213..bdbb62b 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'/></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'/></div></div></div>
\ No newline at end of file
index e2aa177..e2a1213 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'/></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'/></div></div></div>
\ No newline at end of file
index 298a7b6..e2aa177 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'/></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'/></div></div></div>
\ No newline at end of file
index 720d4f0..298a7b6 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'/></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'/></div></div></div>
\ No newline at end of file
index da0846f..720d4f0 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'/></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'/></div></div></div>
\ No newline at end of file
index c789e70..da0846f 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'/></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'/></div></div></div>
\ No newline at end of file
index 3ac3dc1..c789e70 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'/></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'/></div></div></div>
\ No newline at end of file
index de898c4..3ac3dc1 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'/></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'/></div></div></div>
\ No newline at end of file
index eedb7a0..de898c4 100644 (file)
@@ -1,6 +1,6 @@
 <div class="blog">
 <h1 id="NAME">
-SDL Perl Windows Status
+My milestones (itches) for gaming in Perl
 </h1>
 <div class="CONTENT">
-Hello windows users,<br /><br /><div class="separator" style="clear: both; text-align: center;"><a href="http://3.bp.blogspot.com/_NnqjAQEn1Xo/SpKkfbVplzI/AAAAAAAAAAU/Uf0wq8fGemk/s1600-h/broken.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/_NnqjAQEn1Xo/SpKkfbVplzI/AAAAAAAAAAU/Uf0wq8fGemk/s400/broken.gif" /></a></div>Here is a simple picture explaining the status of SDL Perl on windows. I am hoping this changes. I know that <a href="http://use.perl.org/%7EAlias/journal/39476">Alias</a> is interested in this too. <br /><br />Here are steps needed to solve this:<br /><ol><li>Find out exactly what gcc flags are needed to make this work with strawberry's toolchain</li><li>Get the deps <a href="http://cloud.github.com/downloads/kthakore/SDL_perl/sdlperl-deps.tar.bz2">here</a>. Put the deps in C:/strawberry/c.</li><li> Try to make a Module::Build script work for win32 and win64 (There are differences apparently) </li><li>Try and emulate this in our current build system ( <a href="http://github.com/kthakore/SDL_perl/blob/22a6ead04e0d03fda8060d73c6f66cac2c49eae6/make/lib/SDL/Build.pm">make/lib/Build.pm</a>, and <a href="http://github.com/kthakore/SDL_perl/blob/22a6ead04e0d03fda8060d73c6f66cac2c49eae6/make/lib/SDL/Build/MSWin32.pm">make/lib/Build/Win32.pm</a> )</li><li>Give me a shout on <a href="http://rt.cpan.org/Public/Dist/Display.html?Name=SDL_Perl">RT</a> or <a href="mailto:mailto:sdl-devel@perl.org">sdl-devel@perl.org</a> ( even if you just make it to 3.)</li><li> Enjoy SDL and lots of ++ from Alias, CSJewell and SDL_perl devs. <br /></li></ol><sarcasm> There easy as pie </sarcasm><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-2619755134262449430?l=yapgh.blogspot.com'/></div></div></div>
\ No newline at end of file
+<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'/></div></div></div>
\ No newline at end of file
diff --git a/pages/blog-0025.html-inc b/pages/blog-0025.html-inc
new file mode 100644 (file)
index 0000000..eedb7a0
--- /dev/null
@@ -0,0 +1,6 @@
+<div class="blog">
+<h1 id="NAME">
+SDL Perl Windows Status
+</h1>
+<div class="CONTENT">
+Hello windows users,<br /><br /><div class="separator" style="clear: both; text-align: center;"><a href="http://3.bp.blogspot.com/_NnqjAQEn1Xo/SpKkfbVplzI/AAAAAAAAAAU/Uf0wq8fGemk/s1600-h/broken.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/_NnqjAQEn1Xo/SpKkfbVplzI/AAAAAAAAAAU/Uf0wq8fGemk/s400/broken.gif" /></a></div>Here is a simple picture explaining the status of SDL Perl on windows. I am hoping this changes. I know that <a href="http://use.perl.org/%7EAlias/journal/39476">Alias</a> is interested in this too. <br /><br />Here are steps needed to solve this:<br /><ol><li>Find out exactly what gcc flags are needed to make this work with strawberry's toolchain</li><li>Get the deps <a href="http://cloud.github.com/downloads/kthakore/SDL_perl/sdlperl-deps.tar.bz2">here</a>. Put the deps in C:/strawberry/c.</li><li> Try to make a Module::Build script work for win32 and win64 (There are differences apparently) </li><li>Try and emulate this in our current build system ( <a href="http://github.com/kthakore/SDL_perl/blob/22a6ead04e0d03fda8060d73c6f66cac2c49eae6/make/lib/SDL/Build.pm">make/lib/Build.pm</a>, and <a href="http://github.com/kthakore/SDL_perl/blob/22a6ead04e0d03fda8060d73c6f66cac2c49eae6/make/lib/SDL/Build/MSWin32.pm">make/lib/Build/Win32.pm</a> )</li><li>Give me a shout on <a href="http://rt.cpan.org/Public/Dist/Display.html?Name=SDL_Perl">RT</a> or <a href="mailto:mailto:sdl-devel@perl.org">sdl-devel@perl.org</a> ( even if you just make it to 3.)</li><li> Enjoy SDL and lots of ++ from Alias, CSJewell and SDL_perl devs. <br /></li></ol><sarcasm> There easy as pie </sarcasm><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-2619755134262449430?l=yapgh.blogspot.com'/></div></div></div>
\ No newline at end of file
index 2a45517..6e733d2 100644 (file)
@@ -1,2 +1 @@
-<div class="blog">
-<a href="/blog-0000.html">Once in a while .... (set_event_filter)</a><br /><br /><a href="/blog-0001.html">Hello Mouse? An Example of the New Event Code</a><br /><br /><a href="/blog-0002.html">Development Update</a><br /><br /><a href="/blog-0003.html">Development Update</a><br /><br /><a href="/blog-0004.html">The Future and Beyond!</a><br /><br /><a href="/blog-0005.html">The beginnings of modular design for SDL Perl</a><br /><br /><a href="/blog-0006.html">Why and How Frozen Bubble is going to CPAN</a><br /><br /><a href="/blog-0007.html">HackFest: Results</a><br /><br /><a href="/blog-0008.html">Updates, Falling Block Game, and Hack Fest</a><br /><br /><a href="/blog-0009.html">Thanks nothingmuch, and updates</a><br /><br /><a href="/blog-0010.html">Design of SDL::Rect</a><br /><br /><a href="/blog-0011.html">Updates and Design Decisions</a><br /><br /><a href="/blog-0012.html">Why I will be sticking to CPAN</a><br /><br /><a href="/blog-0013.html">Frozen Bubble coming to CPAN</a><br /><br /><a href="/blog-0014.html">Newbie Friendly Perl Projects</a><br /><br /><a href="/blog-0015.html">Can someone please point me to good XS documentation!</a><br /><br /><a href="/blog-0016.html">More Games + Update</a><br /><br /><a href="/blog-0017.html">Updates on Plan for v2.4</a><br /><br /><a href="/blog-0018.html">Code is not the only thing</a><br /><br /><a href="/blog-0019.html">SDL Perl v2.2.2 out and Plans for v2.4</a><br /><br /><a href="/blog-0020.html">Catching memory leaks in XS</a><br /><br /><a href="/blog-0021.html">Alien::SDL 0.01 released!!!</a><br /><br /><a href="/blog-0022.html">SDL perl is coming to Strawberry!!</a><br /><br /><a href="/blog-0023.html">My milestones (itches) for gaming in Perl</a><br /><br /><a href="/blog-0024.html">SDL Perl Windows Status</a><br /><br /></div>
+<a href="/blog-0025.html">SDL Perl Windows Status</a><br /><br />
\ No newline at end of file
index 14c4149..32c4c52 100644 (file)
@@ -1,17 +1,17 @@
-Alien: blog-0021.html-inc
-CPAN: blog-0012.html-inc,blog-0013.html-inc,blog-0014.html-inc
-Design: blog-0004.html-inc,blog-0005.html-inc,blog-0009.html-inc,blog-0010.html-inc,blog-0011.html-inc
-Docs: blog-0008.html-inc
-Frozen Bubble: blog-0006.html-inc,blog-0013.html-inc
-HackFest: blog-0007.html-inc
-Perl: blog-0000.html-inc,blog-0001.html-inc,blog-0002.html-inc,blog-0003.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-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
-Questions: blog-0018.html-inc
-Releases: blog-0021.html-inc,blog-0022.html-inc
-SDL: blog-0000.html-inc,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-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
-Sneak Preview: blog-0001.html-inc
-Strawberry: blog-0024.html-inc
-Tutorial: blog-0009.html-inc,blog-0015.html-inc
-Updates: blog-0002.html-inc,blog-0003.html-inc,blog-0004.html-inc,blog-0005.html-inc,blog-0011.html-inc,blog-0017.html-inc
-XS: blog-0000.html-inc,blog-0015.html-inc
-games: blog-0004.html-inc,blog-0016.html-inc
-personal: blog-0014.html-inc,blog-0023.html-inc
+Alien: blog-0022.html-inc
+CPAN: blog-0013.html-inc,blog-0014.html-inc,blog-0015.html-inc
+Design: blog-0005.html-inc,blog-0006.html-inc,blog-0010.html-inc,blog-0011.html-inc,blog-0012.html-inc
+Docs: blog-0009.html-inc
+Frozen Bubble: blog-0007.html-inc,blog-0014.html-inc
+HackFest: blog-0008.html-inc
+Perl: blog-0001.html-inc,blog-0002.html-inc,blog-0003.html-inc,blog-0004.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-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-0019.html-inc
+Releases: blog-0022.html-inc,blog-0023.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-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
+Sneak Preview: blog-0002.html-inc
+Strawberry: blog-0025.html-inc
+Tutorial: blog-0010.html-inc,blog-0016.html-inc
+Updates: blog-0003.html-inc,blog-0004.html-inc,blog-0005.html-inc,blog-0006.html-inc,blog-0012.html-inc,blog-0018.html-inc
+XS: blog-0001.html-inc,blog-0016.html-inc
+games: blog-0005.html-inc,blog-0017.html-inc
+personal: blog-0015.html-inc,blog-0024.html-inc