»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'p6: say 3;' or /msg camelia p6: ... | irclog: irc.perl6.org or colabti.org/irclogger/irclogger_log/perl6 | UTF-8 is our friend! 🦋
Set by Zoffix on 25 July 2018.
00:21 Sauvin left 00:31 sauvin joined, p6bannerbot sets mode: +v sauvin 00:38 rindolf left 01:27 leont left 02:29 Juerd joined 02:30 p6bannerbot sets mode: +v Juerd 02:33 lizmat left 02:47 kerframil left 02:59 lichtkind left 03:35 Herby__ joined 03:36 p6bannerbot sets mode: +v Herby__ 03:48 kerframil joined, p6bannerbot sets mode: +v kerframil 03:58 Herby__ left 04:33 tison joined, p6bannerbot sets mode: +v tison 04:53 rindolf joined 04:54 p6bannerbot sets mode: +v rindolf
buggable New CPAN upload: Cro-RPC-JSON-v0.0.1.tar.gz by VRURG modules.perl6.org/dist/Cro::RPC::JSON:cpan:VRURG 04:55
05:07 molaf joined, p6bannerbot sets mode: +v molaf 05:08 tugrik3 joined, tugrik3 left 05:10 vrurg left 05:12 aborazmeh joined, aborazmeh left, aborazmeh joined, p6bannerbot sets mode: +v aborazmeh 05:13 p6bannerbot sets mode: +v aborazmeh
Herby_ can i have a pm6 module called 'minigrep', and inside that module have a function called 'minigrep'? 05:23
when i try, i get an error "Cannot invoke this object (REPR: uninstantiable, minigrep) 05:24
trying my hand at this Rust project, using p6. stumbling out the gate on getting a basic module together 05:31
doc.rust-lang.org/book/2018-editio...oject.html 05:32
05:34 vrurg joined 05:35 p6bannerbot sets mode: +v vrurg, vrurg left
Herby_ I restructured it to be App::Minigrep, seems to work now 05:40
05:42 molaf left
geekosaur I think "minigrep" is a recent(?) addition to the setting… that's not supposed to leak. 05:46
in any case, REPR: uninstantiable is almost always an internal error of some kind, unless you're playing games with indirect invocation; file a bug 05:47
Herby_ geekosaur: thanks, definitely not intentionally playing any games 05:53
i'm a novice with github and bugs. what repo should i submit this to?
and very likely its not a bug, i'm likely stepping on my toes somewhere
geekosaur github.com/rakudo/rakudo/issues
no, if you're getting "REPR: uninstantiable", either you've done &{expression producing nonsense} or there's a compiler or setting bug 05:54
Herby_ ok i'll get a bug submitted, thanks 05:56
geekosaur in fact I thik uninstantiable there implies an nqp type
which is a "shouldn't happen" unless you're poking nqp
Herby_ basically I had: lib/minigrep.pm6: unit module minigrep; sub minigrep() {put "test"} is export 05:57
then bin/main: use minigrep; sub MAIN($a, $b) { minigrep(); } 05:58
geekosaur right, that should never produce that
Herby_ k
geekosaur so you collided with an internal name that it's not supposed to be possible to collide with
06:15 domidumont joined, p6bannerbot sets mode: +v domidumont 06:21 jmerelo joined 06:22 p6bannerbot sets mode: +v jmerelo 06:39 aborazmeh left 06:40 Nasohk_ joined 06:41 p6bannerbot sets mode: +v Nasohk_ 06:43 fake_space_whale left
Geth doc: 7c0bd57558 | (JJ Merelo)++ | doc/Type/IO/Handle.pod6
Some rewriting, reformatting and reflow
06:53
doc: 1b90fc6e4e | (JJ Merelo)++ | doc/Type/Str.pod6
Some reformatting
synopsebot Link: doc.perl6.org/type/IO::Handle
Link: doc.perl6.org/type/Str
doc: 249b2f7ee8 | (JJ Merelo)++ | assets/sass/style.scss
Changes style for head3, closes #2324
doc: a84e8023e0 | (JJ Merelo)++ | doc/Type/Str.pod6
Reformats Str to use head3
06:55
synopsebot Link: doc.perl6.org/type/Str
07:00 lizmat joined, p6bannerbot sets mode: +v lizmat 07:11 Nasohk_ left 07:16 hamhu3 left 07:18 hamhu3 joined 07:19 p6bannerbot sets mode: +v hamhu3 07:22 kurahaupo left 07:23 kurahaupo joined, p6bannerbot sets mode: +v kurahaupo 07:32 cognominal-p6 left 07:41 NoodleDoodle26 joined, NoodleDoodle26 left
buggable New CPAN upload: PDF-Font-Loader-0.2.3.tar.gz by WARRINGD modules.perl6.org/dist/PDF::Font::L...n:WARRINGD 07:45
07:52 jmerelo left 07:59 kurahaupo left, kurahaupo joined 08:00 p6bannerbot sets mode: +v kurahaupo 08:01 molaf joined 08:02 p6bannerbot sets mode: +v molaf, sena_kun joined 08:03 p6bannerbot sets mode: +v sena_kun 08:15 Ven`` joined 08:16 p6bannerbot sets mode: +v Ven`` 08:19 aborazmeh joined, aborazmeh left, aborazmeh joined, p6bannerbot sets mode: +v aborazmeh 08:20 p6bannerbot sets mode: +v aborazmeh, tison left 08:30 kerframil left 08:31 |oLa| joined 08:32 p6bannerbot sets mode: +v |oLa| 08:59 rzl joined, p6bannerbot sets mode: +v rzl 09:03 lizmat left 09:07 kremlin26 joined, kremlin26 left 09:08 aborazmeh left 09:19 domidumont left 09:23 lizmat joined, p6bannerbot sets mode: +v lizmat 09:31 donkeycamel joined, p6bannerbot sets mode: +v donkeycamel, donkeycamel left 09:42 |oLa| left 09:44 faraco joined, p6bannerbot sets mode: +v faraco
faraco hi! what is the point of using 'use v6.x'? Is it the same idea like Perl5's 'use v5.10' and alike to ensure that source code backward compatibility? 09:45
09:51 grondilu joined, p6bannerbot sets mode: +v grondilu
lizmat faraco: yes 09:51
faraco lizmat: I see. Thank you for enlightening me. 09:53
lizmat you're welcome :-)
09:56 faraco is now known as dazlok 09:57 molaf left
moritz also, with "use v6" you get a much better error message when you accidentally run the code through p5 09:58
which has happened several times to me
dazlok moritz: noted :) 10:00
10:10 tison joined, p6bannerbot sets mode: +v tison 10:27 ufobat joined 10:28 p6bannerbot sets mode: +v ufobat 10:39 djhworld17 joined, djhworld17 left 10:42 Zoffix joined, p6bannerbot sets mode: +v Zoffix
Zoffix dazlok: one major difference from Perl's tho is without `use v6.X` we'll default to latest available version the compiler can support. 10:44
10:45 titsuki left
Zoffix dazlok: also, I believe in Perl `use v5…` is lexical, whereas in Perl 6 it's per-comp-unit 10:47
(at least for now)
10:48 Zoffix left 11:19 leont joined 11:20 p6bannerbot sets mode: +v leont
buggable New CPAN upload: JSON-Fast-0.9.12.tar.gz by TIMOTIMO modules.perl6.org/dist/JSON::Fast:cpan:TIMOTIMO 11:25
timotimo ^- with big thanks to lizmat 11:27
lizmat this brings parsing of projects.json to .19 down from .45 11:33
at least on my machine :-) 11:34
11:38 tison left 11:48 Nasohk joined 11:49 p6bannerbot sets mode: +v Nasohk 11:54 zerick9 joined, zerick9 left 11:58 cpage left 11:59 cpage joined 12:00 p6bannerbot sets mode: +v cpage 12:04 Nasohk left
moritz timotimo++ lizmat++ 12:04
timotimo lizmat++ 12:05
12:13 nightfrog joined, epony left 12:14 p6bannerbot sets mode: +v nightfrog, Ven`` left 12:21 Ven`` joined 12:22 p6bannerbot sets mode: +v Ven`` 12:27 Ven`` left 12:31 pmurias joined, p6bannerbot sets mode: +v pmurias 12:35 Ven`` joined, p6bannerbot sets mode: +v Ven``
buggable New CPAN upload: IRC-Client-Plugin-UrlTitle-1.1.3.tar.gz by TYIL modules.perl6.org/dist/IRC::Client:...:cpan:TYIL 12:45
12:58 kiwi_50 joined, p6bannerbot sets mode: +v kiwi_50 12:59 kiwi_50 left 13:00 kri521 joined, kri521 left 13:04 epony joined, p6bannerbot sets mode: +v epony 13:29 dazlok left 13:36 Ven`` left
rindolf hi all 13:37
AlexDaniel hello 13:39
El_Che, dogbert17: 2018.09 is out \o/
dogbert17 AlexDaniel++ 13:41
El_Che AlexDaniel++ 13:44
AlexDaniel: let's take it for a spin before packaging: travis-ci.org/nxadm/rakudo-pkg/builds/432137815 13:48
AlexDaniel El_Che: I did test it with canary before the release, fwiw
El_Che I need to add a few new distro releases
but it should be ok
13:50 pmurias left, domidumont joined, p6bannerbot sets mode: +v domidumont 14:02 pmurias joined, p6bannerbot sets mode: +v pmurias 14:03 dElAvA21 joined, dElAvA21 left, pmurias left, thundergnat joined 14:04 dmaestro joined, p6bannerbot sets mode: +v dmaestro, p6bannerbot sets mode: +v thundergnat 14:08 Ven`` joined 14:09 p6bannerbot sets mode: +v Ven`` 14:12 Zoffix joined, p6bannerbot sets mode: +v Zoffix
thundergnat m say 5 / 2**30 / -2 # R#2280 14:13
synopsebot R#2280 [open]: github.com/rakudo/rakudo/issues/2280 [math][regression] Core dump when dividing some Rats with denominator 2**30 by -2
thundergnat m: say 5 / 2**30 / -2 # R#2280
camelia (signal FPE)
Zoffix samcv++ AlexDaniel++ # release
14:13 Zoffix left
thundergnat I rather suspect this is related to R#2157 and NQP github.com/perl6/nqp/issues/363 but haven't been successful in tracking it down. 14:13
synopsebot R#2157 [closed]: github.com/rakudo/rakudo/issues/2157 [math][regression][⚠ blocker ⚠] Wrong math in Int + Int
14:15 brent80_plow28 joined, brent80_plow28 left
thundergnat AlexDaniel++ and samcv++ indeed. 14:15
14:15 rfold joined 14:16 p6bannerbot sets mode: +v rfold 14:19 pmurias joined, p6bannerbot sets mode: +v pmurias
El_Che AlexDaniel: I suspect a flipper: travis-ci.org/nxadm/rakudo-pkg/jobs/432137829 14:20
AlexDaniel: put the error here: gist.github.com/nxadm/311b8cabefae...1d0df364c8 (rerunning the build, so it will disappear) 14:23
14:32 rfold left 14:33 pmurias left 14:34 pmurias joined, p6bannerbot sets mode: +v pmurias 14:36 pmurias left
AlexDaniel yeah 14:38
El_Che rerunning the build passes all tests 14:39
14:39 dimalinux15 joined, dimalinux15 left 14:43 dmaestro left 14:50 dmaestro joined, p6bannerbot sets mode: +v dmaestro, nightfrog left 14:51 nightfrog joined 14:52 p6bannerbot sets mode: +v nightfrog, rzl left
Geth doc: threadless-screw++ created pull request #2325:
Closes #2321
14:58
14:59 RuthlessDust joined, p6bannerbot sets mode: +v RuthlessDust
RuthlessDust Hello 14:59
14:59 RuthlessDust left 15:01 pmurias joined, p6bannerbot sets mode: +v pmurias 15:02 jmerelo joined 15:03 p6bannerbot sets mode: +v jmerelo 15:08 nightfrog left 15:13 erana_ joined 15:14 p6bannerbot sets mode: +v erana_
Herby_ o/ 15:14
15:14 Zoffix joined, p6bannerbot sets mode: +v Zoffix
Zoffix thundergnat: you know about bisect robot? 15:15
thundergnat: it points to a version bump commit in rakudo as the cause of that bug, so it should be one of these MVM commits: github.com/MoarVM/MoarVM/compare/2...-g0b81969d 15:16
thundergnat Zoffix: yes. at least I know of bisectable in IRC. Is there an offline version?
15:16 x0908d3b23 joined, x0908d3b23 left
El_Che AlexDaniel: github.com/nxadm/rakudo-pkg/releas...g/v2018.09 15:16
Zoffix thundergnat: the one on IRC is the only one I know of 15:17
El_Che weekly: new Linux packages released for 2018.09: github.com/nxadm/rakudo-pkg/releas...g/v2018.09
notable6 El_Che, Noted!
geekosaur it should do /msg / /query though 15:18
Zoffix I think that's disabled, but there's #zofbot and #whateverable channels where you can spam all you want
m: use nqp; dd nqp::div_I(nqp::div_I(5, 1073741824, Int), -2, Int) 15:20
camelia 0
jmerelo AlexDaniel++
thundergnat I've eyeballed every one of those commits and haven't figured out which may the culprit. They all seem pretty far removed from mathy operations :/ 15:21
*be
geekosaur sourceware.org/gdb/wiki/GDB%20Front%20Ends notably github.com/cs01/gdbgui
er
mischan
15:23 Nasohk joined, pmurias left 15:24 p6bannerbot sets mode: +v Nasohk
Zoffix tries golfin' it 15:24
15:24 shootbird29 joined, shootbird29 left
Zoffix insting 15:27
m: use nqp; dd nqp::div_I(1073741824*-2, -1, Int) 15:28
camelia (signal FPE)
Zoffix But if you calculate `1073741824*-2` and use that as the value, then no issue
timotimo do we just have to make sure to use non-signalling floating point arithmetic or something?
Zoffix prolly 15:32
15:34 Miklo3 joined, Miklo3 left, itaipu joined 15:35 p6bannerbot sets mode: +v itaipu
dogbert17 suspects the following commit: github.com/MoarVM/MoarVM/commit/d0...552aa48426 15:36
Zoffix suspects that commit merely revealed the real bug 15:37
15:37 Nasohk left
dogbert17 suspects that Zoffix might be correct :) 15:38
Zoffix hmm 15:39
Can a MVMP6bigintBody just be cast to (long long)?
uh, it's a pointer actually 15:40
dogbert17 Zoffix: reverting to the old behavior reveals that instead of FPE we get -0.00000000233 15:41
Zoffix nm, I was looking to wrong line
15:44 nightfrog joined, p6bannerbot sets mode: +v nightfrog
Zoffix I'm failing to find the definition of MVM_bigint_mul 15:49
eh, fuggit. Should be doing something else right now 15:50
El_Che AlexDaniel: looking forward to the new rakudo. I moved my zfs snapshotting and backuping scripts to perl6, so fingers crossed! :) 15:52
Zoffix Commented what I could find on github.com/rakudo/rakudo/issues/22...-423826278 15:54
15:54 Zoffix left
AlexDaniel thundergnat: there's no offline version, but there's this as a module: github.com/perl6/whateverable/blob...ection.pm6 15:54
so it should be possible to build a tool like that
though there's some logic in the bot itself also: github.com/perl6/whateverable/blob...ectable.p6 15:55
El_Che: I actually can't wait for 2018.10 :D 15:58
lizmat AlexDaniel: are you actually going forward with moving JSON::Fast into R:I ? 16:00
16:01 rfold joined
El_Che AlexDaniel: I am happy nowadays that I can add the repo's to my home server and containers at work and easily get the latest release 16:01
less hassle
16:01 p6bannerbot sets mode: +v rfold 16:02 hamhu3_ joined
AlexDaniel lizmat: that's the thing, nobody is working on it even though it sounds like somebody does 16:02
:)
lizmat he
16:02 p6bannerbot sets mode: +v hamhu3_
lizmat well, I had some more optimization ideas: so perhaps we should do those before incorporating it 16:02
16:03 fake_space_whale joined, Insmell4 joined, Insmell4 left, p6bannerbot sets mode: +v fake_space_whale
jmerelo lizmat: please do that 16:04
16:05 hamhu3 left 16:15 pmurias joined, p6bannerbot sets mode: +v pmurias 16:17 Ven`` left 16:22 Ven`` joined
rindolf hi all, sup? 16:22
El_Che rindolf: new release
16:23 p6bannerbot sets mode: +v Ven``
rindolf El_Che: ah, nice 16:23
16:40 robertle joined 16:41 p6bannerbot sets mode: +v robertle 16:43 Ven`` left
jmerelo This article on increasing Rust's reach could be interesting rahul-thakoor.github.io/my-experie...each-2018/ 16:44
16:47 Herby_ left
Geth doc: ef3187a970 | Alexander++ (committed using GitHub Web editor) | doc/Type/Signature.pod6
Closes #2321 (#2325)

  * Closes #2321
  * Correction of indefinite/definite typo in earlier commit
