August 2008 Archives

Math::GSL 0.10 released to CPAN

| | Comments (0) | TrackBacks (0)
Math::GSL has been kicking around on CPAN for a few days now, and seems to be doing well with the CPANtesters , except for multi-threaded Perls. This is a very important piece of information to learn, since I develop on FreeBSD 6.x and Ubuntu 8.x, which come with single-threaded Perls, and I had of course recompiled my own Perl from source, but single-threaded is again the default in Configure.

The Build fails like this:

gcc -I/usr/lib/perl/5.8/CORE -c -shared -Wall -fpic -Dbool=char -Wno-strict-aliasing -Wno-unused-function -Wno-unused-value -Wno-unused-function -Wno-unused-variable -o
BLAS_wrap.o BLAS_wrap.c
In file included from /usr/lib/perl/5.8/CORE/op.h:
                from /usr/lib/perl/5.8/CORE/perl.h:2754,
                from BLAS_wrap.c:716:
/usr/lib/perl/5.8/CORE/reentr.h:612: error: field '_crypt_struct' has
incomplete type
In file included from /usr/lib/perl/5.8/CORE/perl.h:3950,
                from BLAS_wrap.c:716:
/usr/lib/perl/5.8/CORE/proto.h:297: error: expected declaration
specifiers or '...' before 'off64_t'
/usr/lib/perl/5.8/CORE/proto.h:299: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'Perl_do_sysseek'
/usr/lib/perl/5.8/CORE/proto.h:300: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'Perl_do_tell'
/usr/lib/perl/5.8/CORE/proto.h:2005: error:
expected '=', ',', ';', 'asm' or '__attribute__'
before 'Perl_PerlIO_tell'
/usr/lib/perl/5.8/CORE/proto.h:2006: error: expected declaration
specifiers or '...' before 'off64_t'
error building .o file from 'BLAS_wrap.c'
at /tmp/Math-GSL-0.08/_build/lib/ line 167.

Does anyone know of extra build flags which are necessary when building XS modules on multi-threaded Perls?

Math::GSL 0.08 released to CPAN

| | Comments (0) | TrackBacks (0)
Coming to a CPAN mirror near you, a brand spanking new Math::GSL, now with Cygwin support!


week 11 report

| | Comments (0) | TrackBacks (0)
There's only one week left to the google summer of code part of the project! Time passed really fast this summer. Last week I started a overall review of all the subsystems of the project to make sure that everything is fine for the pencil down date which is this Friday, august 18. I preferred adding more documentation to the subsystems than adding code to the Tk example since I think it's more important at the moment. I'll touch the Tk example this week if I have enough time but I plan to first finish my overall review before.

I've learned a lot this summer on various aspect of programming : using git, vim and Tk,  Object-Oriented programming, and better Perl programming. I plan to continue to work on this project even after the end of google summer of code. Of course I'd like to thank Jonathan Leto who gave me his time and knowledge. Without him, this project wouldn't exist.

Week 10 report

| | Comments (0) | TrackBacks (0)
Last week I worked on making the documentation more HTML friendly. I added basic documentation to the remaining subsystems not yet implemented. We also released a public version on CPAN. I fixed various bugs that we received from the CPANT tester. There are still little issues to look at for this release like the META.yml file which doesn't output exactly the right things but this is not anything major. I worked on the example using Tk::TableDataset to add a menu and various additions to it. I've learn a lot about Tk and GUI  while working on this example. I also discovered the Perl::Tidy module to make the perl code easier to read. Finally, I finished the Sum subsystem, it is now fully functional.

In the next week I will complete the overall documentation by adding more concrete examples to all the functional subsystems. These examples will probably mainly come from the tests we've already wrote for those subsystems. I also wish to add more functions and change a bit more the code of the Tk::TableDataset example. Depending on the time left, I might also add more Object-Oriented wrappers.

Example using Tk::PlotDataset

| | Comments (0) | TrackBacks (0)
Here is an a screenshot of the example file examples/tkplotdataset:
View image

use Tk;
use Tk::PlotDataset;
use Tk::LineGraphDataset;
use Math::GSL::SF qw/:all/;
use strict;

my $window = MainWindow->new(
    -title => 'Math::GSL Plot',
my @region = map { $_/10 } (-400 .. -1, 0, 1 .. 400);
my @data1  = map { gsl_sf_bessel_J0($_) } (@region);
my $dataset1 = LineGraphDataset->new(
    -name => 'gsl_sf_bessel_J0',
    -xData => \@region,
    -yData => \@data1,
    -yAxis => 'Y',
    -color => 'red'

my @data2 = map { gsl_sf_bessel_J1($_) } (@region);
my $dataset2 = LineGraphDataset->new(
    -name => 'gsl_sf_bessel_J1',
    -xData => \@region,
    -yData => \@data2,
    -yAxis => 'Y1',
    -color => 'blue'

my $graph = $window->PlotDataset(
    -width => 500,
    -height => 500,
    -background => 'snow'
) -> pack(-fill => 'both', -expand => 1);

$graph->addDatasets($dataset1, $dataset2);

About this Archive

This page is an archive of entries from August 2008 listed from newest to oldest.

July 2008 is the previous archive.

September 2008 is the next archive.

Find recent content on the main index or look in the archives to find all content.

Screw you, spammers! Clicky Web Analytics