🦋 Welcome to Raku! raku.org/ | evalbot usage: 'p6: say 3;' or /msg camelia p6: ... | irclog: colabti.org/irclogger/irclogger_log/raku
Set by ChanServ on 14 October 2019.
Geth ecosystem/kalkin-update-license-software: 4cad0d2c1b | (Bahtiar Gadimov)++ (committed using GitHub Web editor) | META.list
Update DDT and it's dependency License::Software

This fixes github.com/kalkin/Ddt/issues/10
07:49
ecosystem: kalkin++ created pull request #503:
Update DDT and it's dependency License::Software
07:50
Geth ecosystem/JJ-patch-12: 851ca7af73 | (Juan Julián Merelo Guervós)++ (committed using GitHub Web editor) | META.list
Adds cmark::Simple
10:32
ecosystem: JJ++ created pull request #504:
Adds cmark::Simple
cpan-raku New module released to CPAN! Migration::RTtoGithub (0.0.2) by 03ELIZABETH 10:36
Geth ecosystem: 851ca7af73 | (Juan Julián Merelo Guervós)++ (committed using GitHub Web editor) | META.list
Adds cmark::Simple
10:42
ecosystem: fb58190383 | (Juan Julián Merelo Guervós)++ (committed using GitHub Web editor) | META.list
Merge pull request #504 from Raku/JJ-patch-12

