»ö« 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. |
|||
viki | m: class { method dd { dd "sure" } }.dd | 00:00 | |
camelia | rakudo-moar 627a77: OUTPUT«"sure"» | ||
viki | m: use MONKEY-TYPING; augment class Mu { method dd { dd "sure" } }; (5…7).dd.say | ||
camelia | rakudo-moar 627a77: OUTPUT«No such method 'dd' for invocant of type 'Seq' in block <unit> at <tmp> line 1» | ||
timotimo | thank you, viki | 00:01 | |
viki | m: use MONKEY-TYPING; augment class Mu { method dd { dd "sure" } }; Seq.^compose; (5…7).dd.say | ||
camelia | rakudo-moar 627a77: OUTPUT«"sure"Nil» | ||
00:02
Jesmaybe joined
|
|||
viki | m: use MONKEY-TYPING; augment class Any { method dd { dd "sure" } }; class {}.dd | 00:03 | |
camelia | rakudo-moar 627a77: OUTPUT«"sure"» | ||
viki | \o/ | ||
00:04
Sgeo left
|
|||
viki | m: class {}.DUMP | 00:04 | |
camelia | ( no output ) | ||
viki | m: class {}.DUMP.say | ||
camelia | rakudo-moar 627a77: OUTPUT«<anon|76550992>» | ||
00:04
Sgeo joined
00:05
Jesmaybe left
00:06
Jesmaybe joined
00:08
bjz left,
bjz joined
00:10
Jesmaybe left
00:18
kurahaupo__ joined
00:23
Jesmaybe joined
00:40
Khisanth left
|
|||
viki | m: <a b c>.&dd | 00:41 | |
camelia | rakudo-moar 627a77: OUTPUT«("a", "b", "c")» | ||
00:49
aborazmeh joined,
aborazmeh left,
aborazmeh joined
00:52
Jesmaybe left
00:53
beatdown joined,
Jesmaybe joined,
Khisanth joined
01:04
Jesmaybe left,
aborazmeh left,
Khisanth left
01:05
inra joined
01:12
aborazmeh joined,
aborazmeh left,
aborazmeh joined
01:17
Khisanth joined
01:21
inra left,
rmusial left,
rmusial joined
01:30
rjbs joined
01:33
geekosaur left
01:34
FROGGS_ joined,
geekosaur joined
01:37
labster left,
FROGGS left
01:46
ilbot3 left
01:47
ilbot3 joined
01:49
bjz left,
labster joined
01:50
kurahaupo__ left
01:52
Jesmaybe joined
01:55
Jesmaybe left,
Jesmaybe joined
01:57
ocbtec left
02:00
Jesmaybe left,
Jesmaybe joined
02:02
wamba left
02:04
eliasr left
02:13
aborazmeh left
02:24
bjz joined
02:25
pierre_ joined
02:27
bjz left
02:29
pierre_ left
02:35
bjz joined
|
|||
dalek | c: 7685316 | gfldex++ | doc/Language/typesystem.pod6: the whole expression must be state, not just the anonymous variable |
02:37 | |
02:37
Jesmaybe left
02:46
noganex_ joined
|
|||
dalek | c: 144a3a9 | gfldex++ | doc/Language/variables.pod6: show difference between implicit and explicit state delcarator |
02:49 | |
02:49
noganex left
02:52
Herby_ left
02:57
bjz left
03:00
Celelibi_ joined
03:04
noganex joined
03:06
noganex_ left
03:13
bjz joined
03:24
MasterDuke joined
03:33
MasterDuke left
03:34
dylanwh left
03:42
inokenty joined
03:51
dylanwh joined
03:52
pierre_ joined
04:13
kurahaupo__ joined
04:18
MasterDuke joined
04:20
khw left
04:24
Cabanossi left
04:28
Cabanossi joined
04:41
canopus_ left
04:48
skids left
04:49
canopus joined,
pierre_ left
05:00
rurban joined,
rurban left
05:02
bjz left
05:18
bjz joined
05:41
Cabanossi left
05:43
Cabanossi joined
05:44
bjz left
05:51
bjz joined
06:22
BenGoldberg left
06:23
darutoko joined
06:42
ggoebel left
06:48
bjz left
06:49
bjz joined
06:53
brillenfux joined
06:57
labster left
07:02
labster joined
07:12
domidumont joined
07:15
brillenfux left
07:16
domidumont left
07:23
pierre_ joined
07:24
brillenfux joined
07:28
ggoebel joined
07:37
pierre_ left,
rurban joined
07:48
RabidGravy joined,
TheovdH joined
|
|||
RabidGravy | boom! | 08:01 | |
stmuk_ | did any test the R* 2016.10.1 Mac rebuild on 10.12? | 08:06 | |
s/any/anyone | |||
08:11
CIAvash joined,
CIAvash left
08:13
wamba joined
08:17
firstdayonthejob joined
08:26
seatek left
|
|||
RabidGravy | one day I'll get all the travis things green at the same time on the modules list | 08:30 | |
08:30
domidumont joined
08:39
rindolf joined
08:47
rurban left
09:05
domidumont left,
domidumont joined
09:06
AlexDaniel joined
|
|||
moritz | \o | 09:07 | |
yoleaux | 28 Oct 2016 21:32Z <MasterDuke> moritz: i'm good, it worked with Chrome | ||
09:13
nadim joined
09:19
notostraca left
09:30
Tonik joined
|
|||
RabidGravy | zostay, I've just sent a PR for ArrayHash to fix the t/meta.t and the travis thingy | 09:31 | |
gotta have all those travis build things on the modules list green at least once ;-) | 09:37 | ||
09:37
Indecipherable joined
09:38
Indecipherable left
09:39
Indecipherable joined
09:45
labster left
09:46
lizmat joined
09:47
rurban joined
09:49
ale1ster joined
09:50
ale1ster left
09:54
nowan_ left
09:57
nowan joined
10:02
nowan left
10:04
CIAvash joined,
CIAvash left
|
|||
dalek | href="https://perl6.org:">perl6.org: 7d8aff4 | (Steve Mynott)++ | source/downloads/index.html: refer to Mac DMG 2016.10.1 |
10:21 | |
10:27
firstdayonthejob left
10:30
pierre__ joined
|
|||
RabidGravy | I really want to get Net::ZMQ working again, but I lost the will to live last time I looked at it | 10:35 | |
10:37
Alikzus left
10:43
Alikzus joined,
sena_kun joined
10:57
pierre__ left,
domidumont left
10:59
CIAvash joined
11:00
andrzejku_ joined
|
|||
lizmat hands RabidGravy a Pirate flag | 11:03 | ||
11:10
CIAvash left
11:14
beatdown left
11:20
sena_kun left
11:42
wamba left
11:43
kjs_ joined
11:58
evalable6 joined
11:59
dalek left
12:00
dalek joined,
ChanServ sets mode: +v dalek
12:08
kjs_ left
12:12
lostinfog joined
12:13
lostinfog left,
ggoebel left,
andrzejku_ left
12:19
leont joined
12:20
espadrine joined
12:25
pochi left
12:31
ggoebel joined
12:34
rindolf left,
Jesmaybe joined
12:40
Cabanossi left,
Jesmaybe left
12:44
aborazmeh joined,
aborazmeh left,
aborazmeh joined
12:46
Cabanossi joined
12:47
huajie-hu joined
12:49
andrzejku_ joined
|
|||
moritz | can anybody describe the usage of the .msi and .dmg installers for Rakudo Star? | 13:01 | |
I need to include something in the book, but I have no windows or mac test systems :( | |||
do I need to set some PATH manually, or something? | |||
FROGGS_ | the msi requires you to set PATH | 13:02 | |
moritz | does it tell you which directories to include in PATH? | 13:03 | |
13:03
huajie-hu left
|
|||
FROGGS_ | I'll give you the input today... | 13:03 | |
moritz | and is it one or two? | ||
ok, thanks | |||
FROGGS_ | I think it does, but let me check | ||
it is one path on windows | |||
C:\rakudo\bin | |||
moritz | and panda installs script into that dir too? | 13:04 | |
FROGGS_ | it did the last time I checked | 13:05 | |
13:07
lucasb joined
|
|||
lucasb | m: say :: | 13:08 | |
camelia | rakudo-moar 91a714: OUTPUT«PseudoStash.new(("!UNIT_MARKER" => !UNIT_MARKER,"\$!" => Nil,"\$/" => Nil,"\$=finish" => Mu,"\$=pod" => [],"\$?PACKAGE" => GLOBAL,"\$_" => Any,"\$¢" => Nil,"::?PACKAGE" => GLOBAL,:EXPORT(EXPORT),:GLOBALish(GLOBAL)))» | ||
lucasb | m: my $x = :: ; say $x | ||
camelia | rakudo-moar 91a714: OUTPUT«(timeout)» | 13:09 | |
FROGGS_ | moritz: I was wrong, you need both: C:\rakudo\bin;C:\rakudo\share\perl6\site\bin | 13:11 | |
moritz | FROGGS_: ok, thanks | 13:13 | |
FROGGS_ | moritz: wait, you'll get pictures | ||
MasterDuke | lucasb: wow, i killed that on my machine after it got to over 700MB ram used | 13:16 | |
should probably RT it | 13:17 | ||
FROGGS_ | moritz: check your emails | 13:23 | |
moritz | FROGGS_: thank you very much | 13:26 | |
FROGGS_ | moritz: cant do images of the .dmg sadly | 13:27 | |
13:27
aborazmeh left
|
|||
moritz | FROGGS_: knowing the friendly Perl 6 community, I'm sure others will step up | 13:28 | |
FROGGS_ | aye :o) | ||
moritz | (don't need images necessarily, just informations on whether there is anything extra to do than hitting return all the time) | ||
13:30
lucasb left
13:32
bjz left
|
|||
FROGGS_ | I like images in books ;o) | 13:34 | |
moritz | that's something that works well in ebooks, but not in print | 13:37 | |
ah well, it's ebook first anyway | |||
13:39
Lucas_One joined
|
|||
moritz | FROGGS_: maybe you also want to join #perl6book | 13:39 | |
13:39
pierre__ joined
13:45
wamba joined
|
|||
AlexDaniel | wow, :: is a good one! | 13:47 | |
cmomittabel6: 2015.12 :: | |||
committable6 | AlexDaniel, ¦«2015.12»: WARNINGS for /tmp/1P3RHEbvE9:Useless use of "::" in sink context (line 1) | ||
AlexDaniel | cmomittabel6: 6c 2015.12 :: | 13:48 | |
committable6 | AlexDaniel, ¦«2015.12,2016.02,2016.03,2016.04,2016.05,2016.06,2016.07.1,2016.08.1,2016.09,2016.10,HEAD»: ===SORRY!=== Error while compiling /tmp/dwt4A7ceA7Confusedat /tmp/dwt4A7ceA7:1------> 2015.12 :<HERE>: expecting any of: colon pair «exit code = 1» | ||
AlexDaniel | ah, you need to say it? | ||
cmomittabel6: 6c :: | |||
committable6 | AlexDaniel, ¦«2015.12,2016.02,2016.03,2016.04,2016.05,2016.06,2016.07.1,2016.08.1,2016.09,2016.10,HEAD»: WARNINGS for /tmp/6fUuhjzQAZ:Useless use of "::" in sink context (line 1) | ||
AlexDaniel | cmomittabel6: 6c say :: | ||
committable6 | AlexDaniel, gist.github.com/67d99f526faaf4a7f5...4faa9740c8 | ||
AlexDaniel | /o\ ah, I was looking at the wrong like | 13:49 | |
line* | |||
13:49
Jesmaybe joined
|
|||
AlexDaniel | cmomittabel6: 6c my $x = :: ; say $x | 13:49 | |
committable6 | AlexDaniel, ¦«2015.12,2016.02,2016.04,2016.05,2016.06,2016.07.1,2016.08.1,2016.09,2016.10,HEAD»: «timed out after 10 seconds, output»: «exit signal = SIGHUP (1)»¦«2016.03»: «exit signal = SIGSEGV (11)» | 13:51 | |
AlexDaniel | what's so special about 2016.03 | ||
cmomittabel6: 2016.03 my $x = :: ; say $x | |||
committable6 | AlexDaniel, ¦«2016.03»: «exit signal = SIGSEGV (11)» | ||
AlexDaniel | actually, it is quite interesting | 13:57 | |
committable6: 6ef16cac1db4^,6ef16cac1db4 my $x = :: ; say $x | 13:58 | ||
committable6: f3fe81962131^,f3fe81962131 my $x = :: ; say $x | |||
committable6 | AlexDaniel, ¦«6ef16cac1db4^»: «timed out after 10 seconds, output»: «exit signal = SIGHUP (1)»¦«6ef16ca»: «exit signal = SIGSEGV (11)» | ||
AlexDaniel, ¦«f3fe81962131^»: «exit signal = SIGSEGV (11)»¦«f3fe819»: «timed out after 10 seconds, output»: «exit signal = SIGHUP (1)» | |||
AlexDaniel | feels like a segfault was introduced and then fixed, and nobody noticed :) | 13:59 | |
but these commits are so different… perhaps there's still a segfault hiding somewhere | |||
14:19
khw joined
|
|||
lizmat | argh, found a bug that disappears with spesh disabled | 14:31 | |
14:31
leont left
|
|||
AlexDaniel | lizmat: great :) | 14:34 | |
lizmat | yeah :-( | ||
but it also depended on a bug of mine | 14:35 | ||
14:38
rindolf joined
14:44
Jesmaybe left
14:46
pierre__ left
14:58
espadrine left
|
|||
AlexDaniel | so what's up with the button in RT… is it coming back ever? | 15:01 | |
15:10
cdg joined
15:12
huajie-hu joined
15:15
huajie-hu left
15:19
firstdayonthejob joined
15:25
snowman left
15:34
rurban left
15:37
rudolfochrist joined
15:40
wtw left,
snowman joined
15:41
wtw joined
15:45
pochi joined
15:46
BenGoldberg joined
15:51
kaare_ left
15:52
kaare_ joined
16:05
geekosaur left
16:07
geekosaur joined
16:09
andrzejku_ left
16:15
domidumont joined
16:16
domidumont left
16:17
domidumont joined
16:18
cdg left,
pochi left
16:21
cdg joined
16:25
cdg left
16:26
pochi joined
16:29
domidumont left
16:37
Howling joined
16:38
Howling left,
Howling joined
16:39
Howling left
16:40
Howling joined,
Indecipherable left
16:43
Howling left
16:49
canopus left
16:56
canopus joined
17:00
buggable left
17:01
buggable joined,
pochi left
17:06
mcmillhj joined
17:14
pochi joined
17:18
huf left
17:19
huf joined
17:21
mcmillhj left,
cdg joined
17:27
cdg left
17:31
pochi left
17:36
pochi joined,
TimToady joined
|
|||
AlexDaniel | ‘’ “” but no triple quotation mark? | 17:43 | |
17:52
cyphase left
17:54
notostraca joined
17:58
cyphase joined
|
|||
FROGGS_ | AlexDaniel: what is "the button" ? | 18:09 | |
AlexDaniel | FROGGS_: The button! How come you don't know? :) There was a button to create new tickets, it is now gone | 18:11 | |
18:12
seatek joined
|
|||
FROGGS_ | huh, yeah, I can only search now | 18:12 | |
18:21
damnlie joined
18:23
cdg joined
18:27
cdg left
|
|||
moritz can close tickets too :-) | 18:39 | ||
18:40
labster joined
|
|||
RabidGravy | well it's a simple way of reducing the number of tickets | 18:46 | |
18:50
mcmillhj joined
|
|||
AlexDaniel | RabidGravy: yea, exactly what I am thinking… | 18:54 | |
viki | Contact RT admins and ask how you could help out. | 18:55 | |
Or write a program that uses the API to create tickets/create them by email | |||
[ptc] | viki: IRC::Client::Plugin::HNY is your module, right? | 18:58 | |
AlexDaniel | nah, I'm fine. I'll just wait until RT loses a couple of other critically essential features… | 19:01 | |
maybe then we will be able to get the thing going. The thing we were so reluctant to start for a while now… | 19:02 | ||
19:05
TheovdH left
19:11
kurahaupo__ left
19:13
leont joined,
mcmillhj left
|
|||
[ptc] | FROGGS_: could you try running the tests on Inline::C, please? (If you have time, of course!) I can't seem to get them to go; the inline code doesn't seem to get compiled for some reason | 19:22 | |
FROGGS_ | :S | ||
19:24
cdg joined
19:27
FROGGS joined,
FROGGS_ left
19:28
cdg left
19:29
firstdayonthejob left
|
|||
[ptc] | it's probably some configuration issue on my side, but since I saw you there, I thought I'd let you know :-) | 19:34 | |
FROGGS | no, it is something deeper | 19:35 | |
19:35
khw left
|
|||
FROGGS | ahh, stupid me :o) | 19:37 | |
[ptc]: fix pushed | 19:38 | ||
viki | [ptc]: yeah, why? | 19:39 | |
AlexDaniel: what thing? | 19:40 | ||
19:42
darutoko left
|
|||
AlexDaniel | nevermind | 19:48 | |
viki | heh | ||
[ptc] | FROGGS: awesome! thanks! | ||
viki | AlexDaniel: considering there are no volunteers to fix the current thing; I doubt you'll have much luck getting another thing going ;) | 19:49 | |
[ptc] | viki: I was trying to test it and found that the deps couldn't be found in the ecosystem. Namely, Number::Denominate and WWW::Google::Time didn't seem to be in the module list | 19:50 | |
seatek | is it just RT, or is it a freakishly customized RT? | ||
[ptc] | viki: also the version of IRC::Client has moved on, so panda was telling me that it couldn't find IRC::Client either, however removing the version requirement allowed it to get further | ||
19:50
kurahaupo__ joined
|
|||
viki | [ptc]: the version numbers need to be removed from prereqs. They are much higher now and installer can't find old ones: github.com/zoffixznet/perl6-IRC-Cl...son#L7-L10 | 19:51 | |
[ptc] | viki: whether or not removing the version req was the right thing to do is another matter... | ||
viki | [ptc]: moreover, IRC::Client's API changed entirely, the module would need an update for that. | ||
[ptc] | ah, ok | ||
viki is surprised to see now two people interested in HNY module :/ | 19:52 | ||
AlexDaniel | viki: well, one of the solutions to the thing problem requires just one click on GitHub. Not saying that GitHub is the solution, but just saying that it doesn't require many volunteers to have a thing that is arguably better than RT. | ||
viki | Bah. | ||
[ptc] | viki: to be honest, I just wanted to add a travis config to the module. | ||
it's amazing the number of modules in the ecosystem that don't build anymore... | 19:53 | ||
viki | AlexDaniel: you can't realistically think this problem can be solved with "one click" | ||
ugexe | its also amazing how many self proclaimed perl 5 ports of modules there are that are 10% of the original and have less than 10 commits over 2 years | ||
ugexe writes readme and blank Module.pm, pushes to ecosystem immediately | 19:54 | ||
mst | AlexDaniel: what's the ticket number for 'the button thing' ? | 19:55 | |
viki | [ptc]: there's little point and not just 'cause the module is broken :) It'd need some testing facility, since it can't just use a random IRC server to run tests against. | ||
mst++ | |||
AlexDaniel | mst: great question. Is that something that should be opened in perl6 queue? | ||
mst | AlexDaniel: the front page of rt.perl.org says to email [email@hidden.address] | 19:56 | |
I think that might be a clue. | |||
viki | [ptc]: I think a Test::IRC::Client module that emulates a connected IRC::Client would be usable. But I plan to resurect that module come New Years so, don't worry about travis :) | ||
AlexDaniel | oh, and then it will open a ticket that is unaccessible to others? | ||
[ptc] | viki: that's also good to know. Nothing one could mock to use? | ||
viki: ok, will do :-) | |||
AlexDaniel | if so, I don't know if there's a ticket already or not | ||
if not, tell me and I'll write an email | |||
but honestly, I expected this ticket to be created the same day this issue appeared (when this button was deliberately removed) | 19:57 | ||
mst | if you've not even spoken to the admins, how do you know it was 'deliberately removed' | 19:58 | |
AlexDaniel | somebody told me here | ||
[ptc] | FROGGS: all tests pass, yay! | ||
FROGGS | \o/ | ||
19:59
dolmen_ joined
|
|||
mst | can you find the conversation for me? I've gone back as far as May searching for 'removed' and can't find a conversation | 19:59 | |
AlexDaniel | sure | 20:00 | |
ugexe | i remember someone, now who, saying it was removed because of spam | ||
s/now/not/ | |||
mst | ok, but in that case presumably it's disabled for anonymous users etc. | 20:02 | |
doesn't necessarily mean we can't have known users still have access | |||
AlexDaniel | mst: irclog.perlgeek.de/perl6/2016-09-29#i_13306616 | ||
so is there a ticket already or should I start a new one? | 20:03 | ||
mst | I would strongly suspect that since the vast majority of perl5 RTs go via email, the other people using the button just switched to that for the moment, so I think "filing a ticket asking if some users can be whitelisted" is a good idea | 20:05 | |
and as usual, you can always blame me if it turns out not to be | |||
20:08
firstdayonthejob joined
20:12
rurban joined
20:25
cdg joined
|
|||
dalek | osystem: a372156 | (Pawel Pabian)++ | META.list: META.info to META6.json rename to be compatible with S22 spec. |
20:28 | |
20:29
cdg left
20:39
khw joined
|
|||
seatek | because i've complained about unintuitive precedence before, i just have to say i love that this works as expected: for $img.factory: [$img.id] -> $obj {} | 20:39 | |
20:40
rindolf left
|
|||
seatek | it's wonderful what you can fit into just that one little convention | 20:40 | |
FROGGS | aye | 20:41 | |
there are beautiful constructs in here that'd you gonna miss in other languages... | 20:42 | ||
seatek | what other languages? (haven't found a reason to stop converting stuff yet) | 20:45 | |
:) | |||
though the slow starts are problemmatic in a few places | |||
FROGGS | well, there is JavaScript that you usually cant avoid... and there is C, PHP, Java, C++, C# and other stuff that you might see at $work | 20:47 | |
(when you have to fix stuff others have written for example) | 20:48 | ||
seatek | yeah i haven't started converting any PHP stuff yet -- nothing web based yet. i fear what i've heard of memory leaks, so i'm leaving it for last, in the hopes my procrastination will outlast other people's procrastination on fixing the leaks ;) | 20:49 | |
20:49
rindolf joined
|
|||
seatek | haven't had to work in C in a long time. kinda miss it, strangely | 20:50 | |
FROGGS | well, MoarVM is written in C :o) | ||
and yes, I love C too | |||
seatek | i think that is probably well over my head | 20:52 | |
is it mostly limited to the context within which rakudo interfaces with an OS? | 20:53 | ||
or i suppose antyhing since rakudo isn't required | 20:54 | ||
that's weird froggs | |||
isn't the idea to go to JVM eventually? | 20:55 | ||
FROGGS | seatek: it does the OS abstraction, and other low level bits (memory management to name one) | 20:56 | |
mst | seatek: the idea is to have both moarvm and the JVM as rakudo backends eventually | ||
20:56
dolmen_ left
|
|||
mst | well, I mean, they exist now, but moarvm works because more manpower invested | 20:57 | |
20:57
cdg joined
|
|||
seatek | so when you say manpower invested -- you mean manpower on rakudo to get it to work with moarvm better than jvm for now yes? | 20:57 | |
FROGGS | seatek: many things arnt that hard: github.com/MoarVM/MoarVM/blob/mast...ops.c#L106 | 20:58 | |
seatek: moarvm was created by the makers of rakudo | |||
seatek | or are people just finding it easier to develop moarvm in conjunction with rakudo -- instead of having to deal with the peculiarities of already-defined jvm? | ||
mst | seatek: I believe that more time has been invested into moarvm because the JVM annoys the crap out of people, so sort of both | 20:59 | |
but I'm inferring quite hard there | |||
seatek | ok that i get ;) | 21:00 | |
mst | based on stuff I've seen go past | ||
FROGGS | mst is quite right here | ||
you can hack stuff in moar, compile+install+test within a bunch of seconds | 21:01 | ||
seatek | yeah that seems handy | ||
FROGGS | the development turnaround on jvm (which means altering nqp + reinstalling rakudo) takes minutes | 21:02 | |
so, moarvm is much more fun to work on | |||
mst | could the JVM time be cut down somehow? | ||
FROGGS | and it was designed *after* rakudo existed, so it is well designed for what rakudo/perl6 needs | ||
moritz | mst: the JVM has an intrinsic startup time that's mostly unavoidable | 21:03 | |
FROGGS | mst: depends... there are cases where you only touch java class files which are not quite part of nqp... then it also just takes seconds | ||
moritz | mst: for the spectests, we had an evalserver, which keeps the JVM running in the background, and does IPC to get programs to it | ||
but that suffers from problems when a program loops forever, and Ctrl+C in the frontend thingy doesn't kill it, and stuff like that | 21:04 | ||
21:04
bjz joined
|
|||
moritz | also, namespace pollution is very hard to avoid | 21:04 | |
mst | I thought you could hot reload classes in the JVM if you poked it right | ||
seatek | so rakudo "translates" what it believes is a perl6 want to copy a file it a MVM file copy -- so rakudo must know which backend it's talking to. | 21:05 | |
is there an API that moarvm must follow -- or is it rakudo that must follow moarvm's ? | |||
must be rakudo since jvm's is already defined | |||
FROGGS | the nqp ops define that api | ||
seatek | are those api's the same for moarvm and jvm? | 21:06 | |
FROGGS | seatek: github.com/perl6/nqp/blob/master/d...s.markdown | ||
21:06
Tonik left
|
|||
FROGGS | seatek: the nqp ops are like 99% identical between the backends | 21:06 | |
AlexDaniel | … and by that time you can probably start explaining what is nqp :) | 21:07 | |
seatek | having these many layers of abstraction seems like it would make finding memory leaks VERY difficult | ||
yeah nqp.... i've been kinda ignoring that... ;) | 21:08 | ||
21:08
evalable6_ joined
|
|||
AlexDaniel | m: say 42 | 21:09 | |
camelia | rakudo-moar db61aa: OUTPUT«42» | ||
21:09
evalable6_ left
|
|||
seatek | ok, why does nqp exist? ;) | 21:11 | |
i'm guessing optimization | 21:12 | ||
is that what rakudo is written in? | |||
BenGoldberg | nqp is indeed what rakudo is written in. | 21:14 | |
It exists because it's easier to write a program which compiles/interprets nqp than one which runs perl6 directly. | 21:15 | ||
mst | seatek: nqp is 'not quite perl' | ||
moritz | nqp is bootstrapped. Booting a full Perl 6 compiler is much harder | ||
seatek | yeah i'm looking through it and it seems very terse \ | ||
21:15
AlexDaniel is now known as a_-\[]{}^`|b,
a_-\[]{}^`|b is now known as AlexDaniel
|
|||
moritz | but you need to have something at least semi-bootstrapped, because how much compile time and run time are inetrmingled | 21:15 | |
seatek | gotcha | ||
so all perl6 code gets interpreted by nqp, which in turn calls moarvm or jvm through a nqp-defined api that is bascially the same | 21:17 | ||
you just need to decide what bits of moarvm need to get called to fulfill the perl6 user's desires | 21:18 | ||
and that's up to nqp | |||
does nqp handle most of the call stacks, or is that at moarvm? | 21:19 | ||
god it's probably both | |||
with the weirdness perl6 can do | 21:20 | ||
how is anyone sane/ | |||
? | |||
FROGGS | rakudo grammar and actions (the parser) are written in NQP | ||
AlexDaniel | seatek: it's easy, we are not sane | ||
FROGGS | the rakudo built-ins, the setting" is written in Perl 6 | ||
seatek | hehe | ||
21:20
BenGoldberg left
21:21
djbkd joined
|
|||
seatek | interesting | 21:21 | |
so perl6 is *somewhat* "bootstrapped" in then | |||
AlexDaniel | well, nqp is | 21:22 | |
and not perl6 but rakudo | |||
seatek | k | 21:23 | |
21:24
djbkd left
|
|||
AlexDaniel | seatek: github.com/rakudo/rakudo/blob/nom/....nqp#L1085 | 21:24 | |
21:25
rudolfochrist left
|
|||
seatek | i like looking at MoarVM better ;) | 21:25 | |
FROGGS | seatek: that explains something about backends, nqp, and rakudo: www.youtube.com/watch?v=XgPh5Li3k4g | 21:26 | |
mst | seatek: PERLCEPTION | 21:27 | |
AlexDaniel | seatek: why? Grammar.nqp looks very Perl 6-ish | ||
seatek | AlexDaniel: yeah i just noticed that.. | ||
AlexDaniel | seatek: in fact, I pointed directly to the place where the fun begins :) | 21:28 | |
seatek | i had only just started getting into to the grammars | ||
i could just whatever i wanted and be done with you guy's excuses! ;) | 21:29 | ||
i need to find the link between rakudo and moarvm -- is ther ea place where that API is defined? | 21:31 | ||
FROGGS | seatek: github.com/perl6/nqp/blob/master/s....nqp#L2108 | 21:32 | |
dalek | osystem: 50515a9 | (Pawel Pabian)++ | META.list: Rename META.info to META6.json to be more compatible with S22 spec. |
21:33 | |
FROGGS | seatek: that's moar... every backend has its own mapping | ||
21:34
djbkd joined
|
|||
FROGGS | seatek: nqp registers ops, like nqp::rename which can be called like a subroutine | 21:37 | |
these ops are used in the setting, and this way you call into moarvm | 21:38 | ||
21:39
pochi left,
evalable6_ joined
|
|||
AlexDaniel | m: say 42 | 21:39 | |
camelia | rakudo-moar db61aa: OUTPUT«42» | ||
timotimo | right, you can have ops defined by just mapping to an instruction on MoarVM, or by manually compiling the op into other low-level things by yourself | ||
both kinds of example are in the OperationsMAST | |||
on the JVM side you'll see ops from nqp::foobar space be mapped directly to method calls on a static object | 21:41 | ||
21:41
evalable6_ left
|
|||
seatek | i see why it's so nice to be able to develop moarvm in tandem rather than jvm now. these seem to be most 1-to-1 mappings. | 21:44 | |
FROGGS | would be weird if that wouldnt be the case | ||
21:45
brillenfux left,
pochi joined
|
|||
AlexDaniel | .oO( “here, we developed a virtual machine that is completely incompatible with rakudo, let's use it!” ) |
21:45 | |
seatek | yeah -- so when you make a new mapping for moarvm -- do you try to make a similar one in the jvm? | ||
mst | AlexDaniel: that was called parrot | 21:46 | |
AlexDaniel | mst: :D | ||
21:46
BenGoldberg joined
|
|||
mst | AlexDaniel: also, if you didn't mail in yet, feel free to cc me on the report | 21:47 | |
AlexDaniel | mst: I did | ||
mst | ok | ||
just realise I should've said that earlier | |||
FROGGS | seatek: yes, the op that is exposed to rakudo will be named identically | 21:48 | |
seatek: though adding ops does not happen often these days | 21:49 | ||
there might be new ones when udp support will be implemented... | |||
mst | I just want unix domain sockets :( | 21:50 | |
seatek | we don't have that? | ||
is one of the directions of development to implement features of jvm in moarvm? i should probably watch that video before i talk more | 21:52 | ||
actually i should probably get work done instead of getting distracted ;) | |||
damn | |||
how important is it to keep moarvm and jvm capabilities in sync? | 21:54 | ||
is that a thing? | |||
21:57
RabidGravy left
22:03
khw left,
sQuEE left
22:04
sQuEE joined
22:07
rindolf left
|
|||
AlexDaniel | seatek: well, ideally it is super important | 22:07 | |
seatek: in reality rakudo-jvm needs more love | 22:08 | ||
FROGGS nods | 22:12 | ||
22:16
khw joined
22:17
FROGGS left
22:18
rurban left
22:19
FROGGS joined
22:28
bjz left
22:39
firstdayonthejob left
22:47
wamba left
22:58
pat_js joined
|
|||
dalek | ateverable: 98c9c73 | (Aleks-Daniel Jakimenko-Aleksejev)++ | / (2 files): Authorize when connecting to freenode When connecting to freenode you can use your nickserv login:pass pair as a server password (delimited by :), and it will authorize you automatically. |
23:00 | |
ateverable: 8fc3153 | (Aleks-Daniel Jakimenko-Aleksejev)++ | Whateverable.pm6: Do not reply to notices If we ignore private messages, we should ignore notices as well. Hoping to resolve this issue soon though. |
|||
ateverable: 65bca16 | (Aleks-Daniel Jakimenko-Aleksejev)++ | Evalable.p6: Exclude privileges from nicknames Another fix to the camelia detector hack. |
|||
pat_js | how would this perl5 look like in perl6? (I'm especially interested in the assignment part. | 23:09 | |
# p5: ($dirs, $name) = $file =~ m{^(.*)/([^/]+)$} | 23:10 | ||
I want $dirs and $name to be strings… | |||
this is how far I got: my ($dirs, $name) = (map({~$_}) <== (m{^(.*) \/ (<-[/]>+) $})[0,1]) given $file; | |||
but this looks like a monster… | 23:11 | ||
and it throws warnings, if there match… | |||
23:11
bjz joined
|
|||
pat_js | s/match/is no match/ | 23:11 | |
seatek | pat_js: i don't know if you're wanting to use matching like that, but for that task i'd just use the IO stuff | 23:19 | |
m: my $path = '/var/tmp/myfile'; say $path.IO.basename, ' ', $path.IO.dirname; | |||
camelia | rakudo-moar db61aa: OUTPUT«myfile /var/tmp» | ||
23:19
Celelibi_ is now known as Celelibi
|
|||
pat_js | seatek: yes I do, that's why I'm asking. | 23:21 | |
but in this case, I might as well use the IO stuff. | 23:22 | ||
why wouldn't I want to use matching like this? | |||
seatek: thank you | 23:23 | ||
23:24
kurahaupo__ left
|
|||
seatek | well personally i avoid regex stuff whenever i can ;) | 23:24 | |
AlexDaniel | m: my $file = ‘test/foo/bar/filename’; my ($dirs, $name) = ($file ~~ m/^(.*)‘/’(<-[/]>+)$/)[0, 1]; say $dirs; say $name | 23:26 | |
camelia | rakudo-moar db61aa: OUTPUT«「test/foo/bar」「filename」» | ||
AlexDaniel | pat_js: it is actually not that different | ||
pat_js: actually if you want to make it a bit better… | |||
23:27
cdg left
|
|||
AlexDaniel | m: my $file = ‘test/foo/bar/filename’; $file ~~ m/^$<dirs>=.* ‘/’ $<name>=<-[/]>+ $/; say $<dirs>; say $<name> | 23:27 | |
camelia | rakudo-moar db61aa: OUTPUT«「test/foo/bar」「filename」» | ||
AlexDaniel | ah, damn, these are match objects | ||
m: my $file = ‘test/foo/bar/filename’; $file ~~ m/^$<dirs>=.* ‘/’ $<name>=<-[/]>+ $/; say ~$<dirs>; say ~$<name> | 23:28 | ||
camelia | rakudo-moar db61aa: OUTPUT«test/foo/barfilename» | ||
23:28
cdg joined
|
|||
pat_js | AlexDaniel: yup, that's why I had that map in there | 23:28 | |
AlexDaniel | m: my $file = ‘test/foo/bar/filename’; my ($dirs, $name) = ~«($file ~~ m/^(.*)‘/’(<-[/]>+)$/)[0, 1]; say $dirs; say $name | 23:29 | |
camelia | rakudo-moar db61aa: OUTPUT«test/foo/barfilename» | ||
pat_js | But then I got “Nil” warnings | ||
AlexDaniel | m: my $file = ‘test/foo/bar/filename’; my ($dirs, $name) = ($file ~~ m/^(.*)‘/’(<-[/]>+)$/)[0, 1]».Str; say $dirs; say $name | ||
camelia | rakudo-moar db61aa: OUTPUT«test/foo/barfilename» | ||
AlexDaniel | pat_js: but if I were you I wouldn't parse paths like this… | 23:30 | |
pat_js | my $file = 'no slash'; ($dirs, $name) = ($file ~~ | ||
m/^(.*)‘/’(<-[/]>+)$/)[0, 1]».Str; say $dirs; | |||
say $name | |||
AlexDaniel | yeah, fair enough! | ||
pat_js | m: my $file = 'no slash'; ($dirs, $name) = ($file ~~ m/^(.*)‘/’(<-[/]>+)$/)[0,1]».Str; say $dirs;say $name | 23:31 | |
camelia | rakudo-moar db61aa: OUTPUT«5===SORRY!5=== Error while compiling <tmp>Variable '$dirs' is not declared. Did you mean '&dir'?at <tmp>:1------> 3my $file = 'no slash'; (7⏏5$dirs, $name) = ($file ~~ m/^(.*)‘/’(<-[» | ||
pat_js | m: my $file = 'no slash';my ($dirs, $name) = ($file ~~ m/^(.*)‘/’(<-[/]>+)$/)[0,1]».Str; say $dirs;say $name | ||
camelia | rakudo-moar db61aa: OUTPUT«Index out of range. Is: 1, should be in 0..0 in block <unit> at <tmp> line 1Actually thrown at: in block <unit> at <tmp> line 1» | ||
AlexDaniel | m: my $file = ‘no space’; if $file ~~ m/^$<dirs>=.* ‘/’ $<name>=<-[/]>+ $/ { say $<dirs>; say $<name> } else { say ‘nah, cannot parse that’ } | 23:32 | |
camelia | rakudo-moar db61aa: OUTPUT«nah, cannot parse that» | ||
AlexDaniel | m: my $file = ‘yes/space’; if $file ~~ m/^$<dirs>=.* ‘/’ $<name>=<-[/]>+ $/ { say $<dirs>; say $<name> } else { say ‘nah, cannot parse that’ } | ||
camelia | rakudo-moar db61aa: OUTPUT«「yes」「space」» | ||
AlexDaniel | pat_js: it all depends on how short you want it | ||
and on your reasoning why you cannot use basename… | |||
23:33
cdg left
|
|||
ugexe | m: say $*CWD.parts; # this handles volume as well, unlike a basic regex | 23:33 | |
camelia | rakudo-moar db61aa: OUTPUT«{basename => camelia, directory => /home, dirname => /home, volume => }» | ||
pat_js | AlexDaniel: of course I can use basename, and will probably, but this was an Ideom I used often in perl5 and would miss, that's why I asked. | 23:36 | |
23:36
nadim left
|
|||
AlexDaniel | well I'm still not sure what this ideom does | 23:39 | |
timotimo | could we make the search on doc.perl6.org somehow "fuzzy"? | 23:41 | |
AlexDaniel | timotimo: likely | 23:42 | |
timotimo | like that it'll find "starts-with" when you search "startswith" or "starts_with"? | ||
AlexDaniel | timotimo: perhaps a ticket will be a good start | ||
the search itself needs more love too. Who knows, maybe that will spark up some interest | 23:43 | ||
timotimo | cool | ||
i'll ticket | |||
23:47
cognominal joined
|