»ö« 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:01
nadim left
|
|||
jnthn | SmokeMachine: In some ways, a feature of my post was that we can test the route impl even without having written the real store. :-) But yes, of course a Red impl of it is a nice thing :) | 00:01 | |
SmokeMachine: Feel free to put it up as a sample app somewhere | 00:02 | ||
Though note the suggest-tree would need to check for if there's a tree already submitted at that location :) | |||
You already have the unique constraints, so probably can map an exception into the domain exception | 00:03 | ||
And yes, if the Red example you wrote there already really works, please do put it in the ecosystem. :) | 00:04 | ||
00:04
dotdotdot joined
00:05
p6bannerbot sets mode: +v dotdotdot,
pierrot left,
pierrot joined,
p6bannerbot sets mode: +v pierrot
00:07
molaf joined
00:08
p6bannerbot sets mode: +v molaf
|
|||
SmokeMachine | jnthn: the example works... just the unique constraint isn’t working, and I’m not sure why... (not with my computer now) | 00:11 | |
00:11
ryn1x joined
00:12
p6bannerbot sets mode: +v ryn1x
|
|||
SmokeMachine | jnthn: my problem of adding red to the ecosystem is it needs more tests and several NYI operators... | 00:13 | |
jnthn | SmokeMachine: Sure, but it looks like it's already capable enough to be useful for various things? :) | 00:14 | |
SmokeMachine | jnthn: I hope so! :) | 00:17 | |
00:34
uzl joined
00:35
p6bannerbot sets mode: +v uzl
00:38
pierrot left
00:39
pierrot joined,
p6bannerbot sets mode: +v pierrot
|
|||
uzl | .tell jmerelo After fiddling with tbrowder's p6advent-md2html, this is the html I got: uzluisf.gitlab.io/sample-advent/ . I guess the css will be provided by the WP website?! | 00:43 | |
yoleaux | uzl: I'll pass your message to jmerelo. | ||
00:46
zacts joined,
p6bannerbot sets mode: +v zacts
|
|||
AlexDaniel | uzl: yes, pretty much. Do you have the [+ Write] button on perl6advent.wordpress.com/ ? | 00:49 | |
if not you should be given access to it | |||
00:49
i1nfusion left
00:51
i1nfusion joined
00:52
p6bannerbot sets mode: +v i1nfusion
|
|||
uzl | AlexDaniel: I got the link for Perl 6 WP from moritz and created the account but haven't look well into it yet. | 00:53 | |
AlexDaniel | uzl: yeah, but if you're logged in and you go to perl6advent.wordpress.com/, is there a button to create a new post? | ||
uzl: if yes, then you can already make a draft | 00:54 | ||
and you'll see how it is going to look | |||
uzl | AlexDaniel: Alright. I'll take a look! ;) | ||
AlexDaniel | uzl: fwiw an hour ago when my post became public, worpress ate all of the < > | 00:55 | |
so that's something to look for… | |||
also uploading a wordpressified version ahead of time can help :) | 00:56 | ||
01:07
ryn1x left
|
|||
jnthn | The best way I've found to deal with wordpress is 1) write markdown, 2) put it into a gist, 3) copy-paste the rendered gist into the Wordpress editor. :) | 01:11 | |
(That doesn't get you nice highlighted code, alas) | |||
daxim | stackoverflow.com/questions/539004...ing-uax-29 | 01:17 | |
01:20
zacts left
01:22
zacts joined,
p6bannerbot sets mode: +v zacts
|
|||
jnthn | daxim: Answered :) | 01:23 | |
daxim | that's neat! 👍 | 01:26 | |
I can accept in 2 minutes | 01:27 | ||
SmokeMachine | jnthn: www.irccloud.com/pastebin/m22K8ThX/ | 01:33 | |
jnthn: what do you think? (now unique constraints are working...) | 01:34 | ||
jnthn | SmokeMachine: Lovely. The CATCH is a catching absolutely everything rather than just a constraint failure; perhaps it's hard to portably know that's what is wrong, but if it were possible, that'd be neat | 01:43 | |
(I've a similar situation on a $dayjob app, but there's only one DB being used there, and I just do a /UNIQUE/ or some such on the error message... :) | 01:44 | ||
I do wonder if that add-unique-constraint call wants a BEGIN | 01:45 | ||
01:45
irdr left
|
|||
jnthn | Also, what'd happen if I marked both latitude and longitude as `is id`, to try and get a composite primary key? | 01:46 | |
Does that Just Work? | |||
01:46
irdr joined
01:47
p6bannerbot sets mode: +v irdr
01:49
uzl left,
uzl joined
01:50
p6bannerbot sets mode: +v uzl
01:51
molaf left
|
|||
SmokeMachine | jnthn: what about now? www.irccloud.com/pastebin/R8J559ZF/ | 01:53 | |
jnthn: now working yet... gimme 15 min... :P | |||
jnthn: that's why I need people using it... | 01:54 | ||
jnthn | SmokeMachine: My fear with the pattern matching is that different databases will word the error differently. | ||
Time for me to sleep; 'night o/ | 01:55 | ||
SmokeMachine | jnthn: that's true... currently Red do not throw own exceptions... | ||
i think it should... | 01:56 | ||
jnthn: thanks! good night! | |||
02:13
uzl left
02:14
uzl joined,
p6bannerbot sets mode: +v uzl
02:23
zacts left
|
|||
timotimo | o/ | 02:34 | |
uzl | AlexDaniel: I was able to get it done! Although I couldn't get a link to share the scheduled post here before it goes live. Schedule date: 12/25/18 at 12:01 AM. | 02:41 | |
Thanks! | |||
02:44
uzl left
|
|||
SmokeMachine | .tell jnthn www.irccloud.com/pastebin/0UE3Frlh/ | 02:48 | |
yoleaux | SmokeMachine: I'll pass your message to jnthn. | ||
02:49
HarmtH left
|
|||
timotimo | doesn't look bad, SmokeMachine, but i hope there can be a prettier way to add that unique constraint in there | 02:52 | |
maybe red could, like, call all methods with a specific name where you could do setup like that? | |||
since model surely already has something like a specific compose phase or something | 02:53 | ||
maybe even $*RED.add-unique-constraint? | |||
SmokeMachine | timotimo: if its a single column unique constraint, you do: `has Type $.col-name is column{ :unique }` | ||
you could do `Tree.^add-unique-constraint` | 02:54 | ||
timotimo | true | 03:01 | |
SmokeMachine | timotimo: what do you think of releasing Red? | 03:11 | |
timotimo | release early, release often :) | 03:23 | |
i'd say it looks quite good, release it :) | |||
SmokeMachine | twitter.com/smokemachine/status/10...4582816773 | 03:32 | |
timotimo | nice | ||
i'll retweet that when i've had a good night's rest | |||
carbon.now.sh/?bg=rgba(171%2C%2018...p;wm=false - btw :) | 03:39 | ||
er | |||
no need for the long url actually | |||
SmokeMachine | does that highlight perl6? | ||
timotimo | not really :| | 03:40 | |
maybe we can get them to, though? | |||
SmokeMachine | we could try... :) | ||
timotimo | btw, how do you feel about a trait or something that prevents methods on the HOW to be called from anything other than methods of the model itself? :) | 03:42 | |
hm. probably a better idea to have a private attribute with the model inside instead? | |||
SmokeMachine | I think something like that could be a good idea! | 03:43 | |
03:49
evalable6 left,
evalable6 joined,
ChanServ sets mode: +v evalable6
03:50
p6bannerbot sets mode: +v evalable6
04:03
Cabanoss- joined
04:04
p6bannerbot sets mode: +v Cabanoss-
04:05
Cabanossi left
04:19
bolangi left
04:20
bolangi joined
04:21
p6bannerbot sets mode: +v bolangi
04:26
liamr4c left
04:38
i1nfusion left
04:39
i1nfusion joined,
kurahaupo left
04:40
p6bannerbot sets mode: +v i1nfusion
04:45
Kaiepi left,
Kaiepi joined
04:46
p6bannerbot sets mode: +v Kaiepi
05:02
Cabanossi joined,
p6bannerbot sets mode: +v Cabanossi
05:03
Cabanoss- left
|
|||
buggable | New CPAN upload: Algorithm-LDA-0.0.8.tar.gz by TITSUKI modules.perl6.org/dist/Algorithm::L...an:TITSUKI | 05:14 | |
05:19
aindilis left
05:20
aindilis joined
05:21
p6bannerbot sets mode: +v aindilis
05:27
bolangi left
05:29
bolangi joined,
p6bannerbot sets mode: +v bolangi
05:56
moony left,
moony joined,
p6bannerbot sets mode: +v moony
06:21
aindilis left
06:31
aindilis joined,
p6bannerbot sets mode: +v aindilis
06:38
riatre left
06:39
riatre joined
06:40
p6bannerbot sets mode: +v riatre
07:03
jmerelo joined
07:04
p6bannerbot sets mode: +v jmerelo
|
|||
jmerelo | squashable6: status | 07:04 | |
yoleaux | 00:43Z <uzl> jmerelo: After fiddling with tbrowder's p6advent-md2html, this is the html I got: uzluisf.gitlab.io/sample-advent/ . I guess the css will be provided by the WP website?! | ||
squashable6 | jmerelo, Next SQUASHathon in 12 days and ≈2 hours (2019-01-05 UTC-12⌁UTC+14). See github.com/rakudo/rakudo/wiki/Mont...Squash-Day | ||
jmerelo | .tell uzl great! Now just schedule it at Wordpress and you're good to go! | 07:05 | |
yoleaux | jmerelo: I'll pass your message to uzl. | ||
sacomo | hi all | 07:27 | |
07:28
rindolf joined
07:29
p6bannerbot sets mode: +v rindolf
|
|||
sacomo | does anyone know of a way to detect if a test is being run during `zef install` from inside the .t file? | 07:29 | |
07:32
domidumont joined
|
|||
moritz | sacomo: what do you want to achieve? | 07:32 | |
07:33
p6bannerbot sets mode: +v domidumont
|
|||
sacomo | I can use an env var or move a test to xt, but I am looking for a simple way to skip a test during install only. just wondering if there is some exposed envvar or flag that indicates a test is being run during module installation. | 07:34 | |
jmerelo | sacomo: I don't think so. What you are looking for is a test that only runs during zef test but not during zef install? | 07:36 | |
sacomo: There could be some way, but it will probably be a hack and not supported... | 07:38 | ||
sacomo | yeah, that is what I was thinking. ok, no worries. I will just move it to xt. | 07:39 | |
thanks | |||
jmerelo | sacomo: that's probably the wise thing to do. | ||
sacomo: ugexe, the main zef author, is usually active in StackOverflow. You can try and ask there too. | |||
sacomo | ok, thanks | 07:40 | |
jmerelo | sacomo: what you are proposing, anyway, it's a very interesting idea. A zef introspection API would be a nice thing. Maybe expose the phase as a dynamic variable, or simply as a Zef::API call. | 07:41 | |
sacomo | yeah, I can think of a few uses for something like this | 07:44 | |
Xliff | Someone have any idea on the best way to release something that takes almost 40 minutes to precompile? | ||
Would love some ideas. Thanks! | 07:45 | ||
o/ | |||
jmerelo | Xliff: as in, a note saying "hang in there, buster, some way to go?" | ||
Xliff: or you want to make that time shorter? | |||
Xliff: Whenever something takes a long time to do something I stuff it into a Docker container. Compile once, download it in no time. | 07:46 | ||
Xliff: but I don't know if that's what you're looking for. Probably not. | |||
moritz | Xliff: are you generating rainbow tables at compile time? :D | 07:49 | |
07:52
jeek left
|
|||
jmerelo | Xliff: also, maybe use macros? They're experimental, but they mostly work... | 08:00 | |
Has everyone checked out today's advent calendar entry by AlexDaniel? perl6advent.wordpress.com/2018/12/...tmas-soon/ | 08:06 | ||
Some help spreading the word would help, too :-) It's going to be there for the search engines, but still, | 08:14 | ||
08:14
kent\n left
08:15
kent\n joined,
p6bannerbot sets mode: +v kent\n
08:23
mowcat left
08:31
aindilis left
08:33
Hotkeys joined,
p6bannerbot sets mode: +v Hotkeys
08:35
ufobat___ joined,
p6bannerbot sets mode: +v ufobat___
08:37
molaf joined
08:38
p6bannerbot sets mode: +v molaf
08:54
daotoad left
|
|||
jmerelo | Next question in StackOverflow will be the number 900 stackoverflow.com/questions/tagged/perl6 Who wants to do the honors? | 08:56 | |
08:57
pmurias left
|
|||
jmerelo | Also help with this one: stackoverflow.com/questions/539023...-variables | 08:57 | |
09:00
pmurias joined,
p6bannerbot sets mode: +v pmurias
|
|||
Geth | doc: 909627c51d | (JJ Merelo)++ | doc/Language/experimental.pod6 Adding some macro features refs #2514 |
09:04 | |
synopsebot | Link: doc.perl6.org/language/experimental | ||
09:12
nadim joined
09:13
p6bannerbot sets mode: +v nadim
09:54
daotoad joined,
daotoad left
10:08
pmurias left
10:12
pmurias joined,
p6bannerbot sets mode: +v pmurias
|
|||
pmurias | Xliff: why does your thing take 40 minutes to precompile? | 10:13 | |
10:14
HarmtH joined
10:15
p6bannerbot sets mode: +v HarmtH
10:16
pmurias left
10:18
pmurias joined,
p6bannerbot sets mode: +v pmurias
|
|||
Geth | Pod-To-HTML: finanalyst++ created pull request #56: typo in template file distorts CSS |
10:29 | |
10:32
i1nfusion left
10:34
i1nfusion joined
10:35
p6bannerbot sets mode: +v i1nfusion
10:37
HarmtH left
|
|||
Geth | Pod-To-HTML: d99a2ef7dd | finanalyst++ | resources/templates/main.mustache typo in template file distorts CSS |
10:41 | |
Pod-To-HTML: 700ea5a3b5 | (Richard Hainsworth)++ (committed using GitHub Web editor) | resources/templates/main.mustache Merge pull request #56 from finanalyst/master typo in template file distorts CSS |
|||
10:58
ufobat___ left
11:04
kurahaupo joined,
p6bannerbot sets mode: +v kurahaupo
11:16
oodani left,
oodani joined
11:17
p6bannerbot sets mode: +v oodani
11:29
pmurias left
11:31
pmurias joined,
p6bannerbot sets mode: +v pmurias
|
|||
Geth | Pod-To-HTML: finanalyst++ created pull request #57: bump version |
11:48 | |
11:50
molaf left
|
|||
Geth | Pod-To-HTML: b507ec3034 | finanalyst++ | META6.json bump version |
12:00 | |
Pod-To-HTML: 98d16f6aac | (Richard Hainsworth)++ (committed using GitHub Web editor) | META6.json Merge pull request #57 from finanalyst/master bump version |
|||
doc: finanalyst++ created pull request #2519: bump Pod::To::HTML version |
12:02 | ||
12:14
xinming_ left
12:17
xinming_ joined,
p6bannerbot sets mode: +v xinming_
12:18
m0ltar left
12:23
m0ltar joined,
p6bannerbot sets mode: +v m0ltar
12:33
jmerelo left
|
|||
buggable | New CPAN upload: Uzu-0.2.9.tar.gz by SACOMO modules.perl6.org/dist/Uzu:cpan:SACOMO | 12:54 | |
13:28
domidumont left
14:14
bolangi left
14:16
bolangi joined
14:17
p6bannerbot sets mode: +v bolangi
14:22
lookatme_q left
14:25
lookatme_q joined
14:26
p6bannerbot sets mode: +v lookatme_q
14:31
pmurias left,
mowcat joined
14:32
p6bannerbot sets mode: +v mowcat
|
|||
SmokeMachine | jnthn: I think with this get exceptions with patern matching will not be needed: github.com/FCO/Red/issues/69 | 14:34 | |
jnthn | SmokeMachine: Yeah, that's a reasonable idea | 14:35 | |
yoleaux | 02:48Z <SmokeMachine> jnthn: www.irccloud.com/pastebin/0UE3Frlh/ | ||
SmokeMachine | I think I’ll try to release Red before Christmas... | 14:36 | |
jnthn | Which year? :D | ||
SmokeMachine | But my I’m afraid of releasing to early and it have a lot of bugs, and everybody think it doesn’t work and never try again... | 14:38 | |
jnthn: the day after tomorrow. :D | |||
That’s why I haven’t released yet... | 14:39 | ||
That could be a lot of bugs, or less features that it needed... | 14:40 | ||
jnthn | Yeah, it's tricky. With Cro I was going to reveal it at a conference talk, so I had a deadline :P | 14:41 | |
SmokeMachine | jnthn: I was thinking of releasing it the same day of my advent calendar post... | 14:44 | |
Idk why I didn’t... | |||
I’d like to have some people using it to let me fix the bugs and implement the needed features before releasing... | 14:46 | ||
14:51
ufobat joined
14:52
p6bannerbot sets mode: +v ufobat
|
|||
ufobat | how can i troubleshoot why a run() did return an exitcode of -1 | 15:05 | |
Juerd | Multi-line qq{} does not seem to interpolate {}. Is that intended behaviour? | ||
Hm, or maybe qq{} doesn't do {} at all. I thought it did work at least yesterday... | 15:11 | ||
ufobat | M: my $p = run <yada>; $p.out.slurp(:close).say | ||
m: my $p = run <yada>; $p.out.slurp(:close).say | |||
camelia | Invocant of method 'slurp' must be an object instance of type 'IO::Handle', not a type object of type 'IO::Pipe'. Did you forget a '.new'? in block <unit> at <tmp> line 1 |
||
ufobat | huh? | ||
Juerd | m: say qq{4 = { 16.sqrt }} | 15:12 | |
camelia | 4 = { 16.sqrt } | ||
Juerd | m: say "4 = { 16.sqrt }" | ||
camelia | 4 = 4 | ||
Juerd | m: say Q:c{4 = { 16.sqrt }} | ||
camelia | 4 = { 16.sqrt } | ||
Juerd | m: say qq:c{4 = { 16.sqrt }} | 15:13 | |
camelia | 4 = { 16.sqrt } | ||
Juerd | m: say qq[4 = { 16.sqrt }] | ||
camelia | 4 = 4 | ||
Juerd | Meh? | ||
ufobat | i would expect qq{} to behave like qq[] | 15:17 | |
could it be that run() fails to invoke commands that are in paths with spaces in it? | 15:21 | ||
on windows | 15:22 | ||
SmokeMachine | I’m not with my computer here, but I just remembered a question I have to ask: does anyone have any idea of why if I remove this `no precompilation` everything breaks? github.com/FCO/Red/blob/master/lib...ors.pm6#L5 | 15:27 | |
jnthn: do you have any idea? ^^ | 15:28 | ||
15:53
epony left
16:07
epony joined,
p6bannerbot sets mode: +v epony
16:25
aindilis joined
16:26
p6bannerbot sets mode: +v aindilis
16:46
domidumont joined,
p6bannerbot sets mode: +v domidumont
16:51
zacts joined,
p6bannerbot sets mode: +v zacts
|
|||
SmokeMachine | AlexDaniel: why have you used ProblemSolver as example? | 16:52 | |
I’m just curious | 17:03 | ||
17:07
lizmat left
|
|||
SmokeMachine | ufobat: hi! | 17:08 | |
ufobat: I was reading IoC... have you seen Injector (github.com/FCO/Injector)? | 17:09 | ||
17:26
Manifest0 joined,
p6bannerbot sets mode: +v Manifest0
|
|||
ufobat | not yet | 17:29 | |
17:29
pmurias joined,
p6bannerbot sets mode: +v pmurias
|
|||
ufobat | Injector looks magical :) | 17:30 | |
SmokeMachine | ufobat: :) is it a good thing?! :P | 17:31 | |
ufobat | that is not a right questionfor a perl6 adept | 17:32 | |
you dont have much boilerplate, i like it | 17:33 | ||
it is not obivous how it works | 17:34 | ||
SmokeMachine | When I was writing it my first thought was to port Bread::Board but then I thought it could look more perl6... | 17:35 | |
(Even for me... I don’t think I remember how it work...) | 17:36 | ||
ufobat | i need to admit, from the README.md and the example i dont know how to use it correctly, how to do block injection and stuff like this | 17:37 | |
17:38
reach_satori left
|
|||
ufobat | i started a module called XML::Rabbit, do you know that, SmokeMachine? that does also exist in perl5 | 17:40 | |
SmokeMachine | ufobat: there is no block inject... | 17:42 | |
ufobat: no... I haven’t known... reading it... | 17:43 | ||
ufobat | dont read my module, i failed on it | ||
have a look at the original | 17:44 | ||
i was just reminded on this, when you said "do it more in the perl6 way" | 17:45 | ||
moritz | also, "don't exaggerate" | 17:46 | |
SmokeMachine | That looks fun! | ||
ufobat: are you writing it? | 17:47 | ||
ufobat | writing what? | ||
SmokeMachine | moritz: is there such a thing as “too much perl6”? | ||
ufobat: the perl6 XML::Rabbit | 17:48 | ||
ufobat: still writing that? | 17:49 | ||
17:49
zacts left
|
|||
ufobat | I just started it, I am currently not giving it any love :-( | 17:49 | |
SmokeMachine | I have a problem: when I see something that looks fun, I tend to stop everything I’m doing to do that “shine thing”... | 17:53 | |
But I’ll not get any new module to write until I release Red | |||
Does any one here live on the uk? | 17:55 | ||
ufobat | i am looking forward for Red | ||
SmokeMachine | ufobat: really? Do you feel like using it? | 18:01 | |
ufobat | i would give it a go instead of using DBIish directly for a project i am doing with a friend | 18:02 | |
SmokeMachine | ufobat: what do you think of using it and help me finding bugs and missing features? | 18:05 | |
ufobat | a friend of mine is doing the perl6 part, in this project. i already recommended Red to him. but he is gone for 1-2 weeks for xmas holidays | 18:06 | |
of course I would write issues and such if I run intro troubles | |||
18:11
trex42 joined,
p6bannerbot sets mode: +v trex42
|
|||
SmokeMachine | :) | 18:12 | |
trex42 | . | 18:15 | |
ufobat | hi trex42 | 18:16 | |
18:19
lizmat joined,
p6bannerbot sets mode: +v lizmat
18:23
random_yanek left
18:25
random_yanek joined
18:26
random_yanek left
18:28
random_yanek joined,
p6bannerbot sets mode: +v random_yanek
|
|||
ufobat | SmokeMachine, help | 18:34 | |
my, err your StrictClass has a bug | 18:35 | ||
SmokeMachine | ufobat: where? Red? | ||
ufobat | github.com/ufobat/p6-StrictClass | 18:36 | |
tadzik | hmm | ||
maybe github.com/tadzik/ClassX-StrictConstructor hasn't :) | |||
SmokeMachine | Hum! StrictClass! | 18:37 | |
What’s the bug? | |||
ufobat | let me write a test :-) | 18:38 | |
tadzik, !!! :D | |||
tadzik | ufobat: that's a "great minds think alike" moment :P | ||
ufobat | gist.github.com/ufobat/9b10e0cb68e...012c1bb6a1 | 18:41 | |
^^ SmokeMachine | |||
18:42
pmurias left
|
|||
ufobat | the funny thing is, in my real world problem i do get a different error | 18:44 | |
SmokeMachine, could it behave different depending if you put the classes and roles in a seperate file | 18:46 | ||
SmokeMachine | ufobat: I’m sorry, I’m not with my computer now... | 18:47 | |
ufobat | SmokeMachine, no worries could you have a look at it later in the next couple of days? | 18:48 | |
SmokeMachine | Sure! As soon as I come home... | 18:49 | |
ufobat | awesome :-) | 18:50 | |
and in the meanwhile i'll prove that there are bugs in tadziks module ;-) | |||
good night guys! | 18:51 | ||
18:51
dustinm` joined
18:52
p6bannerbot sets mode: +v dustinm`
18:54
loops left
18:55
ufobat left
19:09
mowcat left
|
|||
nadim | SmokeMachine: care to explain what it does? | 19:20 | |
SmokeMachine | nadim: sorry, what? | 19:21 | |
nadim | Maybe I misunderstood from the conversation above, thought you wrote Injector | 19:22 | |
SmokeMachine | nadim: yes, I did | ||
nadim | what is it? | 19:23 | |
not obvious to me from the readme | |||
SmokeMachine | It’s a ioc the same idea of the ufobat’s IOC | 19:24 | |
nadim: but you just add an `is injected` where you want to inject stuff... | 19:25 | ||
And `bind()` what you want to be injected... | |||
nadim | I'll look at Stevan's module, there's documentation ;) | 19:26 | |
rindolf | nadim: hi | ||
nadim | rindolf: hi | 19:27 | |
rindolf | nadim: sup? | 19:28 | |
SmokeMachine | nadim: I don’t know how to explain ioc... I think that’s why I couldn’t write a good doc... | ||
rindolf | SmokeMachine: inversion of control? | ||
nadim | SmokeMachine: steal the doc from Bread::Board ;) | ||
moritz | internet of crap :) | ||
rindolf | moritz: heh | ||
SmokeMachine | rindolf: yes | 19:29 | |
nadim: that is a good idea! :) | |||
nadim: do you understand at least a little what Injector does? | 19:31 | ||
nadim | little, run time dependency, aka comfiguration, kind plugins that have to be plugged in. what I got after 3min, I may be completely wrong | 19:32 | |
20 years old concet/name and it's the first time I hear about it! | 19:33 | ||
moritz | the idea is: if A needs B, it doesn't instantiate B itself, but gets the B supplied from the outside | 19:34 | |
19:35
trex42 left
|
|||
moritz | a Web Scraper needs a HTTP user agent: it doesn't built it itself, it just declares that it needs one | 19:35 | |
and then you can use outside configuration to supply a HTTP user agent that conforms to the desired API | 19:36 | ||
nadim | that's what I meant with plugins that have to be plugged in | ||
sorta pure virtual functions in c++ except that the instantiation is done somewhere else | 19:37 | ||
19:39
domidumont left
|
|||
SmokeMachine | The beauty of this is that if I want to test that web scraper, I can change the http use agent without changing the web scraper and mock it... | 19:39 | |
19:40
kst left
|
|||
nadim | isn't it exactly what we have doing with plugins for 40 years? | 19:41 | |
moritz | it's not a new idea :) | ||
it's also not a complicated thing | |||
nadim | indeed not, composition is old as linux pipeline | 19:42 | |
I don't see the usage pattern (when/where/why) but get the principle | |||
seen timotimo around? | 19:47 | ||
19:47
reach_satori joined
19:48
p6bannerbot sets mode: +v reach_satori
19:49
kurahaupo left,
kurahaupo joined
19:50
p6bannerbot sets mode: +v kurahaupo
20:14
kurahaupo left,
kurahaupo joined
20:15
p6bannerbot sets mode: +v kurahaupo
20:21
kent\n left
|
|||
rindolf | nadim: i started reading ruby.github.io/rake/doc/rakefile_rdoc.html and rake seems powerful and handy, but i'm wondering if github.com/nkh/P5-PerlBuildSystem is similar in capabilities | 20:25 | |
20:28
kent\n joined,
p6bannerbot sets mode: +v kent\n
20:29
rindolf left
|
|||
nadim | rindolf: yes minus all the bullshit in rake | 20:31 | |
20:39
rindolf joined
20:40
p6bannerbot sets mode: +v rindolf,
zacts joined,
p6bannerbot sets mode: +v zacts
20:44
ufobat joined,
p6bannerbot sets mode: +v ufobat
20:49
zacts left
20:51
zacts joined,
p6bannerbot sets mode: +v zacts
|
|||
vrurg | If anybody can help with stackoverflow.com/questions/539071...eclaration – I'd be very grateful! :) | 21:00 | |
lizmat | vrurg: have you looked at how OO::Monitors does that ? | 21:03 | |
21:15
Xliff_ joined,
p6bannerbot sets mode: +v Xliff_
21:30
|oLa| joined
21:31
p6bannerbot sets mode: +v |oLa|
|
|||
AlexDaniel | SmokeMachine: that's the only pretty graph I had | 21:40 | |
maybe this one is also good though: gist.github.com/AlexDaniel/d8020ef...erview-svg | 21:41 | ||
and this one is definitely not pretty: gist.github.com/AlexDaniel/3296f8c...erview-svg | 21:42 | ||
:D | |||
also it's old (it didn't show versions back then, so you see multiple arrows when it means different module versions) | 21:43 | ||
21:51
sno left
21:52
Cabanossi left
21:53
Cabanossi joined
21:54
p6bannerbot sets mode: +v Cabanossi
21:55
martin__ joined
21:56
p6bannerbot sets mode: +v martin__
21:58
ufobat left
|
|||
AlexDaniel | e: say (‘abc’ ~ (‘foo’ x 999999999) ~ ‘xyz’).contains: ‘fooxyz’ | 21:59 | |
evalable6 | True | 22:00 | |
AlexDaniel | timotimo: huh, I didn't know that it finishes at all | ||
that's pretty fast actually for 999999999 repetitions | |||
not as fast as if it skipped the repeated part, of course, but still not horrible | 22:01 | ||
22:05
|oLa| left,
martin__ left
|
|||
nadim | 30 sec on my laptop | 22:12 | |
what is surprising it that it uses only 81 MB memory | 22:17 | ||
22:19
Hotkeys left
|
|||
timotimo | o/ | 22:25 | |
22:32
zacts left
|
|||
buggable | New CPAN upload: HTTP-Supply-0.3.2.tar.gz by HANENKAMP modules.perl6.org/dist/HTTP::Supply...:HANENKAMP | 22:34 | |
22:46
loops joined,
p6bannerbot sets mode: +v loops
22:50
jeek joined
22:51
p6bannerbot sets mode: +v jeek
22:59
zacts joined,
p6bannerbot sets mode: +v zacts
|
|||
vrurg | lizmat: Sorry for not replying instantly, had to leave... OO::Monitors handles classes, not roles. | 23:14 | |
lizmat | vrurg: ok, so that means you did look at that ? | ||
vrurg | I sure did. Actually, Jonathan was the one who pointed me into this direction. | 23:15 | |
23:15
epony left
|
|||
vrurg | And it does work for classes. | 23:15 | |
23:18
|oLa| joined
23:19
p6bannerbot sets mode: +v |oLa|
|
|||
timotimo | you should be able to do much of the same stuff as OO::Monitors, but instead of ClassHOW use the right other HOW, there are multiple with "Role" or "Parametric" in their name, one of them is the right one | 23:20 | |
23:23
SqrtNegInf left
|
|||
vrurg | timotimo: The problem is that role is being initialized differently. Look into Actions.nqp, line 3157. | 23:24 | |
23:25
ferreira left
|
|||
vrurg | It doesn't matter what HOW is used – would it be ParametricRoleHOW itself – if the keyword is not 'role' then one gets the error. | 23:25 | |
timotimo | curious | ||
23:26
rindolf left
|
|||
timotimo | right, that makes sense. huh. | 23:26 | |
jnthn | Yeah, it's hard-coded on the $*PKGDECL at the moment. Probably it should be replaced with looking at $*PACKAGE.HOW.archetypes.parametric or whatever it's called | ||
timotimo | sounds like it'd be $package instead of $*PACKAGE, maybe | ||
jnthn | I didn't look at the code :P | ||
I think there is a dynamic though :) | |||
timotimo | yeah, $*LEAF | 23:27 | |
jnthn | But yeah, if there's a local then use that :) | ||
timotimo | i want to be leaf | ||
jnthn | I be leaf in you | ||
I'm fine with patching it to look at archetypes instead, anyway. | |||
I think the code may pre-date the archetypes existing | 23:28 | ||
And then nobody tried to do their own role-y meta-objects until now | |||
timotimo | vrurg++ # operating at the edge of known science | ||
jnthn | Indeed :) | ||
I'm glad to see more and more folks doing MOP stuff. At first I was like, "oh no, have I created something only I understand to use?" :) | 23:29 | ||
vrurg | jnthn: So far, it's only you, I'm afraid. But I hope to get back on this same time next year... ;) | 23:30 | |
timotimo | i've also been MOPing! well, last time was a couple of years ago already ... | ||
jnthn | Yeah, SmokeMachine++ has been making nice use of the meta-level in Red also :) | 23:31 | |
timotimo | .archetypes.databasy | ||
vrurg | Since we're taking on this... Where can I find an example of patching the grammar? I've seen it before, just can't recall... | 23:33 | |
timotimo | slangs, like tuxic for example | ||
jnthn | Various Slang:: modules would be doing it | ||
timotimo | you probably want to look at the refine-slang method on ... something :) | 23:34 | |
vrurg | Exactly! Thanks! | 23:35 | |
SmokeMachine | jnthn: thanks! :) | 23:38 | |
23:38
jeek left
|
|||
nadim | timotimo: so what was you DDT/6Pad integration idea? | 23:38 | |
vrurg | timotimo: hm, neither googling, nor grepping came up with anything on refine-slang. Kidding me? | 23:39 | |
timotimo | i must have remembered it wrong | ||
nadim: i'm not entirely sure yet; i think the whateverables should be able to output a gist of the right "format", so we could totally have a regexable bot that dumps a match object, or even cooler: give a steppable little html interface from a regex trace | 23:40 | ||
vrurg | Nevermind... I have enough now. It's about a very simple injection of a single keyword. | ||
timotimo | ok, it has to be define_slang | 23:41 | |
i thought a refine_slang also existed | |||
23:42
i1nfusion left
|
|||
nadim | timotimo: I am not following, yet, is it a regex dump you want to give (including the steps it takes) or any object dunp? automatically or under the user control? | 23:43 | |
timotimo | all of those would be interesting, i think | ||
23:44
i1nfusion joined
|
|||
timotimo | like, it could put the input text and starting regex into the 6pad, maybe also in a textarea with an "evaluate" button to allow for experimentation without recompiling the code itself | 23:44 | |
nadim | I just noticed that it is not possible to use a module through the interface | ||
timotimo | and outputting the match object with DDT should be a nice possibility | ||
that's possibly just a matter of having the right $*REPO built for the job | |||
23:45
p6bannerbot sets mode: +v i1nfusion
|
|||
timotimo | pmurias would probably know how to do this | 23:45 | |
nadim | timotimo: let me check what example I have, I haven't touched this for a year | ||
timotimo | that's fine. i probably need a bit of time with a notepad :) | 23:47 | |
nadim | if you install the latest version of DDT, there is an example/match,pl in the distro | 23:48 | |
It shows multiple ways to dump a match | 23:49 | ||
they are all much shorter than the standard dd output | 23:50 | ||
23:50
Manifest0 left
|
|||
nadim | DDT doesn't dump matches by default, it's an extra role. So it would be easy to modify if we want something else | 23:51 | |
and there is all the filtering one can do to make things even better looking | |||
23:52
Sgeo joined
23:53
Manifest0 joined,
p6bannerbot sets mode: +v Sgeo
23:54
p6bannerbot sets mode: +v Manifest0,
lizmat left
23:56
lizmat joined,
p6bannerbot sets mode: +v lizmat
|
|||
nadim | timotimo: Damian had Regexp::Debugger for P5 a niffty application I liked, I remember adding a few request to it. Something like that would be cool. | 23:58 | |
timotimo | yeah | 23:59 |