Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2016-10-07

Perl 6 | Reference Documentation | Rakudo

| Channels | #perl6 index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:00 gfldex no, because phasers are handlers for control exceptions and exceptions are local to a thread
00:00 gfldex unless you produce a race condition yourself, your code is fine
00:00 seatek well I would happily do that
00:00 gfldex don't share data between threads directly, use a Channel
00:04 seatek well, this explains CATCH's weirdness
00:04 cdg joined #perl6
00:04 seatek what a great way to do it
00:12 pierre_ joined #perl6
00:12 seatek gfldex, docs there don't talk much about COMPOSE. Is the COMPOSE defined in the class then? I makes me wonder if it happens before or after the checking for attributes and methods happen.
00:14 gfldex m: class C { COMPOSE { say 'class' } }; role R { COMPOSE { say 'role' } }; my C $c does R .=new;
00:14 camelia rakudo-moar 605f27: OUTPUT«Cannot make a Scalar+{R} object using .new␤  in block <unit> at <tmp> line 1␤␤»
00:14 gfldex m: class C { COMPOSE { say 'class' } }; role R { COMPOSE { say 'role' } }; my $c = C.new does R;
00:14 camelia rakudo-moar 605f27: ( no output )
00:15 gfldex m: class C { COMPOSE { say 'class' } }; role R { COMPOSE { say 'role' } }; my $c = C.new ´but R;
00:15 camelia rakudo-moar 605f27: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Confused␤at <tmp>:1␤------> 3 COMPOSE { say 'role' } }; my $c = C.new7⏏5 ´but R;␤    expecting any of:␤        infix␤        infix stopper␤        postfix␤        statement end␤       …»
00:15 gfldex m: class C { COMPOSE { say 'class' } }; role R { COMPOSE { say 'role' } }; my $c = C.new but R;
00:15 camelia rakudo-moar 605f27: ( no output )
00:16 gfldex ENOSPEC too
00:17 gfldex src/Perl6/World.nqp:                    $/.CURSOR.NYI('EXPORTHOW::COMPOSE');
00:17 gfldex :)
00:18 dalek doc: 474742b | gfldex++ | doc/Language/phasers.pod6:
00:18 dalek doc: COMPOSE is NYI
00:18 dalek doc: review: https://github.com/perl6/doc/commit/474742b8f9
00:19 gfldex seatek: good that you asked
00:19 seatek hehe
00:23 pdcawley joined #perl6
00:31 BenGoldberg joined #perl6
00:34 * grondilu downloads the Google fonts discussed here:  https://www.google.com/get/noto/
00:34 gfldex sadly they don't say how many glyphs they got in those fonts
00:34 * grondilu meant to paste https://news.ycombinator.com/item?id=12654499
00:35 grondilu hopefully, lots.  Otherwise there'd be no point bragging about it.
00:35 timotimo https://twitter.com/FakeUnicode/status/784178115224272896
00:40 * geekosaur wonders which noto release they checked
00:40 geekosaur since my mint 17.2 has noto fonts already but it is an older one
00:40 gfldex it's missing tons of glyphs
00:43 geekosaur hm. "for all languages" aside from the emoji fonts I bet they let all the symbols / special characters / etc. go, possibly including things like presentation forms
00:44 gfldex is there a upper limit for glyphs in a single TTF?
00:46 geekosaur apparently limited to 65535 glyphs
00:46 grondilu ok, who can give me a one-liner that shows pretty unicode characters?
00:47 Actualeyes joined #perl6
00:51 dylanwh pretty like ?????
00:51 gfldex ¡ ¢ £ ¤ ¥ ¦ § ¨ ª ¬ ∧ ∨ ⊻ ∘ ← → ↑ ↓ ⇐ ⇒ ⇑ ⇓ — ‐ ‣ • ¯ ° ± ² ³ ´ µ π ℯ · ¸ ¹ º « » ” “ ' „ « » ⟨ ⟩ ¼ ½ ¾ …׿ π ≅ ⟨ ⟩ 「 」 ⌊ ⌋ ⸨ ⸩ ∞ ‽ …␣ π ≅ ⟨ ⟩ 「 」 ⌊ ⌋ ⸨ ⸩ ∞ ‽ ␣ α β γ     δ ε ζ η θ ι κ λ μ ν ξ ο π ρ ς τ υ φ χ ψ ω * ⁎ ⁑ ✱ ✉ ♥ ☠
00:51 gfldex ^^^ one line(er)
00:51 grondilu damn, lots of chars don't show up here.
00:52 grondilu s/chars/$whatever-name-is-more-appropriate/
00:52 MasterDuke joined #perl6
00:53 gfldex ¡ ¢ £ ¤ ¥ ¦ § ¨ ª ¬ ∧ ∨ ⊻ ∘ ← → ↑ ↓ ⇐ ⇒ ⇑ ⇓ — ‐ ‣ • ¯ ° ± ² ³ ´ µ π ℯ · ¸ ¹ º « » ” “ ' „ « » ⟨ ⟩ ¼ ½ ¾ … × ¿ π ≅ ⟨ ⟩ 「 」 ⌊ ⌋ ⸨ ⸩ ∞ ‽ ␣ α β γ δ ε ζ η θ ι κ λ μ ν ξ ο π     ρ ς τ υ φ χ ψ ω * ⁎ ⁑ ✱ ✉ ♥ ☠
00:53 gfldex without the double chars (bad copy pasta)
00:53 grondilu not much better
00:54 gfldex also, i'm missing some the NL and friends ones
00:54 geekosaur whole thing shows up here. (plenty of fonts; the main restriction here is that the mint 17 version of hexchat has older libs that don't handle non-BMP chars)
00:54 grondilu m: say (0..0xffff).chrs.comb(/<:Pc+:Pd+:Pe+:Pf+:Pi+:Po+:Ps+:Sc+:Sm+:So>/).roll(80).join
00:54 gfldex ¡ ¢ £ ¤ ¥ ¦ § ¨ ª ¬ ∧ ∨ ⊻ ∘ ← → ↑ ↓ ⇐ ⇒ ⇑ ⇓ — ‐ ‣ • ¯ ° ± ² ³ ´ µ π ℯ · ¸ ¹ º « » ” “ ' „ « » ⟨ ⟩ ¼ ½ ¾ … × ¿ π ≅ ⟨ ⟩ 「 」 ⌊ ⌋ ⸨ ⸩ ∞ ‽ ␣ α β γ δ ε ζ η θ ι κ λ μ ν ξ ο π     ρ ς τ υ φ χ ψ ω * ⁎ ⁑ ✱ ✉ ♥ ☠ ␀ ␛ ␤ ¶ ⏎ ␜ ␋ ␞
00:54 camelia rakudo-moar 605f27: OUTPUT«⧁⥝Ⓦ䷒≄︼⨤→⌿⍂⠶⧜≖╥⁁⭕⎛㍧⸨॰㎒⎾⇽؋᎓᐀▶❜㏃㈰⇑⼨⭥⦹᧤Ⓕ﹂⎟✚♊┢⌡⇻↜⠈⣁\␛▻⍿㎻﹂⡱㈝⡘䷈﹣㇔➻➰⥪」⠨㇌⨱⤏㌝㈙౿⨐―⾽▙⩐⩲⭺㋢፡᧯⟑␤»
00:56 gfldex i got FreeMono with Unifont, so I should be good for any char you can throw at me :)
00:56 cyphase joined #perl6
00:57 grondilu yeah, FreeMono seems to show much more.  It does not look pretty though.
00:58 gfldex don't forget to put a font into your modules! :->
00:58 grondilu not sure what you mean.
00:59 gfldex if you want ppl be able to read your code you better share the font you used
00:59 gfldex the line I posted is basically my pick on chars that I would use as operators
00:59 gfldex i'm very surprised Larry didn't insist on having ¬ ∧ ∨ ⊻
01:00 BenGoldberg If unicode is in use, then the code should be euqally readable with any font which supplies those characters.
01:00 grondilu I disagree.  Your attitude should be:  "here's my code, I'm using unicode with a decent font.  If you don't, that's your problem, not mine."
01:02 gfldex not to hard to scan the source for any used character and display them in one go to catch surprises in a team
01:02 grondilu I mean isn't the point of unicode precisely not to have to exchange particular fonts?
01:03 gfldex technically, yes
01:03 sufrostico joined #perl6
01:03 gfldex but how do we convince font designers to play ball?
01:04 gfldex you can combine fonts on windows, you just have to know where to dig in the registry
01:04 BenGoldberg Or convince IDEs to let the user to set a list of fallback fonts.
01:05 BenGoldberg Hexchat does that :)
01:16 mcmillhj joined #perl6
01:47 ilbot3 joined #perl6
01:47 Topic for #perl6 is now »ö« Welcome to Perl 6! | https://perl6.org/ | evalbot usage: 'p6: say 3;' or rakudo:,  or /msg camelia p6: ... | irclog: http://irc.perl6.org or http://colabti.org/irclogger/irclogger_logs/perl6 | UTF-8 is our friend!
01:54 pdcawley joined #perl6
02:02 rgrinberg joined #perl6
02:17 zacts joined #perl6
02:26 flexibeast joined #perl6
02:27 bisectable6 joined #perl6
02:46 pierre_ joined #perl6
02:54 noganex joined #perl6
02:56 pierre_ joined #perl6
03:05 Kaffe joined #perl6
03:30 pierre_ joined #perl6
03:31 pierre_ joined #perl6
03:32 pdcawley joined #perl6
03:32 BenGoldberg So if I've got two different versions of a piece of code, and their possible runtimes seem to overlap... should I just go with the simpler/clearer version?
03:32 BenGoldberg m: https://gist.github.com/BenGoldberg1/71a42d16c43e444ac10e0247d17c32b0
03:32 camelia rakudo-moar 605f27: OUTPUT«65533␤19729 digits starting with 20035299304068464649790723515602557504478254755697...␤Took 0.7049170 seconds.␤»
03:32 BenGoldberg m: https://gist.github.com/BenGoldberg1/71a42d16c43e444ac10e0247d17c32b0
03:32 camelia rakudo-moar 605f27: OUTPUT«65533␤19729 digits starting with 20035299304068464649790723515602557504478254755697...␤Took 0.69951877 seconds.␤»
03:32 BenGoldberg m: https://gist.github.com/BenGoldberg1/a2e8e52bf30639f596711dd6c3c7da11
03:33 BenGoldberg m: https://gist.github.com/BenGoldberg1/a2e8e52bf30639f596711dd6c3c7da11
03:33 camelia rakudo-moar 605f27: OUTPUT«65533␤19729 digits starting with 20035299304068464649790723515602557504478254755697...␤Took 0.697591 seconds.␤»
03:33 camelia rakudo-moar 605f27: OUTPUT«65533␤19729 digits starting with 20035299304068464649790723515602557504478254755697...␤Took 0.7032528 seconds.␤»
03:35 Actualeyes1 joined #perl6
03:38 Herby_ joined #perl6
03:38 Herby_ Evening, everyone!
03:47 resol joined #perl6
03:48 AlexDaniel m: say 10..100 .pick
03:48 camelia rakudo-moar 605f27: OUTPUT«10..100␤»
03:50 AlexDaniel m: say ^100 .pick
03:50 camelia rakudo-moar 605f27: OUTPUT«58␤»
03:50 AlexDaniel huggable: dunno
03:50 huggable AlexDaniel, ¯\_(ツ)_/¯
03:51 seatek m: say (10..100).pick
03:51 camelia rakudo-moar 605f27: OUTPUT«93␤»
03:52 AlexDaniel seatek: sure, but what if I don't want parens
03:52 seatek alexdaniel, my tactic is usually to just scream silently inside ;)
03:52 AlexDaniel it's not DWIM at all if 「^100 .pick」 works but 「10..100 .pick」 doesn't
03:52 TEttinger m: say <.pick> 10..100
03:52 camelia rakudo-moar 605f27: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Two terms in a row␤at <tmp>:1␤------> 3say <.pick>7⏏5 10..100␤    expecting any of:␤        infix␤        infix stopper␤        postfix␤        statement end␤        statement modifier…»
03:52 AlexDaniel but dunno, there's probably a good reason for it…
03:52 TEttinger just curious
03:53 AlexDaniel m: say pick 10..100
03:53 camelia rakudo-moar 605f27: OUTPUT«()␤»
03:53 TEttinger is there any way to move around the order like that?
03:53 AlexDaniel yes
03:53 AlexDaniel m: say pick 10..100:
03:53 camelia rakudo-moar 605f27: OUTPUT«14␤»
03:53 TEttinger m: say pick 10..100:
03:53 camelia rakudo-moar 605f27: OUTPUT«45␤»
03:53 Herby_ I'm reading a CSV and I have a date/time as a string: 8/19/16 4:00 PM
03:53 TEttinger huh
03:54 skids m: say pick 10..100:
03:54 camelia rakudo-moar 605f27: OUTPUT«57␤»
03:54 Herby_ how do I turn that into a datetime object so I can compare dates?
03:54 AlexDaniel sub form seems to be this:
03:54 AlexDaniel m: say pick 1, 10..100
03:54 camelia rakudo-moar 605f27: OUTPUT«(49)␤»
03:54 AlexDaniel m: say pick 1, 10..100
03:54 camelia rakudo-moar 605f27: OUTPUT«(15)␤»
03:54 seatek weird
03:54 AlexDaniel … completely different
03:56 AlexDaniel Herby_: maybe you should try something like https://github.com/sergot/datetime-parse
03:56 skids Really, though, unless the range endpoints are complex, avoiding parens here is just making things difficult.
03:57 AlexDaniel Herby_: but see http://modules.perl6.org/#q=date – there are many date related modules
03:57 Herby_ AlexDaniel: I'll take a look, thanks.  Didn't know if Perl 6 had a native way to handle it
03:57 AlexDaniel skids: I don't see any difficulties in 「10..100 .pick」
03:58 AlexDaniel except that it does not work
03:58 skids It's precedence.
03:58 AlexDaniel well, fine, I'll use 「pick 10..100:」
03:59 seatek hehe
03:59 skids Personally, I think (10..100).pick is pretty clear.
04:00 seatek that's what i like to do anyway
04:00 MasterDuke Herby_: https://docs.perl6.org/type/DateTime might also work
04:01 Herby_ MasterDuke: I'll take a look, thanks
04:02 skids ^90.pick +10 ?
04:15 Herby_ MasterDuke: that got me part way there, and it looks like DateTime::Math can handle comparing dates
04:15 Herby_ still working at it
04:18 kent\n joined #perl6
04:19 seatek Herby_, if it were me, I'd use DateTime::Parse to get a "real" DateTime out of those crazy CSV strings, and then just compare unixtimes if you need to compare them
04:20 seatek Herby_, not sure how you need to compare them though
04:20 Herby_ I'll have two datetime stamps, and I'm trying to see if they are > 24 hours apart
04:21 seatek then you can subtract them and see if they are 24-hours in seconds apart ;)
04:21 Herby_ i dont have a ton of experience with working with datetime stamps. it looks like there is a posix method, you saying use that?
04:21 Herby_ then subtract them from each other and convert to hours?
04:22 seatek yeah posix is a unix timestamp which is seconds
04:22 skids I guess it depends what you want to do on leap-second days...
04:22 Herby_ the data is for this year, starting in april up till now
04:22 wamba joined #perl6
04:23 seatek yeah if you want to get into the truly exacting stuff, there are HUGE modules to deal with that stuff. it gets very complicated if you want to be completely accurate across all things like leap stuff and timezones and daylight savings, etc
04:23 Herby_ for this learning exercise, i'm not too stressed about the fine details unless it can have a big impact on the > 24hours criteria
04:24 Herby_ the dates will typically be within at least a week of each other
04:24 seatek but by converting everythign to unix timestamps, you get the number of seconds
04:25 seatek m: my $dt = DateTime.new("2016-10-06T21:24:00"); say $dt.posix;
04:25 camelia rakudo-moar 605f27: OUTPUT«1475789040␤»
04:25 seatek that's the date and time right now in seconds
04:25 seatek you can do that with 2 dates -- just subtract those seconds
04:26 Herby_ gotcha. let me give it a shot
04:26 seatek and you'll find out how many seconds are between those dates and times
04:27 Herby_ m: my $dt = DateTime.new("2016-10-06T21:24:00"); say ($dt.posix / 3600);
04:27 camelia rakudo-moar 605f27: OUTPUT«409941.4␤»
04:29 perlawhirl Herby: for your check, you can add 24 hours to your "before" date and check if it is less-than your "after" date
04:29 perlawhirl m: say DateTime.new('2016-10-06T21:24:00').later( :24hours) < DateTime.new('2016-10-07T15:24:00')
04:29 camelia rakudo-moar 605f27: OUTPUT«False␤»
04:29 perlawhirl m: say DateTime.new('2016-10-06T21:24:00').later( :24hours) > DateTime.new('2016-10-07T15:24:00')
04:29 camelia rakudo-moar 605f27: OUTPUT«True␤»
04:30 Herby_ nice!
04:30 seatek beautiful :)
04:30 Herby_ the big question is my csv dump has their timestamps in the format '9/23/16 3:00 PM'
04:31 seatek DateTime::Parse should be able to handle that
04:31 perlawhirl Yep, DateTime::Parse
04:31 perlawhirl https://github.com/sergot/datetime-parse
04:32 Herby_ yep, looking at it now. the documentation is a little sparse...
04:32 seatek It will take your crazy strings, and give you a "properly" formatted one that you can plug into the DateTime we were just using
04:33 perlawhirl ahh! if i recall correctly it only accepts 3 or 4 "common" datetime string formats
04:33 perlawhirl i had a module somewhere I was working on that accepted just about any string, but the grammer got a bit unweildy
04:34 perlawhirl I also have an NativeCall based strptime and strftime implementation lying around somewhere which you could use in a pinch
04:34 perlawhirl or you can build your own date parser if the format is consistent
04:34 seatek https://github.com/Kodiologist/DateTime-Parse
04:35 Herby_ seatek: nice find!
04:37 perlawhirl that module is six years old... so potentially may have some issues with current rakudo
04:37 seatek yeah that's what i was just thinking
04:37 perlawhirl here i just through up my NativeCall sketch on gist
04:37 perlawhirl https://gist.github.com/0racle/09482c5f7bff6db9046bea259baf8237
04:38 perlawhirl I had planned on making a module, but life is taking up all my time
04:38 Herby_ that does happen :)
04:38 seatek that would be really nice to have up there
04:38 perlawhirl Refer to the line 65-onward to see how to use it...
04:39 pdcawley joined #perl6
04:39 perlawhirl Also, bear in mind it's not doing any error checking to make sure you've passed it valid token
04:42 Herby_ I'm on windows, I think there is an issue with nativecall
04:42 Herby_ or at least i thought i remember reading that somewhere
04:42 Herby_ cause i get this error running that script: Cannot locate symbol 'strptime' in native library ''
04:43 perlawhirl oh... yeah, i'm not sure about windows... might have to just build your own parser sub... is your date format stable, ie. always in the "8/19/16 4:00 PM" format
04:43 Herby_ yep
04:45 Herby_ worst case scenario, i open the csv in excel and convert the column to iso 8601 before running the p6 script
04:45 Herby_ i've definitely made some headway tonight, so thank yall for the help
04:45 perlawhirl ahh yeah, that would probably be easier :D
04:45 Herby_ perlawhirl: i'm trying to be lazy :)
04:46 Herby_ alright i'm off to bed, have a good night everyone
04:51 Herby_ joined #perl6
04:53 seatek oh my gosh how i converting to ISO 8601 worst case? that's best case!
04:53 Cabanossi joined #perl6
04:55 pierre_ joined #perl6
05:02 cdg joined #perl6
05:36 domidumont joined #perl6
05:41 domidumont joined #perl6
05:44 pecastro_ joined #perl6
05:56 neuraload joined #perl6
05:56 pierre_ joined #perl6
06:03 cdg joined #perl6
06:11 pierre_ joined #perl6
06:13 domidumont joined #perl6
06:14 abraxxa joined #perl6
06:16 zakharyas joined #perl6
06:17 pierre_ joined #perl6
06:19 domidumont joined #perl6
06:21 grondilu joined #perl6
06:26 darutoko joined #perl6
06:30 geekosaur joined #perl6
06:30 pdcawley joined #perl6
06:31 pierre_ joined #perl6
06:33 pierre_ joined #perl6
06:36 rindolf joined #perl6
06:45 pecastro_ joined #perl6
06:49 seatek i had dreams of being able to use "else" with "unless". but no more.
06:50 El_Che seatek: do you hate fellow programmers? ;)
06:50 seatek El_Che, sometimes. (a little bit). ;)
06:51 seatek i've been writing tests against database servers, so i'm too numb right now to imagine
06:52 seatek i think "else"es with "unless"es must be just too advanced for p6
06:53 seatek it's one twisty too many
06:53 grondilu joined #perl6
06:53 wamba joined #perl6
06:56 samcv how do i draw camelia with the compose key?
06:56 samcv «O» i don't know how to make the o with two dots on it
06:56 samcv tho
06:56 samcv : + O doesn't work at least or O+ :
06:56 El_Che ö ?
06:56 samcv yes how do i use the compose key to type that
06:57 El_Che my keyboard is azerty: type " followed y o
06:58 samcv ö
06:58 samcv cool ok thank you :)
06:59 cpage_ joined #perl6
07:03 grondilu joined #perl6
07:04 pierre_ joined #perl6
07:04 cdg joined #perl6
07:08 grondilu_ joined #perl6
07:12 cpage__ joined #perl6
07:20 grondilu joined #perl6
07:20 grondilu test
07:22 bjz joined #perl6
07:26 andrzejku joined #perl6
07:26 andrzejku joined #perl6
07:30 labster joined #perl6
07:32 ocbtec joined #perl6
07:32 andrzejku hello my friends :)
07:34 girafe joined #perl6
07:39 nadim_ joined #perl6
07:40 firefish5000 range slices on list are suppose to be truncated to the length of the list correct?
07:40 firefish5000 m: dd <a b c d>[0..5]
07:40 camelia rakudo-moar 605f27: OUTPUT«("a", "b", "c", "d", Nil, Nil)␤»
07:41 firefish5000 ie, those 2 Nil shouldn't show up
07:42 bjz joined #perl6
07:45 andrzejku joined #perl6
07:49 g4 joined #perl6
07:49 g4 joined #perl6
07:49 moritz m: dd <a b c d>.Array[0..5]
07:49 camelia rakudo-moar 605f27: OUTPUT«("a", "b", "c", "d", Any, Any)␤»
07:50 wamba joined #perl6
07:54 firefish5000 I dont know where it is in the spec, but its documented in subscript#Truncating_slices , I dont see a test for it (though there is one for an infinit slice)
07:56 RabidGravy joined #perl6
07:57 * moritz would like to hear jnthn's and/or TimToady's opinion on that
07:58 andrzejku joined #perl6
08:00 firefish5000 fwiw, this was working at some point in time (~1year ago, when I last worked on my p6 code)
08:01 firefish5000 but of coarse, a lot has changed, it wouldn't surprize me if it was decided that finite flices should always return the full range requested
08:05 pdcawley joined #perl6
08:07 Praise- joined #perl6
08:07 Praise- joined #perl6
08:08 firefish5000 I retract my statement, I just found several comments in my code where I complaining about the random errors I was having with the range... Well, now I know
08:10 pdcawley_ joined #perl6
08:12 bjz joined #perl6
08:15 raydiak joined #perl6
08:27 wamba joined #perl6
08:33 cdg joined #perl6
08:37 gregf_ joined #perl6
08:38 seatek oh man, i've regressed to using -> for referencing methods. time for bed.
08:45 firefish5000 Now that I fixed the slicing issue, my runtime is down to 0.5 seconds! With the slicing problem, it was 1.8 seconds
08:46 firefish5000 And if you include the first successfull compile I had since I started fixing my code 3 days ago, 8 seconds
08:46 wamba joined #perl6
08:50 RabidGravy gah, PAUSE indexer
09:02 mcmillhj joined #perl6
09:04 robertle joined #perl6
09:07 ilmari[m] joined #perl6
09:13 tadzik joined #perl6
09:13 M-Illandan joined #perl6
09:13 Guest37185 joined #perl6
09:13 Matthew[m] joined #perl6
09:13 Matias[m] joined #perl6
09:19 Guest37185 joined #perl6
09:19 Guest37185 joined #perl6
09:21 canopus joined #perl6
09:23 itaipu joined #perl6
09:33 isacloud joined #perl6
09:36 ilmari[m] joined #perl6
09:48 user9 joined #perl6
09:59 Actualeyes joined #perl6
10:01 firefish5000 Alright, my pm-script is up and running once more, and it only took me 1 year to decide to fix it
10:02 firefish5000 I Wonder if the power savings will be noticeable in this months bill
10:17 perlawhirl joined #perl6
10:32 p3rln00b :)
10:35 p3rln00b If [] on list did not return all the elements it was asked for, we'd have issues with things like this:
10:35 p3rln00b m: sub foo ( $a, $b, $c ) { dd [ $a, $b, $c ] }( |<a b>[^3] )
10:35 camelia rakudo-moar 605f27: OUTPUT«["a", "b", Any]␤»
10:36 p3rln00b (were it'd explode whenever the thing did not have enough elements)
10:54 kaare_ joined #perl6
11:12 andrzejku someone know Mechanize framework?
11:13 DrForr andrzejku: You'll want to ask on #perl, not #perl6 - I don't think Mechanize has been reimagined for Perl 6.
11:16 gregf_ m: (|<a b>[^3]).^name.say
11:16 camelia rakudo-moar 605f27: OUTPUT«Slip␤»
11:20 nine moritz: niner.name is finally fixed :) Thanks for pushing me into the right direction!
11:24 andrzejku DrForr: don't worry I will
11:27 brrt joined #perl6
11:28 moritz nine: you're welcome
11:29 ilmari[m] joined #perl6
11:30 brrt left #perl6
11:33 RabidGravy I don't suppose anyone knows of a CPAN module that generates its .pm file at build time, off the top your heads
11:34 nine I only know that those exist :/
11:34 DrForr Template Toolkit might precompile the grammar, but I don't think so.
11:36 RabidGravy I've switched Term::ReadKey to do so and It's working but the problem is PAUSE won't index it because it can't find a .pm file in the distribution file
11:37 DrForr Feh. I'd suggest creating a Term::ReadKey.pm file and generating a subclassed file, but you've probably already thought of that.
11:57 pyrimidine joined #perl6
12:03 RabidGravy yeah, I had thought of thought, examining various META hacks at the moment
12:07 abraxxa joined #perl6
12:09 RabidGravy the problem is that I can only test this by uploading to PAUSE, I've already had one failed attempt
12:14 Xliff What's the best way to test changes to NativeCall? Can I copy just the NativeCall dir to a separate lib/ directory and do "-Ilib" during invocation?
12:14 Xliff Changes are currently limited to NativeCall/Types.pm6
12:14 timotimo that can work, yeah
12:14 timotimo just make sure it ends up loading the one you're changing
12:14 Xliff The reason I am asking is because I don't see my changes taking effect.
12:15 Xliff timotimo: How do I insure that?
12:15 timotimo you could put a new "is export" sub in there and call it from your test code
12:15 timotimo if it says the sub doesn't exist, it's not loading your changed version
12:15 Xliff Hrm.
12:16 Xliff Since I am changing STORE for CArray I suspect that might be the case.
12:16 Xliff Since my test code does not seem to be finding the modified STORE method.
12:17 Xliff If I have some time later, I may gist my whole problem and toss it out there.
12:17 Xliff Coz this:
12:17 Xliff perl6 --target=ast -Ilib -e 'use NativeCall; my CArray[int32] @a = ((^1000).roll(100)); say @a.elems; say @a.WHAT'
12:18 Xliff Gives the following AST for the pertinent part:
12:18 Xliff - QAST::Stmts <sunk> use NativeCall; my CArray[int32] @a = ((^1000).rol...
12:18 Xliff - QAST::Stmt <sunk> use NativeCall
12:18 Xliff - QAST::WVal(Nil) <> :statement_id<?>
12:18 Xliff - QAST::Stmt <sunk> my CArray[int32] @a = ((^1000).roll(100))
12:18 Xliff - QAST::Op(callmethod STORE) <sunk nosink> :statement_id<?>
12:18 Xliff But I get this error:
12:18 Xliff Type check failed in assignment to @a; expected NativeCall::Types::CArray[int32] but got Int (582)
12:18 timotimo oh
12:18 timotimo no, that's just your definition being wrong
12:19 timotimo you've declared an array of CArrays
12:19 Xliff LOL!
12:20 Xliff So... how would I write that properly?
12:20 Xliff 'use NativeCall; my @a = CArray[int32].new; @a.push: (^1000).roll(100); say @a.elems; say @a.WHAT'
12:21 timotimo that's still just an array
12:21 timotimo you need to := there
12:23 timotimo .u �
12:23 yoleaux U+FFFD REPLACEMENT CHARACTER [So] (�)
12:23 timotimo haha
12:24 Xliff 'use NativeCall; my @a := CArray[int32]; @a.push: |(^1000).roll(100); dd @a'
12:24 Xliff Oh! Beat me to it.
12:25 wamba joined #perl6
12:25 Xliff OK. So new error:
12:25 Xliff Cannot resolve caller STORE(NativeCall::Types::CArray[int32]: NativeCall::Types::CArray[int32]);
12:26 timotimo the part before the : is the invocant (i.e. the type of self) and the one after that is the first positional arg
12:26 Xliff Which is a start, and I'm still not seeing my code.
12:26 timotimo right, ok
12:26 timotimo a dirty hack would be to rename your own nativecall to something else :)
12:26 Xliff HAH! Point.
12:27 Xliff Thanks for that. Gives me something to sleep on.
12:27 timotimo good luck! :)
12:28 wamba joined #perl6
12:33 cpage joined #perl6
12:36 darutoko joined #perl6
12:37 user9 joined #perl6
12:38 eliasr joined #perl6
12:38 bitmap joined #perl6
12:44 wamba joined #perl6
12:49 RubioTerra joined #perl6
12:50 _slade_ joined #perl6
13:00 RubioTerra Hi, I need some help with grammars and actions: I have a grammar and it parses a file beautifully, but once I add an actions class it starts to give the error "Too many positionals passed; expected 1 argument but got 2". Even with an empty action class.
13:01 p3rln00b RubioTerra: what's too vague. Do you have code to show?
13:01 DrForr Put your code into a pastebn?
13:01 DrForr *pastebin
13:01 dalek ecosystem: 115ccc3 | (Tom Browder)++ | README.md:
13:01 dalek ecosystem: tweak punctuation and spelling
13:01 dalek ecosystem: review: https://github.com/perl6/ecosystem/commit/115ccc3abc
13:02 p3rln00b RubioTerra: you're passing your actions as a named argument,right? .parse: :actions(classs {...}) ...
13:02 RubioTerra Well, my first question is: should an empty actions change the behavior of the parsing?
13:02 p3rln00b No
13:02 RubioTerra Yes: Grammar.parsefile($file, :actions(Actions.new));
13:02 DrForr RubioTerra: Can we see your code?
13:03 p3rln00b s: Grammar, 'parsefile'
13:03 SourceBaby p3rln00b, Sauce is at https://github.com/rakudo/rakudo/blob/605f272/src/core/Grammar.pm#L14
13:04 RubioTerra well, the code is quite lengthy, it's a C parser
13:04 p3rln00b Right, wellk, that's not where the error is at
13:04 DrForr RubioTerra: Still, we need to see what's going on.
13:04 p3rln00b RubioTerra: we could be guessing for weeks here, without any code. The error is telling you you're giving one too many arguments.
13:04 dalek ecosystem: 8bfeea4 | (Tom Browder)++ | README.md:
13:04 dalek ecosystem: use em dash, spelling fix
13:04 dalek ecosystem: review: https://github.com/perl6/ecosystem/commit/8bfeea4b71
13:04 RubioTerra I understand...
13:05 _4d47 joined #perl6
13:05 RubioTerra I guess I should try to reduce the problem to some manageable code size
13:06 p3rln00b RubioTerra: can you show full error?
13:06 RubioTerra Too many positionals passed; expected 1 argument but got 2   in regex ws at /home/rubio/tools/lib/C/Parser/Grammar.pm6 (C::Parser::Grammar) line 22   in regex declaration-type-specifier at /home/rubio/tools/lib/C/Parser/Grammar.pm6 (C::Parser::Grammar) line 88   in regex declaration-type-specifiers at /home/rubio/tools/lib/C/Parser/Grammar.pm6 (C::Parser::Grammar) line 80   in regex function-definition at /home/rubio/tools/lib/C
13:07 p3rln00b RubioTerra: I'm guessing you get the error without any actions too?
13:07 RubioTerra well, it didn't paste ok
13:07 RubioTerra No. Without the actions it parses ok.
13:07 p3rln00b weird
13:07 RubioTerra I thought so.
13:08 RubioTerra I can reproduce the error if I declare a method with no parameters in the actions class.
13:08 RubioTerra But it's not the case.
13:08 lucasb_ joined #perl6
13:09 p3rln00b RubioTerra: what's the name of the method?
13:09 DrForr RubioTerra: Could you put this in a github gist? Otherwise we're going to have to keep guessing.
13:09 sufrostico joined #perl6
13:11 p3rln00b m: say grammar { token TOP { <ws> }; regex ws { \d+ } }.parse: '42', :actions(class { method ws { } } )
13:11 camelia rakudo-moar 605f27: OUTPUT«Too many positionals passed; expected 1 argument but got 2␤  in method ws at <tmp> line 1␤  in any !reduce at /home/camelia/rakudo-m-inst-2/share/nqp/lib/QRegex.moarvm line 1␤  in regex ws at <tmp> line 1␤  in regex TOP at <tmp> line 1␤  in block…»
13:12 * p3rln00b can offer a thousand guesses, but without seeing code it's pointless
13:13 timotimo :o
13:13 p3rln00b ?
13:13 timotimo i would expect they have a token that matches with some method that's in Any or so
13:13 perlpilot p3rln00b: you scared him off!  ;)
13:13 p3rln00b Ah
13:14 p3rln00b Aha. timotimo++ that can be it :D
13:15 Actualeyes joined #perl6
13:15 timotimo other than that, forgot to give the method a $/ argument is a classic mistake
13:16 p3rln00b m: say grammar { regex all { \d+ } }.parse: '42', :rule<all>, :actions(class { })
13:16 camelia rakudo-moar 605f27: OUTPUT«Too many positionals passed; expected 1 argument but got 2␤  in any !reduce at /home/camelia/rakudo-m-inst-2/share/nqp/lib/QRegex.moarvm line 1␤  in any !cursor_pass at /home/camelia/rakudo-m-inst-2/share/nqp/lib/QRegex.moarvm line 1␤  in regex all a…»
13:16 p3rln00b Though the error references <ws>
13:17 p3rln00b and "regex ws"
13:17 timotimo oh, indeed
13:17 timotimo i missed that the first time 'round
13:17 canopus joined #perl6
13:18 mcmillhj joined #perl6
13:19 p3rln00b m: say grammar { regex ws { <.ws: 2>  } }.parse: '42',  :rule<ws>
13:19 camelia rakudo-moar 605f27: OUTPUT«Too many positionals passed; expected 1 argument but got 2␤  in regex ws at <tmp> line 1␤  in regex ws at <tmp> line 1␤  in block <unit> at <tmp> line 1␤␤»
13:24 user9 joined #perl6
13:28 bisectable6 joined #perl6
13:29 dalek doc: 1b3cf97 | (Francis Grizzly Smit)++ | README.md:
13:29 dalek doc: fixed READEME.md to have depend Pod::To::BigPage
13:29 dalek doc: review: https://github.com/perl6/doc/commit/1b3cf97425
13:30 _4d47 left #perl6
13:30 rgrinberg joined #perl6
13:30 p3rln00b ehhh... that's terrible advice
13:31 dalek ecosystem: 93beb1a | (Alexey Melezhik)++ | META.list:
13:31 dalek ecosystem: Sparrowdo module to manage chef users
13:31 dalek ecosystem: review: https://github.com/perl6/ecosystem/commit/93beb1a948
13:31 dalek ecosystem: d3391c0 | (Zoffix Znet)++ | META.list:
13:31 dalek ecosystem: Merge pull request #259 from melezhik/master
13:31 dalek ecosystem:
13:31 dalek ecosystem: Sparrowdo module to manage chef users
13:31 dalek ecosystem: review: https://github.com/perl6/ecosystem/commit/d3391c0c44
13:31 skids joined #perl6
13:32 mcmillhj joined #perl6
13:32 awwaiid joined #perl6
13:33 RabidGravy which reminds me I ought to re-examine my plans for a noddy CI thing like buildbot at some point
13:41 user9 joined #perl6
13:44 andrzejku joined #perl6
13:46 RubioTerra joined #perl6
13:47 RubioTerra DrForr, p3rln00b: I found what was wrong with my actions class -- I declared it as a grammar!!
13:47 RubioTerra Mistery solved :)
13:48 DrForr Yay!
13:48 RubioTerra Thanks!
13:49 perlpilot m: say grammar { regex all { \d+ } }.parse: '42', :rule<all>, :actions(grammar { method all($/) { } });
13:49 camelia rakudo-moar 605f27: OUTPUT«「42」␤»
13:49 perlpilot hmm
13:50 p3rln00b RubioTerra: that was one of my guesses :)
13:52 p3rln00b Though it didn't produce the same error as yours:
13:52 p3rln00b m: say grammar { token TOP { <ws> } }.parse: ' ', :actions(grammar {})
13:52 camelia rakudo-moar 605f27: OUTPUT«Too many positionals passed; expected 1 argument but got 2␤  in any !reduce at /home/camelia/rakudo-m-inst-2/share/nqp/lib/QRegex.moarvm line 1␤  in any !cursor_pass at /home/camelia/rakudo-m-inst-2/share/nqp/lib/QRegex.moarvm line 1␤  in regex TOP a…»
13:53 RubioTerra that's it!
13:53 timotimo oh, oyu're back :)
13:57 * perlpilot idly wonders if there are RT tickets for any of these LTA grammar-related things.
13:57 p3rln00b should be easy enough to grep front page of perl6.fail :)
13:58 p3rln00b m: say grammar { token TOP { <return> }; token return { \d+ } }.parse: '42'
13:58 camelia rakudo-moar 605f27: OUTPUT«Attempt to return outside of any Routine␤  in any !reduce at /home/camelia/rakudo-m-inst-2/share/nqp/lib/QRegex.moarvm line 1␤  in any !cursor_pass at /home/camelia/rakudo-m-inst-2/share/nqp/lib/QRegex.moarvm line 1␤  in regex return at <tmp> line 1…»
13:59 p3rln00b m: sub { say grammar { token TOP { <return> }; token return { \d+ } }.parse: '42' }
13:59 camelia rakudo-moar 605f27: ( no output )
13:59 p3rln00b t'bad
13:59 p3rln00b oh
13:59 p3rln00b m: sub { say grammar { token TOP { <return> }; token return { \d+ } }.parse: '42' }()
13:59 camelia rakudo-moar 605f27: OUTPUT«Attempt to return outside of any Routine␤  in any !reduce at /home/camelia/rakudo-m-inst-2/share/nqp/lib/QRegex.moarvm line 1␤  in any !cursor_pass at /home/camelia/rakudo-m-inst-2/share/nqp/lib/QRegex.moarvm line 1␤  in regex return at <tmp> line 1…»
13:59 p3rln00b t'bad :}
14:01 mcmillhj joined #perl6
14:04 dalek perl6-most-wanted: f2aeeb7 | (Tom Browder)++ | most-wanted/modules.md:
14:04 dalek perl6-most-wanted: remove module now in ecosystem
14:04 dalek perl6-most-wanted: review: https://github.com/perl6/perl6-most-wanted/commit/f2aeeb7255
14:04 p3rln00b m: say grammar { token TOP { <return> }; method return { say "meow"; exit } }.parse: '42'
14:04 camelia rakudo-moar 605f27: OUTPUT«meow␤»
14:07 p3rln00b m: say grammar { token TOP { <return> }; method return { self._return }; regex _return { \d+ };  }.parse: '42'
14:07 camelia rakudo-moar 605f27: OUTPUT«「42」␤ return => 「42」␤»
14:07 p3rln00b :D
14:08 p3rln00b m: say grammar { token TOP { <take> }; token take { \d+ } }.parse: '42'
14:08 camelia rakudo-moar 605f27: OUTPUT«Too many positionals passed; expected 1 argument but got 2␤  in any !reduce at /home/camelia/rakudo-m-inst-2/share/nqp/lib/QRegex.moarvm line 1␤  in any !cursor_pass at /home/camelia/rakudo-m-inst-2/share/nqp/lib/QRegex.moarvm line 1␤  in regex take …»
14:08 p3rln00b heh. this stuff's pretty messed up. That's https://rt.perl.org/Ticket/Display.html?id=127945#ticket-history
14:09 moritz it's the usual "calling something from within a grammar doesn't behave like a regex, gives bad error message"
14:10 moritz niecza had a pretty awesome error message for that
14:10 DrForr Huh, !cursor_pass is something new there. I keep getting the core reporting an error in variable $x which I don't define anywhere in the source.
14:11 p3rln00b Any Mu method used as a token will trigger some sort of an error, basically
14:12 p3rln00b Unless you give actions with it
14:12 p3rln00b m: say grammar { token TOP { <take> }; token take { \d+ } }.parse: '42', :actions(class { method take ($/) { say "take yourself!" } })
14:12 camelia rakudo-moar 605f27: OUTPUT«take yourself!␤「42」␤ take => 「42」␤»
14:12 p3rln00b Sounds like an easy fix
14:17 hchienjo joined #perl6
14:18 hchienjo joined #perl6
14:22 bartolin joined #perl6
14:22 robinsmidsrod joined #perl6
14:22 hoelzro joined #perl6
14:22 edenc_ joined #perl6
14:22 xdbr joined #perl6
14:22 revdiablo joined #perl6
14:22 revdiablo joined #perl6
14:22 ugexe joined #perl6
14:23 p3rln00b Oh, maybe not as easy as originally thought
14:23 p3rln00b We need Muuu :) Just an empty class from which everything inherits :D
14:23 * moritz thinks we have too many method in Mu
14:24 Cabanossi joined #perl6
14:24 mephinet joined #perl6
14:24 mst the only methods should be in Mu are those required by larry when hitting a novice with his stick
14:25 notbenh_ joined #perl6
14:25 DrForr Hmm, Rakudo::Sesshin.
14:25 olinkl joined #perl6
14:25 mithaldu_ joined #perl6
14:26 SmokeMachine____ joined #perl6
14:27 firefish5000 joined #perl6
14:29 titsuki joined #perl6
14:30 w4and0er96 joined #perl6
14:30 clkao joined #perl6
14:31 tadzik joined #perl6
14:36 bstamour joined #perl6
14:37 p3rln00b m: Mu.^methods.elems.say
14:37 camelia rakudo-moar 605f27: OUTPUT«52␤»
14:37 p3rln00b We need to remove 10 methods :P
14:38 khw joined #perl6
14:38 p3rln00b m: say 'Life, the Universe and Everything'.WHY == Mu.^methods.elems-10
14:38 camelia rakudo-moar 605f27: OUTPUT«True␤»
14:39 awwaiid joined #perl6
14:43 wamba joined #perl6
14:44 cpage_ joined #perl6
14:44 p3rln00b m: my $ch = Mu.HOW.WHAT.new.new_type; $ch.^methods.say
14:44 camelia rakudo-moar 605f27: OUTPUT«()␤»
14:45 p3rln00b Crap. I thought I could write an article about it, but turns out this shit's easy.
14:45 p3rln00b (getting "nothing" clas sin perl6)
14:45 timotimo oh, like, a class that has no methods at all?
14:45 p3rln00b Right
14:45 p3rln00b m: Perl6::Metamodel::ClassHOW.new
14:45 camelia rakudo-moar 605f27: OUTPUT«Could not find symbol '&ClassHOW'␤  in block <unit> at <tmp> line 1␤␤Actually thrown at:␤  in block <unit> at <tmp> line 1␤␤»
14:46 RabidGravy DrForr, is the TT6 thing you are working on, anywhere near being testable for basic things?  Reason being I want to make JSON::Infer use templates for generating the classes and I have rejected the other options due to them all crapping out on recursion
14:46 p3rln00b How come this stuff isn't available to users, I wonder.
14:46 jnthn m: Metamodel::ClassHOW.new
14:46 camelia rakudo-moar 605f27: ( no output )
14:46 p3rln00b Ahhh
14:46 p3rln00b jnthn++
14:46 jnthn Should probably fix that naming confusion at some point
14:46 DrForr RabidGravy: Give me the weekend and I'll have something functional.
14:47 ptolemarch joined #perl6
14:47 RabidGravy cool, I could probably fix Template6 to do the necessary recursive stuff but when I looked it made my head hurt
14:49 cdg joined #perl6
14:49 DrForr Well, it won't get that far by the weekend; I'm only going to get around (probably) to GET/INCLUDE/PROCESS/WRAPPER and maybe IF-THEN-ELSE over the weekend. I'll be online, and if there's something in particular you need let me know.
14:49 RabidGravy the story of my day so far is that I have made 3 releases of Term::ReadKey, hopefully this last one will stick
14:49 RabidGravy I'll take a look on MOnday then :)
14:53 RabidGravy next up debugging my couchdb/angular.js example
14:54 DrForr I've already got the splitting code to break out template sections done, I just need to hook in the grammar, and for a first cut I'll be happy to just put out something that expands [% foo %] or $foo inline.
14:55 yqt joined #perl6
14:56 AlexDaniel joined #perl6
14:57 FROGGS joined #perl6
14:57 DrForr I'll probably push this to the ecosystem Sunday or so; I'm going through the grammar excruciatingly sowly because I hate dealing with regression, and I am *heartily* tired of dealing with waterbed problems from Perl6::Tidy.
15:02 awwaiid joined #perl6
15:07 p3rln00b m: sub foo (:$meow) {}(meow => Metamodel::ClassHOW.new_type)
15:07 camelia rakudo-moar 605f27: OUTPUT«X::TypeCheck::Binding exception produced no message␤  in sub foo at <tmp> line 1␤  in block <unit> at <tmp> line 1␤␤»
15:07 p3rln00b So much for that plan :P
15:08 pecastro joined #perl6
15:12 AlexDaniel joined #perl6
15:18 dalek Inline-Perl5: 22f7f33 | niner++ | / (2 files):
15:18 dalek Inline-Perl5: Move Perl5Array refcnt inc to C code
15:18 dalek Inline-Perl5: review: https://github.com/niner/Inline-Perl5/commit/22f7f33034
15:18 dalek Inline-Perl5: 9be9e5a | niner++ | lib/Inline/Perl5.pm6:
15:18 dalek Inline-Perl5: Work around a perl bug in argument handling
15:18 dalek Inline-Perl5:
15:18 dalek Inline-Perl5: Perl tries to use the argument following a -- as script name so avoid the
15:18 dalek Inline-Perl5: arg list ending in --
15:18 dalek Inline-Perl5: See https://rt.perl.org/Ticket/Display.html?id=129826
15:18 dalek Inline-Perl5: review: https://github.com/niner/Inline-Perl5/commit/9be9e5a070
15:22 sammers joined #perl6
15:23 seatek joined #perl6
15:24 seatek joined #perl6
15:25 awwaiid joined #perl6
15:25 p3rln00b m: use nqp; my $o = class {}; $o.^add_method: .name, -> $, $ {} for Mu.^methods; $o.^compose; say grammar { token TOP { <return> }; token return {  \d+ } }.parse: '42', :actions($o);
15:25 camelia rakudo-moar 605f27: OUTPUT«「42」␤ return => 「42」␤»
15:25 * p3rln00b pulls out a Hackishmometre
15:26 p3rln00b Reading's a bit too high :)
15:26 p3rln00b For a fix for https://rt.perl.org/Ticket/Display.html?id=127945#ticket-history
15:35 gregf_ joined #perl6
15:41 girafe joined #perl6
15:41 perlpilot still would be nice to have some way to sanitize a class.
15:43 mcmillhj joined #perl6
15:43 p3rln00b There probably is :)
15:43 * p3rln00b is too n00b to know
15:48 awwaiid joined #perl6
15:57 skids Darn, my spare time is about to plummet.
15:58 * p3rln00b puts a cushion under it
15:59 itaipu joined #perl6
15:59 skids Knew it was coming, but was hoping to get https://github.com/skids/perl6-xcb near to a usable state before this happenned.
16:05 grondilu joined #perl6
16:07 p3rln00b So what happened?
16:14 woolfy joined #perl6
16:20 awwaiid joined #perl6
16:24 RabidGravy skids, release it and let other people fix the bugs ;-) works a treat for me
16:25 RabidGravy or if they don't fix it then they don't want to use it anyway
16:36 domidumont joined #perl6
16:36 DrForr Wish I could be that confident :)
16:37 RabidGravy I'm all about the confidence
16:37 RabidGravy ls
16:37 DrForr I'm all about the Pentium.
16:38 lucasb_ joined #perl6
16:38 huf sounds vaguely roman
16:38 RabidGravy I've just received a technical test from a well known online fashion retailer that is actually better specified and more work than some whole contracts I've had in the past
16:38 moritz more work? Are you getting paid for it?
16:40 domidumont joined #perl6
16:40 Xliff RabidGravy: And that's a test?
16:41 Xliff So it's more like....if you pass it, you might get paid for further work?
16:43 Alikzus joined #perl6
16:47 RabidGravy to be fair they do say that they don't expect it to be completely finished in the 2 hours, but providing a complete specification of a larger piece of work demonstrates design strategy
16:48 RabidGravy so someone making it up as they go along will be obvious because they haven't made allowance for the probably unimplemented parts in the design
16:51 awwaiid joined #perl6
16:51 RabidGravy obviously one could game this with a pile of stubs
17:01 pdcawley joined #perl6
17:05 cdg joined #perl6
17:06 sufrostico joined #perl6
17:09 cdg joined #perl6
17:14 mwhisenhunt joined #perl6
17:15 awwaiid joined #perl6
17:22 nebuchadnezzar joined #perl6
17:24 bioduds joined #perl6
17:24 bioduds hi there, friends
17:24 RabidGravy Rarrrr!
17:25 bioduds looking for who suggested me to use Postgres to store data along with my NoSQL approach
17:26 timotimo i was among the people who suggested such a thing
17:26 bioduds geekosaur : was it you?
17:26 bioduds timotimo : yes
17:26 geekosaur several people suggested it
17:26 bioduds I'm not a stubborn person
17:27 RabidGravy use all the things, apart from RethinkDB which appears to have gone poooooof!
17:27 bioduds I've been thinking maybe both worlds may be reached altogether
17:27 bioduds I've been wondering about SQLite instead
17:28 RabidGravy SQLite will work, but it doesn't scale out very well if you anticipate multiple users/threads
17:28 mspo mm SQLite
17:28 bioduds my architectural plans may be ok, I believe
17:29 bioduds I would have not a single sqlite db file
17:29 bioduds but several, each for each "document" so to speak
17:29 bioduds controlled by a perl6 agent related
17:30 bioduds I have something alike already working
17:30 bioduds it will have a modern visual controller I am building with Meteor
17:30 timotimo i don't know if that is very good
17:30 RabidGravy they way you describe that I'm thinking that maybe some document based database may be a better fit
17:31 bioduds I already managed to have it comunicating on the server side with Perl6 and Perl6 DBIsh working with SQLite
17:31 bioduds RabidGravy : yes, that is what I'm trying to accomplish
17:31 timotimo how much is in one such "document"?
17:31 bioduds the "documents" will be SQLite files
17:32 bioduds Perhaps each SQLite file will have only one table
17:32 bioduds cause the DB itself will actually be the Perl6 layer on top of all I am currently building
17:33 bioduds this way, INPUT and OUTPUTs would be in JSON format
17:33 bioduds as I already managed to put up and works greatly
17:33 bioduds does this sound reliable, timotimo?
17:34 bioduds SQLite is ACID, fast and reliable, right?
17:34 mspo bioduds: sounds sort of ActorDB-ish?
17:34 bioduds therefore, data would be safe
17:36 lucasb_ how many "documents" or sqlite db files do you antecipate using?
17:36 cdg joined #perl6
17:37 lucasb_ *anticipate, expects to use
17:38 bioduds lucasb_ : my actual plan is to build a DB system. My first thoughts are to have one sqlite db file or "document" tripled along a network to ensure data wont be lost, each sqlite file corresponding to actually only one single table
17:38 timotimo if they are all in one directory, you may have trouble opening and closing them quickly depending on how the underlying file system performs
17:39 bioduds I plan to have them spread
17:39 bioduds also having one perl6 file to control each
17:39 bioduds instead of a main controller
17:39 awwaiid joined #perl6
17:39 bioduds that allowing for concurrency
17:40 bioduds that I will have to see later on development to check how it would perform
17:41 bioduds this is actually main reason I want to split files into single-table files
17:41 bioduds like DynamoDB, they would be like the Items
17:42 bioduds sounds fair this approach, timotimo?
17:43 bioduds I want to build something people can rely on from the ground, knowing it has a solid well thought architectural design on its basis
17:43 bioduds instead of simply throwing in data into files in JSON format
17:44 timotimo not sure it'd be good
17:45 bioduds cause that would actually be wasting a lot of capability Perl6 has brought in that actually inspired this effort of mine in first place
17:45 timotimo i'm not sure what you're hoping perl6 in particular will do for you here?
17:47 timotimo and i'm also not sure why you think a bunch of sqlite files will be a good basis for your documents
17:47 timotimo i'm not sure what your tables will look like, and what rows you'd have in those tables
17:47 bioduds Perl6 is the main controller. Each table has a p6 file to perform all sorts of operations on data. Converting from JSON to SQL to store and reverting. Allowing declarative subsets to create schemas on the fly that are highly reliable and other features
17:49 bioduds to summarize, benefit from all SQL has brought in so far in terms of good DB practice
17:49 timotimo i don't think i know enough about the involved things to tell if this is good
17:49 bioduds and merge it with the new NoSQL paradigm of IOing (so to speak) with the DB system
17:50 RabidGravy yeah, but e.g. MongoDB or CouchDB will do all of what you just described without you having to write any code
17:50 bioduds no prob, man, just trawling (lol) for some insight too. And opinions. :D
17:50 RabidGravy plus scale out, shard, replicate and stuff across multiple instance
17:51 timotimo like, i see no reason to have a single file per document
17:51 bioduds RabidGravy : yes, but there is plenty of debate on whether they are safe while treating data
17:51 bioduds yep, my goal is to have scale out, shard, and replication precisely the same as them
17:51 bioduds but so to speak, fix the consistency problem many report as being a real issue
17:52 RabidGravy so you are basically planning on making a NoSQL database system
17:52 RabidGravy fair enough
17:52 bioduds yes!
17:52 bioduds but one that has SQL on the data-end
17:53 timotimo that sounds like MulletDB the other way around
17:53 bioduds benefiting therefore from all SQL has brought us so far and, at the same time, bringing in the NoSQL solutions that are quite remarkable
17:54 RabidGravy I think Oracle does this ;-)
17:55 mspo couch++
17:55 bioduds for instance, SQLite won't have a (1..5)|"empty" field
17:58 bioduds_ joined #perl6
17:58 bioduds_ but, building the way I am doing now, I declare a subset that will ensure schema for the data with Perl6 and can store it on the SQLiee
18:01 RabidGravy I was going to point them at https://github.com/jonathanstowe/Sofa which facilitates that
18:02 bioduds_ let me check it out
18:03 awwaiid joined #perl6
18:04 bioduds_ the cool thing here I believe is you may store data precisely how it is along with its constraints
18:10 bioduds_ thanks for the insight, guys! :D
18:11 bioduds_ I'll report later on with advances I make. As TimToady told me here, The more The merrier :D
18:12 RabidGravy absolutely, make all the software
18:14 bioduds_ tx RabidGravy :)
18:16 AlexDaniel joined #perl6
18:23 cgfbee joined #perl6
18:24 bisectable6 joined #perl6
18:28 darutoko joined #perl6
18:28 bstamour joined #perl6
18:29 nyarmith joined #perl6
18:35 awwaiid joined #perl6
18:37 cyphase_eviltwin joined #perl6
18:46 nyarmith joined #perl6
18:47 RabidGravy so many things so little time
18:47 * FROGGS nods
18:48 * lucasb_ is more like "so much time, so little to do"
18:49 FROGGS O.o
18:49 p3rln00b Clearly we need to start putting time dilation to good use.
18:49 p3rln00b https://en.wikipedia.org/wiki/Time_dilation get cracking!
18:49 * p3rln00b snaps a whip
18:50 RabidGravy weeeeelllll do feel free to pitch in - I've got about ten modules on the go, I seemed to have rendered my CFT not so copious and not so free
18:52 harmil_wk joined #perl6
18:52 harmil_wk left #perl6
18:52 harmil_wk joined #perl6
18:53 harmil_wk Can subroutines be inlined? Or is that a future optimization?
18:54 FROGGS they can and are inlined if they are worth it
18:54 jnthn Both MoarVM and the JVM can do multi-level inlining also
18:55 jnthn (Can inline things that themselves have had things inlined)
18:56 jnthn And yes, there's a "is this worth it" assessment.
18:56 harmil_wk Nice, thanks
18:56 p3rln00b weeeeeeeeeeeeeeeeeeeee
18:56 saki_ joined #perl6
18:57 ruoso_ joined #perl6
18:57 larion_ joined #perl6
18:57 Util joined #perl6
18:57 Hotkeys joined #perl6
18:57 pecastro joined #perl6
18:57 nightfrog joined #perl6
18:57 japhb joined #perl6
18:57 Celelibi joined #perl6
18:57 mls joined #perl6
18:57 revdiablo joined #perl6
18:57 luis` joined #perl6
18:57 tony-o joined #perl6
18:57 mls joined #perl6
18:57 setty1 joined #perl6
18:57 dogbert17 joined #perl6
18:57 yqt joined #perl6
18:57 andrzejku joined #perl6
18:57 ilbelkyr joined #perl6
18:57 dataangel joined #perl6
18:57 titsuki joined #perl6
18:57 mr-foobar joined #perl6
18:57 b2gills joined #perl6
18:57 amalia_ joined #perl6
18:57 girafe joined #perl6
18:57 [particle] joined #perl6
18:57 go|dfish joined #perl6
18:57 araujo joined #perl6
18:57 araujo joined #perl6
18:58 pierrot joined #perl6
18:59 awwaiid joined #perl6
18:59 nyarmith joined #perl6
19:00 geekosaur joined #perl6
19:00 ribasushi joined #perl6
19:04 PotatoGim joined #perl6
19:04 labster joined #perl6
19:05 ggherdov joined #perl6
19:06 abruanese joined #perl6
19:08 dj_goku joined #perl6
19:08 dj_goku joined #perl6
19:08 bartolin joined #perl6
19:08 robinsmidsrod joined #perl6
19:08 hoelzro joined #perl6
19:08 llfourn joined #perl6
19:08 cpage_ joined #perl6
19:09 woolfy joined #perl6
19:09 Unavowed joined #perl6
19:09 Exodist joined #perl6
19:09 flexibeast joined #perl6
19:09 baest joined #perl6
19:09 lucasb joined #perl6
19:09 xdbr joined #perl6
19:09 cyphase_eviltwin joined #perl6
19:09 ptolemarch joined #perl6
19:09 charsbar______ joined #perl6
19:09 cognominal joined #perl6
19:09 vike joined #perl6
19:09 harmil_wk This is odd... I might be doing something dumb, but I think that .pick on a large Range is giving a very odd result.
19:10 harmil_wk m: say (:2((1~(0 x 80))) ..^ :2((1~(0 x 81)))).pick.base(2)
19:10 camelia rakudo-moar 605f27: OUTPUT«111101000011110010101000000000000000000000000000001011101101100001011000110000001␤»
19:10 harmil_wk Those middle zeros will always be there
19:10 harmil_wk m: say (:2((1~(0 x 80))) ..^ :2((1~(0 x 81)))).pick.base(2)
19:10 camelia rakudo-moar 605f27: OUTPUT«101011101000110000111000000000000000000000000000001001111100011000011000011101001␤»
19:10 RabidGravy jnthn, did I tell you I tested the STOMP client against RabbitMQ and that it works fine?
19:12 harmil_wk Simpler example without the string-construction:
19:12 harmil_wk m: say ((2**80) ..^ (2**81)).pick.base(2)
19:12 camelia rakudo-moar 605f27: OUTPUT«100011101100100110010000000000000000000000000000000000010101111110101101010011001␤»
19:12 Actualeyes joined #perl6
19:15 lucasb maybe you found some bias of .pick when handling large numbers?
19:15 yoleaux 11 Apr 2016 20:29Z <[Coke]> lucasb: the REPL prints the return value if and only if you didn't print anything.
19:15 mithaldu_ joined #perl6
19:15 harmil_wk I'll rakudobug it...
19:16 Spot__ joined #perl6
19:16 lucasb oh, I lost my trailing underscore, yay :)
19:18 mrsolo joined #perl6
19:19 a3r0_ joined #perl6
19:19 edenc joined #perl6
19:19 grondilu joined #perl6
19:19 Jonis joined #perl6
19:19 damnlie_ joined #perl6
19:19 bitmap joined #perl6
19:19 Kaffe joined #perl6
19:19 TimToady joined #perl6
19:19 erdic joined #perl6
19:19 vytas joined #perl6
19:19 user9 joined #perl6
19:19 Peter_R joined #perl6
19:19 timotimo joined #perl6
19:19 ggoebel joined #perl6
19:19 RabidGravy joined #perl6
19:19 LegalResale joined #perl6
19:19 ugexe joined #perl6
19:19 lizmat joined #perl6
19:19 w4and0er96 joined #perl6
19:21 chris2 joined #perl6
19:21 rgrinberg joined #perl6
19:22 RabidGravy boom shang a lang!
19:24 nyarmith joined #perl6
19:26 zostay joined #perl6
19:27 kipd joined #perl6
19:28 BuildTheRobots joined #perl6
19:28 khw joined #perl6
19:29 isacloud joined #perl6
19:29 timeless joined #perl6
19:30 tbrowder joined #perl6
19:31 awwaiid joined #perl6
19:32 xiaomiao joined #perl6
19:32 p3rln00b s: (1..2), 'pick', \()
19:32 SourceBaby p3rln00b, Sauce is at https://github.com/rakudo/rakudo/blob/605f272/src/core/Range.pm#L515
19:33 petercom1and joined #perl6
19:33 riatre joined #perl6
19:33 AlexDaniel joined #perl6
19:33 jcallen joined #perl6
19:33 albongo joined #perl6
19:33 nemo joined #perl6
19:33 domm1 joined #perl6
19:33 integral joined #perl6
19:33 integral joined #perl6
19:33 Juerd joined #perl6
19:33 eythian joined #perl6
19:33 zengargoyle joined #perl6
19:33 melezhik joined #perl6
19:33 Khisanth joined #perl6
19:33 rindolf joined #perl6
19:33 sammers joined #perl6
19:33 stevieb joined #perl6
19:33 chee joined #perl6
19:33 Xliff joined #perl6
19:33 ShimmerFairy joined #perl6
19:33 aindilis joined #perl6
19:33 cooper joined #perl6
19:33 cooper joined #perl6
19:33 telex joined #perl6
19:33 AlexDaniel What's the easiest way to provide fallback subroutines if some module is not installed?
19:33 krakan joined #perl6
19:33 jsimonet joined #perl6
19:33 DarthGandalf joined #perl6
19:34 raydiak joined #perl6
19:34 profan joined #perl6
19:34 AlexDaniel ah no, not that shit again
19:34 stmuk_ joined #perl6
19:34 xinming joined #perl6
19:34 AlexDaniel /o\
19:34 Alikzus joined #perl6
19:34 geekosaur this one is expected, they're rolling rebooting
19:34 p3rln00b What shit?
19:34 ssm_ joined #perl6
19:34 p3rln00b Yeah. Sub to messages :)
19:34 musca joined #perl6
19:34 cgfbee joined #perl6
19:34 Praise joined #perl6
19:34 Praise joined #perl6
19:34 pyrimidine joined #perl6
19:34 kent\n joined #perl6
19:34 spider-mario joined #perl6
19:35 skids joined #perl6
19:37 RabidGravy right that's another not Perl 6 thing fixed today
19:37 Dunearhp joined #perl6
19:38 rodarmor joined #perl6
19:38 p3rln00b m: use MONKEY-GUTS; say nqp::rand_I(1208925819614629174706176,Int).base: 2
19:38 camelia rakudo-moar 605f27: OUTPUT«11011001111000100010000000000000000000000000000000110111010110001110110100000101␤»
19:38 p3rln00b harmil_wk: ^ golfed a bit
19:39 p3rln00b AlexDaniel: not sure about "easiest" but this one works: https://github.com/zoffixznet/perl6-IRC-Client/blob/master/lib/IRC/Client.pm6#L24
19:39 canopus joined #perl6
19:39 p3rln00b Can be simplified. But the trick is to not to `require` in mainline
19:40 harmil_wk p3rln00b: that's much scarier when you put it that way... I'd kind have assumed that the random number generator would succeed or fail on large numbers, not just insert more zeroes!
19:40 Matthew[m] joined #perl6
19:40 p3rln00b :)
19:42 harmil_wk Ah, I think I see what's going on. It's generating 32 bits of random number, shoving it into the first 64 bits and then, if the number is more than 64 bits, it repeats for the next block...
19:42 p3rln00b ah
19:43 shadowpaste joined #perl6
19:43 DrForr Mersenne twister only has a certain number of bits, I think that's what it's still using.
19:43 harmil_wk Might be more complicated than that, but I think that's kind of the basis. Note for larger numbers, it gets really odd.
19:43 harmil_wk m: use MONKEY-GUTS; say nqp::rand_I(2**200-1,Int).base: 2
19:43 camelia rakudo-moar 605f27: OUTPUT«11001100110010110000000000000000000000000000000101100100010010010001010110101000000000000000000000000000001000101001000000011111101110111010110001100100110000000000001010001111000011111001001000101␤»
19:43 chansen_ joined #perl6
19:43 harmil_wk Or maybe not... I guess that looks like overlapping 64-bit regions.
19:44 jonadab joined #perl6
19:44 ggherdov joined #perl6
19:45 ggherdov joined #perl6
19:46 harmil_wk Yeha, that was confirmed via email on the rakudobug too
19:46 mrsolo joined #perl6
19:46 PotatoGim joined #perl6
19:47 awwaiid joined #perl6
19:47 bdmatatu joined #perl6
19:47 markk_ joined #perl6
19:47 garu_ joined #perl6
19:47 bstamour joined #perl6
19:47 cxreg joined #perl6
19:47 rmmm joined #perl6
19:47 nine joined #perl6
19:47 pochi_ joined #perl6
19:47 Ulti_ joined #perl6
19:47 rjbs- joined #perl6
19:47 cosimo joined #perl6
19:47 ens joined #perl6
19:47 eyck_ joined #perl6
19:47 mwhisenhunt joined #perl6
19:47 kshannon joined #perl6
19:47 zoosha joined #perl6
19:47 mspo joined #perl6
19:47 mst joined #perl6
19:47 DrForr joined #perl6
19:47 jferrero joined #perl6
19:47 sivoais joined #perl6
19:47 maddingue joined #perl6
19:47 imcsk8 joined #perl6
19:48 ponbiki joined #perl6
19:48 risou___ joined #perl6
19:48 rblackwe joined #perl6
19:48 vcv joined #perl6
19:48 tailgate joined #perl6
19:48 gypsydave5 joined #perl6
19:48 literal joined #perl6
19:48 emdashcomma joined #perl6
19:48 noganex joined #perl6
19:48 Sgeo joined #perl6
19:48 hahainternet joined #perl6
19:48 rmmm joined #perl6
19:48 d^_^b joined #perl6
19:48 d^_^b joined #perl6
19:48 TheDir joined #perl6
19:48 silug_ joined #perl6
19:48 gensym joined #perl6
19:48 BooK joined #perl6
19:48 breinbaas joined #perl6
19:48 diegok joined #perl6
19:48 itaipu joined #perl6
19:48 mst joined #perl6
19:48 bstamour left #perl6
19:48 ChoHag joined #perl6
19:48 k-man joined #perl6
19:48 woodruffw joined #perl6
19:48 woodruffw joined #perl6
19:48 SHODAN joined #perl6
19:48 inokenty joined #perl6
19:48 ilogger2 joined #perl6
19:48 pnu_ joined #perl6
19:49 woodruffw joined #perl6
19:49 mohae joined #perl6
19:49 sQuEE joined #perl6
19:49 akiym joined #perl6
19:49 petercommand joined #perl6
19:49 Cabanossi joined #perl6
19:49 yoleaux joined #perl6
19:50 avalenn joined #perl6
19:51 sftp joined #perl6
19:52 wtw joined #perl6
19:56 ab5tract_ joined #perl6
19:56 f3ew joined #perl6
19:56 protium joined #perl6
19:56 zhmylove joined #perl6
19:56 obfusk joined #perl6
19:56 atta joined #perl6
19:56 perigrin joined #perl6
19:56 El_Che joined #perl6
19:56 sjohnsen joined #perl6
19:56 avuserow joined #perl6
19:56 mattp_ joined #perl6
19:57 dustinm` joined #perl6
19:57 salparadise joined #perl6
19:57 [ptc] joined #perl6
19:57 AlexDaniel p3rln00b: perhaps it can be simplified: require Terminal::ANSIColor <&colored>; &colored = ::<&colored>;
19:57 AlexDaniel ah no
19:57 AlexDaniel sure, you'd have to give it another name
19:57 AlexDaniel nvm
19:57 mtj_ joined #perl6
19:57 andrewalker joined #perl6
19:57 AlexDaniel or… maybe not…
19:59 integral joined #perl6
19:59 integral joined #perl6
20:00 skids ergh.  omg.  systemd craziness.
20:01 skids apparently now touching any /etc/init.d/* scripts requires a daemon-reload.  And if something is disabled in /etc/default, systemd says it started it, even though it did not.
20:01 ggherdov joined #perl6
20:04 peteretep joined #perl6
20:05 tadzik joined #perl6
20:05 mrsolo joined #perl6
20:05 giraffe joined #perl6
20:07 BuildTheRobots joined #perl6
20:07 sivoais joined #perl6
20:08 PotatoGim joined #perl6
20:08 ranguard_ joined #perl6
20:08 smash joined #perl6
20:08 jdv79_ joined #perl6
20:08 dsp_ joined #perl6
20:08 sjohnsen joined #perl6
20:08 Gothmog_ joined #perl6
20:08 tinita_ joined #perl6
20:08 konobi joined #perl6
20:08 Timbus joined #perl6
20:08 atacama joined #perl6
20:08 ft joined #perl6
20:08 Upasaka joined #perl6
20:08 avar joined #perl6
20:08 ingy joined #perl6
20:08 shmibs joined #perl6
20:08 avar joined #perl6
20:08 jast joined #perl6
20:08 felher joined #perl6
20:08 broquaint joined #perl6
20:08 gfldex joined #perl6
20:08 samcv joined #perl6
20:08 Bucciarati joined #perl6
20:08 frew joined #perl6
20:08 m0ltar joined #perl6
20:08 matt| joined #perl6
20:09 yeltzooo joined #perl6
20:09 skaji joined #perl6
20:09 lucs joined #perl6
20:09 kmwallio joined #perl6
20:09 camelia joined #perl6
20:09 richi235 joined #perl6
20:09 stux|RC-only joined #perl6
20:09 esh joined #perl6
20:10 remmie joined #perl6
20:10 simcop2387 joined #perl6
20:10 xxpor joined #perl6
20:11 awwaiid joined #perl6
20:13 jnthn joined #perl6
20:13 hanekomu joined #perl6
20:16 harmil_wk skids: that's because systemd knows what you needed and ignores what you said you wanted. :)
20:17 BuildTheRobots joined #perl6
20:18 sivoais joined #perl6
20:18 mohae joined #perl6
20:19 ggherdov joined #perl6
20:20 dylanwh joined #perl6
20:21 ilmari_ joined #perl6
20:21 BinGOs_ joined #perl6
20:21 roguelazer_ joined #perl6
20:21 JimmyZ_ joined #perl6
20:21 daxim_ joined #perl6
20:21 gabiruh joined #perl6
20:21 psch_ joined #perl6
20:21 adrusi_ joined #perl6
20:21 moritz_ joined #perl6
20:22 Some-body_ joined #perl6
20:22 decent_ joined #perl6
20:22 bhm joined #perl6
20:22 ambs joined #perl6
20:22 sunnavy joined #perl6
20:22 apejens joined #perl6
20:22 freeze joined #perl6
20:22 masak joined #perl6
20:22 arnsholt joined #perl6
20:22 kst` joined #perl6
20:22 Grrrr joined #perl6
20:22 KotH joined #perl6
20:22 sergot joined #perl6
20:22 [Coke] joined #perl6
20:22 sjn joined #perl6
20:22 alnewkirk joined #perl6
20:22 pmichaud joined #perl6
20:22 hcit joined #perl6
20:22 huf joined #perl6
20:22 xfix joined #perl6
20:22 stigo joined #perl6
20:23 TeamBlast joined #perl6
20:27 notbenh joined #perl6
20:27 BuildTheRobots joined #perl6
20:27 BinGOs joined #perl6
20:30 peteretep joined #perl6
20:30 tadzik joined #perl6
20:30 mrsolo joined #perl6
20:30 Guest34241 joined #perl6
20:30 PotatoGim joined #perl6
20:31 ggherdov joined #perl6
20:31 BuildTheRobots joined #perl6
20:33 bjz joined #perl6
20:37 giraffe_ joined #perl6
20:38 pmichaud joined #perl6
20:38 Grrrr joined #perl6
20:38 stux|RC-only joined #perl6
20:38 Gothmog_ joined #perl6
20:38 ab5tract_ joined #perl6
20:38 pnu_ joined #perl6
20:38 Sgeo joined #perl6
20:38 Guest94342 joined #perl6
20:38 cosimo joined #perl6
20:38 pochi_ joined #perl6
20:38 nine joined #perl6
20:38 rmmm joined #perl6
20:38 garu_ joined #perl6
20:38 markk_ joined #perl6
20:38 pyrimidine joined #perl6
20:38 Praise joined #perl6
20:38 cgfbee joined #perl6
20:38 xinming joined #perl6
20:38 profan joined #perl6
20:38 eythian joined #perl6
20:38 bitmap joined #perl6
20:38 a3r0_ joined #perl6
20:38 Unavowed joined #perl6
20:38 ribasushi joined #perl6
20:38 dataangel joined #perl6
20:38 setty1 joined #perl6
20:38 larion_ joined #perl6
20:38 ruoso_ joined #perl6
20:39 tadzik joined #perl6
20:39 mtj_ joined #perl6
20:39 [ptc] joined #perl6
20:39 avalenn joined #perl6
20:39 k-man joined #perl6
20:39 noganex joined #perl6
20:39 vcv joined #perl6
20:39 rblackwe joined #perl6
20:39 risou___ joined #perl6
20:39 DrForr joined #perl6
20:39 jonadab joined #perl6
20:39 shadowpaste joined #perl6
20:39 Matthew[m] joined #perl6
20:39 rodarmor joined #perl6
20:39 kent\n joined #perl6
20:39 musca joined #perl6
20:39 krakan joined #perl6
20:39 aindilis joined #perl6
20:39 stevieb joined #perl6
20:39 zengargoyle joined #perl6
20:39 Juerd joined #perl6
20:39 albongo joined #perl6
20:39 riatre joined #perl6
20:39 petercommand joined #perl6
20:39 isacloud joined #perl6
20:39 khw joined #perl6
20:39 ggoebel joined #perl6
20:39 erdic joined #perl6
20:39 TimToady joined #perl6
20:39 grondilu joined #perl6
20:39 vike joined #perl6
20:39 ptolemarch joined #perl6
20:39 cyphase joined #perl6
20:39 xdbr joined #perl6
20:39 woolfy joined #perl6
20:39 cpage_ joined #perl6
20:39 llfourn joined #perl6
20:39 dj_goku joined #perl6
20:39 amalia_ joined #perl6
20:39 b2gills joined #perl6
20:39 luis` joined #perl6
20:39 saki_ joined #perl6
20:39 geekosaur joined #perl6
20:39 Guest34912 joined #perl6
20:39 awwaiid joined #perl6
20:39 xxpor joined #perl6
20:39 simcop2387 joined #perl6
20:39 richi235 joined #perl6
20:39 yeltzooo joined #perl6
20:39 frew joined #perl6
20:39 Bucciarati joined #perl6
20:39 broquaint joined #perl6
20:39 jast joined #perl6
20:39 avar joined #perl6
20:39 ft joined #perl6
20:39 konobi_ joined #perl6
20:39 salparadise joined #perl6
20:39 mattp_ joined #perl6
20:39 atta joined #perl6
20:39 obfusk joined #perl6
20:39 zhmylove joined #perl6
20:39 sQuEE joined #perl6
20:39 diegok joined #perl6
20:39 breinbaas joined #perl6
20:39 imcsk8 joined #perl6
20:39 maddingue joined #perl6
20:39 jferrero joined #perl6
20:39 zoosha joined #perl6
20:39 kshannon joined #perl6
20:39 ens joined #perl6
20:39 cxreg joined #perl6
20:39 Dunearhp joined #perl6
20:39 Alikzus joined #perl6
20:39 cooper joined #perl6
20:39 rgrinberg joined #perl6
20:39 lizmat joined #perl6
20:39 LegalResale joined #perl6
20:39 charsbar______ joined #perl6
20:39 flexibeast joined #perl6
20:39 Exodist joined #perl6
20:39 abruanese joined #perl6
20:39 araujo joined #perl6
20:39 titsuki joined #perl6
20:39 tony-o joined #perl6
20:39 mls joined #perl6
20:40 hcit joined #perl6
20:40 KotH joined #perl6
20:40 jnthn joined #perl6
20:40 camelia joined #perl6
20:40 m0ltar joined #perl6
20:40 samcv joined #perl6
20:40 gfldex joined #perl6
20:40 tinita_ joined #perl6
20:40 inokenty joined #perl6
20:40 emdashcomma joined #perl6
20:40 tailgate joined #perl6
20:40 mst joined #perl6
20:40 mspo joined #perl6
20:40 eyck_ joined #perl6
20:40 rjbs- joined #perl6
20:40 Ulti_ joined #perl6
20:40 spider-mario joined #perl6
20:40 stmuk_ joined #perl6
20:40 ShimmerFairy joined #perl6
20:40 chee joined #perl6
20:40 jcallen joined #perl6
20:40 AlexDaniel joined #perl6
20:40 xiaomiao joined #perl6
20:40 RabidGravy joined #perl6
20:40 vytas joined #perl6
20:40 Jonis joined #perl6
20:40 bartolin joined #perl6
20:40 pierrot joined #perl6
20:40 andrzejku joined #perl6
20:40 japhb joined #perl6
20:40 nightfrog joined #perl6
20:41 nowan joined #perl6
20:42 lucasb joined #perl6
20:42 awwaiid joined #perl6
20:43 jnthn RabidGravy: No, you didn't mention that (or at least, not while I was reading). fwiw, RabbitMQ is that I used to try it out against.
20:44 kipd joined #perl6
20:46 salparadise joined #perl6
20:47 sivoais joined #perl6
20:49 peteretep joined #perl6
20:49 cgfbee joined #perl6
20:51 w4and0er96 joined #perl6
20:53 rudolfochrist joined #perl6
20:54 Spot__ joined #perl6
20:54 BuildTheRobots joined #perl6
20:55 PotatoGim joined #perl6
20:55 rudolfochrist joined #perl6
20:57 mrsolo joined #perl6
20:57 timeless joined #perl6
20:58 sufrostico joined #perl6
20:58 ggherdov joined #perl6
21:06 RabidGravy jnthn, I'll have to get ActiveMQ working then :)  Which was actually the reason I was testing it in the first place ;-)
21:07 jnthn Yeah, didn't try it against that. In theory, STOMP is STOMP. In practice... ;-)
21:08 TEttinger joined #perl6
21:08 awwaiid joined #perl6
21:16 ggherdov joined #perl6
21:21 bjz joined #perl6
21:22 labster joined #perl6
21:22 ggherdov joined #perl6
21:24 canopus joined #perl6
21:29 RabidGravy actually it's a mystery how the activemq works on fedora
21:30 RabidGravy I install the package but dob't know what it installed
21:33 awwaiid joined #perl6
21:33 perlawhirl joined #perl6
21:36 jnthn 'fraid I didn't do ActiveMQ so can't help much :)
21:37 jnthn Did a bunch of kubernetes this week though...dunno if a module wrapping its API might be useful
21:37 DrForr The way ORA is flogging it it must be popuar.
21:37 DrForr *popular
21:39 jnthn ORA are flogging kubernetes?
21:39 * jnthn had no idea :)
21:39 jnthn I like it so far, though
21:39 DrForr Woops, was reading the wrong website :)
21:42 RabidGravy what is kubernetes?
21:42 yqt joined #perl6
21:42 vike joined #perl6
21:43 RabidGravy sounds like some southern mediterannean menu option
21:47 geekosaur it's an container management framework. (it's also the correct transliteration of what the ancient Greek would actually have been for "cybernetic", had they had the word)
21:48 RabidGravy ah like docker on steroids
21:48 * geekosaur notes he forgot to change the an when rephrasing what he was saying, whoops
21:49 jnthn Well, it uses Docker
21:49 jnthn Deals with rolling container configurations out across clusters, configuring replication, etc.
21:50 jnthn I guess it's to production what something like docker-compose is to development
21:52 perlawhirl hi perlers
21:52 RabidGravy boo
21:52 timotimo yo
21:53 perlawhirl Earlier this year I had the silly idea to write a datetime module for parsing and formatting, but unfortunately i really don't have the time to give it much love
21:53 perlawhirl i've put it up here: https://github.com/0racle/p6-dately
21:53 RabidGravy cool
21:53 perlawhirl I haven't worked on it in over 6 months; it's low on comments and testts, and high on ugly code
21:54 perlawhirl but it's got some good ideas... so hopefully someone wants to clone it and improve it
21:54 perlawhirl or should i just put it on ecosystem under Acme.
21:54 perlawhirl since i haven't really thoroughly tested it
21:55 benji joined #perl6
21:55 seatek joined #perl6
21:55 perlawhirl As far as I know... i don't think there are any other modules on ecosystem that do a pure perl version of strptime
21:55 xxdxdd When running 'rakudobrew build moar' I get the response 'Insecure dependency in mkdir while running setuid at /home/benj/.rakudobrew/bin/rakudobrew line 21.'
21:55 RabidGravy there's something that claims to I don't think it was complete last I looked
21:56 perlawhirl ye... DateTime::Format, i belive. it's still NYI
21:56 awwaiid joined #perl6
21:56 RabidGravy xxdxdd, that's a Perl 5 taint error
21:57 RabidGravy is your rakudobrew actually setuid?
21:57 RabidGravy (and if so why?)
21:57 xxdxdd I don't understand
21:58 RabidGravy which part don't you understand
21:58 xxdxdd everything lol
21:59 xxdxdd what do you mean by the question "is your rakudobrew actually setuid?"
22:00 RabidGravy er
22:00 rudolfochrist joined #perl6
22:02 RabidGravy the Perl 5 (which is what rakudobrew is written in,) knows that the script has been made "setuid" (that is the permissions indicate that the user should be changed on execution,) and performs some checks on inputs
22:03 RabidGravy if you do "ls -l /home/benj/.rakudobrew/bin/rakudobrew" what does it say?
22:05 xxdxdd -rwxr-xr-x 1 root root 28611 Oct 7 17:48 /home/benj/.rakudobrew/bin/rakudobrew
22:06 RabidGravy weird
22:06 seatek maybe it does that if it's being installed as user root
22:06 seatek maybe it wants to be a normal user
22:06 xxdxdd I changed permissions and it didn't fix i t
22:06 seatek what are you logged in as?
22:06 seatek who
22:06 seatek whoami?
22:06 seatek whoami
22:07 seatek that file is owned by root
22:07 seatek which could only happen if you ran it as root
22:07 seatek at some point
22:10 geekosaur joined #perl6
22:10 wamba joined #perl6
22:11 RabidGravy yeah but I'm pretty sure the taint check is only turned on explicitly if it's setuid, which that isn't
22:12 RabidGravy of course the env or perl could be
22:12 RabidGravy implicitly rather
22:12 seatek i think he ran it as root
22:12 seatek and it didn't like it
22:13 seatek and was confused about what it was complaining about
22:13 seatek but i'm guessing :)
22:14 xxdxdd I'm logged in as benj
22:14 xxdxdd and I changed the permissions
22:14 seatek to what?
22:15 seatek chmod or chown ?
22:15 xxdxdd chmod
22:15 xxdxdd u+x
22:17 seatek can you do this?   cd;sudo chown -R benj.benj .rakudobrew         (that will change all the files to be owned by you and not root in .rakudobrew)
22:17 xxdxdd still didn't fix
22:17 RabidGravy what does "ls -l `which perl`"  say?  There must be something setuid there
22:18 seatek good idea :)
22:19 seatek when you ran your rakudobrew build more -- did you "sudo" it, or did you run it as you, benj?
22:19 seatek moar
22:19 xxdxdd I ran it as benj
22:19 RabidGravy the message is entirely correct if the taint checking was turned on by it being run setuid somehow
22:19 xxdxdd when I do the ls -l
22:19 xxdxdd root owns it
22:20 seatek what are the rwx bits on it?
22:20 xxdxdd -rwsr-xr-x 2 root root
22:20 seatek aha!
22:20 RabidGravy yes
22:20 xxdxdd how do I fix it lol
22:20 xxdxdd do I just chown
22:20 seatek how did that happen?
22:20 RabidGravy chmod 0755
22:20 seatek yeah u-s
22:21 lucasb I would just rm -rf the rakudobrew dir and clone again, as the normal user this time
22:21 seatek or 0755 is clearer ;)
22:21 lucasb oops, no, the moar/nqp/rakudo clones may be there... and it's slow to clone everything again
22:22 xxdxdd it still doesn't work ;-;
22:22 seatek same error about suid?
22:22 xxdxdd I recloned the repo without sudo this time
22:22 xxdxdd yeah
22:22 xxdxdd and I also chown 0755 /usr/bin/perl
22:22 seatek yeah don't do sudo
22:22 xxdxdd still no fix
22:23 lucasb xxdxdd: do this: which perl
22:23 lucasb and then ls -l `which perl`
22:23 xxdxdd ./usr/bin/perl
22:23 RabidGravy which part was "-rwsr-xr-x" the rakudobrew or the perl?
22:23 xxdxdd -rwxr-xr-x 2 755 root 1907192 mar 13 2016 /usr/bin/perl
22:23 xxdxdd perl
22:23 bjz_ joined #perl6
22:23 seatek insane
22:23 lucasb well, the perl binary seems ok
22:24 seatek it's owned by user 755
22:24 seatek :)
22:24 lucasb oh, right!
22:24 RabidGravy this is all going pete tong
22:24 seatek i'm wearing pinwheels
22:24 geekosaur perl used to ship suid on some platforms, to allow it to emulate suid shell scripts (long, horrid story best forgotten)
22:25 seatek sudo chown root /usr/bin/perl
22:25 seatek i can remember that :)
22:25 xxdxdd did that seatek
22:25 xxdxdd still no fix
22:25 RabidGravy geekosaur, but not in living memory eh? :)
22:26 geekosaur living memory for some of us, at least
22:26 lucasb reinstall your whole distribution :D
22:26 lucasb lol, just kidding
22:26 seatek ls -l /usr/bin/perl
22:26 xxdxdd -rwxr-xr-x 2 root benj 1907192 Mar 13 2016 /usr/bin/perl
22:26 seatek i'm going to kill myself
22:26 xxdxdd did I do something wrong lol
22:27 seatek chown root.root /usr/bin/perl
22:27 RabidGravy right but something has 'rws' there
22:27 seatek sudo chown root.root /usr/bin/perl
22:27 xxdxdd done seatek
22:27 xxdxdd still doesnt fix
22:27 awwaiid joined #perl6
22:27 seatek ls -ld .rakudobrew
22:27 lucasb xxdxdd: just curiosity, what linux distro are you on?
22:27 seatek ls -ld ~/.rakudobrew
22:27 RabidGravy whether ir's the perl, the env or the rakudobrew script
22:28 xxdxdd ubuntu
22:28 xxdxdd but it's one with no dm or anything preinstalled
22:28 xxdxdd drwxrwxr-x 4 benj benj 4096 ... rakudobrew
22:28 xxdxdd .rakudobrew*
22:28 geekosaur someone overwrote that perl
22:28 seatek that could be too
22:29 seatek aw, the fun days
22:29 geekosaur the ubuntu perl is built with the perl shared object, so /usr/bin/perl is only around 18K
22:29 seatek cd; ls -l .rakudobrew
22:30 seatek oh that' sfrom march 13 -- good eye
22:30 xxdxdd drwxrwxr-x 2 benj benj ... bin
22:30 seatek no mine is th esame thing here
22:30 xxdxdd -rw-rw-r-- benj benj ... README.md
22:30 lucasb ls -ld ~/.rakudobrew
22:30 lucasb the option -d is important here :)
22:31 xxdxdd drwxrwxr-x 4 benj benj ... /home/benji/.rakudobrew
22:31 geekosaur hm, maybe they changed it recently. (I'm actually on Mint, suppose they switched on Xenial for some reason but past releases also used the perl shared object...)
22:31 skids joined #perl6
22:31 lucasb are you benj or benji?
22:31 xxdxdd benj
22:31 lucasb your home dir says different :)
22:32 xxdxdd oh that was a typo
22:32 xxdxdd lol
22:32 xxdxdd sorry
22:32 lucasb ah, ok
22:32 * masak .oO( why copy-paste when you can make typos? ) :P
22:32 seatek would you mind starting it again? you could alwyas just move your existing .rakudobrew out of the way
22:33 seatek i think he's not in a gui ;)
22:33 xxdxdd it is in a vm
22:33 seatek mv .rakudobrew .rakudobrew-funny
22:33 xxdxdd and can't use the two way clipboard thingy because virtualbox guest crap isnt installed
22:33 seatek and then do the rakudobrew install again, only not run as root this time
22:33 xxdxdd want me to just clone it again
22:34 masak 'night, #perl6
22:34 seatek yeah might want to move your .perl6 away too -- mv .perl6 .perl6-funny
22:35 seatek then you can have a fresh start
22:35 seatek but just don't do "sudo" on any of it
22:35 xxdxdd recloned it
22:35 xxdxdd without any sudos
22:35 xxdxdd still doesn't work
22:35 seatek i still haven't found a way to do perl6 site-wide yet
22:35 seatek how did you clone it?
22:37 seatek did you do git clone https://github.com/tadzik/rakudobrew ~/.rakudobrew
22:37 xxdxdd yep
22:37 xxdxdd that's how I do it
22:37 seatek echo 'export PATH=~/.rakudobrew/bin:$PATH' >> ~/.bashr
22:37 seatek that too?
22:37 seatek and then you sourced it?
22:38 seatek sorry .bashrc
22:38 xxdxdd yep
22:38 xxdxdd I do that
22:38 seatek go ahead and log out.. then log back in
22:39 seatek then cat .bashrc
22:39 xxdxdd at the very end of bashrc
22:39 seatek set | grep PATH
22:39 xxdxdd "export PATH=~/.rakudobrew/bin:$PATH"
22:39 seatek do you see rakudobrew there?
22:40 xxdxdd yep
22:40 xxdxdd ./home/benj/.rakudobrew/bin
22:40 seatek who owns it?
22:40 lucasb tadzik owns it
22:40 xxdxdd benj
22:40 seatek does it have any "s"'s on the left?
22:40 seatek what?
22:40 xxdxdd me
22:40 xxdxdd the user benj
22:41 seatek any "s"'s on the left when you do ls -l ?
22:51 awwaiid joined #perl6
22:52 bpmedley joined #perl6
22:59 dalek ecosystem: a741e59 | (Tom Browder)++ | META.list:
22:59 dalek ecosystem: update per conversation: ugexe and moritz
22:59 dalek ecosystem: review: https://github.com/perl6/ecosystem/commit/a741e596c7
23:01 tadzik owns it? :o
23:07 geekosaur someone said chown when they meant chmod
23:21 awwaiid joined #perl6
23:22 BenGoldberg joined #perl6
23:29 ugexe tbrowder: your source-url is a 404, it should be https://github.com/tbrowder/Net-IP-Lite-Perl6/archive/0.1.1.tar.gz
23:30 ugexe note if you update the META file to reflect that url you need to bump the version, release, and add the new release url as well. or if you're feeling lazy just change the source-url and replace your previous ecosystem META.list entry url with this updated META6.json link
23:31 cooper joined #perl6
23:31 cooper joined #perl6
23:40 Sgeo_ joined #perl6
23:44 Sgeo_ joined #perl6
23:45 awwaiid joined #perl6

| Channels | #perl6 index | Today | | Search | Google Search | Plain-Text | summary

Perl 6 | Reference Documentation | Rakudo