16:55
synopsebot Link: doc.perl6.org/type/Signature
17:06 molaf joined 17:07 p6bannerbot sets mode: +v molaf 17:12 rfold left 17:14 kiwi_74 joined, p6bannerbot sets mode: +v kiwi_74
kiwi_74 m: say 1 17:14
camelia 1
17:15 kiwi_74 left 17:19 fake_space_whale left 17:26 MasterDuke joined, p6bannerbot sets mode: +v MasterDuke, MasterDuke left, MasterDuke joined, herbert.freenode.net sets mode: +v MasterDuke, p6bannerbot sets mode: +v MasterDuke
pmurias MasterDuke: do you think it would make sense to use the Google Java Style Guide (google.github.io/styleguide/javaguide.html) for the truffle backend code? 17:30
17:31 fake_space_whale joined 17:32 p6bannerbot sets mode: +v fake_space_whale
pmurias MasterDuke: the biggest difference would be it uses 2 spaces of indentation 17:32
MasterDuke: I don't really care about all the exact stylistic particulars, just want something that's automaticably checkable/has a formater 17:33
MasterDuke pmurias: exactly how i feel 17:34
though i wouldn't choose 2 space indent if it was up to me
17:38 satori_ joined
pmurias me neither ;) 17:38
17:39 p6bannerbot sets mode: +v satori_, satori_ is now known as Esca
kurahaupo waves vaguely in the direction of gofmt 17:43
leont generally doesn't like languages that are simple enough to automatically format 17:46
17:47 rfold joined
leont "When in java land, do as the javans do" would make sense though 17:47
17:47 lichtkind joined 17:48 p6bannerbot sets mode: +v rfold, p6bannerbot sets mode: +v lichtkind
tyil weekly: www.reddit.com/r/ProgrammingLangua...o/e6i113i/ 17:52
notable6 tyil, Noted!
pmurias leont: what languages are complex enough that they can't? 17:55
leont I doubt a formatter would do a good job of perl6
In my experience, clang-format can't handle C++ all that well either (unless you stay away from features like closures) 17:56
Actually, I think closures is where it usually goes wrong
pmurias leont: I hope Perl 6 ends up with a good format 17:57
leont Mainly because IME you often can't judge how something should be folded by simple rules as "always on a new line" or "always on the same line"
pmurias perltidy works well in Perl 6 17:58
* Perl 5
17:59 Bucciarati left
pmurias spending time (re)formatting code instead of having a tool do it always feel super lame/boring/unfun to me :/ 18:00
18:06 AlexDaniel left 18:07 AlexDaniel joined, p6bannerbot sets mode: +v AlexDaniel
jmerelo squashable6: status 18:07
squashable6 jmerelo, Next SQUASHathon in 11 days and ≈15 hours (2018-10-06 UTC-12⌁UTC+14). See github.com/rakudo/rakudo/wiki/Mont...Squash-Day
jmerelo AlexDaniel: do we know which modules are going to need help? 18:08
leont IME perltidy also struggles with closures. 18:09
Though perhaps that just was my configuration, it's not like I've tried tinkering with that in years 18:10
18:10 Bucciarati joined 18:11 p6bannerbot sets mode: +v Bucciarati 18:32 sena_kun left 18:44 behelit joined, behelit left 18:47 jmerelo left, xinming left, xinming joined 18:48 p6bannerbot sets mode: +v xinming 18:53 pecastro joined, p6bannerbot sets mode: +v pecastro 19:00 Any14Coffee joined, p6bannerbot sets mode: +v Any14Coffee
timotimo hello Any14Coffee 19:01
there should be a couple of people awake right now
19:01 tobh16 joined, tobh16 left
Any14Coffee Hey, wondering if I can ask a silly question? Just breaking my gums in Perl and little stuck 19:01
timotimo should be fine 19:02
if it's about perl 5, though, we may tell you where to ask instead :)
this is the channel about perl 6 in particular
Any14Coffee So I'm using a regex to match the output of a ping on Linux and recording the min,avg and max response times 19:03
However there is a part of a code I'm using I'm struggling to understand
Looks like this
timotimo oh
hold on a second
IRC is very bad at pasting large chunks of text or code 19:04
may i ask you to use some manner of pasting site, like nopaste or gist on github or whatever you find, really
Any14Coffee I don't need all the code just like 10 chars
timotimo oh, 10 chars is fine, 10 lines would be bad :)
go ahead, then
Any14Coffee Haha oh yeah!
If ($data[10] =~ 19:05
El_Che that looks like perl 5
19:05 psychoslave joined
Any14Coffee What is the bit in square brackets doing? 19:05
timotimo that's fine enough to answer
El_Che Any14Coffee: it's an index of the array
lizmat the eleventh element of array @data 19:06
timotimo yeah, you'd have multiple entries in @data, and $data[10] will give you the 11th entry (the first one is numbered 0)
19:06 p6bannerbot sets mode: +v psychoslave
AlexDaniel .tell jmerelo yeah, thanks for poking me. It's going to be an opt-in thingie, so module authors who are interested should set up a hook. I was planning to wait for hacktoberfest news first before setting it up, but there's no info yet. I'll check back tomorrow or in two days or so. 19:06
yoleaux AlexDaniel: I'll pass your message to jmerelo.
19:07 domidumont left
AlexDaniel I guess those participating in this squashathon will receive both a T-shirt from digitalocean and a plush camelia from lizmat 19:07
lizmat AlexDaniel: I thought only the winner ?
AlexDaniel oh yes, the winner I mean
Any14Coffee Ah ok, that makes sense and I'd read about them just wasnt sure, thank you
lizmat *phew*
AlexDaniel lizmat: picking the wrong words lately… thanks for correcting :) 19:08
though digitalocean sends a t-shirt to almost everyone, as long as you have at least 3 PRs I think?
El_Che so, If I understand correctly, everyone that joins the channel will get a butterfly with a personalized note from liz?
:)
lizmat eh, no ? 19:09
AlexDaniel lizmat: he's joking :)
lizmat I know
and I know who's making the joke :-)
I will talk to him at the next Brussels.pm meeting, or FOSDEM, whichever comes first 19:10
19:10 cheese_cake__ joined
AlexDaniel El_Che: by the way, whoops, assumed gender. 19:10
El_Che: sorry 19:11
19:11 p6bannerbot sets mode: +v cheese_cake__
lizmat AlexDaniel: I know the gender assumption to be correct :-) 19:11
AlexDaniel whew :)
El_Che I not sensitive to whatever gender you assume I am, I will correct you in a sutle way if wrong :) 19:12
cheese_cake__ hello 19:13
im new to Perl 6 and IRC 19:14
lizmat cheese_cake__: hello, welcome! 19:15
El_Che Double welcome!
cheese_cake__ hi :)
i was directed here from the perl6 subreddit
AlexDaniel nice 19:16
cheese_cake__ i've written a hello world program in perl 6 but that's about it so far 19:17
El_Che cheese_cake__: it's a fun journey 19:18
timotimo o/ 19:19
19:20 MasterDuke left
cheese_cake__ so it seems, unfortunately I can't seem to find much information on it. All of my results are for perl 5. 19:21
19:21 lichtkind left, erana_ left 19:22 erana_ joined
El_Che cheese_cake__: that's true. The naming results in "Google trouble". In the beginning, though, doc.perl6.org is your friend 19:22
cheese_cake__ great
19:22 p6bannerbot sets mode: +v erana_
cheese_cake__ im trying to use something like python's input() function in perl 6, i've found slurp, but i'd like it to wait for the user to press enter, then return a value 19:23
maybe that's just not how perl 6 works though
timotimo you'll be interested in "prompt", then
El_Che "prompt"
timotimo slurp will slurp up all input that is available 19:24
so to finish it up you'd have to ctrl-d or otherwise EOF the input stream
cheese_cake__ is there a function in the standard library to stop reading at a \n? 19:25
El_Che docs.perl6.org/routine/prompt
timotimo get will do that, too
prompt is pretty much "output what you pass, then get()"
cheese_cake__ i see 19:26
thanks!
oh, and the docs said that the difference between say and put is one calls gist on the string, what does that actaully do. I read the gist doc page and couldnt figure out what it meant
El_Che cheese_cake__: there are repl bots in this channel, when you need some feedback 19:27
m: say 'Hello world!'
camelia Hello world!
timotimo the difference is not for strings, but for bigger things
if you have a big list, gist will only print the first few entries
cheese_cake__ m: my thing = "hi"; put $thing;
camelia 5===SORRY!5=== Error while compiling <tmp>
Malformed my (did you mean to declare a sigilless \thing or $thing?)
at <tmp>:1
------> 3my thing7⏏5 = "hi"; put $thing;
El_Che good error catching for free :) 19:28
19:32 cheese_cake__ left, cheese_cake__ joined 19:33 lichtkind joined, p6bannerbot sets mode: +v cheese_cake__
cheese_cake__ is the bannerbot written in perl 19:33
19:34 p6bannerbot sets mode: +v lichtkind, nightfrog left
timotimo i think it is 19:34
19:35 nightfrog joined 19:36 p6bannerbot sets mode: +v nightfrog
El_Che cheese_cake__: in perl 6 by zoffix 19:36
AlexDaniel github.com/zoffixznet/perl6-banbot
cheese_cake__: actually, it seems to be indexed already 19:38
19:38 cheese_cake__ left
AlexDaniel cheese_cake__: if you type “input” into the search field on docs.perl6.org/ it already says “input (Python)” 19:38
19:38 cheese_cake__ joined
AlexDaniel which links to `prompt` :) 19:38
I was about to create a ticket for that but I'm glad somebody did it already
19:39 p6bannerbot sets mode: +v cheese_cake__
cheese_cake__ how similar is perl to perl 6 19:39
El_Che cheese_cake__: difficult question. Way bigger difference than between python 2 and 3. Less than between say C and Go 19:41
19:41 psychoslave left
El_Che I see it more as a cleanup up syntax and a big modern standard library 19:41
^-- that is of course just an opinion. 19:42
there are some people around with a less subjective take :)
cheese_cake__ i see :) 19:43
are there any good small web frameworks for perl 6? I've only seen mojolicious but i'd rather not delve into the perl5 in perl6 realm just yet
pmurias cheese_cake__: it's more of a sequel and not a new version, so it feels like kind of the same thing but everything is a bit different
El_Che mojo is very nice indeed. In perl 6 we have Cro
cro.services/ 19:44
cheese_cake__ does anyone have any experience with this github.com/Bailador/Bailador
19:45 leepa joined
cheese_cake__ i found it looked interesting 19:45
19:45 leepa left
cheese_cake__ and what is the logic being using eq instead of == for string comparison? 19:50
pmurias cheese_cake__: so that different operators are used for string and numeric comparisons 19:52
19:52 robertle left
lizmat m: say "foo" == 42 19:52
camelia Cannot convert string to number: base-10 number must begin with valid digits or '.' in '3⏏5foo' (indicated by ⏏)
in block <unit> at <tmp> line 1
19:54 mmattice1 joined, mmattice1 left
pmurias cheese_cake__: there is in general a distinction between numeric and string operators 19:56
cheese_cake__: that allows coercion to dwim more while it being more clear what is happening
cheese_cake__: other example a ~ operator does string concatenation while + does numeric addition 19:57
19:59 Any14Coffee left
ufobat cheese_cake__, me :p 20:00
cheese_cake__, do you know cro? 20:01
cheese_cake__ nope 20:07
ufobat, i dont even know perl 6 20:08
ufobat bailador is more perl5'ish, if youd like to say so. its more like dancer/mojo, whereas cro is a more modern aproach 20:11
20:14 rfold left
cheese_cake__ what do you mean by perl5ish? 20:14
pmurias cheese_cake__: it's a more direct port of a Perl 5 module 20:19
cheese_cake__: Cro seems to have momentum behind it at this point
20:25 [particle] left
cheese_cake__ i see 20:28
20:40 releasable6 left, reportable6 left, releasable6 joined, reportable6 joined, ChanServ sets mode: +v reportable6 20:41 p6bannerbot sets mode: +v releasable6, p6bannerbot sets mode: +v reportable6 20:42 fake_space_whale left, pmurias left 20:43 fake_space_whale joined, p6bannerbot sets mode: +v fake_space_whale 20:44 sotona joined 20:45 p6bannerbot sets mode: +v sotona, [particle] joined
cheese_cake__ hello people 20:45
20:46 p6bannerbot sets mode: +v [particle], wolfiR20 joined 20:47 wolfiR20 left 20:49 rindolf left
AlexDaniel hello again! :) 20:50
xinming How do we return an Empty list?
I found return Empty worked.
lizmat m: dd Empty
camelia Empty
xinming Is that the only way?
lizmat m: dd () 20:51
camelia ()
lizmat m: dd ().WHAT; dd ().elems
camelia List
0
xinming m: dd Empty.WHAT
camelia Slip
xinming So, this is the only way 20:52
m: dd ().slip
camelia No such method 'slip' for invocant of type 'List'. Did you mean any of these?
Slip
flip
sin
skip

