🦋 Welcome to Raku! raku.org/ | evalbot usage: 'p6: say 3;' or /msg camelia p6: ... | irclog: colabti.org/irclogger/irclogger_log/raku
Set by ChanServ on 14 October 2019.
Xliff_ my my $hf = "/usr/include/blah/blorp.h"; $a = "unit package Blah::Blorp"; $a = s[^^ ( 'unit package ' <[ \w : ]>+ ) $$] = "\n\n### { $hf }\n{ $/[0] }"; $a.say 00:01
m: my $hf = "/usr/include/blah/blorp.h"; $a = "unit package Blah::Blorp"; $a = s[^^ ( 'unit package ' <[ \w : ]>+ ) $$] = "\n\n### { $hf }\n{ $/[0] }"; $a.say
camelia 5===SORRY!5=== Error while compiling <tmp>
Variable '$a' is not declared
at <tmp>:1
------> 3my $hf = "/usr/include/blah/blorp.h"; 7⏏5$a = "unit package Blah::Blorp"; $a = s[
Xliff_ m: my $hf = "/usr/include/blah/blorp.h"; my $a = "unit package Blah::Blorp"; $a = s[^^ ( 'unit package ' <[ \w : ]>+ ) $$] = "\n\n### { $hf }\n{ $/[0] }"; $a.say
camelia Use of uninitialized value of type Any in string context.
Methods .^name, .perl, .gist, or .say can be used to stringify it to something meaningful.
in block <unit> at <tmp> line 1
Xliff_ m: my $hf = "/usr/include/blah/blorp.h"; my $a = "unit package Blah::Blorp"; $a = s[^^ ( 'unit package ' <[ \w : ]>+ ) $$] = "\n\n### { $hf }\n{ $0 }"; $a.say 00:02
camelia Use of uninitialized value of type Any in string context.
Methods .^name, .perl, .gist, or .say can be used to stringify it to something meaningful.
in block <unit> at <tmp> line 1
Xliff_ m: my $hf = "/usr/include/blah/blorp.h"; my $a = "unit package Blah::Blorp"; $a = s[^^ ( 'unit package ' <[ \w : ]>+ ) $$] = "\n\n### { $hf }\n{ 1 }"; $a.say
camelia Use of uninitialized value of type Any in string context.
Methods .^name, .perl, .gist, or .say can be used to stringify it to something meaningful.
in block <unit> at <tmp> line 1
Xliff_ m: my $hf = "/usr/include/blah/blorp.h"; my $a = "unit package Blah::Blorp"; $a = s[^^ ( 'unit package ' <[ \w : ]>+ ) ';' $$] = "\n\n### { $hf }\n{ $/[0] }"; $a.say
camelia Use of uninitialized value of type Any in string context.
Methods .^name, .perl, .gist, or .say can be used to stringify it to something meaningful.
in block <unit> at <tmp> line 1
Xliff_ m: my $hf = "/usr/include/blah/blorp.h"; my $a = "unit package Blah::Blorp"; $a ~~ s[^^ ( 'unit package ' <[ \w : ]>+ ) $$] = "\n\n### { $hf }\n{ 1 }"; $a.say 00:03

### /usr/include/blah/blorp.h
Xliff_ m: my $hf = "/usr/include/blah/blorp.h"; my $a = "unit package Blah::Blorp"; $a ~~ s[^^ ( 'unit package ' <[ \w : ]>+ ) $$] = "\n\n### { $hf }\n{ $0 }"; $a.say

### /usr/include/blah/blorp.h
unit package Blah::Blorp
Xliff_ m: my $hf = "/usr/include/blah/blorp.h"; my $a = "unit package Blah::Blorp"; $a ~~ s[^^ ( 'unit package ' <[ \w : ]>+ ) $$] = "\n\n### { $hf }\n{ $0 };"; $a.say

### /usr/include/blah/blorp.h
unit package Blah::Blorp;
Geth doc: kjpye++ created pull request #3092:
Change link for Math::Constants to point to the top of the repo.
ZzZombo lizmat: great, now I'm happy again. ;) 00:55
tellable6 2019-11-17T21:57:06Z #raku <lizmat> ZzZombo github.com/rakudo/rakudo/commit/ed8f5141fe
00:58 hythm joined
Geth doc: c14f5e2d96 | (Stoned Elipot)++ | doc/Type/Method.pod6
Fix preposition
04:17 hythm left 04:25 b2gills joined 05:20 xinming_ left, xinming_ joined 05:45 Xliff joined 05:48 rindolf joined
Geth doc: 565f07df04 | (Kevin Pye)++ | doc/Language/math.pod6
Change link for Math::Constants to point to the top of the repo.

Previously this pointed into the "pulls" area, which could be confusing for git or github neophytes.
doc: 49813fff75 | (Juan Julián Merelo Guervós)++ (committed using GitHub Web editor) | doc/Language/math.pod6
Merge pull request #3092 from kjpye/math

Change link for Math::Constants to point to the top of the repo.
06:29 jmerelo joined 07:04 kensanata joined 07:15 jaldhar_ joined 07:18 abraxxa joined 07:23 abraxxa left 07:24 abraxxa joined 07:29 abraxxa left, abraxxa joined
Geth doc: Kaiepi++ created pull request #3093:
Document Metamodel::Documenting
07:35 jmerelo left 08:09 mid_home left 08:20 robertle joined
lizmat Xliff: self is *always* decontainerized. having \SELF: as the invocant, make sure that it is *not* decontainerized 08:30
Xliff: in ZzZombo's example, the subst-rw needed access to the invocant's container
Xliff: because Any.ASSIGN-POS was decontainerizing, it tried to change the immutable string in it, which fails 08:31
Xliff: you can work around this for earlier, unfixed versions by adding an ASSIGN-POS method to the StrIdx role 08:33
Geth doc: 7e90dd91d9 | (Ben Davies)++ | 2 files
Document Metamodel::Documenting

This also makes "documenting's" and "metarole" valid words.
doc: 410f7215fd | (Juan Julián Merelo Guervós)++ (committed using GitHub Web editor) | 2 files
Merge pull request #3093 from Kaiepi/metamodel-documenting

Document Metamodel::Documenting
09:03 sena_kun joined 09:05 scimon joined 09:08 Altai-man_ joined 09:10 sena_kun left 09:28 pmurias joined
pmurias [Coke]: hi 09:29
09:33 daxim joined 09:37 pmurias left 09:39 pmurias joined 10:03 mid_laptop joined 10:19 stdev joined 10:31 steale joined 10:33 Kaiepi joined 10:34 stdev left 10:41 mid_laptop left 11:09 sena_kun joined 11:10 Altai-man_ left 11:31 mid_laptop joined 11:33 steale left
Altreus SmokeMachine: seems to work! 11:33
I got a «false» in my JSON :)
SmokeMachine Altreus: :)
Altreus Does it work if it doesn't have a type? Or is there a default type? 11:35
11:44 pmurias left
SmokeMachine Altreus: sorry, what do you mean? 11:46
11:49 steale joined
Altreus SmokeMachine: I mean, is it OK if «$!attr.type.^name» is ... you know, Any, or Mu, or whatever? 11:54
I don't recall whether it's required for a column to have a data type
(in code) 11:55
11:55 pmurias joined
Altreus Maybe it defaults to Str 11:55
12:12 joule joined 12:13 joule left 12:15 rindolf left 12:21 rindolf joined 12:30 scimon left 12:31 rindolf left 12:34 mensvaga joined 12:39 jaldhar_ left 12:52 cpan-raku joined, cpan-raku left, cpan-raku joined 12:57 mid_laptop left 13:08 lucasb joined, Altai-man_ joined 13:10 sena_kun left 13:12 joule joined 13:23 mid_laptop joined, mensvaga left 13:57 rindolf joined 14:09 Guest85410 joined 15:04 steale left, steale joined 15:09 sena_kun joined 15:10 Altai-man_ left 15:25 steale left
Kaiepi m: class Foo { my atomicint $next-index = 0; has Int:D $.index = $next-index⚛++ }; say Foo.new.index; say Foo.new.index; say Foo.new.index; 15:45
camelia 0
Kaiepi m: class Foo { my atomicint $next-index = 0; has Int:D $.index = $next-index⚛++ }; BEGIN say Foo.new.index; BEGIN say Foo.new.index; BEGIN say Foo.new.index;
camelia 5===SORRY!5=== Error while compiling <tmp>
An exception occurred while evaluating a BEGIN
at <tmp>:1
Exception details:
5===SORRY!5=== Error while compiling
Lexical with name '$next-index' has wrong type. real type 8 wanted type…
Kaiepi there are other ways to deal with what i'm trying to do with $!index, but is there a bug here? 15:47
15:52 ilbelkyr joined
[Coke] pmurias: oops. 16:04
[Coke] digs up last email thread with pmurias 16:05
[Coke] gets back on track. 16:10
16:11 robertle left, pmurias left 16:44 kensanata left 16:46 ab6tract joined
ab6tract p6: class Foo { my $next-index = 0; has Int:D $.index = $next-index++ }; BEGIN Foo.new.index.say; BEGIN Foo.new.index.say 16:51
camelia 0
ab6tract Kaiepi looks like a bug to me
japhb ab6tract, Kaiepi: I use that same idiom in one of my modules; precomp doesn't break it, but I haven't tried BEGIN time within the same module yet (I only create objects in that class at runtime). 16:54
ab6tract yeah BEGIN is not a context i would expect much utility from for this kind of singleton stuff, to be honest. but the fact that it compiles with regular but bails with atomic does seem to point to a hidden issue 16:57
japhb: also, nice to see you! how have things been? 17:00
17:02 finanalyst joined
ab6tract jnthn: is the issue Kaiepi flagged perhaps a compilation order issue somehow? 17:03
jnthn ab6tract: Well, I guess, but it's not like it's going to preserve the value of a lexical over the compilation boundary anyway; that only happens if it's closed over. 17:05
So even if it worked it'd still not really work.
ab6tract fair enough :)
17:06 chloekek_ joined
jnthn But yeah, it's worth reporting 17:06
Kaiepi aight
jnthn 'cus I guess it'd show up in some other context somehow
ab6tract they usually do :(
17:08 Altai-man_ joined 17:10 sena_kun left 17:18 Kaiepi left 17:31 Kaiepi joined
El_Che still more people on #perl6, mm 17:35
Altreus more like #denial 17:45
mspo who can do the forward 17:46
El_Che mst? 17:50
17:54 mid_laptop left
cxreg cj: hey bud 18:10
I forget, did I do something with MySQL? 18:11
oh wow, like 9 years ago :D 18:13
18:16 robertle joined
cxreg cj: did you ever figure that out? 18:17
18:27 wildtrees joined 18:40 stoned75 joined
cj cxreg: nopers 18:49
have you ever gotten DBIish to work at all?
Looks like Salvador Oritz and Rob Taylor have been doing not too distant historical commits. 18:50
trying to build from f359c84f93dfd69ce9cd5533204a3a895f4dfe2e 18:51
[DBIish] # Connect failed with error DBIish: DBDish::mysql needs 'mysqlclient', not found 18:52
sudo apt-get install default-libmysqlclient-dev
[DBIish] # DBIish: DBDish::mysql needs 'mysqlclient', not found
but it's installing, so maybe it worked this time. 18:53
18:59 MasterDuke joined 19:05 mid_home joined 19:06 maettu joined 19:08 ab6tract left 19:10 Altai-man_ left
El_Che cj: don't keep us in suspense 19:17
19:18 abraxxa left
cj I'm not trying to! 19:18
I brought up a VM to do this development on so I don't break my workstation
El_Che :) 19:19
cj right now, the vm can't start ...
Nov 18 11:16:53 raku systemd[1]: mariadb.service: Failed with result 'exit-code'.
gee, that's super useful.
running the mysqld myself manually launches the db no problem. 19:20
El_Che systemctl status mariadb
journalctl -xv
cj Active: failed (Result: exit-code) since Mon 2019-11-18 11:16:53 PST; 3min 28s ago
the line above was from journalctl -xv
19:20 abraxxa joined
cj Process: 32203 ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /var/run/mysqld (code=exited, status=127) 19:20
[Coke] has a long running bot on a MOO server called CJ, so I keep going "ah, what's the bot doing" 19:21
[Coke] waves at cj. 19:22
mspo wow a MOO
cj hello Mr. Coke
mspo [Coke]: is it called Mu ? :) 19:23
19:33 sena_kun joined 19:39 wildtrees left
[Coke] hURLS en.wikipedia.org/wiki/LambdaMOO 19:39
mspo: that server has been up since I was in college, so late 80s/early 90s 19:40
lizmat And another Rakudo Weekly hits the Net: rakudoweekly.blog/2019/11/18/2019-46-guidance/ 19:43
mspo [Coke]: I believe it 19:45
[Coke]: I knew a few MUD survived but MUSH and MOO were pretty rare even back then
19:47 Guest85410 left
mspo MUDs were the only part of the internet that I liked when I first got on 19:50
BBS were better otherwise ;)
cj looks like installing a new systemd fixed it. I've loaded my schema and am now getting an error on connect 19:53
my $dbh = DBIish.connect('mysql', :socket</var/run/mysqld/mysqld.sock>,:database<grammar>, :user<grammaradm>, $password); 19:54
Too many positionals passed; expected 2 arguments but got 3
MasterDuke cj: maybe try `:$password` 20:02
cj $ echo $? 20:03
thanks, MasterDuke!
MasterDuke np 20:04
20:23 pmurias joined
[Coke] For me, BBS were junior high, MUDs were college. (High school was probably AOL) 20:28
cj ICQ in HS for me. 1455395 is me 20:29
but IRC throughout. Probably just the last year of middle school, though.
oh, I guess it was "junior high" for me, too. I switched from Poulsbo Middle School (PMS) to Kingston Junior High (KJH) in my ninth grade year, so I collectively refer to 7th-9th as either MS or JH. Life's so complicated. 20:31
[Coke] the MOO/MUD in college were because that clique hated early 90s IRC. 20:33
(and were coming off a mainframe chat app)
cj anyhow, here's some mysql failure to get your mind off of that... 20:34
the connect succeeds, but not the ... is it a do()...?
no, it's a prepare() 20:35
DBIish: DBDish::mysql needs 'mysqlclient', not found 20:43
20:55 wamba joined 21:00 joule left, Kaiepi left 21:01 pmurias left 21:04 Kaiepi joined 21:06 rindolf left 21:08 Altai-man_ joined 21:11 sena_kun left 21:12 pmurias joined
cj maybe it has something to do with the rename of the client libraries in recent releases of debian? 21:19
is it looking for a .a or a .so there? 21:20
same error changing mysqlclient to mariadbclient:
anyone know what `NativeLibs::Searcher.at-runtime()` is? 21:21
21:24 wildtrees joined 21:30 asdfan joined 21:31 asdfan left
cj is it looking through dynamic libraries or static libraries? 21:36
ah. I needed to put libmariadb.so.3 in there instead of mysqlclient or mariadbclient 21:38
yes. Now it's working. My schemes are coming to fruition... 21:39
gist.github.com/cjac/97177ebedfbbf...2f5f806aec 21:43
21:56 pmurias left
Xliff cj: Heh. Now try Red. 22:10
cj Xliff: yeah, I'm looking at it now 22:11
Xliff :)
22:18 pmurias joined 22:20 abraxxa left, abraxxa joined, abraxxa left 22:23 chloekek_ left
cj are there tools to auto-generate the raku code from the database schema? 22:25
Xliff No, but I was working on something like that. 22:26
cj okay. I'm trying to create a model for typed feature structures and grammars which use them
22:27 wamba left
cj these feature structures use inheritence, so maybe RDBMS are not the best way to model them... 22:27
but whatever. I think I can make inheritence work with triggers and views
Xliff See: github.com/Xliff/perl6-Parser-Sql 22:29
Not it's not even close to being finished.
cj here's the schema definition in case you want to use it as an example :-) 22:30
22:31 finanalyst left
Xliff m: IO::Spec::Unix.new.say 23:09
camelia IO::Spec::Unix.new
Xliff m: IO::Spec::Unix.splitdir("/a/b/c").say
camelia ( a b c)
Xliff m: IO::Spec::Unix.splitdir("/a/b/c").elems.say
camelia 4
23:10 sena_kun joined 23:11 Altai-man_ left