Perl 6 - the future is here, just unevenly distributed

IRC log for #pdl, 2014-10-08

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

All times shown according to UTC.

Time Nick Message
00:07 gtodd hi
01:38 sivoais hello!
01:38 sivoais I mean... hi
02:35 gtodd anyone ever used the R graphics library ggplot2?  (https://github.com/hadley/ggplot2) ? I was surprised to see it has been "ported" to python https://pypi.python.org/pypi/ggplot
02:36 gtodd https://github.com/yhat/ggplot/
02:53 sivoais I have used it in R. And I've read the book it was inspired by! It's a really neat book if you like statistical graphics. :-)
02:54 sivoais hmm, I'll have to look into this :-)
02:54 sivoais the python library
07:29 pdurbin joined #pdl
13:12 gtodd sivoais: one interesting part is the "tight integration with pandas" ...  so I imagine the POD for some putative Chart:GGPplot  for perl sporting the line: "Tight integration with PDL" ... ;-)
13:18 gtodd sivoais: I didn't get through much of it yet but it seems like an actual port to python code of ggplot2 ... which after all is a bunch of R code (but calls on ~ a half dozen or so R packages) ...
13:20 gtodd sivoais: I very much liked the book ... in fact I have heard ggplot2 referred to as "An Implementation of _The Grammar of Graphics_"  heh in R I guess
14:01 robinsmidsrod joined #pdl
14:05 vicash1 i think integrating PDL plotting with D3.JS would be a killer feature allowing PDL to be used server side and generate client side plots without having to install Prima or Gnuplot
14:16 gtodd true .... but ggplot is beautiful too ;-)
14:16 vicash has R finally gotten around to doing interactive plots ?
14:17 gtodd R is pretty good :-)
14:18 gtodd I just came across this module?!?!  Rstats ?? whaa??
14:18 gtodd Wait this is a newish CPAN authour?  https://metacpan.org/author/KIMOTO
14:18 gtodd wow ... I wonder if he knows about PDL
14:19 vicash Rstats has been around I thought.. Perl to R interfacing was done years ago IIRC
14:19 gtodd I have used R from from perl yes but this is new
14:19 sivoais yeah, I've been following it. He does know about PDL.
14:19 gtodd I used Statistics::R
14:20 gtodd Rstat is what a pure perl version of R!?
14:20 sivoais yeah, but done with lists, not C arrays.
14:20 gtodd errm well lots of convenient functions :)
14:20 sivoais gtodd: did you see my preliminary data-frame implementation? Or how I'm working on embedding R from the C API?
14:21 gtodd I just installed it Rstats and it did not seem to do much XS (just some deps)
14:21 sivoais I want Perl to work very well with R. :-D
14:21 gtodd sivoais: nice!
14:21 gtodd what is it called?
14:21 sivoais these are the repos: <https://github.com/zmughal/data-frame-experiment>, <https://github.com/zmughal/em​bedding-r-in-perl-experiment>
14:22 sivoais I'm working with PDL as a base of course :-)
14:22 gtodd :-) so it is "pre-PAN"
14:22 gtodd ok will look at it
14:23 gtodd how are you making/storing the dataframe ?? (one thing I like about R is how it saves data and workspace)
14:23 sivoais yes :-) As soon as I can pass a data frame to R and get a data frame back, I will be happy enough to release it.
14:23 gtodd oh cool ... that way
14:24 sivoais ah, I haven't done persistence yet. But the data structure is just a hash and a PDL for each column. Shouldn't be hard.
14:24 sivoais And I support using a PDL as a factor (with the expected stringification)
14:25 gtodd so then if will read an existing R data frame too
14:26 gtodd I remember trying a perl module that created R scripts ....
14:28 gtodd but skipped that and used Statistics::R mostly (or just R) ...  trying to merge my minimal pools of R and perl  knowledge and PDL is the place for that
14:28 gtodd so your work is good news :)
14:29 sivoais heheh, I could support reading workspaces straight from Perl if I use the parser in Statistics::R::IO::Parser. Thanks for the idea!
14:29 gtodd cool
14:30 gtodd barely related note: there
14:30 gtodd is a Stats module for perl6
14:30 gtodd :)
14:32 sivoais oh nice! <https://github.com/MattOates/Stats/>
14:33 gtodd I have only used Statistics::R to write scripts ... and kept thinking of R as a workspace / notebookish type environment ...   I need to explore using PDL shell and Statistics::R together  ...
14:35 gtodd sivoais:   perl6 modules seem incredibly errm "succinct" sometimes ... partly because they are all just getting started but also because you seem to be able to do a lot in a few lines
14:37 sivoais yeah, as a non-novice programmer, I like that. I need languages that can keep up with my thoughts. But I wonder how that will affect people that want to learn Perl 6 that don't come from Perl.
14:39 sivoais gtodd: I tried using Statistics::R with PDL, but Statistics::R only works properly with lists, so you can't use any of the things that make PDL great.
14:39 sivoais see <https://github.com/zmughal/embedding-r-in​-perl-experiment/blob/master/pdl-to-r.pl> (I commented out things as I was trying it out)
14:39 gtodd sivoais: ah ok
14:44 sivoais I could try to fix Statistics::R, but writing C is more fun. :-) Also, it would be more performant.
14:45 gtodd I love that there are people who know C and write fast libraries and kernels and stuff :-)
22:56 jberger joined #pdl
23:41 sivoais_ joined #pdl

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