in block <unit> at <tmp> line 1
xinming m: dd ().Slip;
camelia slip()
lizmat m: dd Empty.WHAT
camelia Slip
xinming m: dd (().Slip);
camelia slip()
xinming 'Empty' makes me confusing.
lizmat xinming: () is an empty lust
*list 20:53
xinming What about Empty?
20:53 cheese_cake__ left
lizmat Empty is an empty Slip 20:53
xinming m: dd [].slip;
camelia No such method 'slip' for invocant of type 'Array'. Did you mean any of these?
Slip
flip
sin
skip

in block <unit> at <tmp> line 1
xinming m: dd [].Slip;
camelia slip()
lizmat m: dd (1,2,3,Empty,4,5,6)
camelia (1, 2, 3, 4, 5, 6)
lizmat m: dd (1,2,3,(),4,5,6)
camelia (1, 2, 3, (), 4, 5, 6)
xinming I understand that.
How is Empty constructgd?
m: dd Slip.new 20:54
camelia slip()
xinming dd: Empty
m: dd Empty
camelia Empty
xinming is Empty an empty class? Something like
lizmat m: dd Slip.new # basically how Empty gets created
camelia slip()
lizmat m: my constant Empty = Slip.new
camelia ( no output )
lizmat is basically how it is created (but using nqp:: ops actually) 20:55
xinming m: class TEmpty { method (::?CLASS:U:} { ().slip } }; dd (1,2,TEmpty,3,4);
camelia 5===SORRY!5=== Error while compiling <tmp>
Malformed parameter
at <tmp>:1
------> 3class TEmpty { method (::?CLASS:U:7⏏5} { ().slip } }; dd (1,2,TEmpty,3,4);
xinming m: class TEmpty { method (::?CLASS:U:) { ().slip } }; dd (1,2,TEmpty,3,4);
camelia (1, 2, TEmpty, 3, 4)
xinming m: class TEmpty { method List (::?CLASS:U:) { ().slip } }; dd (1,2,TEmpty,3,4); 20:56
camelia (1, 2, TEmpty, 3, 4)
xinming m: class TEmpty { method Slip (::?CLASS:U:) { ().slip } }; dd (1,2,TEmpty,3,4);
camelia (1, 2, TEmpty, 3, 4)
xinming I'll try to find it
:-)
20:56 sotona left
lizmat m: class TEmpty { method Slip (::?CLASS:U:) { ().slip } }; dd (1,2,TEmpty.Slip,3,4); 20:56
camelia No such method 'slip' for invocant of type 'List'. Did you mean any of these?
Slip
flip
sin
skip

