»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'p6: say 3;' or rakudo:, or /msg camelia p6: ... | irclog: irc.perl6.org or colabti.org/irclogger/irclogger_logs/perl6 | UTF-8 is our friend! Set by moritz on 22 December 2015. |
|||
zoll | i put up with hg not by choice. one thing i miss is gitk; hgk is barely usable in comparison. | 00:00 | |
timotimo | but tortoisehg is very good | ||
00:02
Cabanossi left
|
|||
zoll | is tortoise* family not confined to MS Windows? i may^Wwill update CentOS to v7 to get updated support software for other, better hg GUI. | 00:03 | |
timotimo | not tortoisehg | 00:04 | |
there's also sourcetree, i think that has both git and hg, or maybe only hg | |||
00:05
Cabanossi joined
|
|||
zoll | ok. i will see into this further. thanks timotimo | 00:07 | |
timotimo | good luck! | 00:08 | |
merced: i often struggle with not finding projects when i want to play with something new, like a new programming language | |||
merced: what's your style? tools, gui, web, games, maths, art, ...? | |||
00:10
skids joined
00:11
jaldhar_ left,
jaldhar_ joined
|
|||
R0b0t1 | timotimo: Admittedly I think the submodule command renamed some things nonsensically | 00:14 | |
00:22
lookatme joined
|
|||
lookatme | morning | 00:22 | |
merced | timotimo: i like automation, raw data processing, fast-scrolling terminals, systems engineering, shit like that | 00:28 | |
PerlJam | "fast-scrolling terminals"? heh | 00:32 | |
yoleaux | 28 May 2017 09:33Z <Zoffix> PerlJam: IIRC it was you who lamented impossibility of Perl 5's `$.` for $*ARGFILES var in Perl 6. It's no longer impossible ($*ARGFILES is IO::CatHandle now): twitter.com/zoffix/status/868761719639871488 | ||
merced | yeah slow scroll's so boring | 00:33 | |
00:34
Cabanossi left
00:35
Cabanossi joined
|
|||
PerlJam wonders if yoleaux can be made smart enough to deliver messages to any nicks that a person might use whether or not that particular nick is addressed | 00:36 | ||
timotimo | merced: hm, i don't think that intersects with a lot of my style, so i don't have any good suggestions | 00:39 | |
PerlJam | merced: why not contribute to an existing project? | 00:41 | |
00:41
pharv_ joined
00:42
pharv_ left
|
|||
PerlJam | merced: something I've thought of doing just because is implementing useful shell commands in Perl 6 | 00:42 | |
kind of like Perl Power Tools, but only a subset of the unix utilities that I find interesting or useful | 00:43 | ||
00:43
coetry joined
|
|||
coetry | p6: my $to = 'all'; say "hello to $to :)"; | 00:44 | |
camelia | hello to all :) | ||
timotimo | m: say "coetry".comb.pick(*) xx 5 | 00:45 | |
camelia | ((r y o c e t) (y c t e r o) (o r t e c y) (t o y c r e) (e y t r c o)) | ||
timotimo | m: say "coetry".comb.pick(*).join xx 5 | ||
camelia | (teroyc oecryt oyetrc ytceor retyco) | ||
lookatme | m: say "coetry".flip; | 00:48 | |
camelia | yrteoc | ||
zoll | m: say split "coetry" | 00:49 | |
camelia | 5===SORRY!5=== Error while compiling <tmp> Calling split(Str) will never work with declared signature ($pat, Cool $target, |c is raw) at <tmp>:1 ------> 3say 7⏏5split "coetry" |
||
zoll | that's actually good error message | 00:50 | |
timotimo | m: say (do for "coetry".comb -> $letter { ^0x10000 .pick(*).grep(*.uniname.contains($letter)).grep({ rand < 0.2 }).first }).join | ||
camelia | 243532015550141141414152863 | ||
timotimo | m: say (do for "coetry".comb -> $letter { ^0x10000 .pick(*).grep(*.uniname.contains($letter)).grep({ rand < 0.2 }).map(*.chr).first }).join | ||
camelia | 爰䣂솜 | ||
timotimo | m: say (do for "coetry".comb -> $letter { ^0x10000 .pick(*).grep(*.uniname.contains(" $letter ")).grep({ rand < 0.2 }).map(*.chr).first }).join | ||
camelia | Use of Nil in string context in block <unit> at <tmp> line 1 Use of Nil in string context in block <unit> at <tmp> line 1 Use of Nil in string context in block <unit> at <tmp> line 1 Use of Nil in string context in block <unit> at <… |
||
timotimo | eh. | ||
ah, of course, upper case everything in unicode | 00:51 | ||
m: say (do for "coetry".uc.comb -> $letter { ^0x10000 .pick(*).grep(*.uniname.contains(" $letter ")).grep({ rand < 0.2 }).map(*.chr).first }).join | |||
camelia | ĊӪĖṱṚỲ | ||
timotimo | yeah boyyyyy that's what i'm talking about | ||
PerlJam | I did not think that would turn out so well | ||
timotimo | the unicode consortium has our backs | ||
as well as our hacks | 00:52 | ||
zoll | what does "rand < 0.2" do? | ||
timotimo | rand gives you a random number between 0 and 1 | ||
actually, that's totally unnecessary | |||
zoll | no, besides the obvious | ||
timotimo | since i already randomize the sequence of numbers anyway | ||
lookatme | m: say rand for 1 .. 3; | ||
camelia | 0.808007052908069 0.675879308772485 0.975016660427953 |
||
PerlJam | m: put [~] <c e r> Z~ <o t y> # KISS | ||
camelia | coetry | ||
timotimo | m: say [+] (rand xx 100).grep({ rand < 0.2 }) | 00:53 | |
camelia | 10.5056290971469 | ||
timotimo | m: say [+] (rand xx 100).grep({ rand < 0.3 }) | ||
camelia | 7.37854687110917 | ||
timotimo | er, not what i was aiming for | ||
m: say [+] (1 xx 100).grep({ rand < 0.3 }) | |||
camelia | 25 | ||
timotimo | m: say [+] (1 xx 100).grep({ rand < 0.5 }) | ||
camelia | 49 | ||
timotimo | m: say [+] (1 xx 100).grep({ rand < 0.2 }) | ||
camelia | 26 | ||
timotimo | m: say [+] (1 xx 100).grep({ rand < 0.2 }) | ||
camelia | 20 | ||
timotimo | m: say [+] (1 xx 100).grep({ rand < 0.2 }) | ||
camelia | 16 | ||
timotimo | when you grep by { rand < 0.2 } you'll get about 20% of all items | ||
m: say (do for "coetry".uc.comb -> $letter { ^0x10000 .pick(*).grep(*.uniname.contains(" $letter ")).map(*.chr).first }).join | 00:54 | ||
camelia | ꞓⱺỆƬṘỶ | ||
timotimo | anyway, it was useless anyway :) | ||
zoll hmms ... | |||
timotimo | m: say (do for "coetry".uc.comb -> $letter { ^0x10000 .pick(*).grep(*.uniname.contains(" $letter ")).map(*.chr).first }).join | ||
camelia | ĊṏĕṰŗỷ | ||
timotimo | m: say (do for "coetry".uc.comb -> $letter { ^0x10000 .pick(*).grep((*.uniname ~ " ").contains(" $letter ")).map(*.chr).first }).join | ||
camelia | ꞒォﯦƮৃY | ||
timotimo | m: say (do for "coetry".uc.comb -> $letter { ^0x10000 .pick(*).grep((*.uniname ~ " ").contains(" $letter ")).map(*.chr).first }).join | ||
camelia | rakudo-moar 9658dd: OUTPUT: «ͨꥋᴈTᷣỴ» | ||
timotimo | m: say (do for "coetry".uc.comb -> $letter { ^0x10000 .pick(*).grep((*.uniname ~ " ").contains(" $letter ")).map(*.chr).first }).join | ||
camelia | ᛍỎẹᵵr⅄ | ||
timotimo | this variant also allows the letter to stand at the very end of the uniname | ||
PerlJam | those last two are more what I thought would happen :) | ||
timotimo | yeah, it's because those that have " A " in them are usually "LATIN LETTER A WITH WEIRD SQUIGGLES" | 00:55 | |
jeromelanteri | morning, someone see the last comment for me ? (to deep in the history for me) | ||
timotimo | whereas with accepting the " A" at the end of the uniname as well you get things like "MARTIAN LETTER KINDA LIKE A" | ||
184728* Zoffix │ jeromelanteri: debugger was fixed like a few days after 2017.06 release | |||
merced | PerlJam: interesting idea | ||
jeromelanteri | timotimo, ok, thank you | 00:56 | |
00:57
jaldhar_ left,
jaldhar_ joined
|
|||
timotimo | R0b0t1: bad news: both dyncall and libffi use and actually rely on executable stack :\ | 01:01 | |
(based on a very cursory google search) | 01:02 | ||
01:05
tinita_ is now known as tinita
01:08
coetry left
|
|||
timotimo | coetry left :< | 01:10 | |
lookatme | Haha | ||
timotimo | m: say (do for "goodbye".uc.comb -> $letter { ^0x10000 .pick(*).grep(*.uniname.contains(" $letter ")).map(*.chr).first }).join | 01:11 | |
camelia | ḡỘꭃḍɓŷê | ||
01:11
nadim left
|
|||
timotimo | i'll go sleep now. have a good one! | 01:12 | |
R0b0t1 sighs | |||
timotimo: Thanks for checking | 01:13 | ||
timotimo | github.com/Snaipe/dyncall/blob/mas...6_8a.s#L41 | 01:14 | |
R0b0t1 | So it doesn't really need it but changing it would be a contribution to dyncall | 01:16 | |
timotimo | looks like | 01:18 | |
01:18
Cabanossi left
01:20
Cabanossi joined
01:23
coetry joined
01:24
coetry left
01:29
tyil left
01:31
jferrero left
01:41
raschipi joined
01:46
ilbot3 left
01:47
tyil joined,
Cabanossi left
01:50
Cabanossi joined,
astj_ left,
astj joined
01:52
ilbot3 joined,
ChanServ sets mode: +v ilbot3,
lichtkind left
01:55
astj left,
raschipi left
01:56
astj joined
01:57
lucs_ is now known as lucs
01:59
dj_goku left,
dj_goku joined
02:00
astj left
02:03
astj joined
02:04
zengargo1le is now known as zengargoyle
02:05
astj left,
astj joined
02:06
astj left,
astj joined
02:14
llfourn_ is now known as llfourn
02:17
pilne joined
02:26
cog_ left
02:28
sufrostico left
02:29
jaldhar_ is now known as jaldhar
|
|||
jaldhar | Given two lists of characters of equal length how do I get a count of characters which are the identical and in the same position in both lists? E.g. 'abcd' and 'adcb' should give 2. | 02:38 | |
It's easy enough to do with a loop but is there a faster/more concise way? I'm thinking something with reduction operators maybe? | 02:39 | ||
02:50
bwisti left
|
|||
colomon | m: say <a b c d> >>eq<< <a d c b> | 02:51 | |
camelia | (True False True False) | ||
colomon | m: say (<a b c d> >>eq<< <a d c b>).map(*.Int) | 02:52 | |
camelia | (1 0 1 0) | ||
colomon | m: say [+] (<a b c d> >>eq<< <a d c b>).map(*.Int) | ||
camelia | 2 | ||
colomon | m: say [+] (<a b c d> >>eq<< <a d c d>).map(*.Int) | ||
camelia | 3 | ||
colomon | dunno that that’s the best approach | ||
zengargoyle | m: say ('abcd'.comb Zeq 'adcb'.comb).grep(*.so, :k) | 02:53 | |
camelia | (0 2) | ||
yoleaux | 27 Jul 2017 21:43Z <thundergnat> zengargoyle: The evolution one isn't one I wrote. I think that one was mostly grondilu and TimToady. Not too many people say my code is formatted too nicely so that was a big clue :-) | ||
lookatme | m: say <a b c d> Zeq <a d c b> | ||
camelia | (True False True False) | ||
colomon | m: say [+] (<a b c d> >>eq<< <a d c d>) | ||
camelia | 3 | ||
colomon | m: say [+] (<a b c d> >>eq<< <a d c b>) | ||
camelia | 2 | ||
jaldhar | colomon: cool and very interesting! Thanks. | 02:54 | |
colomon | Zeq might be a better choice than >>eq<< … I’m afraid I don’t really know which is more efficient at the moment. | 02:55 | |
m: say [+] (<a b c d> Zeq <a d c b>) | |||
camelia | 2 | ||
02:55
bwisti joined
|
|||
zengargoyle | m: say ('abcd'.comb Zeq 'adcb'.comb).grep(*.so).elems | 02:55 | |
camelia | 2 | ||
02:58
noganex_ joined
|
|||
jaldhar | colomon: it seems both >>+<< and Zeq perform about equally in rakudo 2017.07 atleast for my arrays which aren't very large. | 02:58 | |
colomon | jaldhar++ # testing performance is good | 02:59 | |
zengargoyle | m: say [Zeq] ('abcd','adcb')>>.comb | ||
camelia | (True False True False) | ||
03:00
noganex left
|
|||
zengargoyle | m: say ([~^] ('abcd','adcb')).comb>>.ord.grep(!*,:k) | 03:05 | |
camelia | (0 2) | ||
zengargoyle | depending on data, string xor and counting 0's might work. :) | 03:06 | |
jaldhar | to clarify these are arrays of characters not strings though I suppose I could join them and then do the xor. | 03:10 | |
zengargoyle | i'm just goofing/golfing. if you already have array of chars, eq is probably best. guess i didn't read the original question closely enough. :) | 03:12 | |
buggable: eco leven | 03:14 | ||
buggable | zengargoyle, Found 2 results: Text::Levenshtein, Text::Levenshtein::Damerau. See modules.perl6.org/#q=leven | ||
zengargoyle | there's a module that does text 'difference' calculations that i haven't used... | 03:15 | |
jaldhar | zengargoyle: btw I'm finally looking at that rosettacode example you mentioned earlier. I don't understand everything it is doing but I'm pleased to see I came up with the same general approach. | 03:16 | |
zengargoyle | jaldhar: i understand after i figured out the loop thing and it's pretty sweet code written by somebody with some p6 skills. it's quite nice. | 03:18 | |
jaldhar | agreed | 03:19 | |
03:26
pompomcrab joined
|
|||
zengargoyle | jaldhar: oh, somebody else mentioned the code originally, i just looked out of curiosity. | 03:29 | |
03:32
Cabanossi left
03:34
Cabanossi joined
03:40
coetry joined
03:42
pharv joined
|
|||
coetry | anyone know of anyone working on a rust backend / implementation of perl6? | 03:47 | |
timotimo: haha i checked the irc logs and see that ya'll had some fun with my name :), made me smile! | |||
03:56
pharv1 joined,
pharv1 left
|
|||
jeromelanteri | someone use Git::Wrapper ? if i just want to send command git ls-remote url from Git::Wrapper, how to do that ? and then how to get back outputs ? | 04:00 | |
github.com/nicqrocks/p6-Git-Wrapper | |||
doc and example are minimalist. | |||
04:01
MasterDuke joined
04:05
astj left
|
|||
zengargoyle | i'd think $git.run('ls-remote', $url); | 04:09 | |
returns @out of lines of the command given. | 04:11 | ||
perl6 -e 'use Git::Wrapper; .say for Git::Wrapper.new(gitdir=>"p6-Search-Dict").run: "ls-remote", "github.com/zengargoyle/p6-Search-Dict.git"; ' | 04:14 | ||
does what i'd expect. seems you must supply a gitdir argument which is a bit lame but understandable. guess you need a git repository somewhere to actually use the wrapper. | 04:15 | ||
jaldhar | Before I submit my module for inclusion in the ecosystem I just want to clarify one thing. If my module is dual-licensed, Artistic or GPL2 and above, I include this in META6.json | 04:17 | |
"license" : [ | |||
"Artistic-2.0", | |||
"GPL-2.0+" | |||
], | |||
is that correct? | |||
zengargoyle | but... gitdir=>'.' also works in this case even when '.' is not a gitdir.... :) | ||
04:20
astj joined
04:32
Todd_ joined
|
|||
Todd_ | Hi! I am trying to convert a p5 program to p6. what do I use in place of `LWP::UserAgent`. I use it for downloading files from the web | 04:33 | |
I need to be able to pass the following to the web page: Caller, Host, UserAgent, Referer, Cookies | 04:34 | ||
04:34
raiph joined
|
|||
jaldhar | Todd: there's a perl6 port of LWP::Simple you can install with zef. Haven't tried it myself. | 04:37 | |
Todd_ | I fpund it but could not find the directions | 04:38 | |
jaldhar | Todd: then there is WWW and HTTP::UserAgent which seem to be better documented. I haven't tried those either but the latter looks like a port of LWP. | 04:40 | |
04:41
pharv left
|
|||
Todd_ | someone wrote a how to over on the mailing list. I will dig it out as I think it has the directions. Thank you for www and useragent! bye bye | 04:46 | |
04:46
Todd_ left
|
|||
skids | .oO(aww no Perl6 page on en.illogicopedia.org) |
04:46 | |
jeromelanteri | zengargoyle, thank you | ||
zengargoyle | jeromelanteri: just noticed that the nicqrocks url for Git::Wrapper you gave is a fork of perlpilot's code. don't know if this matters or there are any differences... just FYI | 04:49 | |
jeromelanteri | zengargoyle, ho ok... but i install module from zef, so it should instal the one you was talking about. | 04:52 | |
zengargoyle | looks like zef returns the niqrocks version... maybe niqrocks took over development or something... no big deal. | 04:54 | |
i just noticed that one can't create an issue on the niqrocks fork so i can't complain about the gitdir thing. :P | 04:56 | ||
04:56
skids left
04:58
pharv joined
|
|||
perigrin | m: my @a = <a a c>; my @b = <a b>; say (@a (&) @b) / (@a | @b); | 04:58 | |
camelia | any(0.333333, 0.5) | ||
perigrin | m: my @a = <a a c>; my @b = <a b>; say (@a (&) @b) / (@a (|) @b); | 04:59 | |
camelia | 0.333333 | ||
05:05
xtreak joined
05:09
ufobat joined
05:11
xtreak left,
xtreak joined
05:16
xtreak_ joined,
xtreak left
05:19
xtreak_ left,
xtreak joined
05:29
khw left
05:31
xtreak left
05:33
coetry left
05:34
coetry joined
05:42
coetry left
05:43
coetry joined
|
|||
jeromelanteri | zengargoyle, from Git::Wrapper.new(gitdir => '.'); it said SORRY! STable conflict detected during deserialization. (so the good news is that the conflict is stable... :) ) | 05:47 | |
05:47
Cabanossi left
|
|||
jeromelanteri | no.. it is directly at use Git::Wrapper time... | 05:48 | |
05:49
Cabanossi joined
|
|||
jeromelanteri | it also said that: Probable attempt to load two modules that can not be loaded together. | 05:49 | |
05:50
pompomcrab left
|
|||
jeromelanteri | i have use Prompt::Gruff::Export and use Term::Choose loaded. | 05:50 | |
05:51
cpage_ joined
05:52
coetry left,
coetry joined
05:53
pharv left
05:56
silug left
|
|||
jeromelanteri | if i do a little file just for add modules and see.. it run. | 05:56 | |
but if i comment use Git::Wrapper from my programm... it works. So it is strange, how is it possible to not be able to use two modules together ? and how to know why precisely there is a STable conflict ? | 05:57 | ||
if i know that, maybe i should add en issue for the faulted module who can not have a life with other. | |||
06:01
coetry left,
coetry_ joined
|
|||
jeromelanteri | conflict seems to be (maybe) with Prompt::Gruff::Export | 06:02 | |
06:03
Miro_ joined
|
|||
zengargoyle | perl6 -e 'use Term::Choose; use Prompt::Gruff::Export; use Git::Wrapper; .say for Git::Wrapper.new(gitdir=>".").run: "ls-remote", "github.com/zengargoyle/p6-Search-Dict.git";' | 06:03 | |
still works for me.... | |||
so all three can be use'd and at least Git::Wrapper works in that case. | 06:05 | ||
06:05
pilne left
|
|||
zengargoyle | maybe a version/os thing, i'd suspect Term::Choose because of ncursed and nativall type stuff. the Prompt and Git::Wrapper seem mostly generic.... | 06:11 | |
zengargoyle lol at s/ncursed/ncurses/ | 06:12 | ||
it will probably take somebody who knows what STable could mean and looking at your code. | 06:13 | ||
06:16
Miro_ left
|
|||
zengargoyle | perl6 -e 'use Term::Choose; use Prompt::Gruff::Export; use Git::Wrapper; .say for Git::Wrapper.new(gitdir=>".").run: "ls-remote", "github.com/zengargoyle/p6-Search-Dict.git"; say my $chosen = choose( <1 2 3>, :layout(2) );say prompt-for("Enter name (required): ");' | 06:16 | |
06:17
andrzejku joined
|
|||
zengargoyle | simple test of all 3 modules works for me... | 06:17 | |
06:19
coetry_ left
06:20
coetry_ joined
|
|||
jeromelanteri | zengargoyle, same for me | 06:20 | |
only my code failed. but use lib is call from a module in do. who are introduced from own lib (use lib 'my path") | 06:21 | ||
an other one different question, i use vim and TagBar plugin, but still no have tags list... i do install universal-ctags in place of ctags for try to resolve, but not works to. How to resolve this problem (if someone use vim and TagBar and know) ? | 06:23 | ||
zengargoyle, i see that if i add this Git::Wrapper lib from main file (.pl6, not module file .pm6) no error... but i need it in the module file... | 06:24 | ||
06:25
xtreak joined
06:26
rindolf joined
06:28
wamba joined
06:29
xtreak_ joined
06:30
mr-foobar joined,
coetry_ left
06:31
coetry joined
06:32
xtreak left
06:33
cpage_ left
06:34
andrzejku left
06:35
cpage_ joined,
xtreak_ left
|
|||
jeromelanteri | same problem if i do use Git::Wrapper from a file .pm6 who contain a class | 06:39 | |
zengargoyle | i'd say put your code on github or somewhere so somebody smarter than me can look. if it is really a problem with 'use lib' and use from module and conflict errors.... it might be something weird. | ||
jeromelanteri | ok | 06:40 | |
06:40
cpage_ left,
coetry left
06:41
coetry_ joined
|
|||
zengargoyle | STable conflict detected during deserialization -- is a weird internally looking error that is less than helpful :) | 06:41 | |
at least i've never seen it before and have no clue what it could mean. | 06:42 | ||
jeromelanteri | IDK, my level is to bad (start to learn perl6 not one week ago) | ||
so it should also be something i done wrong. I 'm going to create a public bitbucket repo and git push this | 06:43 | ||
06:44
andrzejku joined
06:47
Cabanossi left
06:49
Cabanossi joined,
coetry_ left
|
|||
lookatme | STable, I remember this is a thing in NQP | 06:49 | |
06:50
cpage left
06:57
pecastro left
07:03
darutoko joined
07:04
parv joined
07:05
domidumont joined
07:09
rindolf left
07:11
domidumont left
07:12
domidumont joined
07:16
abraxxa joined
07:19
nadim joined
07:20
miro_ joined
07:27
rindolf joined
|
|||
jeromelanteri | bitbucket.org/jerome___/vimplugger/src | 07:30 | |
my bitbucket (git) public repo for this little code | |||
07:32
lowbro joined,
lowbro left,
lowbro joined
07:33
geekosaur left
|
|||
jeromelanteri | NQP ==> nOOb Questions Protocol,correct ? | 07:33 | |
07:33
eviltwin_b joined,
eviltwin_b is now known as geekosaur,
geekosaur left
|
|||
lookatme | nqp: nqp::say("123"); | 07:34 | |
camelia | 123 | ||
07:35
geekosaur joined,
miro_ left
|
|||
lookatme | Not Quite Perl | 07:35 | |
nqp: nqp::if(1 == 3, nqp::say("123"), nqp::say("453")); | 07:37 | ||
camelia | 453 | ||
07:39
pecastro joined
|
|||
lookatme | jeromelanteri, How to use your script ? | 07:39 | |
jeromelanteri | lookatme, actually, just start ./VimPlugger.pl6 | 07:40 | |
lookatme | ok | ||
07:40
geekosaur left
|
|||
jeromelanteri | if you have libs i use installed, then it should start by a menu when this error gone | 07:41 | |
if you comment use Git::Wrapper from check.pm6, it should start well | |||
07:42
geekosaur joined
|
|||
lookatme | OK, I will try | 07:42 | |
jeromelanteri | thank you | ||
07:43
geekosaur left
07:44
geekosaur joined,
andrzejku left
07:47
Cabanossi left
|
|||
lookatme | There is some error, undeclared routine: yaml ? | 07:47 | |
jeromelanteri | |||
zengargoyle | jeromelanteri: first peek. it will get much easier if you use App::Mi6 or something and create a standard module/distribution structure. for example, you're code won't work for anybody because 'use lib "/home/jerome/PROGRAMATION/...."; | 07:48 | |
07:49
Cabanossi joined
|
|||
lookatme | I change it to "." | 07:49 | |
jeromelanteri | yes, i didn't know that, thank you | 07:51 | |
i have to read/learn about App::Mi6 | |||
lookatme | What is yaml ? | 07:52 | |
jeromelanteri | a kind of yaml parser | 07:53 | |
lookatme | The code in the bitbucket is not correct | 07:55 | |
zengargoyle | lookatme: it's dump/load not yaml.dump/yaml.load. | 07:56 | |
lookatme | I delete all `yaml.` in the pm file, and all thing working expect that error you mentioned | ||
yeah | |||
07:56
gfldex_ is now known as gfldex
|
|||
jeromelanteri | lookatme, ho really... let me check this. | 07:57 | |
lookatme | s/expect/except/ | ||
07:58
zakharyas joined
|
|||
zengargoyle | there are some 'has method' in datas | 07:59 | |
samcv | huggable, deb | 08:00 | |
huggable | samcv, CentOS, Debian, Fedora and Ubuntu Rakudo packages: github.com/nxadm/rakudo-pkg/releases | ||
08:00
espadrine joined
|
|||
jeromelanteri | zengargoyle, it should not in a class ? | 08:01 | |
oh yes... | |||
zengargoyle | m: check | 08:02 | |
camelia | 5===SORRY!5=== Error while compiling <tmp> Undeclared routine: check used at line 1. Did you mean 'CHECK'? |
||
jeromelanteri | lookatme, github.com/yaml/yaml-perl6/blob/ma.../README.md | 08:03 | |
08:04
zakharyas left
|
|||
zengargoyle | jeromelanteri: on first look, you're trying too hard. :) lots of my sub and our sub and is export(:MANDATORY) and when "$answer" that looks like more than you probably need to actually do. :) | 08:06 | |
08:06
zakharyas joined
|
|||
lookatme | Yeah, I got the error | 08:07 | |
STable conflict detected during deserialization. | |||
It always report this error, though I comment that use Git::Wrapper. | |||
jeromelanteri | zengargoyle, wow but... i done it. | 08:09 | |
zengargoyle, maybe it seems to hard because the script code is not shiny... i used to first do something, then rewrite the code (and sometimes redesign all the design pattern after). | 08:10 | ||
08:11
TimToady left
|
|||
jeromelanteri | lookatme, not for me, if Git::Wrapper is commented, no more error on that. | 08:11 | |
do retry it three times, i confirm, if i comment Git::Wrapper from my side, it works good. | 08:13 | ||
zengargoyle | jeromelanteri: yeah, i see that in places.. :) how far did you get before you got the error? like... which parts did work. | ||
m: add | 08:14 | ||
camelia | 5===SORRY!5=== Error while compiling <tmp> Undeclared routine: add used at line 1. Did you mean 'dd'? |
||
08:14
araujo left
|
|||
zengargoyle | m: install | 08:14 | |
camelia | 5===SORRY!5=== Error while compiling <tmp> Undeclared routine: install used at line 1 |
||
jeromelanteri | zengargoyle, just when i try to add Git wrapper from check.pm6 file in git_repos_exist, and in same time in datas method install_repos_from | ||
zengargoyle, add and install are modules shared by "our" i choosed to do like this for clarity and be able to have functions with same names in different modules... then because of "our" in fucntion declaration modules, i can call them by the first module name :: function | 08:16 | ||
08:17
Cabanossi left
|
|||
jeromelanteri | fomr a kind_of.pm6 file, unit module kind_off; our sub blabla is export(:MANDATORY) {...} from an other file: use kind_of; kind_of::blabla; | 08:17 | |
08:18
TimToady joined
|
|||
jeromelanteri | normaly no need to put use kind_of :MAN?DATORY; the doc said :MANDATORY is automatically exported. | 08:18 | |
by defqault | |||
default | |||
and that's it. | |||
zengargoyle | jeromelanteri: assuming most code works, i'm thinking our and symbols and same name stuff causes collisions somewhere. | ||
lookatme | What is $datas, I found this in some module reference module datas | ||
jeromelanteri | zengargoyle, ho yes, that's should be a reason, why not... IDK | 08:19 | |
lookatme | k | ||
08:19
Cabanossi joined
|
|||
jeromelanteri | from vim /$datas ==> not find. I think you mean $.datas ? | 08:20 | |
zengargoyle | for me.... it should be VimPlugins::datas, VimPlugins::install, VimPlugins::add, etc. and maybe VimPlugins::add::somefunc() before trying to make it look easy. | ||
08:20
nadim left
|
|||
zengargoyle | once it works, you can make it easy to use. :) | 08:21 | |
jeromelanteri | this is a class public variable with attributes. It contain $yaml datas parsed from yaml file | ||
lookatme | I don't see where $datas is create | ||
OH.. | |||
jeromelanteri | zengargoyle, i not well understand. Do you mean at import time ? | ||
lookatme, ligne 8 | 08:22 | ||
and ligne 30 show you the yaml parse | 08:23 | ||
i do initialize things at method TWEAK | |||
i not used submethod BUILD | |||
lookatme | Oh, that's my mistake | 08:24 | |
08:25
nadim joined
|
|||
jeromelanteri | I'm sorry also, i not add coments... i didn't know this to be shared also... i can add some comments if you want. | 08:25 | |
(but with my poor english... not sure it will not be more confuse... :) | 08:26 | ||
or more clear | |||
lookatme | Oh, it said YAML.load not implement ? | 08:27 | |
jeromelanteri | lookatme, yes sorry, my fault to not precise at first commit in thge README file to NOT use the zef install YAML | ||
lookatme | OH, so how to ? | 08:28 | |
jeromelanteri | but instead use zef install from git yaml-perl6 ... i do change the README actually | ||
waiting, i copy paste | |||
lookatme, zef install github.com/yaml/yaml-perl6.git | |||
(remove the other one first) | 08:29 | ||
08:29
cpage joined
|
|||
jeromelanteri | then also, if Git::Wrapper is use from main file... no error ! very strange | 08:31 | |
nut maybe zengargoyle find the idea... it should be my modules who make conflmict because of "our" | 08:32 | ||
i also not well understand how to try to fix it. | |||
and keep the separat call for module: name_of_module::function | |||
also, i tryed to use the perl6-debug-m for rack deeply the problem... serve nothing, the debuger doesn't works on this case (or i miss the point to make it work on that error) | 08:34 | ||
for track | |||
08:39
MasterDuke left
08:41
eythian left
08:42
eythian joined
|
|||
lookatme | Cannot locate native library 'libyaml.so': /lib64/libyaml.so: file too short | 08:44 | |
zengargoyle | lookatme: on arch? | 08:45 | |
lookatme | fedora | ||
zengargoyle | cat /lib64/libyaml.so | ||
lookatme | INPUT(libyaml-0.so.2) | ||
zengargoyle | like arch, fedora evidently uses `ld` magick which doesn't work with nativecall..... | 08:46 | |
lookatme | Oh, How to fix that ? create a symbol link ? | 08:47 | |
zengargoyle | you could rm /lib64/libyaml.so and (cd /lib64; ln -s libyaml-0.so.2 libyaml.so) or something.... | ||
08:48
Doe joined
|
|||
lookatme | Oh, I wonder why they not using a symbol link | 08:48 | |
08:48
Doe left
|
|||
zengargoyle | or edit look at module and edit to use a libyaml-0.so.2.... | 08:48 | |
it's like a known issue that has no good solution yet i think... | 08:49 | ||
why fedora/arch does this insane thing i have no idea. :P | |||
lookatme | Hmm | ||
08:50
cpage left
|
|||
jeromelanteri | lookatme, at one point, i had this problem and created a environment variable (but the module asked for that) PERL6_NCURSEs_LIB | 08:52 | |
lookatme | OH | ||
jeromelanteri | zengargoyle, look if there is the way of variable env export | 08:53 | |
i'm from archlinux | |||
08:53
robertle joined
|
|||
zengargoyle | native call. is native('libyaml.so').... some librarys make that a sub or environment variable and do magic. | 08:53 | |
so if module author thought to add env override maybe you can change it, otherwise edit code or make symlink. | 08:55 | ||
jeromelanteri | zengargoyle, if you make symlink, it should works, but also you shoumd break your distro... | ||
should | |||
08:55
cpage joined
|
|||
jeromelanteri | at package time call from packet manager, it should cry | 08:56 | |
lookatme | Oh, it's working now | ||
zengargoyle | well, i've moved and edited a bunch of files, and even moved the 'use Git::Wrapper;' in datas down to inside the single function that uses it.... it bonks if it's there, and works otherwise (i guess not knowing exactly what it's supped to do but getting an ncurses menu thing.... :) ) | 08:57 | |
lookatme | Which module conflict with Git::Wrapper ? | ||
jeromelanteri | mine maybe... | ||
zengargoyle | jeromelanteri: i've used unix for 30 years... :) i can *make* it work. | 08:58 | |
jeromelanteri | in fact, if i import Git::Wrapper from main file, it works... it doesn't works only when import from pm6 files | ||
zengargoyle, you better than me, i make use it from 32 years, and sometimes i loose again some hairs... | 08:59 | ||
zengargoyle | perl6 on the other hand... | ||
jeromelanteri | did you try to run debuger ? | 09:00 | |
maybe you can see some datas make sens for you (not for me, but maybe for you) | 09:01 | ||
or strace ? | |||
zengargoyle | anyway, it's 2am here and i'm going to bed for now. i'll revisit tomorrow. | ||
jeromelanteri | zengargoyle, thank you for try to help me and have a good night man. | 09:02 | |
09:02
astj left
|
|||
zengargoyle | hopefully somebody figures it out... | 09:02 | |
09:02
astj joined,
astj left
09:03
astj joined,
Cabanossi left
|
|||
lookatme | good night! zengargoyle | 09:03 | |
09:04
Cabanossi joined
|
|||
jeromelanteri | lookatme, i make a break pause... will be AFK... and i will take time for reflection then, i will be back with fresh ideas. It should be my module callas who make problems... it's possible i think. | 09:08 | |
lookatme | oik | 09:13 | |
ok | |||
09:22
jnthn_ is now known as jnthn
09:33
lookatme left
|
|||
jeromelanteri | by the way, remove our declaration of functions from modules and cal by &group instead of add::group (and same for all other) doesn't fix the problem... so it should be a module Git::Wrapper code problem (maybe). | 09:35 | |
i created a branch git_wrapper also... | 09:37 | ||
a commit show that not fix problem... now i go back next commit to decclaration with our and use module name for call functions | 09:38 | ||
09:39
Aaronepower left
|
|||
jeromelanteri | i also asked on archlinux channel why do use magic links instead of symlink... approximative answer was that it get more control, but no one actually know exactly what this control is and why is it better... | 09:51 | |
09:58
parv left
10:02
Cabanossi left
10:04
Cabanossi joined
10:06
andreoss joined
10:07
Geth joined
|
|||
nadim | hi, I am requiring a module which is not installed, its part of my development, I tried use lib '.' but I get this error 'use lib' may not be pre-compiled | 10:21 | |
I am trying a (try require ::Data::Dump::Tree::LayFlat) but that gives me run time error: No such symbol 'Data::Dump::Tree::LayFlat' | 10:25 | ||
jeromelanteri | nadim, could you call a simple module lib from your code ? does it works ? | 10:26 | |
did you also declare your module from your module file by unit module name_of_your_module (same as file_name without .pm6) | 10:27 | ||
nadim | Yes, but let me nopaste the code, it's simpler | 10:28 | |
jeromelanteri | yes | ||
nadim | jeromelanteri: nopaste.linux-dev.org/?1160079 | 10:35 | |
jeromelanteri | nadim, you not use is export for sub function, and then i'm not sure the way you declare the module can works.. you can use lib from main file (it should share libs for other), then call unit module LayFlat (name of your file). Not sure for the last reqquest... also, not sure but files extentions convention is .pm6 | 10:39 | |
also, i do use is export(:MANDATORY): sub lay_flat is export(:MANDATORY) { ... } | |||
nadim | I believe the problem is finding the module, the error doe not seem to indicate we got that far. | 10:40 | |
jeromelanteri | if u declare use lib 'lib', it goes for search lib from ./lib/ ... | ||
nadim | that's where the module is | ||
jeromelanteri | nadim, good. you should wait for an other one know better... i'm a noob actualy... | 10:41 | |
nadim | also, using .pm works fine, although I should change that some day | ||
jeromelanteri | ok | 10:42 | |
nadim | there are 3 Gods, 10 titans, 300 noobs and a whole bunch clueless, you still are in quite ok cathegory ;) | ||
10:43
Aaronepower joined
|
|||
nadim | I am requiring another module but that one is installed, I just want to test without having to install a, potentially broken, module all the time | 10:43 | |
jeromelanteri | nadim :) not sure... my frustration is to not be able to help you more by the fact... | ||
i'm waiting to see what should be yyour solution for learn more around that to. | 10:44 | ||
nadim | well, we'll both eventually learn something when one of the titans wakes up | ||
jeromelanteri | from sources of module, they add "use v6;" | 10:49 | |
nadim | ok | ||
10:50
Zoffix joined
|
|||
nadim | hmm, it was a good idea to try to installll too it seem as I found another install error! | 10:50 | |
Zoffix | nadim: you can't precompile `use lib`; so you eaither need a `no precompile` or put it into your script instead of the module | ||
nadim: as for require. Is that sub exported? | 10:51 | ||
Use ::('Data::Dump::Tree::LayFlat::EXPORT::DEFAULT::&lay_flat') | |||
nadim | no it was not exported, adding that | 10:52 | |
Zoffix | Right without an export or `our` it's not accessible from the outside | ||
nadim | I run p6 via an alias, I thought it would take care of things. alias p6='perl6 -Ilib,t' | 10:55 | |
timotimo | setting lib to t? that's ... an interesting decision | ||
nadim | old habit when test libs end up in t | 10:56 | |
they should probably be somewhere else, maybe | 10:57 | ||
Zoffix | nadim: it takes care of adding lib and t to module search paths, not to what symbols are visible from outside the module | ||
10:58
zakharyas left
|
|||
nadim | ok, bu the error, No such symbol 'Data::Dump::Tree::LayFlat', happens oin the require line, not when I am using a symbol from that module. nopaste.linux-dev.org/?1160079 | 10:59 | |
10:59
Zoffix left
11:01
Cabanossi left
11:04
TEttinger left,
Cabanossi joined
|
|||
llfourn | nadim: why's there a :: before Data? | 11:04 | |
try require Data::Dump::Tree::LayFlat # <-- should be? | 11:05 | ||
nadim | llfourn: if I recall properly, it was from an example I saw. I require Terminal::ANSIColor like that and it works. I tried without the :: and got no better result | 11:08 | |
llfourn | hmm weird I've never seen that before | ||
is there some reason you're not doing try require Data::Dump::Tree::LayFlat <&lay_flat>; nand the njust pushing &lay_flat? | 11:09 | ||
*and then | |||
hmm but you say the error happens on the require line... | 11:10 | ||
nadim | no special reason, that certainly looks neater. but right now the problem is not with the sub, even if I do not use lay_flat, i still get an error loading the module | ||
llfourn | it could easily be a bug | ||
nadim | I hope not :) | ||
llfourn | the require implementation is pretty dodgey in that area | ||
it does some dynamic lookup to get the class it's meant to be returning | 11:11 | ||
and that sounds like where the error is coming from | |||
I've been meaning to fix it... | |||
nadim | Do it, do it ;) | ||
right now I use this: (try require ::Data::Dump::Tree::LayFlat:file('Data/Dump/Tree/LayFlat.pm')) !=== Nil | 11:12 | ||
llfourn | can you give the exact reproduction steps and send to [email@hidden.address] | ||
11:12
committable6 left,
greppable6 left,
evalable6 left,
bisectable6 left,
statisfiable6 left,
unicodable6 left,
benchable6 left
|
|||
nadim | so I am giving the path too. I do not "use lib" as it is not necessary. I found out by giving a wrong name and I got an error message showing me the libs paths, they were fine | 11:13 | |
llfourn: of course I can do that :) | |||
llfourn | does it happen if you just do: require Data::Dump::Tree::LayFlat | ||
nadim | that's how I started, same error | ||
require works for installed modules | 11:14 | ||
llfourn | well, if everything is set out like you show it's probably a bug I *might* have a fix for | ||
nadim | this one is part of the development not installed yet | ||
let's see if I can golf this | |||
llfourn | nadim: that would help :) | 11:15 | |
11:19
cog_ joined
|
|||
nadim | llfourn: golfed it works :) let me break it again ;) | 11:21 | |
llfourn | it might be something with the many :: deep name | 11:22 | |
jeromelanteri | well... let's learn why STable conflict happen when i use Git::Wrapper module then ? (if you want) | 11:24 | |
bitbucket.org/jerome___/vimplugger...it_wrapper | |||
i'm burning sage and make incantations at this time... | 11:26 | ||
nadim | llfourn: no golfed broken version yet but the working code from a script, when called from a method, generates an error. | 11:36 | |
11:36
mr-fooba_ joined
11:37
mr-foobar left
|
|||
llfourn | nadim: so it sounds really tricky to reproduce which supports my conclusion it's related to the problem I suspected | 11:41 | |
it would be very handy to have a golfed version so we can turn it into a test though | 11:42 | ||
11:45
mr-fooba_ left
11:46
mr-foobar joined
|
|||
jaldhar | This is strange | 11:47 | |
Enabled extracting backends [git path tar p5tar unzip] don't understand /home/jaldhar/.zef/tmp/Algorithm-DawkinsWeasel | 11:48 | ||
You may need to configure one of the following backends, or install its underlying software - [psunzip] | |||
but I have unzip in my path. What gives? | |||
Is my module (Algorithm::DawkinsWeasel) set up wrong? | 11:49 | ||
or is zef not configured properly? If so where do I configure it? (homemade install of rakudo 2017.07 in ~/.perl6) | |||
llfourn | jaldhar: I'm pretty sure it's meant to find those automatically | 11:51 | |
I've never used zef with anything other than git | 11:52 | ||
nadim | llfourn: trying to wrap things up in the golfed version but the darn things continues to work! | ||
llfourn | ugexe: what do you think wrt jaldhar's problem? | 11:53 | |
nadim: damn that's the worst | |||
I hate it when you can't golf a rakudo bug | |||
11:54
abraxxa left
11:59
committable6 joined,
quotable6 joined,
bloatable6 joined,
ChanServ sets mode: +v committable6,
ChanServ sets mode: +v quotable6,
ChanServ sets mode: +v bloatable6,
bisectable6 joined,
greppable6 joined,
evalable6 joined,
coverable6 joined,
ChanServ sets mode: +v bisectable6,
ChanServ sets mode: +v greppable6,
ChanServ sets mode: +v evalable6,
ChanServ sets mode: +v coverable6,
unicodable6 joined,
ChanServ sets mode: +v unicodable6,
benchable6 joined,
ChanServ sets mode: +v benchable6,
statisfiable6 joined,
ChanServ sets mode: +v statisfiable6
12:02
Cabanossi left,
ufobat left
12:04
Cabanossi joined
12:08
amalia___ joined
12:17
bdmatatu joined
|
|||
bdmatatu | I am trying to eval code and save the context, like REPL::repl-loop. It almost works but not quite: git.io/v7c6L | 12:21 | |
12:35
asdaddqwqe joined
|
|||
asdaddqwqe | hello for all | 12:35 | |
I am newcomer in Perl | |||
nadim | welcome | ||
asdaddqwqe | thanks | 12:36 | |
what for this irc channel? | |||
moritz | general questions around Perl 6 | ||
(and specific questions as well :-) | 12:37 | ||
asdaddqwqe | mmm | ||
good | |||
will be know | |||
12:39
zakharyas joined
12:44
Swey_Hey joined,
mcmillhj joined
12:45
mr-foobar left
|
|||
asdaddqwqe | guys, are you like football? | 12:46 | |
fantasy premier league | 12:47 | ||
12:51
asdaddqwqe left
12:52
perlpilot joined
|
|||
perlpilot | blah | 12:52 | |
Zoffix++ | 12:56 | ||
13:04
itaipu joined
13:05
jaldhar left
|
|||
awwaiid | bdmatatu: I would like it if what you have in your gist (or a variant) worked, but the REPL is not fully de-magic'd in ways I don't quite understand | 13:09 | |
bdmatatu: However, I have constructed a devious way of _simulating_ the same thing through constructing nested scopes for subsequent evals | |||
bdmatatu | I think I just got it actually -- adding :interactive(1) seems to fix it | ||
awwaiid | bdmatatu: github.com/awwaiid/p6-lrep/blob/ma...EP.pm6#L35 | 13:10 | |
bdmatatu: ah very good! | |||
On my very-deep-todo-stack is to come back around to some rakudo repl work :) | |||
I would rather the setup you had to be only creating an instance of REPL and then invoking .repl-eval, without any of the other things you had to do | 13:14 | ||
and _especially_ it shouldn't depend on nqp | |||
bdmatatu | Sounds good -- this is the application btw, have been trying to write a jupyter kernel: github.com/bduggan/p6-jupyter-kernel | 13:15 | |
awwaiid | bdmatatu++ # !!! | 13:16 | |
that is also somewhere on my infinite todo list :) | |||
bdmatatu | :) | ||
13:16
andreoss` joined
|
|||
awwaiid | bdmatatu: you found the previous attempt someone worked on? | 13:16 | |
bdmatatu | Yes | ||
awwaiid | very good | ||
andreoss` | m: class Foo {}; sub foo(Foo:D $x?) { 1 }; say foo(); | 13:17 | |
camelia | Parameter '$x' of routine 'foo' must be an object instance of type 'Foo', not a type object of type 'Foo'. Did you forget a '.new'? in sub foo at <tmp> line 1 in block <unit> at <tmp> line 1 |
||
awwaiid | I would be delighted to hear of your pgoress on this and will try to find time to beta-test | ||
bdmatatu | awwaiid++ great! | ||
andreoss` | can I use optional parametrs with :D objects? | 13:18 | |
awwaiid | andreoss`: maybe give it a default (defined) value | 13:19 | |
jnthn | Only if you provide a default. Maybe we should catch that at compile time. | 13:21 | |
13:30
perlpilot left
|
|||
mspo | stmuk: so benny is saying to package all of the "star" packages individually and just track them like that; which I think is what you were also recommending | 13:31 | |
guess that's the way to go | |||
just need to figure out all of the right INC's to use + the incantation with zef (maybe) | 13:32 | ||
I always wasn't super clear on how other packaging systems are doing it | 13:33 | ||
[Coke] | timotimo: see also my unicode mangler if you want rando combiners. | 13:35 | |
13:35
skids joined,
perlpilot joined
13:37
lizmat left
|
|||
[Coke] | timotimo: (g̩ͧ̒̔͡ö̟̝̻́͡ǫ̺̋ͨ́d̷̻ͬ̄͞b̫͒͟͡ͅy̫̋̀ͣ̏é̷̞͝ͅ) | 13:40 | |
mspo | [Coke]: that one works better than the one yesterday for me | 13:41 | |
13:41
lizmat joined
13:55
nadim left
14:05
Voldenet left
14:08
itaipu left
14:09
itaipu joined
14:10
Voldenet joined,
Voldenet left,
Voldenet joined
14:18
zakharyas left
14:20
zakharyas joined
14:25
nadim joined
14:27
popo__ joined,
grumble left
14:43
domidumont left
14:53
mst_ is now known as mst
14:54
grumble joined
14:59
khw joined
15:01
espadrine left
15:03
domidumont joined,
vmeson left
|
|||
mspo | so if I install rakudo star and want to update one of the included modules can zef do it? | 15:08 | |
since there is no more @INC I'm not sure how to order stuff | |||
timotimo | yeah, zef can update stuff for you | ||
mspo | would it replace what star installed? | 15:12 | |
timotimo | if the :ver is the same, yes | ||
if it's a new :ver, it'll be installed alongside the older one so you can still get it with a more specific use statement | |||
mspo | okay | 15:13 | |
geekosaur | iirc it will install alongside, since unlike perl 5 you can distinguish by :ver and possibly :auth | ||
heh | |||
geekosaur slow | |||
timotimo | like a little part of my zef list --installed looks like this: | ||
JSON::Fast:ver('0.4') | |||
JSON::Fast:ver('0.8.5') | |||
JSON::Fast:ver('0.9') | |||
JSON::Fast:ver('0.9.1') | |||
mspo | are those in site/ or vendor/ ? | 15:14 | |
timotimo | i think vendor is for rakudo star and site is for what you install | ||
or something | |||
mspo | timotimo: yeah I'm asking because I'm going to try (again) to get rakudo-star into pkgsrc | 15:15 | |
timotimo: but right now we're headed down the path of just combining stand-alone nqp, moar, rakudo | |||
timotimo | did you look at nine's work on getting it packaged for suse? | ||
mspo | timotimo: and it's up in the air about how to handle the 30+ packages inside of star | 15:16 | |
timotimo | problem with that is that the latest star release uses an unreleased nqp | ||
mspo | timotimo: people seem to be leaning towards just packing them up on their own | ||
timotimo: we can apply patchsets into nqp. it's not a problem | |||
but why wouldn't nqp just do a point release to fix ? :) | 15:17 | ||
en.opensuse.org/Rakudo <- looks out of date | 15:18 | ||
timotimo | huh i don't know where to find that stuff | 15:19 | |
mspo | :) | ||
timotimo: pkgsrc has a bunch of stale attempts too | |||
timotimo: I'm hoping to get it cleaned up and modernized. One of our guys is already most of the way there | 15:20 | ||
timotimo | nine built something called "CompUnitRepo::Staging" or similar | ||
it allows you to install precompiled stuff by building it once and distributing the binaries | |||
IIUC | |||
mspo | we also need a sanctioned way to intsall modules that might get packaged up | 15:22 | |
15:23
epony left
|
|||
timotimo | how do you mean? | 15:23 | |
mspo | integrate zef into pkgsrc as a usable "tool" for building packages | 15:24 | |
or some other method | |||
right now perl5 stuff uses makemaker directly I think | |||
timotimo | kind of like arch has alacryd? | ||
not that i know anything about that tool | |||
15:25
pecastro left
|
|||
mspo | I don't know it :) | 15:25 | |
15:25
wamba left
|
|||
mspo | timotimo: pkgsrc is a big collection of software for netbsd, illumos, osx, and others | 15:25 | |
timotimo: it's a giant collection of Makefile's | |||
timotimo | i mean i don't know anything about alacryd | ||
mspo | oh me either | ||
timotimo | i've heard of pkgsrc | ||
mspo | cool :) | 15:26 | |
much nicer than brew for osx ;) | |||
15:26
HoboWithShotgun joined
|
|||
mspo | just use pkgin to get all the binary packages; including perl6 if I can get some time to work on it! | 15:26 | |
HoboWithShotgun | hi. I just installed rakudo and some modules with this zef tool. | ||
where do the modules get installed to? | 15:27 | ||
mspo | .say for $*REPO.repo-chain; | ||
run that I think | |||
timotimo | m: .say for $*REPO.repo-chain | ||
camelia | inst#/home/camelia/.perl6 inst#/home/camelia/rakudo-m-inst-2/share/perl6/site inst#/home/camelia/rakudo-m-inst-2/share/perl6/vendor inst#/home/camelia/rakudo-m-inst-2/share/perl6 CompUnit::Repository::AbsolutePath.new(next-repo => CompUnit::Repos… |
||
mspo | timotimo: oh I see; we could use compunit::repoisotry to package up star and just stick it on the install | 15:28 | |
interesting but probably not what Benny wants | |||
also that means you can use compunit::repository to make FatPack-style stuff? | 15:29 | ||
15:29
jdv79_ left
|
|||
mspo | ugexe++ | 15:30 | |
HoboWithShotgun | interesting. why do the file names of modules appear to be some checksum? | 15:32 | |
15:32
jdv79 joined
|
|||
geekosaur | because you can have multiple versions of a module installed | 15:34 | |
so they get named by a hash of their identifying information (version, author, etc.) and I think maybe ABI? | 15:35 | ||
moritz | and the module name may contain Unicode characters that your file system may not like | ||
geekosaur | use Foo.Bar:ver(1.16); # for a specific version; default should be the latest installed | ||
andrzejku_ | moritz, hey! | 15:36 | |
HoboWithShotgun | that's a bummer. i wanted to look at xml::node code | ||
15:37
rumble joined
|
|||
HoboWithShotgun | actually, where is the documentation for the XML class? | 15:37 | |
stmuk | is it possible to have nqp c0abee7953ac tagged as 2017.07.1? | ||
geekosaur | that wouldn't work anyway, I think --- iirc the CUR has only the compiled version? | 15:38 | |
HoboWithShotgun | nvm, found it | ||
nine | The vendor repo is for packaged modules (think rpm, dpkg, ...). They are shipped by your operating system vendor. | 15:39 | |
The site repo is for modules installed by the user. | |||
15:39
epony joined
|
|||
nine | Well user with sufficient access priviledges that is. There's still the home repo for unpriviledged users. | 15:39 | |
timotimo: CompUnit::Repository::Staging is essential for building precomp files with an unpriviledged user before packaging. It lets you install modules to a different location than where the will end up in, i.e. /tmp/BUILDROOT/usr/share/perl6/vendor. | 15:41 | ||
perlpilot | mi6++ (tried it for the first time today and it was doing something weird ... turned out it was a bug in my code!) | ||
15:42
lowbro left
15:46
zakharyas left,
bwisti left
|
|||
lucs | I had the impression that mi6 was deprecated in favor of ddt. | 15:47 | |
Is it? | |||
timotimo | nine: thank you for clarifying, i'll try to remember it | 15:49 | |
perlpilot | I don't see that ddt handles CPAN distributions. (that's the only reason I was using mi6) | ||
15:50
nhywyll joined
|
|||
lucs | perlpilot: Oh, important difference, eh. | 15:51 | |
ugexe | HoboWithShotgun: you can find the source for an installed module with `zef locate My::Module` | ||
perlpilot | but also ... mi6-- for changing my README and META6.json without me asking it to | 15:52 | |
15:52
pecastro joined
|
|||
ugexe | or `zef locate lib/My/Module.pm6` or `zef locate $some-sha1 --sha1` | 15:53 | |
15:53
grumble is now known as grumble2,
rumble is now known as grumble
16:00
grumble2 left
16:03
robertle left
|
|||
ugexe | llfourn: their source-url does not identify its type (github.com/jaldhar/Algorithm-DawkinsWeasel) | 16:04 | |
nadim | llfourn: I thnk I will give up on trying to golf something to reproduce error: No such symbol 'Data::Dump::Tree::LayFlat', On the other hand I can try to debug the problem I have, if there is some sata I can extract from this case that can help, I'd be happy to do it | 16:05 | |
llfourn: and maybe I give golfing another try but right now it has frustrated me enough. | 16:06 | ||
16:08
mr-foobar joined
16:20
eroux joined
|
|||
HoboWithShotgun | perlbot: 'md5=c1a031bd227df4f7a4dae94e0135dd09' ~~ /md5\=(<[0..9a..z]>+)/; say qq[$0]; | 16:22 | |
rakudo: 'md5=c1a031bd227df4f7a4dae94e0135dd09' ~~ /md5\=(<[0..9a..z]>+)/; say qq[$0]; | 16:23 | ||
camelia | c1a031bd227df4f7a4dae94e0135dd09 | ||
HoboWithShotgun | rakudo: 'md5=c1a031bd227df4f7a4dae94e0135dd09' ~~ /md5\=(<[0..9a..z]>+)/; say $0; | ||
camelia | 「c1a031bd227df4f7a4dae94e0135dd09」 | ||
HoboWithShotgun | where do these two extra characters come from? | ||
zengargoyle | m: 'md5=c1a031bd227df4f7a4dae94e0135dd09' ~~ /md5\=(<[0..9a..z]>+)/; say ~$0; | 16:25 | |
camelia | c1a031bd227df4f7a4dae94e0135dd09 | ||
HoboWithShotgun | oh, it's a match object. | ||
AlexDaniel | HoboWithShotgun: oh, you get a Match object. “say” is using .gist on whatever it gets, which is a human-readable output. | ||
perlpilot | Having to .Str the results of a regex capture is annoying | 16:26 | |
skids | rakudo: 'md5=c1a031bd227df4f7a4dae94e0135dd09' ~~ /md5\=(<[0..9a..z]>+)/; print $0; | ||
camelia | c1a031bd227df4f7a4dae94e0135dd09 | ||
16:27
pharv joined
|
|||
AlexDaniel | rakudo: 'md5=c1a031bd227df4f7a4dae94e0135dd09' ~~ /md5\=(<[0..9a..z]>+)/; put $0; | 16:27 | |
camelia | c1a031bd227df4f7a4dae94e0135dd09 | ||
zengargoyle notices nobody tried explaining the STable thing from last night. :( | |||
16:27
cdg joined
|
|||
Geth | doc: 25806762ef | (JJ Merelo)++ | doc/Type/PseudoStash.pod6 First version of this missing page Refs #1341. Please check it out to see if the paraphrashing of @jnthn and @lizmat is basically correct. I also looked up class inheritance in the "Any" diagram, so that should be correct. |
16:32 | |
16:38
robertle joined
16:44
popo__ left
16:45
raschipi joined
16:46
itaipu left,
andreoss` left
|
|||
jnthn | zengargoyle: I don't backlog this channel so closely, but I can probably answer most things about STable given I coined the term. :) What was the question? | 16:48 | |
16:48
andreoss` joined
|
|||
zengargoyle | jnthn: i think it boiled down to adding 'use GitWrapper;' in a module caused the STable conflict "maybe using two modules you can't use together" error from the reposess code. (i just looked). | 16:50 | |
jnthn | zengargoyle: Usually because a module does augment or other meta-programming without marking itself `no precompilation` | 16:53 | |
We should make augment imply that, most probably | |||
Modules that use the MOP to change other module's objections will have to make the call themselves | |||
zengargoyle | jnthn: i'm not sure it's that complicated. nothing fancy like that. (it's sombody elses code) | 16:54 | |
nadim | .tell llfourn I founf what the problem was in my code; I have unit module X ; use Y ; use Z ; sub want_this_sub{} ; When unit module X is after the 'use's it works, as if require did not put it in the right unit. | ||
yoleaux | nadim: I'll pass your message to llfourn. | ||
jnthn | Could be because of some dependency also | 16:55 | |
Anyway, it'll probably be something along those lines | |||
zengargoyle | i'm thinking it's not namespacing things, the code uses modules directly from . named like 'datas', 'check', 'add', and might have some circular thing going on. i'm going to try and re-write it in a bit more standard fashion. | 16:58 | |
16:58
cdg_ joined
|
|||
andreoss` | m: my @x := 1, 1, | @x Z+ @x[1..*] | 16:59 | |
camelia | 5===SORRY!5=== Error while compiling <tmp> Cannot use variable @x in declaration to initialize itself at <tmp>:1 ------> 3my @x := 1, 1, | @7⏏5x Z+ @x[1..*] expecting any of: prefix |
||
andreoss` | i recall self-referencing in declaration was possible before, wasn't it? | ||
17:00
cdg left
|
|||
jnthn | Don't think so. Even if the compiler didn't check it and complain, the @x on the right would be some empty Array unrelated to the result that gets bound into @x | 17:01 | |
Since the RHS is evaluated before the bind | |||
home time; bbl & | |||
mspo | what is this stuff? 9AD391BB028FBF86169E02934A6181BA21049736.1497985253.01802/07/071E327F6BCF9C81A7F69FDD6CD4B79413A1AAD5 | 17:05 | |
17:07
linuksz joined
|
|||
linuksz | i get the following error during the test when i try to install Email::Simple | 17:09 | |
sprunge.us/QdLe | |||
did i fucked up something, or the module is wrong? | |||
AlexDaniel | andreoss`: it is, but not with binding | ||
linuksz | i use git version of rakudo and git version of module | 17:10 | |
17:10
andreoss` left
|
|||
geekosaur | ummmmm | 17:10 | |
AlexDaniel | andreoss: although… I'm no longer sure. Trying to get it working | ||
17:11
andreoss left
|
|||
geekosaur | samcv ^ did something break with newline handling in your recent changes? ( sprunge.us/QdLe ) | 17:11 | |
(I *think* the missing backslashes are the test harness's fault; it's hard to get that right) | 17:12 | ||
(note that the network-format newlines are "backwards", \n\r instead of \r\n) | 17:13 | ||
AlexDaniel | well yeah, in this particular case it's much easier to write it as a sequence | 17:15 | |
geekosaur | linuksz, this wouldn't be the first time something has gone sideways with trying to deal with variant forms of newline | ||
linuksz | so can i do something to get it working? | 17:16 | |
AlexDaniel | m: my @x = 1, 1, * + * … ∞; say @x[^10] | ||
camelia | (1 1 2 3 5 8 13 21 34 55) | ||
geekosaur | and I am reading those expected/got as "Subject: test\n\rTo: foo\n\r\n\rfoo\n\r" which would be a valid SMTP message aside from the reversed newline sequences | ||
linuksz, probably try an older not-from-git rakudo | 17:17 | ||
m: say "\n\r" ~~ "\n\r" | |||
camelia | True | ||
geekosaur | huh... | ||
17:18
itaipu joined
|
|||
geekosaur | m: say "\n\r" eq "\n\r" | 17:18 | |
camelia | True | ||
linuksz | it is annoying, because i use my distro package manager for installing packages to my system, and the program i use for packaging (alacryd) only runs on git version | ||
geekosaur | maybe it's not rakudo | ||
buggable: eco Email::Simple | 17:19 | ||
buggable | geekosaur, Email::Simple 'Simple email parsing module': github.com/retupmoca/p6-Email-Simple | ||
mspo | okay I'm reading github.com/ugexe/zef/issues/117 | 17:20 | |
geekosaur | hrm, suspicious, last commit is about newline issues | 17:21 | |
mspo | "simple email parsing" lol | 17:22 | |
geekosaur | m: use Test; my $nr = "\x0a\x0d"; my $nasty = "Subject: test{$nr}To: foo{$nr}{$nr}foo{$nr}"; is ~$nasty, $nasty, "fii" | ||
camelia | ok 1 - fii | ||
geekosaur trying to install locally but suspect this is a bug in Email::Simple or possibly an incompatibility with recent rakudo | 17:24 | ||
...the latter apparently as it passes here | |||
linuksz | if i now compile nqp with an older version of moarvm (git compiled today morning) installed on my system, then compile rakudo with the today morning version of nqp and moarvm, will it work with the now compiled nqp and moarvm? | 17:25 | |
geekosaur | suggest you file a bug at github.com/retupmoca/p6-Email-Simple/issues | ||
I have no idea when it changed, sorry | 17:26 | ||
linuksz | isn't there any way to make it working? take a look at the developer's github activity statistics. | ||
geekosaur | This is Rakudo version 2017.06-133-ga7b2304 built on MoarVM version 2017.06-29-ga51ba62 | ||
is what I tested on | |||
you could try forcing the install as it's onl;y likely to be a problem with weird newlines | 17:27 | ||
17:27
espadrine joined
|
|||
geekosaur | stick to the RFC (\r\n) and you'll be fine | 17:27 | |
linuksz | geekosaur, did it work for you? | 17:28 | |
geekosaur | by forcing the install I mean zef install --/test Email::Simple | ||
17:28
cptAngry joined
|
|||
linuksz | so without tests? | 17:29 | |
geekosaur | and I guess I have to figure out how to rephrase what I already said because it didn't register | ||
it will work fine if you don't feed it noncompliant messages with weird newlines | 17:30 | ||
it may work fine if you *do* feed it such messages, it's not clear that there is a real problem aside from a strange comparison somewhere since the expected and got strings are identical | 17:31 | ||
17:32
mcmillhj left
|
|||
geekosaur | which is why I pinged the person working on the unicode stuff, since newlines have special unicode handling and it's been a problem before | 17:32 | |
and for now, since the only test that failed is the one with the non-RFC-complaint newlines, yes, just skip the tests | |||
*compliant | 17:33 | ||
17:35
bartolin_ left,
mcmillhj joined
|
|||
linuksz | i get the "Malformed UTF-8 at line 1 col 1" message with several modules i trying to install | 17:38 | |
geekosaur | erm, or the possibility I didn't think of which is that maybe the version I installed predates the change to try to support weird newlines... | ||
actually looks like it got thay version | 17:39 | ||
17:40
mcmillhj left
|
|||
geekosaur | "at line 1 col 1" is a bit suspicious. what modules? | 17:40 | |
linuksz | developing programs for humans is NOT possible in perl6, because installing moarvm, then nqp, then rakudo, then the module manager, then the module, and get them working requires at least a power user | ||
geekosaur | (I suspect Windows byte order marks) | ||
linuksz | Email::MIME | ||
geekosaur | linuksz, humans are supposed to use rakudo star, not git | 17:41 | |
17:41
bartolin joined
|
|||
geekosaur | buggable6, eco alacryd | 17:41 | |
buggable: eco alacryd | |||
buggable | geekosaur, Nothing found | ||
17:43
itaipu left
|
|||
linuksz | humans can't use zef. humans can use the graphical package manager, and click on the 'install' button of the program, and the package manager automatically downloads the packages, extract them, and installs them | 17:43 | |
AlexDaniel | ZofBot: humans? | 17:44 | |
timotimo | linuksz: if the end user is a windows user, you can build a little msi for them with just a little config file and a command | ||
linuksz | but it is not possible to make packages that are can give a working module with an extraction and installation | ||
geekosaur | linuksz, that train of thought goes nowhere. come back in a few years when there's been time to build up the kind of ecosystem you seem to think is mandatory | ||
or go join the schmuck who insisted perl 6 can't be a real language unless its install is curl|sh | 17:45 | ||
linuksz | i want to develop applications for linux | ||
geekosaur | because your attitude and theirs are (a) both nonsense (b) antithetical, so you're set for a cage match | ||
so you're using arch? and you tak about humans requiring gui package managers? | 17:46 | ||
you're on arch, you're using what looks like an arch specific or at least heavily arch oriented tool, I don't think you get to complain about complexity | 17:47 | ||
17:47
mcmillhj joined
|
|||
linuksz | yes, because i want to develop not for myself | 17:47 | |
geekosaur | rright, that point went flying verhead | 17:48 | |
why. are. you. using. a. power. user. distro. if. you. think. humans. can't. cope. with. power. user. tools./ | |||
linuksz | so is it possible to build packages and write programs that can be installed with a click? | ||
geekosaur | pretty sure the ubuntu packaging is a lot friendlier than arch's, yes | 17:49 | |
you are using Arch. you have already excluded what you think "humans" are, | 17:50 | ||
heck, you are targeting Linux, you have already alienated 90% of what you think "humans" are | 17:51 | ||
mst | linuksz: of course it is | ||
linuksz | Manjaro has an one-click package manager. | ||
mst | yes, and? | 17:52 | |
look, the fact you don't understand how to package software | |||
does not mean that software cannot be packaged | |||
17:52
mcmillhj left
|
|||
mst | the fact that you're installing everything the hard way does not mean users are required to do so :) | 17:53 | |
zengargoyle | welp... i cleaned up dist layout of jeromelanteri's VimPlugger, wrote some use-ok tests and got it working... then just add 'use Git::Wrapper;' in VimPlugger::install module and boom STable conflict... :( | 17:54 | |
linuksz | so can you define the way perl6 software can be packaged for one click install? | ||
mst | linuksz: you build a package for the distro. the user installs the package. | 17:55 | |
geekosaur | use a platform not based on a rolling release, so it has tools that don't require you to live on the bleeding edge. manjaro is based on arch, it inherits arch's bleeding edge tendencies | ||
mst | geekosaur: I don't honestly see how that relates | 17:56 | |
geekosaur | the packager they found for arch only works with git rakudo and git moarvm | ||
not the packaged versions | |||
17:56
cdg_ left
|
|||
linuksz | ok, and what is the tool with i can build packages? | 17:56 | |
mst | 'the packager they found' <- eh? | ||
geekosaur | "alacryd" | ||
mst | linuksz: that's a manjaro question, nothing to do with us. | 17:57 | |
geekosaur | which generate arch pkgbuilds from perl 6 metadata | ||
mst | oh, right, but that's a developer-only tool | ||
nothing to do with packaging for users | |||
so nothing to do with linuksz problem | |||
17:59
cptAngry left
|
|||
mst | linuksz: anyway, "developing programs for humans is NOT possible in perl6" is a lie. please learn how to build packages for your target distro if you want to distribute packages for users. | 17:59 | |
meanwhile, 'zef' is the correct thing to use for development | 18:00 | ||
linuksz | arch is far away before other distros in packaging perl6. for example, fedora doesn't have any perl6 packages. | ||
mst, and what is the correct thing to use for packaging? | 18:01 | ||
mst | linuksz: dpkg-deb --build | 18:03 | |
you need to figure out your own answer for your own distro | |||
you don't have a perl6 problem | |||
you have a "not understanding manjaro" problem | |||
linuksz | i am not familiar with debian. | ||
mst | and since manjaro uses a fork of an obsolete version of arch's package manager | 18:04 | |
linuksz | but as i see, it isn't an efficient tool, because packages.debian.org/search?keywords=perl6 | ||
mst | I have no idea | ||
I have no idea what you mean by "efficient tool" | |||
debian has 2017.06 just the same as arch | 18:05 | ||
linuksz | a tool with packagers can package several packages (there is 855) perl6 module currently | 18:06 | |
18:06
mcmillhj joined
|
|||
linuksz | and how many modules in binary form? | 18:06 | |
mst | I don't actually care, I install to a local CUR and ship that | ||
linuksz | i will take a try with zef. | 18:09 | |
mst | for shipping apps to end-users I tend to make fat packages that have the dependencies in the package so that you don't run into problems when distros upgrade stuff | ||
this works fine with most languages | |||
the problem here isn't "perl6 is missing a feature", the problem is "linuksz doesn't know how to use manjaro's build system" | 18:10 | ||
raschipi | Yes, then sysadmins have to upgrade all packages by hand when there's a problem, yay! | ||
mst | and I'm afraid I can't help you with that | ||
raschipi: eh? | |||
18:10
cdg joined
|
|||
raschipi | If you bundle, it won't be upgraded when the base package is upgraded. | 18:10 | |
18:11
mcmillhj left
|
|||
raschipi | It's a serious problem, instead of doing it once, doing it for every bundle. But I'm just ranting, sorry. | 18:11 | |
linuksz | i know how to use arch's build system. | 18:12 | |
raschipi | I wish distros somehow forbade bundling, so that devs didn't have that option and were forced to do it properly. | ||
mst | linuksz: then you should have no problems packaging perl6 applications | ||
18:13
mcmillhj joined,
tokomer_ joined
|
|||
mst | raschipi: for a package for a centralised distro repository you should work with the main packages, sure | 18:13 | |
but if I'm supplying a 3rd party package I'd rather have to rebuild myself than risk a distro changing a version of something and breaking deployed code | |||
perlpilot | raschipi: It's a problem that my software continues to work as expected because it bundles the specific version of a module and doesn't break because someone decides to "upgrade" a dependency? | ||
linuksz | i have no problems packaging perl 5 applications, but it's not perl6 | 18:14 | |
why does it work for perl5? | |||
mst | I don't understand | ||
raschipi | perlpilot: The appropriate way to do it is to use stable distros. | ||
mst | there are plenty of alacryd-built packages in AUR | ||
aur.archlinux.org/packages/?O=0&am..._Search=Go | |||
perlpilot | raschipi: sure ... in a perfect world, that's true. We don't live in a perfect world :) | 18:15 | |
mst | I would suggest that if you want to use arch, you actually use arch | ||
linuksz | all packages are alacryd-built | ||
mst | so what in that is "doesn't work" ? | ||
18:15
pharv left
|
|||
linuksz | perlpilot, what happens if two applications wants to use the same module? | 18:16 | |
mst | with bundling, you get two copies | 18:18 | |
without, you need centralised QA of revdeps before upgrade | |||
perlpilot | linuksz: um ... then they do so? I'm not saying this is the one true way to do things. I'm saying bundling specific versions is perfectly valid way to solve some problems. | ||
mst | right | ||
I really don't understand what the problem's supposed to be here | |||
perlpilot | me either | ||
linuksz | but it uses more space, and file conflicts are possible | 18:19 | |
mst | file conflicts are not possible | ||
you keep the deps by the app | |||
18:23
pmurias joined
|
|||
pmurias | geekosaur: why the hate for curl|sh? :) | 18:23 | |
mst | geekosaur: note, I suspect the arch version of alacryd and the arch version of rakudo work fine together | ||
geekosaur: and actually what we have here is a "manjaro is a shitshow" problem | |||
raschipi | The problem is having to upgrade something more than once using non-standard tools. | 18:24 | |
mst | raschipi: eh? | ||
raschipi | Well, only someone supporting a multitude of applications would be annoyed by that problem, of course. | ||
Anything that upgrades using something other than apt is a PITA. | |||
mst | ok, so, you appear to still be ranting at me, and I was talking about building .deb packages | 18:25 | |
so I'm rather confused now | |||
mspo | would it be reasonable for install-dist.pl to have an option to install the source files or create symlinks with meaningful names or something? :) | ||
everyone is packaging! | |||
perlpilot | mspo: why do you want meaningful names? | 18:26 | |
mspo | perlpilot: I don't know | ||
raschipi | I'm just thinking aloud, please don't be bothered. | ||
perlpilot | mspo: contrapuntally, I think that the lack of meaningful names discourages people from trying to edit them, which is a very good thing :-) | ||
raschipi | I can make my own packages if it comes to it, :). | 18:27 | |
mspo | also is this install-perl6-dist a script? | ||
perlpilot: I think it's more like a question of "what do I have installed" and "how can I use it?" | |||
mst | raschipi: so, basically, I often have more than one app on the same server, and sometimes they have incompatible module requirements, and perl6's CUR system is about the only thing that can handle that itself | ||
raschipi: so I prefer bundling into a 'fat deb' and then rebuilding that if there's a problem | 18:28 | ||
perlpilot | mspo: zef can answer the first one and presumably, p6doc can answer the second. | ||
18:29
cdg left
|
|||
raschipi | I understand, I just wish people would do it properly and don't require specific versions. Every developer thinks they are justified in doing it, yet it multiplies my workload thousandfold. | 18:29 | |
18:30
cdg joined,
kristoft joined
|
|||
kristoft | Hi everyone | 18:30 | |
mst | raschipi: how does this increase your workload? done right, it just means that after a nasty bug is fixed, apt-get upgrade upgrades both the system copy of the module and the copy in the fat deb | 18:31 | |
geekosaur | this sounds like the "eaiser for all to not bound versions" <sandbagged by abi change> "whee glad that'll never happen again easier for all to not bound versions" | 18:32 | |
raschipi | geekosaur: Everything is stable. | 18:34 | |
18:34
kristoft left
|
|||
raschipi | mst: Would the package have new features added? | 18:35 | |
pmurias | mst: re figure out your own answer for your own distro, wouldn't having a "package-this-up debian App::SomeRandomApp" script that does stuff sanely be something that the widely understood Perl 6 community should aim for? | 18:36 | |
geekosaur | until yet another linux distribution comes up with yet another linux package format | 18:37 | |
nadim | hi, I have sub my_sub(*@i, :$n, :$n2) ; my $i1 = 1, my $i2 = 2; my $n1 = :n1(100) ; my $n2 = :n2(200) ; my capture $c =\($i1, $i2, $n1, $n2) ; calling my_sub $c puts a Capture object in @i when I want the capture to be "expanded" | ||
mst | pmurias: there's already assorted tooling for this, but IME *debugging* such tooling requires learning the underlying stuff anyway | ||
perlpilot | nadim: my_sub |$c; # If I read you right | 18:38 | |
geekosaur | nadim, |$c | ||
iirc | |||
mst | raschipi: depends - but "this may force me to upgrade to a version with additional features" is something that can happen in unbundled packages too - often *more* often rather thanless | ||
nadim | wouldn't that just flatten the .list part of the capture? | ||
zengargoyle | .tell jnth ok so Git::Wrapper does some Git::Wrapper.HOW.add_method(Git::Wrapper, $method, anon method (*@p, *%n) { MOP magic that fails when it's inside a 'unit module Foo;' | 18:40 | |
yoleaux | zengargoyle: I'll pass your message to jnth. | ||
18:41
akagi201__ left
18:43
linuksz left
|
|||
zengargoyle wonders if it would work inside a class vs a module... | 18:45 | ||
or if something MOPish changed that makes it not work.... | 18:46 | ||
ah, i guess Git::Wrapper should maybe do 'no precompilation' or does that have to go in the thing that's using Git::Wrapper (which works). | 18:50 | ||
18:51
zakharyas joined,
R0b0t1 left
18:54
R0b0t1 joined,
perlpilot left
|
|||
zengargoyle | woot! | 18:55 | |
jnthn | zengargoyle: Does it do that .add_method in a BEGIN block? | 18:56 | |
zengargoyle | jnthn: no, in a for loop at the end of the class. class { methods.... for <blah> .add_method } | 18:58 | |
jnthn | Ah | ||
That'd be a bad idea :) | |||
'cus it changes the object at runtime | |||
zengargoyle | github.com/nicqrocks/p6-Git-Wrappe...rapper.pm6 | ||
jnthn | And those changes will get serialized into the module that uses this one | 18:59 | |
Then if two modules both use this one, then they'll end up with independent copies of those | |||
And boom, two pre-comps you can't use together | |||
zengargoyle | yeah, it sorta makes sense now... not sure of best fix though.. | ||
jnthn | Wrap the foor loop in a BEGIN block, preferably before the closing } of the class :) | ||
Oh, sounds like the for already is in the class body | 19:00 | ||
19:00
itaipu joined
|
|||
jnthn | In fact BEGIN takes a statement | 19:00 | |
zengargoyle | yes. in the body. | ||
jnthn | So you can just s/for/BEGIN for/ and see how that helps :) | ||
zengargoyle | putting no precompilation worked, i'll try the begin thing. | ||
jnthn: yep, BEGIN for works (or at least doesn't fail). jnthn++ | 19:03 | ||
sadly the nicqrocks fork that's in the eco doesn't have an issues option... :( | 19:05 | ||
mspo | is there a reason star isn't using install-dist.pl instead of zef? | 19:08 | |
mst | star bundles zef already | 19:10 | |
the point of install-dist was as a low level option when you didn't have zef or an equivalent yet | |||
mspo | I'm following along with build.opensuse.org/package/view_fi...c?expand=1 | ||
star uses perl6 zef --/build-depends --/test-depends --/depends --/p6c | 19:11 | ||
--/metacpan --/cpan --force install ./modules$path_sep$module; | |||
right? | |||
19:13
cdg left
|
|||
zengargoyle | .tell jeromelanteri the Git::Wrapper thing has been solved! i made pull-request on Git::Wrapper with the fix. | 19:14 | |
yoleaux | zengargoyle: I'll pass your message to jeromelanteri. | ||
mspo | how predictable are precomp names? I was just trying to install zef using someone's package and got different precomp names | 19:15 | |
his : precomp/9AD391BB028FBF86169E02934A6181BA21049736.1497985253.01802/FE/FE48D13883ACBA2CF35E1746EEFE956A173BE8AE.repo-id | 19:16 | ||
mine: precomp/6C3B1056A15F23B58ED8A7017D2C24B8F7524EB2.1501209729.51376/FE/FE48D13883ACBA2CF35E1746EEFE956A173BE8AE.repo-id | |||
it's just the first part! | |||
that middle part is a timestamp so that's not going to be good :) | 19:18 | ||
19:18
nhywyll left
19:21
zakharyas left
19:22
raschipi left
|
|||
mspo | nine: any hints? | 19:23 | |
19:31
wamba joined
19:32
mr-foobar left,
itaipu left
19:33
nhywyll joined
19:36
mr-foobar joined
|
|||
mspo | or maybe I should try -toolchain? | 19:37 | |
19:44
darutoko left
|
|||
revere | Is there a camel book for 6 yet? Or some WIP? | 19:45 | |
19:45
itaipu joined
19:46
colomon left
19:49
hobbs joined,
hobbs left,
hobbs joined
|
|||
timotimo | not a camel book, but other books | 19:50 | |
perl6book.com/ | |||
19:54
domidumont left
20:00
tzekid joined,
TEttinger joined
20:02
bdmatatu left
|
|||
revere | That chart looks like what I'm looking for, thanks timotimo | 20:03 | |
timotimo | cool | 20:04 | |
20:08
coetry_ joined
20:09
Kyo91 joined
20:11
|oLa| left
20:16
coetry_ left
|
|||
nine | mspo: yes, -toolchain is the best place as I follow that in full. Sort of answered the question there :) | 20:17 | |
20:22
|oLa| joined
20:28
|oLa| left
|
|||
timotimo | why did nobody force me to look at the Terminal::Print examples | 20:32 | |
there's fantastic stuff in there | |||
ab5tract++ | |||
20:32
Cabanossi left
20:34
Cabanossi joined
20:44
|oLa| joined
20:45
fantazo joined
20:46
fantazo left
20:52
itaipu left
|
|||
nadim | I am going to force you to look at Data::Dump::Tree then! | 20:54 | |
timotimo | that's a different kind fo fantastic stuff | 20:55 | |
nadim | next version as :flat control, here is an example of a dump done by dd, ddt, and ddt in normal vertical mode nopaste.linux-dev.org/?1160097 | 20:56 | |
nadim will look at Termina::Print examples again | 20:57 | ||
20:59
grondilu joined
|
|||
timotimo | that looks neat how it puts things into columns | 21:00 | |
nadim | took most of this week to implement | 21:01 | |
it's neater than it looks like, you can say things like ddt $my_stuf, :flat( Hash, sub($s){ $s ~~ Array && $s.elems > 30), $something_want_flat) | 21:03 | ||
timotimo | ah so a decider function so to say? | ||
21:03
mcmillhj left
|
|||
nadim | and it will flatten all hashes, all your arrays that have 30 elements or more, and the stuff you want flattened | 21:03 | |
yes | 21:04 | ||
put you can say :flat(0) and first level get flattened | |||
21:04
amalia___ left
|
|||
timotimo | what's the ... for? | 21:04 | |
oh because it's a seq | |||
21:05
coetry_ joined
21:06
jameslenz joined
|
|||
nadim | you can do multi colums also like this nopaste.linux-dev.org/?1160098 | 21:06 | |
21:06
mr-foobar left
|
|||
nadim | Seq of 11 elements in that case, you can control the amount displayed | 21:06 | |
zengargoyle | .ask jeromelanteri was it you who wanted TagBar config for perl6? gist.github.com/77f253d6d721e4b628...5321b31e9f | 21:07 | |
yoleaux | zengargoyle: I'll pass your message to jeromelanteri. | ||
nadim | timotimo: its also does references, something I miss in dd | ||
21:07
brrt joined
|
|||
zengargoyle | or if anybody else has a better tagbar config... :) | 21:07 | |
21:08
skids left
|
|||
nadim | timotimo: maybe I shoud have "... +n" to show how many more elements, although how many elements are in the header | 21:09 | |
coetry_ | Interesting discussion on HN regarding concurrency primitives in Perl6: news.ycombinator.com/item?id=14854...rm=comment | 21:10 | |
timotimo | both would be fine | ||
nadim | the number of element is already in the header. .Seq(32) or .Seq(*) | 21:11 | |
timotimo | yes | 21:13 | |
i mean either keep it only in the header or put it on the bottom as well | |||
both choices are fine with me | |||
coetry_: seen it, thanks :) | |||
nadim | I like Hashes even more nopaste.linux-dev.org/?1160099 | 21:14 | |
timotimo | yeah, not bad | 21:15 | |
coetry_ | timotimo++ | ||
nadim | but it must be seen in color, black and white takes half the legibility away | ||
coetry_ | ++timotimo | ||
timotimo | coetry_: i believe one or two of our channel inhabitants commented, too | ||
coetry_ | oh sorry, havn't seen the logs | 21:16 | |
timotimo | i mean commented on hackernews itself | ||
coetry_ | ahh i see | ||
timotimo | at least raiph has 11 comments | ||
coetry_ | looking up right now | ||
21:17
nhywyll left
|
|||
timotimo | i also see b2gills in there | 21:17 | |
nadim | imgur.com/Hfhiouw and then I stop spamming | ||
coetry_ | what does TIMTOWTDIBSCINABTE stand for? | 21:18 | |
nadim | Honestly, one has to be a smi God to read dd's output if it is more thana a few lines. Although dd is invaluable. | 21:19 | |
geekosaur | There Is More Than One Way To Do It | ||
timotimo | more than one way to do it, but sometimes consistency is not a bad thing either | ||
coetry_ | timotimo, yeah i was looking for that last part. cool. | ||
21:24
itaipu joined
21:42
itaipu left
21:44
mcmillhj joined,
Kyo91 left
21:48
coetry_ left
21:49
mcmillhj left
21:50
brrt left,
zengargoyle left,
coetry joined
21:52
zengargoyle joined
21:53
robertle left
22:00
mcmillhj joined
22:02
sherwool left
22:07
mcmillhj left
|
|||
nadim | timotimo: I mixed Terminal::Print and something else :), yes Terminal::Print is cool, maybe Ii should use that instead for Curses. | 22:08 | |
22:13
cog__ joined
|
|||
timotimo | perhaps | 22:13 | |
i think i'm going to use it for p6profiler-tui | 22:14 | ||
22:16
cog_ left
22:35
pharv_ joined
|
|||
nadim | timotimo: looking forward to that! I need a profiler and a debugger. Btw, is the debugger working now? it was broken some times ago. | 22:37 | |
timotimo | it works right now | 22:38 | |
not necessarily if you have multiple threads active | |||
22:40
coetry___ joined
22:41
coetry left
22:43
sufrostico joined
22:45
|oLa| left
22:47
Cabanossi left
22:49
Cabanossi joined
22:52
eroux left
23:09
pilne joined
23:13
sufrostico left
23:15
pmurias left
|
|||
nadim | I will check it up | 23:18 | |
when an object is but'ed with a role that has an attribute, where is the attribute found? | 23:22 | ||
found them! | 23:26 | ||
23:30
rindolf left
23:33
Cabanossi left
23:34
Cabanossi joined
23:56
tzekid left
23:57
kyan joined
|