»ö« 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. |
|||
00:06
AndChat|688961 joined,
comborico1611 left
00:07
brrt left
00:08
cdg joined
00:12
cdg left
00:24
cdg joined
00:28
manchicken joined,
cdg left
00:29
comborico1611 joined
00:33
manchicken left,
troys_ is now known as troys
00:42
manchicken joined
00:44
manchicken left
00:52
markong left
00:58
comborico1611 left
01:05
Cabanossi joined
01:08
dct left
01:16
nativecallable6 joined,
ChanServ sets mode: +v nativecallable6,
statisfiable6 joined,
ChanServ sets mode: +v statisfiable6,
releasable6 joined,
ChanServ sets mode: +v releasable6
01:17
unicodable6 joined,
ChanServ sets mode: +v unicodable6,
quotable6 joined
01:26
Aaronepower left
|
|||
AndChat|688961 | I think i just got this razor the sharpest I've gotten it. | 01:37 | |
01:38
AndChat|688961 is now known as comborico1611
01:58
comborico1611 left
02:09
Nanjizal joined,
FROGGS_ joined
02:13
FROGGS left
02:16
troys is now known as troys_
02:17
dogbert2_ joined
02:20
BuildTheRobots_ joined,
kaare__ joined
02:22
riatre_ joined,
kentnl joined,
Nanjizal_ joined,
Juerd_ joined,
cosimo_ joined,
MilkmanD1n joined
02:24
espadrine joined
02:25
ecocode_ joined,
Circlepuller joined,
tobs_ joined
02:26
Nanjizal left,
nativecallable6 left,
benchable6 left,
stmuk_ left
02:27
Circlepuller is now known as TeamBlast,
tobs_ is now known as tobs,
Juerd_ is now known as Juerd,
Nanjizal_ is now known as Nanjizal,
BuildTheRobots_ is now known as BuildTheRobots,
Bucciarati joined,
xcm left,
tobs left,
tobs joined
02:28
quotable6 left
02:29
evalable6 left,
coverable6 left,
squashable6 left
02:30
greppable6 left
02:32
xcm joined
02:33
armin joined,
stmuk_ joined,
albongo joined
02:34
spider-mario joined
02:35
leah2 joined
02:37
Herby__ joined
02:42
dudebbn joined
02:58
ilbot3 joined,
ChanServ sets mode: +v ilbot3
03:13
eliasr left
03:16
Nanjizal left
03:19
cdg joined
03:20
troys_ is now known as troys,
cdg_ joined
03:23
cdg left
03:25
cdg_ left
03:28
araraloren joined
|
|||
araraloren | o| | 03:44 | |
yoleaux | 19 Dec 2017 17:42Z <Zoffix> araraloren: FWIW, here's how IRC::Client reads from an async sock. It just parses what it gets as much as it can and saves left over stuff for the next time some data arrives: github.com/zoffixznet/perl6-IRC-Cl...#L203-L214 | ||
03:51
kerframil left
03:54
Nanjizal joined
03:56
MilkmanD1n is now known as MilkmanDan
03:57
bloatable6 left,
squashable6 joined,
ChanServ sets mode: +v squashable6,
bloatable6 joined
03:58
wamba left
04:03
Kaiepi left
|
|||
AlexDaniel | squashable6: log | 04:13 | |
squashable6 | AlexDaniel, Log and stats: gist.github.com/691c7eaedbab34d6bd...cb7a3535b4 | ||
04:20
Herby__ left
04:46
Cabanossi left
04:48
pilne left
04:49
Cabanossi joined
|
|||
squashable6 | 🍕 AlexDaniel++ wrote a comment on “Using whitespace between…”: github.com/perl6/doc/issues/1291#i...-355723621 | 05:02 | |
Geth | doc: 136acc75ff | (Aleks-Daniel Jakimenko-Aleksejev)++ | doc/Language/traps.pod6 Document Foo => 42 trap Resolves #1721 |
05:05 | |
synopsebot | Link: doc.perl6.org/language/traps | ||
Geth | doc: 8fd8c8d77a | (Aleks-Daniel Jakimenko-Aleksejev)++ | doc/Language/traps.pod6 Fix and explaing .slurp mangling newlines Resolves #1578, or so I think. |
||
squashable6 | 🍕 AlexDaniel++ closed issue “Enums in pair notation trap (Foo => 42)”: github.com/perl6/doc/issues/1721 | ||
🍕 AlexDaniel++ closed issue “slurp is mangling newlines (trap)”: github.com/perl6/doc/issues/1578 | |||
AlexDaniel | hmhmh unfortunately won't be able to contribute much today | 05:07 | |
05:19
eythian joined,
eythian left,
eythian joined
05:23
travis-ci joined
|
|||
travis-ci | Doc build errored. Aleks-Daniel Jakimenko-Aleksejev 'Fix and explaing .slurp mangling newlines | 05:23 | |
travis-ci.org/perl6/doc/builds/325708315 github.com/perl6/doc/compare/5ac52...d8c8d77a46 | |||
05:23
travis-ci left
|
|||
buggable | [travis build above] ☠ Did not recognize some failures. Check results manually. | 05:23 | |
05:23
Nanjizal left
|
|||
AlexDaniel | “explaing” :D | 05:32 | |
geekosaur | ex-playing? | 05:35 | |
05:40
troys is now known as troys_
|
|||
Geth | doc: 3cdbea7fb6 | (Aleks-Daniel Jakimenko-Aleksejev)++ | 3 files Fix spelling |
05:49 | |
AlexDaniel | geekosaur: ex-apmple! | ||
06:03
Todd joined
|
|||
Todd | Hi All, I did a fresh install of Fedora27 and now one of my pl6's give me ===SORRY!=== This type cannot unbox to a native string: P6opaque, Failure | 06:04 | |
I have no idea what to look for | |||
AlexDaniel | no line number? | 06:05 | |
if so, then try with --ll-exception | |||
Todd | that is all I get. I tried putting a proofing print at the top and that did not come out either | 06:06 | |
# rpm -qa rakudo rakudo-0.2017.08-2.fc27.x86_64 perl6 -v This is Rakudo version 2017.08 built on MoarVM version 2017.08.1 | |||
--ll-exception should that be "all" and where do I put it? | |||
araraloren | add to Perl6 command line | 06:07 | |
perl6 --ll-exception *.p6 | |||
Todd | Got it. it is about 30 line. What do I look for | ||
This was the top two lines; | 06:10 | ||
This type cannot unbox to a native string: P6opaque, Failure at SETTING::src/core/Exception.pm:57 (/usr/lib64/perl6/runtime/CORE.setting.moarvm:throw) | |||
06:10
travis-ci joined
|
|||
travis-ci | Doc build passed. Aleks-Daniel Jakimenko-Aleksejev 'Fix spelling' | 06:10 | |
travis-ci.org/perl6/doc/builds/325713298 github.com/perl6/doc/compare/8fd8c...dbea7fb626 | |||
06:10
travis-ci left
|
|||
araraloren | Todd, could you paste it in gist ? | 06:10 | |
Todd | Don't know how to use gist, but I do know how to use vpaste: vpaste.net/WuHL1 | 06:11 | |
warning: 108 lines long | |||
06:16
troys_ is now known as troys
|
|||
araraloren | :) Don't know what happened | 06:17 | |
geekosaur | it's trying to load a module. my guess is that you have modules from a different build that you copied from another machine, and they need to actually be reinstalled rather than simply copied over | 06:19 | |
Todd | ~.perl6 got copied over from the old machine. Delete it? | 06:21 | |
geekosaur | (precomp, among other things, stores actual byte offsets to internals and system-installed modules; if those offsets have changed, the precompiled modules will fail to load, the error could be better, though) | ||
move it aside, at least; ytou may need to see what modules you need to reinstall' | |||
araraloren | ... | ||
Todd | I renamed .perl6. No joy. Wait, let me check /root too | 06:23 | |
still no joy. Rats! | |||
06:25
troys left,
khw left
|
|||
geekosaur | not sure if there are things living elsewhere. the other possibility is that F26 is shipping with bad precomps somehow | 06:25 | |
er F27 | |||
Todd | I am carving up my pl6 and reproducing. I will know the culprit in a few minutes | 06:27 | |
Ha! Found the culprit: use CurlUtils; Now to see what it is complaining about | 06:29 | ||
Found two stinkers: `use Net::SMTP;` and `use Email::MIME;` | 06:34 | ||
I jsut zef'ed them minutes ago too! | |||
06:34
sacomo joined
|
|||
Todd | my test code: | 06:35 | |
#!/usr/bin/env perl6 # CurlUtils.pm6 # use Net::SMTP; # use Email::MIME; use RunNoShell; # qx[ RunNoShell ] use Terminal::ANSIColor; # qx[ color ]; use eMailDate; # qx[ eMailDate ]; | |||
what do i search for to see if I have more than one of these two kicking around? | 06:36 | ||
find / -iname \*net\* | grep -i smtp | 06:37 | ||
06:39
Todd left,
todd joined
|
|||
todd | Some weird happened to my internet and I got kicked off. Ddi someone write my about Net::SMTP and email:MIME ? | 06:40 | |
Geth | doc: 1fcadcc8af | (Zoffix Znet)++ | doc/Language/traps.pod6 Document …^ vs. … ^ trap Addresses github.com/perl6/doc/issues/1291 |
06:44 | |
synopsebot | Link: doc.perl6.org/language/traps | ||
squashable6 | 🍕🍕🍕 First contribution by zoffixznet++! ♥ | ||
🍕 zoffixznet++ wrote a comment on “Using whitespace between…”: github.com/perl6/doc/issues/1291#i...-355727837 | |||
🍕 zoffixznet++ closed issue “Using whitespace between…”: github.com/perl6/doc/issues/1291 | |||
06:49
Herby_ left
|
|||
squashable6 | 🍕 AlexDaniel++ wrote a comment on “Using whitespace between…”: github.com/perl6/doc/issues/1291#i...-355728131 | 06:52 | |
todd | I did a | 07:00 | |
./zef uninstall Email::MIME and a ./zef install Email::MIME no joy and this is weird, `find / -iname \*email\* | grep -i mime` and is only found stuff like this: `p6-Email-MIME.git` | 07:02 | ||
07:05
mempko joined
07:06
mempko left
|
|||
todd | weird. find is not finding any of my other modules either | 07:06 | |
07:07
mempko joined
|
|||
todd | where are my modules suppose to be located? | 07:09 | |
07:18
travis-ci joined
|
|||
travis-ci | Doc build errored. Zoffix Znet 'Document …^ vs. … ^ trap | 07:18 | |
travis-ci.org/perl6/doc/builds/325719499 github.com/perl6/doc/compare/3cdbe...cadcc8af68 | |||
07:18
travis-ci left
|
|||
buggable | [travis build above] ☠ Did not recognize some failures. Check results manually. | 07:18 | |
07:25
darutoko joined
|
|||
todd | Got it figured out. I am going to write it up for the next two machines I need to support and for a Red Hat bugzilla report. Would yo guys like to see the write up? | 07:35 | |
07:36
cdg joined
07:39
Zoffix joined
|
|||
Zoffix | todd: sure! | 07:40 | |
Also, modules are stored inside hashed things and not by filename | |||
(I think they're precompiled on install) | |||
07:40
araraloren_ joined
07:41
cdg left
|
|||
todd | writing it up right now | 07:41 | |
07:44
araraloren left
|
|||
Zoffix | sweet | 07:44 | |
07:44
mempko left
|
|||
moritz | \o | 07:45 | |
07:45
mempko joined
07:52
xcm left
07:53
xcm joined
|
|||
todd | Here it is in all tis glory! | 07:56 | |
bugzilla.redhat.com/show_bug.cgi?id=1531855 | |||
<editorial comment> why Fedora packages rakudo and zef separately is beyond me. rakudo-pkg-Fedora27 included zef in its rpm, so should Fedora. It would get rid of old zef's being mixed with new. </editorial comment> | 07:59 | ||
Oh Red hat is so going to "WON'T FIX" this one: | 08:02 | ||
bugzilla.redhat.com/show_bug.cgi?id=1531856 | |||
Please package zef with rakudo | 08:03 | ||
08:03
rindolf joined
|
|||
Zoffix | todd: kinda confusing reports. zef doesn't come with rakudo. It comes with rakudo star | 08:03 | |
todd | Thank you all for the help in chasing this down. The hint was revision conflict. Fedora's Rakudo is just broken. | 08:04 | |
take a peek inside | |||
github.com/nxadm/rakudo-pkg/releas...x86_64.rpm | |||
it comes with it | |||
Zoffix | todd: those RPMs are made by a 3rd party volunteer. | 08:05 | |
todd | That must explain why they work and the official release does not. :'( | ||
Zoffix | todd: these are basically the only deliverables made by the core team: rakudo.perl6.org/downloads/ most users should use Rakudo Star | ||
===SORRY!=== | 08:07 | ||
This type cannot unbox to a native string: P6opaque, Failure | |||
todd | wonder why fedora is using plain rakudo. I was following suite | ||
Zoffix | todd: ^ and that could be a rakudo bug even. Are you still able to reproduce that? Can you run with perl6 --ll-exception flag? | ||
todd | Can't reproduce it anymore. It is fixed. Do you still have that vpaste I make. I lost it. It would be good to add to the bug report. | 08:08 | |
Zoffix | todd: it might be using plain rakudo because there *are* monthly release of the compiler-only (and the confusion being witnessed right now is why we don't publicize those too much). Rakudo Star releases, by comparion, are done once every three months | ||
This one I'm guessing: vpaste.net/WuHL1 | 08:09 | ||
Yeah... I'm not familiar with the part of the codebase it's referencing... | 08:10 | ||
todd | That's the one. Thak you | ||
I just did a `dnf whatprovides rakudo-star' and got back "rakudo-star = 0.0.2017.06-1.fc2" Wow. they are using Fedora 26's spin in 27 and it is way out of date. | 08:11 | ||
Zoffix | huggable: star | ||
huggable | Zoffix, Estimated Rakudo Star releases for 2017: .01, .04, .07 & .10 | ||
Zoffix | todd: hm, weird version number too. There ain't not 2017.06 rakudo star | 08:12 | |
These are all we got: rakudo.perl6.org/downloads/star/ | |||
Wonder if they're too confusing our compiler releases for rakudo star releases | |||
todd | Me thinks... What?? I can think! I just can't spell... Me thinks I will stick with github.com/nxadm/rakudo-pkg/releases for now. There is something that doesn't smell right over at Fedora | 08:17 | |
Zoffix | cool | 08:18 | |
todd | Fedora has this is their 27 repo too: rakudo-star = 0.0.2017.08-1.fc26 But as you said only .01, .04, .07 & .10. Something is seriously off. | 08:20 | |
Oh you know what. I goofed. I have an ssh terminal open on Fedora 26 machine doign some upgrades. I did the whatprovides on it, whicfh explains the fc26. I redid in on a FC27 machine and rakudo-star is not even support on 27. | 08:23 | ||
Zoffix | :) | ||
todd | I absolute adore Perl 6 (I come from Perl5 and years ago Modula 2, what a culture shift!). I wish Fedora would get on board asap. But I do have somewhre else to go, so I shouldn't complain and just be grateful | 08:24 | |
I started with P5 to replace all the stuff I did in bash and then got into p5 big time. P6 is a real nice clean up, especially the subroutines. I program in Top Down and I live and die in subs. The P5 guys must have just been tired when they put the subs together. | 08:26 | ||
Just stumbled across another weird one. | 08:34 | ||
===SORRY!=== Failed to create directory '/home/linuxutil/.precomp/6A0100E73A9E0630ECFBF4CBF870A4533AB71A3F.1511306550.98398/96' with mode '0o777': Failed to mkdir: 13 | |||
I am not making any directories! | 08:35 | ||
Line 13 is commented out! | |||
moritz | it looks like 13 is the error code, not the line number | 08:36 | |
todd | mv .precomp .precomp.000 | ||
Zoffix | That's not line 13. It's errno. Permission denied | ||
todd | fixed it. Hold over from my old machine | ||
moritz | btw there is a nice trick in Perl 5 for converting error numbers to error messages | ||
$ perl -wE '$! = 13; say $!' | 08:37 | ||
Zoffix just runs `errno 13` :) | |||
todd | I think this is one of those M$ error where it ways one thing and means something else. | 08:38 | |
El_Che | todd: github.com/nxadm/rakudo-pkg <-- up to date pkgs | 08:39 | |
todd | Boy I am really tripping across stuff today. I really, really appreciate you guys help! | ||
That is where I way, just one directory deeper. It would be nice if they had a repo. | 08:40 | ||
Zoffix | .ask jnthn pondering R#1368 and looking at `callstatic` and `chain` ops in src/vm/moar/QAST/QASTOperationsMAST.nqp. Seems like we can have `chainstatic` op and gain some perf in chains with static ops, no? Does that sound sane? | 08:43 | |
yoleaux | Zoffix: I'll pass your message to jnthn. | ||
synopsebot | R#1368 [open]: github.com/rakudo/rakudo/issues/1368 "42 < $a < 666" should be faster than "42 < $a && $a < 666", but is 2x as slow | ||
Zoffix drops to bed | |||
.tell jnthn FWIW, I realize the exact code in R#1368 could be constant-folded, I'm thinking of wider options | 08:44 | ||
yoleaux | Zoffix: I'll pass your message to jnthn. | ||
El_Che | todd: I plan to add repo's later, but because the pkgs have no dependencies it's not urgent ;) | 08:47 | |
08:48
domidumont joined
|
|||
todd | Awesome! Do you have an "annouce" newsletter I can sign up for? (Love the way you include zef.) | 08:50 | |
08:55
domidumont left
08:56
domidumont joined
|
|||
todd | El_Che? Any announce newsletter? | 08:57 | |
09:06
darutoko left
09:07
darutoko joined
09:12
andrzejku joined
09:17
darutoko left,
darutoko joined
|
|||
moritz | if El_Che tweets it, twitter.com/perl6org will retweet it | 09:20 | |
09:21
domm joined
09:24
TreyHarris joined
09:28
andrzejku left
|
|||
todd | Todd signing out | 09:29 | |
09:29
todd left
09:33
cdg joined
09:35
cdg_ joined
09:38
cdg left
09:39
cdg_ left
09:50
geospeck joined
09:52
setty1 joined
10:13
cdg joined
10:16
rindolf left
10:17
cdg left
10:20
rindolf joined
10:26
ChoHag joined
10:36
markong joined
10:38
geospeck left
10:44
geospeck joined
|
|||
lizmat | do we already have something like a "How to port a Perl 5 Module to Perl 6" guide in the documentation>? | 10:52 | |
I guess the 5to6-xxx pages are a start ? | 10:53 | ||
10:55
dct joined
|
|||
DrForr | Hadn't seen it around when I was looking a while back, but that of ourse was a while back. | 10:55 | |
11:02
dct left
11:08
abraxxa joined
|
|||
araraloren_ | Can I access MAIN function in a module ? | 11:15 | |
11:17
wamba joined
|
|||
DrForr | m: module Foo { BEGIN{MAIN()}; }; sub MAIN() {say "called"}; | 11:19 | |
camelia | 5===SORRY!5=== Error while compiling <tmp> Whitespace required after keyword 'BEGIN' at <tmp>:1 ------> 3module Foo { BEGIN7⏏5{MAIN()}; }; sub MAIN() {say "called"}; |
||
DrForr | m: module Foo { BEGIN {MAIN()}; }; sub MAIN() {say "called"}; | 11:20 | |
camelia | 5===SORRY!5=== Error while compiling <tmp> Undeclared name: MAIN used at line 1 |
||
araraloren_ | m: module Foo { &MAIN(); }; sub MAIN() {say "called"}; | ||
camelia | called called |
||
DrForr | Probably just a namespace issue. | ||
araraloren_ | I do test like that | ||
DrForr | Well, there you go. | ||
araraloren_ | but can not do that in the real module | ||
DrForr | So what are you doing in the "real module" that makes that not work? | 11:24 | |
11:25
geospeck left,
geospeck joined
11:26
geospeck left
11:27
lizmat joined
11:30
geospeck joined
|
|||
araraloren_ | just make a wrap for MAIN function | 11:32 | |
DrForr, really simple | |||
I try declare MAIN with `our`, not work too | |||
DrForr | Could you put what you have in a gist so I can see it? | 11:34 | |
11:34
geospeck left
|
|||
araraloren_ | Hmm, ok | 11:35 | |
DrForr | I'm doing this because what you say is "Just make a wrap" has a bunch of possible interpretations, and it's easier for me to see the code than play the guessing game of "Did they mean this..." | 11:36 | |
11:37
|oLa| joined
|
|||
araraloren_ | Hmm, I not a newbie :) | 11:37 | |
In the module file, just `say &MAIN;` not working, and `say &::("GLOBAL::MAIN");` not working too | 11:38 | ||
DrForr | I know that, and I don't mean to sound insulting. It's just that the language lends itself to many ways of achieving a task, and I don't want to run through the list of what I know works only to find out what you mean is something completely different. | 11:39 | |
araraloren_ | DrForr, I want access the MAIN sub , and make a wrapper for it, so I can run my code before MAIN, and do somethign with the MAIN signature | ||
DrForr | Again, can you please put actual code up, so I don't hae to guess what your module looks like? | ||
araraloren_ | gist.github.com/araraloren/816c3c8...689f60c502 | 11:43 | |
Here you go DrForr | |||
11:46
setty1 left
|
|||
DrForr | Well, it's a fragment, but I'll try to interpolate what I can, one mo. | 11:46 | |
araraloren_ | okay, dinner time :P | 11:47 | |
DrForr | I also note that your module has a ::MAIN of its own, this may cause a... sigh. | ||
Also do you mean module or class? | 11:48 | ||
araraloren_ | module class ? | 11:49 | |
DrForr | Perl 6 has both modules and classes, and since your code fragment doesn't tell me what this is in, I can't tell what you mean. | 11:50 | |
araraloren_ | Hmm, how about without that ? | ||
not a module or class | |||
DrForr | In fact I can't tell if this is a BEGIN block, a subroutine, a module or even a new() method. | 11:51 | |
araraloren_ | just in that file | ||
11:51
andrzejku joined
|
|||
DrForr | I'm perfectly fine with helping, I don't mind in the least. I just don't need to play guessing games, especially if you're going to head out for dinner. Can you please post a single file, complete with module{} or class{}, methods and subs, that you want to make work? | 11:52 | |
araraloren_ | ok, wait a mo | 11:53 | |
DrForr | I don't mean to sound like a prima donna, I simply need more information than I have. | ||
araraloren_ | expirebox.com/download/172387c5977...ae532.html | 11:59 | |
I make a simple example | |||
I will check out after dinner | 12:00 | ||
12:01
reportable6 left
12:02
reportable6 joined,
ChanServ sets mode: +v reportable6
12:11
abraxxa left
12:32
dct joined
12:39
Nanjizal joined
|
|||
El_Che | DrForr: "I don't want to sound like a prime donna" is the type of things a prima donna says :) | 12:42 | |
12:44
dct left
12:47
vichib left
12:53
BenGoldberg joined,
xcm left
12:55
xcm joined
13:21
wamba left
13:31
wamba joined
13:32
noganex joined
13:36
dct joined
13:37
andrzejku left
13:43
bioexpress joined
|
|||
bioexpress | p6: say 3; | 13:44 | |
camelia | 3 | ||
bioexpress | test: p6: say "hello"; | ||
p6: sub r { my @a = <a b c>; return @a }; my @b = r(); | 13:46 | ||
camelia | ( no output ) | ||
bioexpress | Hello, does this routine return the array as a copy or as a reference? | ||
13:48
MasterDuke left
|
|||
jnthn | It returns it as a reference, however assignment into an array is copying | 13:49 | |
yoleaux | 08:43Z <Zoffix> jnthn: pondering R#1368 and looking at `callstatic` and `chain` ops in src/vm/moar/QAST/QASTOperationsMAST.nqp. Seems like we can have `chainstatic` op and gain some perf in chains with static ops, no? Does that sound sane? | ||
synopsebot | R#1368 [open]: github.com/rakudo/rakudo/issues/1368 "42 < $a < 666" should be faster than "42 < $a && $a < 666", but is 2x as slow | ||
yoleaux | 08:44Z <Zoffix> jnthn: FWIW, I realize the exact code in R#1368 could be constant-folded, I'm thinking of wider options | ||
jnthn | So the end result is that @b is an independent array from @a | ||
(Same with my @b = @a, in fact) | |||
.tell Zoffix A chainstatic op would be reasonable, yes | 13:50 | ||
yoleaux | jnthn: I'll pass your message to Zoffix. | ||
13:50
domidumont left
13:55
dct left
|
|||
bioexpress | So this could be faster? | 13:59 | |
p6: sub r { my $a = <a b c>; return $a }; my $b = r(); | |||
camelia | ( no output ) | ||
13:59
konsolebox joined
|
|||
araraloren_ | p6: sub r { my @a = <a b c>; return @a }; my @b = r(); say now - BEGIN now | 14:00 | |
camelia | 0.00790691 | ||
araraloren_ | p6: sub r { my $a = <a b c>; return $a }; my $b = r(); say now - BEGIN now | 14:01 | |
camelia | 0.007993 | ||
bioexpress | This is a small list. | ||
araraloren_ | ( ̄▽ ̄) I think they are no difference | 14:02 | |
bioexpress | p6: sub r { my @a = 'aaaaaaaaaa' .. 'zzzzzzzzzz'; return @a }; my @b = r(); | 14:04 | |
camelia | (timeout) | ||
bioexpress | sub r { my @a = 'aaaa' .. 'zzzz'; return @a }; my @b = r(); say now - BEGIN now | 14:05 | |
araraloren_ | m: say 'aaaa' ... 'zzzz' | 14:07 | |
camelia | (aaaa aaab aaac aaad aaae aaaf aaag aaah aaai aaaj aaak aaal aaam aaan aaao aaap aaaq aaar aaas aaat aaau aaav aaaw aaax aaay aaaz aaba aabb aabc aabd aabe aabf aabg aabh aabi aabj aabk aabl aabm aabn aabo aabp aabq aabr aabs aabt aabu aabv aabw aabx … | ||
araraloren_ | m: say 'aaaa' .. 'zzzz' | ||
camelia | "aaaa".."zzzz" | ||
14:08
Actualeyes joined
|
|||
araraloren_ | It take long time 'aaaa....' | 14:08 | |
bioexpress | p6: sub r { my $a = [ 'aa' .. 'zz' ]; return $a }; my $b = r(); say now - BEGIN now | 14:09 | |
camelia | 0.0348510 | ||
bioexpress | p6: sub r { my @a = 'aa' .. 'zz'; return @a }; my @b = r(); say now - BEGIN now | 14:10 | |
camelia | 0.04112563 | ||
bioexpress | p6: sub r { my @a = 'aa' .. 'zz'; return @a }; my @b = r(); say now - BEGIN now | ||
camelia | 0.0409084 | ||
bioexpress | p6: sub r { my $a = [ 'aa' .. 'zz']; return $a }; my $b = r(); say now - BEGIN now | ||
camelia | 0.0626457 | ||
14:13
dct joined
14:16
dudebbn left
14:17
dudebbn joined
|
|||
Geth | doc: ee8c768b82 | (Jan-Olof Hendig)++ | 2 files Fix broken links |
14:17 | |
squashable6 | 🍕🍕🍕 First contribution by dogbert17++! ♥ | ||
14:20
eliasr joined
14:28
travis-ci joined
|
|||
travis-ci | Doc build errored. Jan-Olof Hendig 'Fix broken links' | 14:28 | |
travis-ci.org/perl6/doc/builds/325788452 github.com/perl6/doc/compare/1fcad...8c768b8244 | |||
14:28
travis-ci left
|
|||
buggable | [travis build above] ☠ Did not recognize some failures. Check results manually. | 14:28 | |
14:37
committable6 left,
committable6 joined
14:53
dct left
15:02
geospeck joined
15:09
bioexpress left
15:22
geekosaur left,
comborico1611 joined
15:23
Herby_ joined
|
|||
Herby_ | o/ everyone | 15:23 | |
comborico1611 | Hey | 15:24 | |
15:26
andrzejku joined
15:31
andrzejku left,
geekosaur joined
15:39
|oLa| left,
|oLa| joined
|
|||
moritz | \o | 15:40 | |
15:42
pilne joined
|
|||
comborico1611 | What do y'all think of a feature to toggle from concise error messaging to verbose error messaging? | 15:45 | |
moritz | in which context? | 15:46 | |
comborico1611 | For example, some people prefer a concise error message, while others prefer more detail. So for Rakudo Star, there could be some command to toggle to your preference. | 15:48 | |
moritz | that's why our error messages tend to deliver the most relevant information in the first line, and you can ignore the rest if that's enough | 15:54 | |
so, I think it's not worth the effort | |||
comborico1611 | I see. I won't be able to judge that until I have many hours of experience with P6. | 15:55 | |
But that makes sense. | |||
Moritz, how difficult do you think it would be for P6 to assume the role of PHP in Web Development? | 15:56 | ||
By "assume the role" I don't mean to compete against it or take-over it's place. I just mean, if I am a freelance web developer, would it be difficult to integrate P6 with Apache and MySQL? | 15:57 | ||
moritz | not really; MySQL support is already there, and the modern way to integrate with Apache or nginx is to have a stand-alone server, and have apache/nginx be a reverse proxy | 15:58 | |
comborico1611 | Was Web Development in-mind when P6 was designed? | 15:59 | |
Or is kind of "stretching" it? | 16:00 | ||
or is that stretching it* | |||
16:01
andrzejku joined
|
|||
moritz | Web development is not a stretch for Perl 6, nor for any other modern, general-purpose language | 16:01 | |
comborico1611 | I see. | 16:02 | |
andrzejku | araraloren_ hey :) | 16:03 | |
moritz | comborico1611: github.com/Bailador/Bailador might interest you | ||
comborico1611 | Thanks! | ||
16:06
wamba left
16:13
cdg joined
|
|||
comborico1611 | I'm writing the ugliest calculator for seconds I can imagine. | 16:21 | |
I'm learning stuff, though. | |||
16:21
xcm left
16:23
xcm joined
|
|||
Nanjizal | On a mac it keeps on wanting to use perl 5. When I try to run prove it gives me error. | 16:27 | |
No tests named and 't' directory not found at /System/Library/Perl/5.18/App/Prove.pm line 528. | |||
DrForr | prove -e'perl6 -Ilib' # the '-Ilib' is extra, but recommended. | ||
16:28
araraloren_ left
16:29
manchicken_ joined
16:30
manchicken_ is now known as manchicken
|
|||
Nanjizal | I managed to run some hangman fine doing perl6 hangman.p6 but when I tried to do it from textmate even after I added a TM_PERL parameter it would not work and complained. But now I am trying to run the stuff here github.com/perl6/gtk-simple | 16:30 | |
But I think mac's have perl 5 preinstalled so half the time it will use that what ever you tell the terminal | 16:32 | ||
I probably should not change the mac perl version | 16:33 | ||
moritz | perl5 and perl6 are separate installations | ||
DrForr | I don't use TextMate - All I can say is to look at github.com/textmate/perl.tmbundle - there's a Perl 6 .tmbundle file there. | ||
16:34
espadrine left
|
|||
DrForr | Nanjizal: There is probably an 'Application Helper' or 'Launch' setting in the UI somewhere that tells it what application to launch a given script with. That's what you have to find and change. | 16:36 | |
Nanjizal | pastebin.com/QJqGQ7eY | ||
comborico1611 | The code is coming alive! | ||
I thought it was going to be very ugly and confusing, but it is just verbose. | |||
Nanjizal | I commented out my user name to **** | 16:37 | |
But as I said with hangman.p6 it seems to work from terminal directly. It was just more problematic with gtk-simple which I believe is setup for perl6 | 16:38 | ||
DrForr | Nanjizal: It's using a Perl 5 .tmbundle resource, not the Perl 6 .tmbundle. | ||
Er, I take that bak. | 16:39 | ||
*back | |||
Nanjizal | The bottom of the textmate has detected it as Perl 6 code. | ||
DrForr | The Perl stuff I can see has both perl 5 and 6 jammed together in the same .tmbundle file, there's probably something else that needs to be configured. | 16:40 | |
Nanjizal | I have point TM_PERL to the applications/Rakudo/.... before that it was picking up perl 5 | ||
but I can live with building/compiling it on the terminal at moment. I was trying to just run the github.com/perl6/gtk-simple/blob/m...md#testing from terminal and that does not work | 16:42 | ||
$ prove -e "perl6 -Ilib" | 16:43 | ||
No tests named and 't' directory not found at /System/Library/Perl/5.18/App/Prove.pm line 528. | |||
DrForr | That means there are no tests to run, so you're running the command in the wrong directory. | 16:44 | |
16:44
wamba joined
|
|||
DrForr | 'prove' is meant to run your test scripts automatically. If you don't have any scripts to run, then 'prove' won't do what you want. | 16:44 | |
Nanjizal | why would it say 5.18 | 16:45 | |
moritz | prove is a Perl 5 tool | ||
Perl 6 uses the same testing protocol as Perl 5 | |||
DrForr | Because App::prove is a Perl 5 binary that you're using to run a perl 6 test suite. | ||
moritz | testanything.org/ | ||
DrForr | It just happens to be able to launch Perl 6 when need be, that's what the '-e' flag does. | 16:46 | |
Nanjizal | How do I get to the right directory if I have installed per instruction ? zef install GTK::Simple | ||
DrForr | zef should have already run the tests for you. | 16:47 | |
moritz | zef install runs the tests for you | ||
Nanjizal | Well I feel a bit lost if I want to see this code running github.com/perl6/gtk-simple/blob/m...andler.pl6 and then modify it how would I go about that? | 16:49 | |
DrForr | Clone the repository and run the example. | 16:50 | |
Nanjizal | Oh ok will do :) | ||
DrForr | You can probably find the directory in .perl6 but I wouldn't bother. | ||
Changing stuff there would muck with the actual Perl 6 code, it's safer to work from a cloned repo so you don't accidentally mess up what's installed. | 16:51 | ||
Nanjizal | MoarVM panic: Internal error: Unwound entire stack and missed handler | 17:03 | |
17:03
manchicken left
|
|||
Nanjizal | some work but Cairo one fails with this message. I check Cairo is installed under brew | 17:03 | |
Quite exciting to see some visual stuff working though | 17:04 | ||
github.com/perl6/gtk-simple/blob/m...andler.pl6 | |||
17:04
BenGoldberg left
|
|||
Nanjizal | Cairo one is most intresting because it's not just forms but actual graphics | 17:05 | |
17:09
ilbelkyr joined,
comborico1611 left
17:10
Herby_ left
|
|||
DrForr | Don't forget to file a bug report :) | 17:11 | |
Nanjizal | Well it's my first look at perl so difficult to know if it's something I am doing wrong. | 17:13 | |
I am wondering, it seems that wrapping c++ is not too hard with Perl 6? | 17:14 | ||
timotimo | Nanjizal: i can help with that, it's my project and my example code | ||
Nanjizal | the Cairo one was not working. | ||
timotimo | "unwound entire stack and missed handler" is usually when you give a callback to a C library via nativecall, and the callback throws any exception | ||
Nanjizal | it's cloned repository running on mac | ||
timotimo | because it's impossible to unwind over the C portion of the stack that lives between the interpreter (where the C function was invoked) and the inner interpreter (where the callback is being interpreted) | 17:15 | |
Nanjizal | I have not changed your code I may have renamed the file to something storter that's all | ||
timotimo | that's fine, the code is almost a year untouched :) | 17:16 | |
DrForr | Nanjizal: What he's saying is that figuring out *what* callback is failing would help. Is there more in the stacktrace? | ||
Nanjizal | Not the way I am runnning it | ||
is there optional args I should to get more verbose | 17:17 | ||
timotimo | the worst is when the C function calls your callback with a different signature than you expect, because no CATCH you can put into your code can catch that | 17:18 | |
DrForr | It's probably not going to help in this case. Can you add a 'die;' to the code somewhere to see how far it gets before the callback dies? | ||
17:18
geekosaur left
|
|||
timotimo | dang, on my system the gtk cairo-draw-handler example script runs fine | 17:18 | |
Nanjizal | you cloned the repository from scratch? | 17:19 | |
timotimo | no, but the checkout is clean | 17:20 | |
can you clone the cairo repository, github.com/timo/cairo-p6.git and run its tests with perl6 -I . t/blah? | |||
ok, looks like there's only one test | 17:21 | ||
oh, no, six | |||
Nanjizal | I tried die; it dies at the end! | ||
so am I right in thinking that these pm6 files are wrapping the c++ code ie: docs.perl6.org/language/nativecall | 17:22 | ||
timotimo | i was convinced i had pulled newest from cairo, but i hadn't! | ||
17:22
coverable6 joined,
ChanServ sets mode: +v coverable6
17:23
benchable6 joined
17:24
geekosaur joined
|
|||
timotimo | the gtk example still works | 17:24 | |
Nanjizal | So pm6 files are kind of like 'externs' are in Haxe. I am wondering do you think it would be feasible to wrap Kore ? | 17:25 | |
github.com/Kode/Kore/tree/master/Sources/Kore | |||
Because that would be really powerful for Perl 6 for graphics. | 17:26 | ||
timotimo | opengl and directx? is it kind of like SDL2? | ||
Nanjizal | No it recompile the shaders for the platform. | 17:27 | |
So on mac it can use metal | |||
I normally use it via Kha and Haxe. | |||
it has js stuff as well but the Kore is the C++ stuff | |||
timotimo | right, SDL2 offers graphics primitives that use anything that's available | ||
Nanjizal | No it's lower level | 17:28 | |
timotimo | hg.libsdl.org/SDL/file/4f3cdd0a5768/src/render | ||
OK | |||
Nanjizal | kha.tech/ | ||
You can code for mobile or whatever directly in Kore but I would use Kha | 17:29 | ||
But if it's not too hard to wrap it might be really nice graphics api | 17:30 | ||
timotimo | cool. you can check out the nativecall c++ test files in rakudo's t/ folder | ||
17:32
sum joined
|
|||
sum | how to see the documentation of a built-in-function in Perl 6 REPL? If I want to see doc for unique function/method how to dee in the REPL? | 17:33 | |
rakudo: help(unique) | 17:35 | ||
camelia | 5===SORRY!5=== Error while compiling <tmp> Undeclared routine: help used at line 1 |
||
sum | rakudo: ?unique | 17:36 | |
camelia | WARNINGS for <tmp>: Useless use of "?" in expression "?unique" in sink context (line 1) |
||
timotimo | sum: unfortunately we don't have the docs available in the repl for any of the core functions and classes | 17:38 | |
otherwise you can just &something.WHY | |||
DrForr | sum: perl5 has 'perldoc -f' that can be leveraged, not sure what (if any) equivalent perl6 has for that; I'm afraid it might be trawling the HTML. | ||
17:39
bisectable6 left
|
|||
sum | Actually I was going through this Python tutorial www.coursera.org/learn/learn-to-pr...-functions and was wondering if Perl 6 has similar help system | 17:39 | |
17:39
bisectable6 joined
|
|||
sum | In R too www.r-project.org/ they have help in REPL so I was wondering if we had similar help system | 17:40 | |
17:41
obfusk left
|
|||
sum | rakudo: &unique.WHY | 17:41 | |
camelia | ( no output ) | ||
sum | rakudo: unique.WHY | 17:42 | |
camelia | ( no output ) | ||
sum | timotimo: Interactive help system would have been nice | 17:43 | |
geekosaur | r: say &unique.WHY | ||
camelia | No documentation available for type 'Sub'. Perhaps it can be found at docs.perl6.org/type/Sub » | ||
timotimo | i agree | 17:44 | |
geekosaur | it doesn''t automatically do a "say" because we found a bunch of problems with things in sink context and needed to be able to debug them easily, so default is sink context | ||
timotimo | it'd probably be a nice beginner or intermediate project to get help into the REPL if p6doc is installed | 17:45 | |
17:46
obfusk joined
|
|||
sum | timotimo: Can't it be done now? I mean interactive help system like R and Python. We don't have to go and find help in browser if it can be done in REPL !! | 17:47 | |
17:47
phogg left
|
|||
timotimo | what i'm suggesting would not need the browser | 17:47 | |
DrForr | sum: Yes, it can be done, patch the REPL to allow a 'desc' function. Sorry that it's not there already, but shelling out to p6doc wouldn't be too hard. | 17:48 | |
sum | rakudo: p6doc unique | 17:51 | |
camelia | 5===SORRY!5=== Error while compiling <tmp> Undeclared routine: p6doc used at line 1 |
||
sum | rakudo: p6doc @.unique | ||
camelia | 5===SORRY!5=== Error while compiling <tmp> Variable @.unique used where no 'self' is available at <tmp>:1 ------> 3p6doc @.unique7⏏5<EOL> expecting any of: argument list term |
||
sum | rakudo: p6doc Str.unique | 17:52 | |
camelia | 5===SORRY!5=== Error while compiling <tmp> Undeclared routine: p6doc used at line 1 |
||
geekosaur | sum, that is not a shell, p6doc is a shell command | ||
which is why "shell out to" | |||
DrForr | zef install p6doc ; p6doc func-name | 17:53 | |
sum | geekosaur: I wanted to do in the REPL. | ||
DrForr | sum: Yes, we're saying it's not there yet, but would be simple to add. | 17:54 | |
geekosaur | yes, and you are expecting it rewrote itself into being Python because that's what you want and therefore a natural law of the universe | ||
sum | DrForr: Alright then I have to exit the REPL and go to shell | ||
geekosaur | people have been telling you for the past 5 minutes that it is *not* | ||
DrForr | sum: Or switch to another terminal. Or send a PR for the REPL. | 17:55 | |
17:56
cdg left,
cdg joined
|
|||
sum | DrForr geekosaur Thanks | 17:57 | |
timotimo | sum you don't have to exit the repl to get to the terminal, there is ctrl-z | 17:58 | |
geekosaur | some of the machinery is there already, the rest needs to be implemented. the REPL doesn't get enough attention and has a number of problems even as it is (for example some scoping issues) | 17:59 | |
18:00
cdg left
18:03
Ven`` joined
18:06
sum left
18:09
eliasr left
18:13
khw joined
18:14
|oLa| left
18:24
domidumont joined
18:37
AlexDaniel joined
|
|||
AlexDaniel | squashable6: status | 18:39 | |
yoleaux | 10:51Z <tbrowder> AlexDaniel: thnx, i do understand :-D | ||
squashable6 | AlexDaniel, 🍕🍕 SQUASHathon is in progress! The end of the event in ≈17 hours. See github.com/rakudo/rakudo/wiki/Mont...Squash-Day | ||
AlexDaniel, Log and stats: gist.github.com/422a9187f11724e264...5d16f44873 | |||
gfldex | timotimo: if that sum fellow comes back, please tell him if he can read this, he is using our interactive help system :-> | 18:40 | |
squashable6 | 🍕 AlexDaniel++ wrote a comment on “What is a trap and what isn't?”: github.com/perl6/doc/issues/1523#i...-355766925 | 18:46 | |
18:47
zakharyas joined
|
|||
Geth | doc: 94f0703c90 | (Aleks-Daniel Jakimenko-Aleksejev)++ | doc/Language/variables.pod6 nbsp in Perl 5 |
18:50 | |
synopsebot | Link: doc.perl6.org/language/variables | ||
squashable6 | 🍕 AlexDaniel++ labeled issue “Get rid of Perl5 mentions from non-5to6 docs”: github.com/perl6/doc/issues/1705 | 18:51 | |
18:51
zakharyas left,
zakharyas joined
18:59
cdg joined
19:03
Ven`` left
19:04
cdg left
19:07
phogg joined
19:11
zakharyas left
19:14
zakharyas joined,
Zoffix left
19:18
travis-ci joined
|
|||
travis-ci | Doc build passed. Aleks-Daniel Jakimenko-Aleksejev 'nbsp in Perl 5' | 19:18 | |
travis-ci.org/perl6/doc/builds/325850802 github.com/perl6/doc/compare/ee8c7...f0703c9046 | |||
19:18
travis-ci left
|
|||
squashable6 | 🍕 AlexDaniel++ wrote a comment on “Get rid of Perl5 mentions from non-5to6 docs”: github.com/perl6/doc/issues/1705#i...-355769133 | 19:20 | |
Geth | doc: 52a7cc4504 | (Aleks-Daniel Jakimenko-Aleksejev)++ | 14 files Remove all mentions of Perl 5 Well, actually leaving a lot of them still in. Very often it is justified (obviously 100% of perl 5 mentions in 5to6 documents are). Resolves #1705. |
19:23 | |
squashable6 | 🍕 AlexDaniel++ closed issue “Get rid of Perl5 mentions from non-5to6 docs”: github.com/perl6/doc/issues/1705 | ||
19:27
darutoko left
19:39
greppable6 joined,
ChanServ sets mode: +v greppable6
19:42
Khisanth joined
|
|||
squashable6 | 🍕 AlexDaniel++ wrote a comment on “grapheme is not searchable”: github.com/perl6/doc/issues/1403#i...-355770733 | 19:43 | |
AlexDaniel | 6c: #` | 19:45 | |
committable6 | AlexDaniel, ¦6c (26 commits): «» | ||
AlexDaniel | c: all #` | ||
committable6 | AlexDaniel, ¦all (48 commits): «» | ||
AlexDaniel | huh | ||
ah… I see | 19:46 | ||
19:49
Nanjizal left
19:50
Ven`` joined
19:51
Zoffix joined
|
|||
Zoffix | So I finally got annoyed enough by lack of highlights in GitHub's markdown on perl6 code blocks to see what the hell is up.... The likely cause? "Rename Perl6 to Perl 6" github.com/github/linguist/issues/3671 | 19:52 | |
El_Che | :) | 19:53 | |
Zoffix++ | |||
Zoffix | Which makes it that you need to write ```perl 6``` instead of ```perl6``` in markdown, BUT that detects it as "perl" and highlights with the wrong language | ||
squashable6 | 🍕 AlexDaniel++ wrote a comment on “Fix travis timeout”: github.com/perl6/doc/issues/1384#i...-355771360 | ||
🍕 AlexDaniel++ closed issue “Fix travis timeout”: github.com/perl6/doc/issues/1384 | |||
Zoffix | And this was broken since August and no one apparently gave two bits about it, since I re-read the caching comment and it states that cache would've cleared when new changes in repo happen | ||
AlexDaniel | I've seen a lot of people struggling with it actually | 19:55 | |
Zoffix | This having-a-name-with-mandatory-space-in-it is more than aesthetic | ||
Oh, sorry, in it | |||
El_Che | so, the solution is ```perl 6``` ? | 19:56 | |
dat sucks | 19:57 | ||
AlexDaniel | :D | ||
I think "Perl 6" was attempted, but it didn't work (?) github.com/spitsh/spitsh/commit/9b...abd39429e8 | |||
Zoffix | <Zoffix> […] BUT that detects it as "perl" and highlights with the wrong language | 19:58 | |
AlexDaniel | right | ||
well my point was about using the quotes | 19:59 | ||
20:02
domidumont left
|
|||
andrzejku | hey do you remember the guy who had started write llvm perl6 compiler? | 20:03 | |
I had once his code | |||
here | |||
Zoffix | Filed github.com/github/linguist/issues/3976 | 20:09 | |
20:16
Zoffix left
20:22
zakharyas left
20:24
comborico1611 joined
|
|||
comborico1611 | How do you search PATH for a specific program? | 20:25 | |
mspo | which program | 20:26 | |
comborico1611 | mysql | ||
mspo | :) | ||
geekosaur | I think they want the perl 6 version, bot the (bad, btw) bash one | ||
*not the | 20:27 | ||
(use "type" or you may be seeing what the next shell will see, not what *yours* sees) | |||
comborico1611 | "type mysql" ? | ||
Kubuntu 17 comes packaged with mySQL and it conflicts with my XAMPP in PATH | 20:28 | ||
mspo | which(1) is a program | ||
although I enjoy "who's on first" | |||
geekosaur | comborico1611, yes | ||
mspo | in perl6 you'd have to do something like split the ENV[PATH] on : and grep over it | 20:29 | |
as in, perl grep | |||
geekosaur | *please* do not fall into the linux trap of using which(1) | ||
and if you'd giove be a chance instead of spreading bad shell juju, it's on $*SPEC somewhere | |||
moritz | github.com/azawawi/perl6-file-which | 20:30 | |
comborico1611 | Are y'all implying that P6 can be used as a replacement for Bash? | 20:31 | |
mspo | you can implement the which command in perl6 | 20:32 | |
comborico1611 | Oh. | ||
geekosaur | hm, could have sworn there was a predefined one these days | 20:33 | |
mspo | I think perl6 could be used to write a shell too | ||
comborico1611 | So "type mysql" produces /usr/bin/mysql | ||
I tried to open mysql with Kate, but it isn't a text. | |||
I'm not sure what to do from here. | |||
moritz | what do you want to achieve? | 20:34 | |
geekosaur | if you really wanted to, you could probably get away with using it as a shell. I would not recommend oit. (the old warning for "m4 -e" comes to mind, but linux removed it so I suppose that means it never existed...) | ||
comborico1611 | Just delete mysql? | ||
geekosaur | comborico1611, no | ||
what is your actual problem | |||
mysql is a binary executable, not text. it is also probably required by other things, so removing it will probably break something else | |||
comborico1611 | I need to replace Kubuntu's packaged mysql in $PATH with XAMPP's mysql | ||
geekosaur | then change $PATH to point to XAMPP's first | ||
comborico1611 | I see. | ||
If I just add it to $PATH, will it automatically be first? | 20:35 | ||
or is there some other step to make it first? | |||
geekosaur | export PATH="<the path tot he dir containing the right mysql>:$PATH" | ||
comborico1611 | Isn't export only temporary? | 20:36 | |
geekosaur | you also have to put that command in your shell's startup file | ||
but putting it there does not run it in your currently open shells | |||
comborico1611 | etc/profile | ||
mspo | you might want to read some docs on using unix | ||
geekosaur | there is no magic that adds it to both | ||
no, *your* shell startup, boit the systemwide one | |||
not the | |||
~/.bash_profile or ~/.profile | |||
comborico1611 | Hmm. Okay. | 20:37 | |
moritz | or, like, follow the instructions for the stuff you're currently installing | ||
geekosaur | the system does not consist solely of the shell you are typing into. changing things systemwide based on what your current environment needs can break your system | ||
comborico1611 | Moritz, mmm. I think I'm doing that. | 20:38 | |
20:39
Ven`` left
20:40
Ven`` joined
|
|||
comborico1611 | XAMPP's instructions are litterally two steps: chmod and ./program. | 20:40 | |
And I quote, "That's all. XAMPP is now installed below the /opt/lampp directory. | |||
geekosaur | somewhere in there, there has to be something telling you how to run if afterward | 20:42 | |
20:43
xcm left
20:45
cdg joined,
xcm joined
|
|||
comborico1611 | I bet that is the most said thing on IRC throughout all it's year: "Just read the instructions". | 20:45 | |
I'm sure much of it was warranted. But you have to admit that unless you begin learning computers in the 1970s, there is a bunch of stuff to learn. | 20:46 | ||
20:46
Zoffix joined
|
|||
Zoffix | What's the pure-p6 way for this? | 20:47 | |
m: use nqp; sub foo { bar }; sub bar { say nqp::getlexcaller('$meows') }; { my $meows = 'foos'; foo } | |||
camelia | foos | ||
comborico1611 | Like I'm trying to learn Web Development, for instance. But because I'm going the PHP/Apache/MySQL route, I must also learn bash and unix. | ||
Zoffix | Can't figure out how to put CALLER:: into a variable and then lookup the next CALLER:: from it | ||
20:47
Nanjizal joined
|
|||
Zoffix | m: sub foo { bar }; sub bar { say CALLER::CALLER::<$meows> }; { my $meows = 'foos'; foo } | 20:48 | |
camelia | Cannot access '$meows' through CALLER, because it is not declared as dynamic in sub bar at <tmp> line 1 in sub foo at <tmp> line 1 in block <unit> at <tmp> line 1 |
||
Zoffix | Huh, weird. I don't get that error if $meows is exported into caller via sub EXPORT | ||
m: BEGIN '/tmp/dyncall'.IO.mkdir.add('DYN.pm6').spurt: 「sub EXPORT { Map.new: ('$meows' => 'foos', '&foo' => sub { CALLER::<$meows> }) }」; use lib </tmp/dyncall>; use DYN; say foo | 20:55 | ||
camelia | foos | ||
20:55
Nanjizal left
|
|||
Zoffix | Looks like the detection only exists when the return value is a Hash | 20:55 | |
squashable6 | 🍕 AlexDaniel++ wrote a comment on “A lot of TODOs in Any”: github.com/perl6/doc/issues/1494#i...-355776078 | 20:57 | |
🍕 AlexDaniel++ edited issue “Document :my and :our within regex blocks”: github.com/perl6/doc/issues/1475 | |||
🍕 AlexDaniel++ wrote a comment on “Make link checker work locally; make it a test”: github.com/perl6/doc/issues/1433#i...-355776213 | 20:59 | ||
20:59
evalable6 joined,
ChanServ sets mode: +v evalable6
|
|||
TimToady | m: sub foo { bar }; sub bar { say CALLER::CALLER::<$meows> }; { my $meows is dynamic = 'foos'; foo } | 20:59 | |
camelia | foos | ||
squashable6 | 🍕 AlexDaniel++ wrote a comment on “Lots of broken links, in…”: github.com/perl6/doc/issues/561#is...-355776274 | 21:00 | |
Zoffix | hm.. right... all I get is just a dynamic variable | ||
TimToady | if we don't require 'is dynamic', we can't do much local optimization on the varialble | ||
Zoffix goes back to the drawing board | |||
TimToady | since we don't know which variables a callee might depend on | 21:01 | |
21:02
yoleaux joined,
ChanServ sets mode: +v yoleaux,
dpk joined
|
|||
Zoffix | Kinda want `use Foo` to export a dynamic variable and routines and those routines to use that variable, but to have that limited to the compunit. so if module A does `use Foo` and module B does `use Foo` module B gets its own variable, even if other routines it export that use Foo's routines are called by A | 21:02 | |
21:02
pmurias joined
|
|||
mspo | comborico1611: are you wanting to do perl6 web dev? | 21:04 | |
comborico1611: but yes, it helps to know how to *use* a computer when trying to write programs and operate them | |||
Zoffix | More precisely: `use Config::JSON "some-file.json"; say jconf "key";` to use data from "some-file.json". But if some other comp unit in the same program does `use Config::JSON "some-other-file.json"` then for `jconf` inside that comp unit to use "some-other-file.json" | 21:05 | |
mspo | comborico1611: unfortunately using a computer used to be something that was taught to people but now everyone assumes facebook taught them everything | ||
idk | |||
geekosaur | judging by about 6 channels so far today, that's unnecessary and unwanted. everything should require zero thought. | ||
comborico1611 | Heh. I come from Compac Presario days in the mid 1990s. I was a child then. | 21:06 | |
mspo, I'm not sure if I'm bright enough (or have enough time) to get Web Development done with P6. I say this because things like XAMPP already have everything laid-out for the developer. | |||
AlexDaniel | awwaiid: github.com/perl6/doc/issues/1247 ? :) | ||
mspo | comborico1611: if you say so | 21:07 | |
comborico1611 | mspo, which book would you recommend on how to learn UNIX? (or anyone else can chime-in) | 21:08 | |
geekosaur | yes, downloading it downloads php and mysql into your brain too | ||
mspo | books by Evi Nemeth | ||
comborico1611 | In addition, there are many books about PHP and Web Development. How many books are there about P6 and Web Development? | 21:09 | |
squashable6 | 🍕 AlexDaniel++ wrote a comment on “internet searches are un…”: github.com/perl6/doc/issues/1205#i...-355777056 | ||
comborico1611 | I need books. I don't learn well by scrapping-around for info online. | ||
Alright. I'll check Nemeth out. | 21:10 | ||
21:10
Ven`` left,
Ven`` joined
|
|||
mspo | I also got a lot of milage out of just looking up every command in /bin and /sbin | 21:13 | |
AlexDaniel | squashable6: status | ||
squashable6 | AlexDaniel, 🍕🍕 SQUASHathon is in progress! The end of the event in ≈14 hours. See github.com/rakudo/rakudo/wiki/Mont...Squash-Day | ||
AlexDaniel, Log and stats: gist.github.com/e3262bd6816216e85f...76be56f2e4 | |||
comborico1611 | I"m just now realizing there are commands in bin and sbin. | 21:14 | |
Zoffix | Solved my thing using: sub EXPORT ($conf = 'config.json') { { '&jconf' => &jconf.assuming($conf) } } | ||
Zoffix | |||
21:14
Zoffix left
|
|||
mspo | comborico1611: you have a long way to go | 21:15 | |
21:15
Nanjizal joined
|
|||
comborico1611 | Ha. How did you know there were commands in there? | 21:15 | |
In other words, how did you get started learning UNIX? How old are you? | 21:16 | ||
mspo | I started using unix from a dial up ISP when the internet was first starting | ||
I learned by first unix commands by using ftp | |||
comborico1611 | 80s or 90s? | ||
mspo | 90's | ||
comborico1611 | This was as a hobby? | 21:17 | |
mspo | but i was writing dos batch scripts and using that command line too | ||
squashable6 | 🍕 tbrowder++ closed issue “[POD] pod delmited block…”: github.com/perl6/doc/issues/1709 | ||
🍕🍕🍕 First contribution by tbrowder++! ♥ | |||
mspo | <shrug> it was just part of my life | ||
comborico1611 | Did you have a Compac Presario? | ||
geekosaur just poked around a lot, and looked for docs on anything found | 21:18 | ||
this seems to be a lost art | |||
comborico1611 | I remember going into Sears and seeing their Computer Section. Back then a screen saver was like a game. | ||
geekosaur, I don't think I have the mental ability to learn that way. | 21:19 | ||
squashable6 | 🍕 tbrowder++ wrote a comment on “[POD] pod delmited block…”: github.com/perl6/doc/issues/1709#i...-355777804 | ||
mspo | compaq and no I had an IBM PS/1 tower | ||
comborico1611: I got OS/2 Warp 4 for christmas one year | |||
comborico1611 | Did you get it from Sears? | ||
mspo | from Dillards | ||
21:19
Alikzus joined
|
|||
comborico1611 | You know, my Presario could have come from Dillards. | 21:19 | |
I don't remember which. | |||
geekosaur | that's not mental ability, really. my mom was convinced of that as well... then she learned to do it. from watching me, basically. | 21:20 | |
pmurias | comborico1611: I learned UNIX and Perl from a books when I was a kid | ||
s/a// | |||
mspo | I installed FreeBSD 2.something on it from CD ROMS that I got for free from a local computer/book store | ||
geekosaur | it's not lack of ability, it's self-doubt | ||
mspo | and then since I could no longer play sim city I reinstalled DOS | ||
pmurias | comborico1611: I guess there are plenty of UNIX books (even online in PDF form) | 21:21 | |
geekosaur | if anything, it's easier these days: install vbox, install something in it. shut down vbox and copy the vm. then restart vbox and play around | ||
mess something up? shut down and copy your backup back over it | |||
mspo | yeah I was constantly installing operating systems on our family's only computer | ||
comborico1611 | geekosaur, could be. I'm on a time-constraint, though. I need to get a job before this summer. It must be computing due to a disease I suffer from. | ||
21:21
zoosha left
|
|||
mspo | and had to get it fixed by the next day or someone would be angry | 21:21 | |
comborico1611 | That's back when a good Start-up Floppy Disk was like gold. | 21:22 | |
mspo | a lot of programmers don't know how to use computers | ||
do you know how to use windows? | 21:23 | ||
comborico1611 | geekosaur, so I bring up time-constraints because fishing-around for info is much much slower than a good book. | ||
I haven't used Windows in years. | |||
mspo | you've been running linux for years? | 21:24 | |
comborico1611 | I got away from computers for like 15 years. | ||
mspo | oh | ||
comborico1611 | Probably 10 years. | ||
Ubuntu-only. | |||
I tried Red Hat, back in the early 2000s. I couldn't get it installed. | |||
I wanted to be a programmer in the 8th grade. I bought a C++ book. | 21:25 | ||
geekosaur | I'm not sure linux has improved that much since then :) | ||
comborico1611 | I finished that book the beginning of this summer. | ||
moritz | geekosaur: it has | ||
21:25
Nanjizal left
|
|||
comborico1611 | Ubuntu is so good. VERY user friendly. | 21:25 | |
moritz | you install it on a laptop. Out of the box, hardware 3D graphics and wifi works | 21:26 | |
geekosaur | [06 21:26:06] <Sequell> linley henzell[6/7]: Henzell discussing his programming ability: "You see, I gave up on Borland's [C++] manual (which is very good, I'm just lazy) when it started talking about pointers [....] After pointers came structs, enums, pragmas, classes, macros, and a whole lot of other stuff which still means nothing to me." | ||
comborico1611 | I remember the first time I saw Ubuntu boot-up. I was at a university and some guy started his laptop. | ||
moritz | nearly unthinkable 10 years ago | ||
mspo | indeed | ||
I recall manually iterating video settings from my x config file | 21:27 | ||
after scanning the probe results from the logs | |||
geekosaur | moritz, except I installed it on an HP laptop | ||
mspo | learning about weird commands like xvidtune | ||
21:27
Ven`` left
|
|||
geekosaur | wired network worked. wifi still doesn't. video is dubious. | 21:28 | |
("works" at boot time. run the config utility, or plug/unplug a monitor, and it explodes.) | |||
mspo | comborico1611: imho the easiest/best way to get a php job is to get really good at wordpress | ||
comborico1611 | mspo, (or anyone else) I have this book. Do you think it would suffice for learning UNIX, or is it TOO INDEPTH? www.amazon.com/UNIX-Systems-Progra...nix+system | ||
mspo, thanks! I appreciate the tip! | 21:29 | ||
geekosaur | comborico1611, I would start out by learning how to navigate unix first. as mspo mentioned early, Evi Nemeth's books are good for that | ||
mspo | why not just start with W. Richard Stevens (lol) | ||
geekosaur | I would expect that particular book to be about advanced C programming. | ||
comborico1611 | I actually did that. | ||
geekosaur | with Unix APIs | ||
oh, dear. | 21:30 | ||
comborico1611 | lol | ||
geekosaur | stevens is where you go for the in-depth details of how unix networking works. | ||
not by any means beginner fare | |||
comborico1611 | I can attest to that. | ||
mspo | yes I was joking | ||
21:31
kerframil joined
|
|||
mspo | Evi Nemeth books are tops | 21:31 | |
UNIX Power Tools is a solid classic as well | |||
comborico1611 | I hate books with several authors . . . | ||
mspo | although a little dated | ||
geekosaur grins | |||
mspo | <shrug> | ||
I've read unix power tools and linux admin handbook cover to cover multiple times | |||
of course, it's my career | |||
I have tcp/ip illustrated on a shelf un-read | 21:32 | ||
comborico1611 | Me, too. | ||
lol | |||
geekosaur contributed the section on bsd vs. system V terminal stuff to UPT vol 1. of course by the time it was published, POSIX termios had taken over and it was obsolete >.> | |||
comborico1611 | Man, that is rough. | 21:33 | |
mspo | geekosaur: very tool | ||
geekosaur | I had Illustrated on a shelf as well... for others to reference, since I had more or less become the department's reference librarian at that point | ||
mspo | geekosaur: UPT was my go-to as a jr sysadmin | ||
21:34
cdg left
|
|||
mspo | I worked though learning perl during my overnight shift | 21:34 | |
21:36
cdg joined
|
|||
mspo | speaking of wordpress, I have a site to setup | 21:36 | |
21:39
Ven`` joined
21:48
tobs left
|
|||
comborico1611 | I'm off. Thanks guys for the feedback! | 22:02 | |
22:02
comborico1611 left
22:03
cdg left
|
|||
Geth | doc: 0c94a8c2f1 | (Aleks-Daniel Jakimenko-Aleksejev)++ | doc/Language/glossary.pod6 Put “P5” back to glossary <lizmat> AlexDaniel: I think the term P5 needs to stay in the glossary, as it continues to live in X::Syntax::P5 and P5Regex |
22:06 | |
synopsebot | Link: doc.perl6.org/language/glossary | ||
doc: 9f88fb4a51 | (Aleks-Daniel Jakimenko-Aleksejev)++ | doc/Language/quoting.pod6 Unneeded “a“ |
22:14 | ||
synopsebot | Link: doc.perl6.org/language/quoting | ||
22:17
tobs joined
22:20
Ven`` left
22:35
xcm left
|
|||
Geth | doc: 2eda02efe9 | (Zoffix Znet)++ (committed using GitHub Web editor) | doc/Language/phasers.pod6 Remove overuse of 'So' |
22:35 | |
synopsebot | Link: doc.perl6.org/language/phasers | ||
22:36
xcm joined
22:54
tobs left,
andrzejku left
23:09
FROGGS_ left
23:11
espadrine joined
23:14
rindolf left
23:17
tobs joined,
pmurias left
23:18
geospeck left
23:24
S007 joined
23:30
stmuk joined
23:32
stmuk_ left
23:33
setty1 joined
23:34
silug joined
23:52
mephinet joined
23:54
xcm left
|
|||
Geth | doc: 50c6fd13f6 | (Zoffix Znet)++ | doc/Language/modules.pod6 Document EXPORT behaviour with precompilation - Toss example of evil hack as it won't work right with precomp - Document the precompilation caveat and how to deal with it per github.com/rakudo/rakudo/issues/13...-355784718 |
23:55 | |
synopsebot | Link: doc.perl6.org/language/modules | ||
23:56
xcm joined,
reu joined
|