in method Slip at <tmp> line 1
in block <unit> at <tmp> line 1
lizmat m: class TEmpty { method List (::?CLASS:U:) { ().Slip } }; dd (1,2,TEmpty.List,3,4); 20:57
camelia (1, 2, 3, 4)
20:57 charcol joined, charcol left
xinming m: sub TEmpty { ().Slip }; dd (1,2, TEmpty, 3,4); 20:57
camelia (1, 2, 3, 4)
xinming So, This is what real Empty is
Thanks 20:58
lizmat you're welcome :-)
xinming m: dd (1,2, Slip.new); 21:00
camelia (1, 2)
xinming lizmat: I missed the message that you say my constant Empty = Slip.new; that's better one than sub Empty ... 21:01
lizmat no worries :-) 21:02
21:02 hamhu3 joined
xinming Another question, how do we force the { } to be hash? 21:02
we can have +{ .. } in perl5
21:03 p6bannerbot sets mode: +v hamhu3
lizmat not actually sure, perhaps better to use %( ) ? 21:03
m: say %( a => 42, b => 666 )
camelia {a => 42, b => 666}
xinming what is the difference between %{ } version then?
m: (%(:a)).perl.say; (%{:a}).perl.say; 21:04
camelia {:a}
{:a}
xinming different *from*
21:05 hamhu3_ left
lizmat guess there isn't ... Zoffix might know better 21:05
geekosaur I don't think there is one, both woudl just be grouping
in p5, parens woudl be an error and {} was used basically as a parser hack 21:06
xinming Ok
SO, %() and %{} are the same in perl6.
geekosaur and at one point %{} in rakudo used to getyou a "this isn't perl 5" whine
xinming but now, it doesn't. :-)
geekosaur yes, there's beena move away from such 21:07
21:09 Zoffix joined, p6bannerbot sets mode: +v Zoffix
Zoffix xinming: %(:a) constructs a hash. %{} constructs a hash and then uses the .hash coercer on it. Because the latter is a curly, it's affected by the caveats that make it a block instead of a hash 21:10
m: (%(:a($_))).perl.say; (%{:a($_)}).perl.say;
camelia {:a(Any)}
Odd number of elements found where hash initializer expected:
Only saw: -> ;; $_? is raw { #`(Block|60298792) ... }
in block <unit> at <tmp> line 1
Zoffix (while the %() ain't affected)
xinming: for forcing, just use %() instead of {} 21:12
21:14 Zoffix left 21:16 sotona joined, p6bannerbot sets mode: +v sotona 21:20 cheese_cake__ joined, Sparklefairy7 joined, Sparklefairy7 left 21:21 p6bannerbot sets mode: +v cheese_cake__ 21:27 avar left, avar joined, avar left, avar joined, p6bannerbot sets mode: +v avar 21:28 p6bannerbot sets mode: +v avar, sotona left 21:29 SCHAPiE joined, p6bannerbot sets mode: +v SCHAPiE, lichtkind left, numasi3 joined, numasi3 left
xinming is zoffix come and go just for answering my question? :-) 21:32
geekosaur they do that
one of the bots may be a spy :p
cheese_cake__ :0 21:33
banne the spy
21:37 cheese_cake__ left 21:45 cognominal-p6 joined 21:46 p6bannerbot sets mode: +v cognominal-p6 21:49 pmurias joined, p6bannerbot sets mode: +v pmurias 21:50 xai1 joined, xai1 left 22:02 wbn left 22:03 wbn joined, p6bannerbot sets mode: +v wbn 22:08 pmurias left 22:12 cognominal-p6 left 22:13 cognominal-p6 joined, pmurias joined, p6bannerbot sets mode: +v pmurias 22:14 p6bannerbot sets mode: +v cognominal-p6 22:33 pmurias left 22:34 SCHAPiE left 22:42 graphene joined, SCHAPiE joined, p6bannerbot sets mode: +v SCHAPiE 22:43 p6bannerbot sets mode: +v graphene 22:44 vrurg joined 22:45 p6bannerbot sets mode: +v vrurg 22:49 cheese_cake__ joined 22:50 graphene left, cheese_cake__ left 22:51 cheese_cake__ joined, graphene joined 22:52 p6bannerbot sets mode: +v cheese_cake__, p6bannerbot sets mode: +v graphene
cheese_cake__ does anybody know if there is a library to register a program as a URI scheme handler on different platforms? 22:52
23:00 ufobat left
cheese_cake__ and perl6 is compiled, right? If so, is it possible to create byte/native code for distribution? 23:02
timotimo cheese_cake__: we don't have something convenient yet. for windows there's a module that will build an installer, but it'll just install a complete perl6 + application in a specific folder 23:03
i'm not aware of something that creates, like, .desktop files and such
23:04 _kristian joined, p6bannerbot sets mode: +v _kristian
cheese_cake__ that's a shame 23:06
it's easy on linux, i just want a way to do it for windows, I don't have access to a windows machine 23:07
23:09 pecastro left 23:17 sotona joined, p6bannerbot sets mode: +v sotona 23:21 sotona left 23:26 cheese_cake__ left 23:27 cheese_cake__ joined 23:28 p6bannerbot sets mode: +v cheese_cake__
cheese_cake__ how can i read command line arguments? I know this should be simple but I cant find it on the docs 23:35
tobs cheese_cake__: there is a command-line args parser built into MAIN using signatures, see docs.perl6.org/language/functions#sub_MAIN 23:37
cheese_cake__ now that is nifty 23:42
timotimo it's extremely good, indeed 23:43
cheese_cake__ does anyoen know if this is the right format for a .desktop file to set myneatprogram:thing urls to launch my program? MimeType=x-scheme-handler/myneatprogram;
timotimo cheese_cake__: do you happen to remember what exactly you searched for so maybe we can make it easier to find?
cheese_cake__ 'perl6 read args', 'perl6 arg parser' 23:44
timotimo perhaps the python-to-perl6 document ought to be findable with "argparse" and "parse args" 23:45
and "optparse", too
cheese_cake__ yes, i looked at that, ctrl-f arg didnt bring up any results 23:46
timotimo aye
it's not in there at the moment
cheese_cake__ yeah, that would be useful 23:47
are you a linux user?
timotimo i am
are you perhaps interested in contributing that little bit to the docs? :)
cheese_cake__ i'd love to!
timotimo way cool 23:48
cheese_cake__ is there a github or some other git hosting platform you're using?
timotimo the docs page at the very bottom has the links
cheese_cake__ ahh i see
what is the HTML built from? 23:49
timotimo it's pod6, a partial rethink of perl's "plain old documentation" format
github.com/perl6/doc/blob/master/d...shell.pod6 23:50
it should be fine to just cargocult the syntax and when you make the github pull request, travis-ci should build it for you and explode if there's something wrong 23:51
and then (or earlier) you can just ask for advice, too :)
cheese_cake__ thanks :)
timotimo \o/
cheese_cake__ forking it
what desktop or window manager do you use if you dont mind me asking? I've been stuck on xfce for ages, dont know what people use now 23:53
timotimo hah, i'm on xfce4 as well 23:54
i was on plasma for a bit in between, but something annoyed me about it
i went through many phases
cheese_cake__ plasma is a bit like gnome except I find it unpleasant to use 23:55
it feels like windows 8 trying to be linux-y
timotimo surely everyone has had or will have a "tiling window manager" phase or two in their life
i had at least dwm, xmonad, and i3
cheese_cake__ haha yeah I used i3-gaps for a couple months
AlexDaniel oh please not the second one
I still haven't learned to use i3 properly
cheese_cake__ i3 isnt that hard?
timotimo you're not a fan of xmonad, eh? 23:56
AlexDaniel well yes except that I don't use tabs, or containers, or anything
all I know is “move this thing to the right” and “move this thing to the bottom”
and with that I can create any configuration, really :)
except when I need to move the whole workspace to another window, or something like that
timotimo all that matters is that you find it pleasant and comfortable to use 23:57
AlexDaniel that's when you have to do finger noodles and hit a hundred of keys at the same time because… no this shortcut renames the workspace, no this one does something else…
cheese_cake__ I liked i3 a lot, but i went back to xfce just cause I could bind a lot of the same stuff, but I could mess with it really quickly, no need for rewriting my 200 line config
zef is taking quite a while to install these deps 23:58
Esca i use xfce for misc settings, panel and convenience but swapped xfwm for i3
timotimo just recently i read a little blog post about using xfce with i3
cheese_cake__ how does that work?
AlexDaniel timotimo: definitely more comfortable than non-tiling, but it'd better start reading my mind…
timotimo mostly just "don't use xfce-desktop or xfwm" 23:59
AlexDaniel cheese_cake__: oh yeah we're working on making zef faster
cheese_cake__ great
how many dependencies can the docs have??