Perl 6 - the future is here, just unevenly distributed

IRC log for #inline, 2014-12-16

| Channels | #inline index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
02:35 ingy bulk88: List::BinarySearch::XS
02:35 ingy davido__: ping
02:38 bulk88 davido__ https://metacpan.org/source/DAVIDO/List-BinarySearch-XS-0.06/XS.xs#L72 why do you deref aref_haystack over and over? do it once
03:07 ingy leont: what's a decent example module using M:B?
03:10 leont In what sense a decent example?
03:12 ingy leont: just a standard use one. maybe an xs one too
03:15 ingy leont: https://metacpan.org/requires/distribution/Module-Build?sort=[[2,1]] :)
03:20 * ingy waits for priodev
03:24 davido__ Hi ingy, hi bulk88.
03:24 davido__ bulk: Good point, will adjust soon.
03:26 ingy hi davido__
03:26 davido__ How are you?
03:27 ingy a little bit ill
03:27 ingy but ok
03:27 davido__ oh oh.
03:27 davido__ Just about to get the little ones down.
03:27 ingy ok
03:27 ingy I'm going to pairup with priodev if he ever shows
03:27 ingy he's an old pairup friend
03:27 davido__ ok, if they conk out reasonably I'll be back.
03:27 ingy :)
03:28 davido__ (50/50)
03:28 davido__ lol
03:28 davido__ Got some questions answered today in #toolchain on the best approach for making Inline::Module / Inline::C, etc. prereqs for developers, and not for users.
03:29 davido__ That was quite useful.  Here's an example: https://metacpan.org/source/REHSACK/File-ConfigDir-0.015/Makefile.PL#L40
03:29 ingy ok
03:29 davido__ Useful possibly to document, but definitely to put in example dists.
03:30 ingy I'm going to do M:B:IM now
03:30 davido__ ok.  bbl hopefully.
03:30 ingy at least start it
03:32 leont Pretty much all my dists use dzil, which produces slightly verbose but otherwise decent Build.PLs
03:33 leont Such as this one: https://metacpan.org/source/LEONT/File-Map-0.63/Build.PL
03:34 leont See Module::Runtime for a slightly simpler example
03:35 ingy leont: cheers
03:37 priodev joined #inline
03:38 ingy priodev!!!! \oXp/
03:39 ingy priodev: what's your github id again?
03:39 ingy carloslima?
03:39 ingy rings a bell
03:39 priodev yeah!
03:39 priodev \o/
03:40 prio^ingy ssh -t carloslima@104.236.173.100 pairup
03:49 ingy priodev: welcome to my world ;)
03:50 prio^ingy Module-Build-InlineModule-0.01.tar.gz Released!!!
03:50 ingy now to make it work :\
03:50 ingy let me find some stuff
03:50 priodev audio?:P
03:50 ingy priodev: I'm kinda sick in bed so not great time for voice
03:51 priodev k :)
03:59 leont It prereqs Module::build instead of Module::Build
03:59 ingy leont: thx
04:00 ingy I was just blasting out a ZD stub release in 3 mins
04:00 ingy to show priodev
04:03 prio^ingy Couldn't untar Test-Warnings-0.016.tar: 'Cannot allocate memory'
04:03 prio^ingy from ./Build installdeps in File-Map-0.64
04:04 ingy I guess M:B doesn't use tar
04:05 ingy so cool!
04:06 leont installdeps should shell out to cpan, no idea why that fails
04:07 prio^ingy sec
04:08 prio^ingy Using Tar:/bin/tar xf "Test-Warnings-0.016.tar":
04:08 prio^ingy I guess it was
04:09 prio^ingy using a 512MB vm with no swap
04:09 prio^ingy but I've built perl and everything on it
04:12 ingy priodev: I guess this is super boring
04:13 priodev Im following along :-)
04:13 priodev but I'm a bit lost :P
04:13 ingy let me show you stuff
04:13 ingy we have a module called Acme::Math::XS
04:13 priodev stuff!
04:14 ingy A:M:XS
04:14 ingy and we make it pure XS and then using Inline::Module under 5 module frameworks
04:14 ingy dzil zild M:I M:B EUMM
04:15 ingy so we just need to do M:B
04:15 ingy the rest are done
04:15 ingy we save the worst for last!
04:15 priodev The file you're manually editing is the sample you want to be auto-generated?
04:15 ingy I can show you around the EUMM
04:16 ingy no, I just want a manual M::B
04:16 ingy for the M:B release
04:16 * priodev scratches head
04:25 ingy this is all about writing an XS module with no XS
04:25 ingy for CPAN
04:25 ingy with no Inline/Inline::C requirement
04:25 ingy the bottom module is a generated "stub"
04:26 priodev and when does it gets replaced ?
04:26 ingy http://inline.ouistreet.com/page/inline-grant-weekly-report-6.html
04:26 ingy I show you
04:26 ingy we can actually delete it and autostub it
04:27 ingy autostub is a @INC coderef
04:27 ingy but either way
04:27 ingy let's leave it a real file for now
04:29 ingy the bottom file get's installed, the top one does the user side build
04:30 ingy starting to make sense?
04:31 priodev a bit :-)
04:34 ingy we are looking at the install
04:34 ingy but by this time it's just a call to dynaloader
04:34 ingy the C code has been compiled into the .so
04:34 ingy and installed
04:35 priodev aight!
04:40 ingy ZD bug
04:40 ingy :(
04:41 ingy have you seen those git-hub commands yet?
04:42 priodev some. I believe you added more since I last checked
04:42 priodev :P
04:48 ingy why is make test failing?
04:48 ingy ctl-a pageup
04:49 ingy ooooh
04:49 ingy I think I get it
04:51 ingy good eyes!
04:51 ingy priodev: sec
04:52 priodev =P
04:52 priodev sure
04:58 ingy leont: what's a module that uses a *subclass* of Module::Build?
04:59 ingy brb
04:59 ingy I guess we can reverse dep on metacpan
05:02 ingy priodev: M:B:PDL looks ok example
05:04 priodev hold
05:05 priodev +1
05:11 ingy looks awesome?
05:16 leont Alien::Base is a well known but complicated example
05:24 ingy priodev: we need to fin out how to add keywords to the M:B hashlet
05:25 priodev you want to add the inline one?
05:25 ingy yeah
05:27 leont That's easy
05:27 ingy yeah think I found it
05:28 leont Just define a new attribute
05:28 ingy add_property
05:28 ingy ?
05:28 leont yes
05:29 ingy I did __PACKAGE__->add_property('inline');
05:29 ingy but my inline hash is not in the $self in ACTION_code
05:30 ingy sec
05:31 leont It's in properties
05:32 leont $self->{properties}{inline}
05:32 leont Or $self->inline
05:32 ingy I just forgot to rebuild Build
05:32 ingy it's all good
05:33 ingy brb
05:38 ingy leont: this is all looking very straightforward!
05:38 ingy leont++ # good to have the framework maintainter on channel!
05:44 GitHub111 [acme-math-xs-pm] ingydotnet created m-b (+3 new commits): http://git.io/NlSHgQ
05:44 GitHub111 acme-math-xs-pm/m-b 8fab81c Ingy döt Net: Initial commit
05:44 GitHub111 acme-math-xs-pm/m-b 68a3f10 Ingy döt Net: Simpler Build.PL
05:44 GitHub111 acme-math-xs-pm/m-b 3ee1ca7 Ingy döt Net: Adding MANIFEST
05:46 GitHub77 [module-build-inlinemodule-pm] ingydotnet pushed 1 new commit to master: http://git.io/AoGOgg
05:46 GitHub77 module-build-inlinemodule-pm/master cd5fce6 Ingy döt Net: First draft. Not Working yet.
05:46 ingy priodev: I'm gonna stop here
05:46 priodev Aight
05:47 ingy leont: you can take a look
05:47 mohawk ingy, shouldn't the m-b branch of AMF declare Inline::Module::Build as a configure_requires?
05:47 priodev ingy, I'll get some sleep :-)
05:47 ingy me too
05:47 ingy mohawk: eventually
05:49 ingy leont: I'll look to see where File-Map builds stuff
05:49 ingy priodev: ctl-a d to quit
05:53 ingy leont: oh good, looks like pretty normal blib
06:52 davido__ ingy : FYI: Uploaded a new Alt::M::P::FS that should provide better author-only dependency specification. Also fixed some release tests.
06:53 davido__ When you get a chance need to discuss inc/ though.
06:54 davido__ talk to you in the morning :)
15:51 davido__ http://static.cpantesters.org/distro/A/Alt-Math-Prime-FastSieve-Inline.html
15:51 davido__ All FAILs and UNKNOWNs.
16:09 mohawk ruh roh
20:13 ingy davido__: hi there
20:15 ingy davido__: my new inc.pm should help out
22:39 davido__ Good. :)
22:40 davido__ I'm not even sure what's at fault there; the distribution shows inc/ to be populated as we expect it to be.
23:50 willthechill joined #inline

| Channels | #inline index | Today | | Search | Google Search | Plain-Text | summary