Skip navigation.

Log in | Sign up

photo of Cosimo Streppone

Random hacking

Assume nothing. Code defensively. Keep it simple, stupid!

Posts tagged with "cpan"

LWP::Simple for Perl 6

, , , ...

During the last Perl 6 hackaton in Oslo, I got to meet in person some very cool folks from the Perl Community, and we had a lot of brainstorming fun, as usual.

I went there with the ambitious (and out of my skills, most probably) goal of implementing a Socket interface for Perl 6. Talking to the various smart folks there, I realized that we didn't need to write that much, because Parrot, on which the current Perl 6 implementation is based on, already had sockets support.

After much nagging, I wrote a quick & dirty wrapper that mimicked the existing Perl5's IO::Socket library, that Carl and Martin improved. And on top of that, we were able to write a really tiny LWP::Simple-like class for Perl 6.

Now it's on up on github, go fetch it!, before it's too late :smile:

Win32::API v0.52 released to CPAN

, , ,

I just released version 0.52 of Win32::API. It should be available at your local CPAN mirror very soon.

This version should play nicer with CPAN testers, since it checks if the OS makes sense before going through Makefile.PL, so no more failures with Solaris, Linux, FreeBSD, and such are expected.

Please note that I published 0.51 one hour ago, but it's broken, so I have already scheduled its deletion. Please don't use 0.51.

Enjoy and please report to me any problems you have.

UPDATE: it seems that I screwed up again the META.yml and the dist resulted as UNauthorized because of my inclusion of Devel::AssertOS. Oh well...

Here's a list of latest changes:

2008-03-01 Win32::API v0.52 Cosimo

- Devel::AssertOS was not properly set up in 0.51.

2008-03-01 Win32::API v0.51 Cosimo

- Cleaned up API.pm pod docs and clearly stated Win32::API license
- Fixed $$/pid tests for Cygwin
- Now uses Devel::AssertOS to check that we are on a Win32 or Cygwin system. This should ease the work of CPAN testers.

2008-02-23 Win32::API v0.50 Cosimo

- Fixed RT#31702 http://rt.cpan.org/Public/Bug/Display.html?id=31702
Thanks to RUrban for supplying the fix.

2008-02-20 Win32::API v0.49 Cosimo

- Fixed the stack cleanup assembler statements for GCC in API.xs, I hope.
- Fixed a Borland C macro definition in API.xs
- Fixed META.yml (stupid me)

2008-02-20 Win32::API v0.48 Cosimo

- Finally applied the cdecl/stdcall patch available since long time
from http://www.xs4all.nl/~itsme/projects/perl/.
Now Win32::API *can* work with cdecl DLLs.
Fixes RT#32424 http://rt.cpan.org/Public/Bug/Display.html?id=32424
and RT#24685 http://rt.cpan.org/Public/Bug/Display.html?id=24685
Thanks to Willem Jan Hengeveld (itsme at xs4all.nl) for his great work. Thanks to JimK for a test case and to BrowserUk and others at PerlMonks for providing me useful information and complaints. :-)

However, still missing some GCC assembler magic for stack cleanup. Any help?

- Clarified licensing info. Yes, Win32::API is available with GPL 2 / Artistic license.

Win32::API v0.48 adds cdecl function call support

, ,



In my (really little) spare time, I enjoy hacking on fun projects.
Lately, I have been struggling to get Win32::API Perl module to work on Vista with various MSVC++ and GCC compilers.

Since many have asked for it, and some brave soul had an old patch available on the net, I decided to give it a shot. I had already tried 2 or 3 times to get this patch (originally for v0.41) integrated in the new Win32::API versions, but always failed at it.

Today I decided to take the full journey, and seems I succeeded. Probably I broke something else... :-)
Please bare with me. Anyway, I have 2 things left in this release that I want to address in the new one:

- There's a Borland C macro def that is completely broken (thanks to BrowserUk for noticing)
- I need to complete the stack cleanup assembler code at the end of Call() function in the XS code. This should be easy, for some definition of "easy", since I already have some examples of MSVC/GCC assembler code in my RT queue.

Stay tuned for further updates...

Have you ever heard "Bon Digi"?

, , , ...

It's a game. A crazy one. A really crazy one.
We were doing it friday evening, drinking like nuts, and something in my mind popped up, and I thought:

We should code the algorithm for this game

In fact, it seemed really stupid and obvious. But thinking about it more and more, I discovered that it's not so simple at all...

And if you want to code it elegantly and concisely, you have to think about it for some time.
So, I took this -Ofun opportunity, and turned it, as I promised to Zoso, into a Games::BonDigi CPAN module.

Enjoy!