Adds cmark::Simple
gfldex lolibloggedalittle: gfldex.wordpress.com/2020/06/12/th...the-topic/ 10:49
lizmat weekly: gfldex.wordpress.com/2020/06/12/th...the-topic/ 11:05
notable6 lizmat, Noted! (weekly)
moritz Scalars leaked: -2 11:40
Inline::Perl5 continues to amaze :D
[Coke] indeed! 11:41
moritz sadly, this puts me in kind of a in a tight spot regarding the "Raku Fundamentals" book 11:45
one chapter of Perl 6 Fundamentals was based on an example with Inline::Python
... which uses Python 2, which I cannot use in a new book. My attempts to port it to Python 3 are stalled
now I tried to change from python + matplotlib to Perl 5 + Chart::Clicker, but I keep running into problems with that as well 11:46
El_Che moritz: what's the state of inline go? it may ne more trendy 11:47
be
moritz I could try GD::Graph + Inline::Perl5, though that produces super ugly charts
El_Che: my Go knowledge is at ~ zero, so that's not something I want to present in a book :D
El_Che ah ok :)
[Coke] Old Man Coke remembers when Tcl was the integration language of choice, yes.
El_Che keeping pyhton2 out of the book makes sensem though 11:48
lizmat moritz: perhaps report the issues with the Inline::Perl5 queue ?
moritz lizmat: have already started with that 11:50
but I'm kinda on a deadline :(
[Coke] wonders if martinfowler.com is the same MF from CPAN. 11:51
moritz: are you using HEAD? (can you for a book?) 11:52
moritz [Coke]: no, I'm using the version that `zef install` gives me 11:53
[Coke] I was thinking "of rakudo", but I think you answered the right question. 11:56
[Coke] Might it be worth crowd sourcing your issues with chart clicker here? 11:57
If you're anything like me, that deadline is looming pretty close at this point. :) 11:58
moritz perlpunks.de/paste/show/5ee36dda.529a.3ae that's one of my attempts
I've tried a pretty direct translation (without the perl 5 block, just method calls from raku) and ran into github.com/niner/Inline-Perl5/issues/153 12:00
moritz oh, I've also tried Chart::Gnuplot, and it uses imagemagick to convert some stuff, which fails with an obscure error message about not having permissions. Googling for that suggestions you need to edit some XML in some file in /etc/ to give imagemagick permission to do its thing 12:04
this is a big cluster of WTFs and yak shaving, and I'm really frustrated
I think I'll ask the publisher about dropping that chapter entirely, and instead do something with a Cro webservice or so
[Coke] You have my vote! 12:07
moritz and my axe! 12:08
El_Che moritz: I think itś aa great idea amd more "fundamental" 12:09
moritz ok, then I need an idea for a somwhat practical-ish web service that can be implemented in one to two pages 12:13
I'm open to suggestions :D
mail to publisher sent 12:16
El_Che api with apikeys? 12:20
[Coke] moritz: A mini data wrangling service that can take a CSV file and parse a recipe to delete columns or combine them. 12:22
small grammar, exposure to Text::CSV... can extend later with more recipe verbs... 12:23
moritz [Coke]: that's a nice idea
[Coke] \o/
If you're really bored, use the power query language spec. :) 12:24
moritz at $work we have a tool called `csv-filter` which I can also use as inspiration 12:25
[Coke] this reminds me: does raku have parquet support yet?
looks like no. That sounds like a fun project I could work on that might help at $dayjob some day 12:26
El_Che moritz: kudos with the book update! 12:56
jnthn
.oO( I dunno what parquet is, but it sounds pretty floored... )
12:57
[Coke] it's a columnar based file format for tabular data. 12:59
nice for big data applications where you might be doing things to a whole column at once, rather than a single row. 13:00
jnthn Ah, interesting
[Coke] one of the things it can do then is have very compact columns when it's like a Y/N flag. 13:15
raku-bridge <Vendethiel> AlexDaniel: I was looking at unbitrotting my modules, and started with raku/ecosystem-unbitrot#520, but I can't reproduce the failure on my machine. Seems like it was a VM bug that got fixed. What's the best course of action here? 13:47
<Vendethiel> (also, Hi!) 13:49
Altai-man_ If it works on latest, can close the ticket with stating that. 13:54
Another nice thing to do is to set up a travis config with latest and also add a hook to re-run it maybe once in a month even without new commits, but efforts and that's on it, I guess. :) 13:55
raku-bridge <Vendethiel> ty 14:06
El_Che lists.freebsd.org/pipermail/freebs...01959.html 15:17
JJMerelo releasable6: status 15:17
releasable6 JJMerelo, Next release in ≈8 days and ≈3 hours. There are no known blockers. 143 out of 280 commits logged (⚠ 4 warnings)
JJMerelo, Details: gist.github.com/e6c5890753627954a3...a3e12860b9
JJMerelo Yay!
softmoth JJMerelo, congrats :-) 15:29
tellable6 2020-06-11T11:58:22Z #raku-dev <JJMerelo> softmoth no problem. 15:30
JJMerelo softmoth always happy to see new versions are coming up :-)
suman I have a C++ function with this signature int count(std::string String) 18:32
int count(std::string String)
suman sub count(Str String) returns int64 is native('libtest') { * }; 18:32
This is in raku
suman Is it right? 18:32
Can anybody figure out why this is not working 18:36
pastebin.com/icS4SsQU
ctilmes suman: In C try printing sizeof(int) -- It is likely int32, not int64 18:48
tellable6 ctilmes, I'll pass your message to suman
suman ctilmes tried with int32 but still not working 18:57
tellable6 2020-06-12T18:48:43Z #raku <ctilmes> suman: In C try printing sizeof(int) -- It is likely int32, not int64
suman modified pastebin.com/5VP34GYY 19:09
Still not working 19:10
suman int count(string s, char c) 19:19
what is the mapping of char in raku nativecall?
suman if int count(string s, char c) is the C function 19:19
what is the mapping of char in raku nativecall?
thundergnat suman: Is the library named 'libtest' or 'liblibtest'? Try just using a library name of 'test'. The default library loader prepends lib to the name. 19:20
suman @thundergnat I am on windows and synamic library is named libtest.dll 19:22
*dynamic
thundergnat Hmm. may not be an issue then.
suman @thundergnat Did you get it working? 19:23
thundergnat suman: no, I just am somewhat familiar with native calling external libraries. 19:24
tellable6 thundergnat, I'll pass your message to suman
thundergnat but not on Windows though. 19:25
ctilmes suman: std::string is not compatible with Raku Str marshaling 19:30
You need to pass it in as a C String like 'const char *' 19:31
suman @ctilmes So that means I cannot use C++11
tellable6 2020-06-12T19:24:58Z #raku <thundergnat> suman: no, I just am somewhat familiar with native calling external libraries.
ctilmes Just write a little function to convert it 19:32
ctilmes If you are writing the function using the string, just call str(). If you are using some other routine, create a wrapper function that converts it then calls the other routine 19:35
suman ctilmes OK I will have a look at that. In function "int count(string s, char c)" signature what is corresponding raku type for char
Any idea?
ctilmes you can probably use int8 for char
or uint8 19:36
Yeah: stackoverflow.com/questions/248269...on-libstdc If you want to manually create a string on the Raku side you probably could, but I wouldn't recommend it 19:38
It's possible that a future Raku could support that type, but you need to find someone with both the need and ability to implement it 19:39
However you try to make a std::string in Raku will likely be non-standard shaharmike.com/cpp/std-string/ 19:42
ctilmes Better to embed a wrapper routine in your library 19:43
cpan-raku New module released to CPAN! Tuple (0.0.6) by 03ELIZABETH 20:07
cj okay. 2006 OSCON videos transcoded and published. 20:21
web.c9h.org/~cjac/raku/videos/
lizmat weekly web.c9h.org/~cjac/raku/videos/ 20:30
weekly: web.c9h.org/~cjac/raku/videos/
notable6 lizmat, Noted! (weekly)
Geth doc: gfldex++ created pull request #3474:
sometimes one needs an empty block
20:38
oddp Might be blind, but looking through the range docs, one example mentions `Range.new(3, 5)`. Where exactly in the docs do I find more information about the actual paramaters I can pass? 22:41
Example here: docs.raku.org/type/Range#method_ACCEPTS
m: Range.new("...") 22:46
camelia Cannot resolve caller new(Range:U: Str:D); none of these signatures match:
(Range: Range $min, \max, :$excludes-min, :$excludes-max, *%_)
(Range: \min, Range $max, :$excludes-min, :$excludes-max, *%_)
(Range: Seq \min, \max, :$exclud…
oddp Looking for the docs for all these options.
MasterDuke oddp: i don't see it in the docs, but here's the source github.com/rakudo/rakudo/blob/raku...m6#L23-L78 22:58
oddp Thank you! Alright, didn't overlook anything, after all, just wanted to make sure. 23:03
Is there a specific reason for not including them? 23:04
Not just in ranges.
MasterDuke not that i know of. i'd suggest creating an issue in the docs repo 23:05