Skip to content

Commit

Permalink
cpp-0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ingydotnet committed Dec 18, 2014
1 parent 3c8ea23 commit f9ddcd5
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 43 deletions.
37 changes: 1 addition & 36 deletions Changes
@@ -1,40 +1,5 @@
---
version: 0.0.8
date: Wed Dec 17 23:25:55 PST 2014
changes:
- Release with Inline-Module-0.26
---
version: 0.0.7
date: Tue Dec 16 23:37:39 EST 2014
changes:
- Rebuild with new Inline::Module to avoid test failures
---
version: 0.0.6
date: Sun Dec 14 22:20:03 PST 2014
changes:
- Release using latest Inline::Module
---
version: 0.0.5
date: Sat Dec 6 14:16:37 PST 2014
changes:
- Release using new autostub technique
---
version: 0.0.4
date: Sat Nov 22 05:06:27 UTC 2014
changes:
- Use new postamble style Inline::Module in Makefile.PL
---
version: 0.0.3
date: Wed Nov 19 06:32:20 UTC 2014
changes:
- Inline::Module::MakeMaker changed to Inline::Module in Makefile.PL
---
version: 0.0.2
date: Wed Nov 19 06:32:02 UTC 2014
changes:
- Second Release
---
version: 0.0.1
date: Wed Nov 19 04:55:09 UTC 2014
date: Wed Dec 17 23:31:37 PST 2014
changes:
- First Release
5 changes: 3 additions & 2 deletions Makefile.PL
Expand Up @@ -8,8 +8,8 @@ use ExtUtils::MakeMaker;
use Inline::Module;

WriteMakefile(
NAME => 'Alt::Acme::Math::XS::EUMM',
VERSION => '0.0.8',
NAME => 'Alt::Acme::Math::XS::CPP',
VERSION => '0.0.1',
ABSTRACT => 'Math is HARD (faster!)',
AUTHOR => 'Ingy döt Net <ingy@cpan.org>',
LICENSE => 'perl',
Expand All @@ -19,6 +19,7 @@ WriteMakefile(
postamble => {
inline => {
module => 'Acme::Math::XS',
ilsm => 'Inline::CPP',
},
},
);
39 changes: 37 additions & 2 deletions README
@@ -1,13 +1,48 @@
NAME
Acme::Math::XS - Math is HARD (faster)
Acme::Math::XS - Math is HARD (faster!)

SYNOPSIS
use Acme::Math::XS;

print "2 + 2 = ${\add(2, 2)}\n";

DESCRIPTION
This is the smallest possible XS module written with Inline::C.
This is a tiny example "XS" module. It was written to show how one would
write the same thing using Inline::Module, Inline, Inline::C and
Inline::CPP.

It has a pure "XS" version and "Alt"(ternate) modules for all the common
CPAN module frameworks.

The source code for all these modules is in one git repository, on
separate branches: <https://github.com/ingydotnet/acme-math-xs-pm>

SEE
Acme::Math::XS
Pure XS version, shipped with ExtUtils::MakeMaker.

Alt::Acme::Math::XS::EUMM
Inline::Module (using Inline::C) version shipped with plain old
ExtUtils::MakeMaker.

Alt::Acme::Math::XS::DistZilla
Inline::Module version shipped with Dist::Zilla and
Dist::Zilla::Plugin::InlineModule.

Alt::Acme::Math::XS::ZillaDist
Inline::Module version shipped with Zilla::Dist.

Alt::Acme::Math::XS::ModuleBuild
Inline::Module version shipped with Module::Build and
Module::Build::InlineModule.

Alt::Acme::Math::XS::ModuleInstall
Inline::Module version shipped with Module::Build and
Module::Build::InlineModule.

Alt::Acme::Math::XS::CPP
Inline::Module (using Inline::CPP) version shipped with
ExtUtils::MakeMaker.

AUTHORS
* Ingy döt Net <ingy@cpan.org>
Expand Down
2 changes: 1 addition & 1 deletion lib/Acme/Math/XS.pm
Expand Up @@ -8,7 +8,7 @@ our @EXPORT = qw(
subtract
);

use Acme::Math::XS::Inline C => <<'...';
use Acme::Math::XS::Inline CPP => <<'...';
long add(long a, long b) {
return a + b;
}
Expand Down
2 changes: 2 additions & 0 deletions lib/Alt/Acme/Math/XS/CPP.pm
@@ -0,0 +1,2 @@
package Alt::Acme::Math::XS::CPP;
our $VERSION = '0.0.1';
2 changes: 0 additions & 2 deletions lib/Alt/Acme/Math/XS/EUMM.pm

This file was deleted.

0 comments on commit f9ddcd5

Please sign in to comment.