Perl 6 - the future is here, just unevenly distributed

IRC log for #pdl, 2015-01-20

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

All times shown according to UTC.

Time Nick Message
02:58 mohawk the current build system has 108 Makefile.PLs
02:58 mohawk that's a lot
02:58 mohawk guess how many of them "use strict"?
02:59 mohawk $ g -l 'use strict' `ff Makefile.PL`|wc -l
02:59 mohawk 4
02:59 mohawk frankly, that's 4 more than i was expecting
03:01 jberger oh my
03:01 mohawk inorite
03:01 mohawk it's like time travel back to the mid-90s
04:02 mohawk OH JESUS GOD
04:03 mohawk guess which file this gem is:
04:03 mohawk $PDL_Config{MALLOCDBG}->{$item} = ""
04:03 mohawk unless exists $PDLConfig{MALLOCDBG}->{$item};
04:03 mohawk if you thought it was the top-level Makefile.PL, you win a valuable prize!
04:04 jberger oh, what do I win?
04:04 jberger (is it a working build system?)
04:04 mohawk i'd say "sanity" but that would be misleading
04:06 mohawk it gets better!?!
04:06 mohawk just above that bit:
04:06 mohawk my $val = $PDL_CONFIG{MALLOCDBG};
04:06 mohawk and then...
04:06 mohawk $PDL_CONFIG{MALLOCDBG} = ();
04:06 Mithaldu ahaha
04:07 mohawk i am actually lost for words
04:07 jberger :o
04:07 Mithaldu it's baby perl :)
04:07 mohawk Mithaldu++
04:07 Mithaldu just clean it up and be glad that a newbie managed to make good software despite that
04:07 mohawk Modern Perl this is not
04:08 mohawk not that i am fully "modern perl"ed up myself
04:08 mohawk i have yet to write any dbic
04:08 mohawk nor any super duper web framework shiz
04:08 Mithaldu those don't require modern perl anyhow
04:09 mohawk ok, now i need to have a democratic code-vote and see which spelling of that variable is actually right
04:09 mohawk for those watching along at home: this is why we "use strict"
04:09 Mithaldu ah, didn't even notice that difference
04:10 mohawk grin
04:10 Mithaldu anyhow, just follow convention
04:10 mohawk i think it's all caps with _
04:10 mohawk based on other files
04:10 mohawk yay "git grep" for being AMAZING
04:10 Mithaldu local_var PackageName GLOBAL_WHATEVER
04:10 mohawk Makefile.PL:  %PDL_CONFIG = undef;
04:11 mohawk the fun just keeps on coming
04:11 Mithaldu at least you don't need to riddle what was intended
04:11 mohawk well
04:11 jberger perlstyle++
04:12 mohawk oh, this is good
04:12 mohawk if ( exists $PDL_CONFIG{MALLOCDBG} and defined $PDL_CONFIG{MALLOCDBG} ) {
04:12 mohawk ...
04:12 mohawk } else {
04:12 mohawk $PDL_CONFIG{MALLOCDBG} = ();
04:12 mohawk }
04:12 mohawk i don't even
04:13 Mithaldu he's making sure it exists and is empty
04:13 mohawk look at the else
04:13 Mithaldu yes, that is what i just said
04:13 mohawk well, you say empty
04:13 mohawk you mean undef?
04:13 Mithaldu yes
04:13 mohawk rigiht
04:14 mohawk yes, and it would despite syntactic specialness actually do that
04:14 mohawk glad i brought it up
04:16 mohawk go team!
04:18 jberger http://www.quickmeme.com/img/69/692449e380a3df88b0​f5b2df41922e87c4cfb3b4ea211276178304a9c15fb7d3.jpg
04:19 mohawk ha ha
04:20 jberger I was looking for something else and I found that one
04:20 jberger I had to use it instead
04:21 mohawk yeah, i guess you did
04:40 sivoais *picard-double-facepalm.tga*
04:43 jberger oh wait, look what I just found:
04:43 jberger http://www.jwz.org/images/b7q4vobciaatywd.jpg
04:45 mohawk oh that's good
04:45 mohawk that's real good
04:46 sivoais hahah
05:27 mohawk Basic/Math/Makefile.PL has this:         open (RES,"$te |");
05:27 mohawk does it define $te?
05:27 mohawk no
05:27 mohawk does anywhere?
05:28 mohawk Basic/Core/Dev.pm uses it for the filename of a temp executable in trylink
05:29 mohawk i don't even know what it's supposed to achieve
05:30 Mithaldu git blame?
05:30 mohawk let's give that a go
05:30 mohawk 60aaa3a2 (Christian Soeller 1999-12-12 04:52:13 +0000 118)         open (RES,"$te |");
05:30 mohawk git blame works ok
05:31 mohawk apparently the optional git-berate module isn't available in CentOS
05:33 Mithaldu you get upset about the weirdest things
05:33 mohawk that's not upset
05:34 mohawk all i need to do here is have trylink return the file it made
05:34 mohawk easy peasy
05:34 mohawk but using a global variable to see the generated filename... that's special
05:35 mohawk oh wow
05:35 mohawk now it's not even a global, it's my
05:35 mohawk so that was never going to work
05:35 mohawk this is why we have automated testing
05:43 mohawk now we're past the Basic/* files!
05:43 mohawk into Graphics
06:39 mohawk Lib/Minuit/Makefile.PL is proof that a REAL programmer can write fortran in any language
06:47 mohawk Lib/Transform/Proj4/Makefile.PL is proof there is no god
06:47 mohawk what's the bit at the top about Carp?
06:47 mohawk blaming time
06:50 Mithaldu well, at least you seem to be having fun
06:50 mohawk ha ha
06:50 mohawk that's one view
06:50 mohawk 5e66221c5e64c714347a195e63346ae251f8a4f1
06:51 Mithaldu not looking at code, i have my own horrors to deal with
06:51 mohawk grin
06:51 mohawk not saying you should
06:52 mohawk no explanation given as to why this Carp stuff is there
06:52 mohawk *zap*
06:54 mohawk the whole file is basically one giant BEGIN function
06:54 mohawk which reeeeally begs the question "why"
07:22 mohawk jberger, feel like making an Alien::Base based Alien::Proj4, finally?
10:19 rindolf joined #pdl
13:02 jberger I need to get on alien gsl
13:02 jberger I don't have any experience with proj4
16:26 lungching joined #pdl
16:45 drrho joined #pdl
23:46 opkick [pdl] wchristian pushed 2 new commits to master: http://git.io/p2DCrA
23:46 opkick pdl/master 52b912b Chris Marshall: Update Known_problems and Release_Notes for PDL-2.007_08 release
23:46 opkick pdl/master bdb1d42 Chris Marshall: Update VERSION to 2.007_09 for more development
23:53 mohawk w00t

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