🦋 Welcome to the MAIN() IRC channel of the Raku Programming Language (raku.org). Log available at irclogs.raku.org/raku/live.html . If you're a beginner, you can also check out the #raku-beginner channel!
Set by lizmat on 6 September 2022.
00:01 reportable6 left 00:03 reportable6 joined 00:07 simcop2387 left, perlbot left, simcop2387 joined 00:10 simcop2387 left 00:12 simcop2387 joined 00:13 perlbot joined 00:35 jpn joined 00:36 jpn joined 00:41 jpn left 01:01 teatime joined 01:04 xinming left 01:06 xinming joined 02:03 jpn joined 02:08 jpn left
rf .tell tonyo: There is a bug with Fez, I uploaded a dist about 20 minutes ago, and I had a typo in the changelog. I went to go remove and re-upload but it says its been 24 hours. 03:01
tellable6 rf, I'll pass your message to tonyo
03:08 evalable6 left, linkable6 left, tellable6 left 03:09 evalable6 joined 03:10 tellable6 joined, linkable6 joined 03:12 Sussysham joined 03:16 razetime joined 03:23 jpn joined 03:25 Sussysham left 03:40 rf left 03:56 razetime left
Geth doc/main: 9cfba63d1b | cfa++ | 12 files
Another batch of C< trailing space > changes.
04:21
04:27 jpn left
Geth doc/main: c046736879 | cfa++ | 10 files
Further C< trailing space > changes.
04:33
doc/main: 546f08a665 | cfa++ | 7 files
Further C< trailing space > changes.
04:46
Xliff .tell lizmat Did you ever get around to that RakuAST article?
tellable6 Xliff, I'll pass your message to lizmat
04:47 Xliff left 04:50 cfa left 04:54 jpn joined 04:57 razetime joined 04:59 jpn left 05:15 razetime1 joined
guifa ugh I swear I can't figure out a way to make formatting any faster 05:15
05:16 razetime left, razetime1 is now known as razetime
guifa I'm a solid ~90x slower than $number.Str 05:17
Actually I guess I'm doing a bit better. I was doing full scientific formatting, but comparing to Int.Str and Int.base(10). 05:19
When doing a Num.Str and Num.base(10) with fractional components, I fair a bit better. 40x slower than .Str, and 3x slower than base(10) 05:20
I could probably go farther if I hard code a bunch of the flags rather than make them configurable, but meh 05:25
05:29 razetime1 joined 05:30 razetime left, razetime1 is now known as razetime 05:38 derpydoo left 05:42 razetime left 05:51 razetime joined 05:52 derpydoo joined 06:00 reportable6 left 06:02 reportable6 joined 06:07 razetime left 06:13 jpn joined 06:18 jpn left
guifa meh but log10 has issues grrr 06:22
m: (10, 100, 1000 … 10 ** 10).map(*.log10.floor).say 06:24
camelia (1 2 2 4 5 5 7 8 8 10)
06:42 razetime joined 06:46 teatwo joined 06:50 teatime left 07:03 jpn joined 07:08 jpn left 07:55 razetime left 08:21 razetime joined 08:51 jpn joined 08:56 jpn left 08:58 frost joined 09:00 jpn joined 09:02 merp left 09:03 frost left 09:05 jpn left 09:08 grondilu joined 09:15 jpn joined 09:19 jpn left 09:33 jpn joined 09:38 jpn left 09:44 Sgeo left 09:45 Sgeo joined 09:54 Xliff joined 10:06 nort joined 10:18 Xliff left 10:28 jpn joined 10:41 jpn left 10:48 Sgeo left
lizmat . 11:05
tellable6 2023-03-05T04:46:48Z #raku <Xliff> lizmat Did you ever get around to that RakuAST article?
lizmat working on it... :-)
11:10 abraxxa-home joined 11:15 abraxxa-home left 11:16 abraxxa-home joined 11:22 jpn joined 11:27 jpn left 11:28 derpydoo left 11:37 jpn joined 11:41 jpn left 11:47 razetime left 12:00 reportable6 left 12:02 reportable6 joined 12:26 abraxxa-home left 12:40 grondilu left 12:51 QhpAptyj9hj0RQwM joined 12:56 QhpAptyj9hj0RQwM left
Nemokosch do you know Raku libraries for simple image generation? (a matrix of letters) 12:57
I only found an imlib2 wrapper
that does seem to work but maybe somebody knows something else
moritz there's an SVG library that you could use (and then pipe through a renderer, if you need a bitmap in the end) 13:00
guifa: maybe .floor is not the best rounding for floating-pint numbers 13:03
guifa moritz: I'm testing out to see if I can do a dumb log10 function that can nearly match on speed
I just need an integer value for magnitude, where 123 | 100 | 999 == 3, and and 0.01 | 0.012 | 0.099 == -2; but 0 == 1 13:05
Nemokosch moritz: thank you, this is worth considering; perhaps I need a bitmap at the end of the day, and it would be good to observe it in a blocking way 13:15
obtain, rather
guifa moritz: this is what I've come up with 13:28
gist.github.com/alabamenhu/e0770fc...5adb429a03
it seems to be hovering about 70% slower than a $n == 0 ?? 1 !! $n.log10.[floor|ceiling], which I guess isn't a terrible sacrifice for perfect precision, give it'll only be called once per function 13:30
Voldenet Nemokosch: you could consider using ppm/pbm/pgm if you just needed bitmap 13:32
tellable6 Voldenet, I'll pass your message to Nemokosch
13:39 squashable6 left 13:42 squashable6 joined 14:12 jpn joined 14:20 jpn left
Nemokosch well I don't "just" need a bitmap, I need to upload it to discord as a part of a message basically 14:21
14:32 jpn joined 14:37 jpn left 14:49 rf joined
rf Morning folks 14:51
lizmat rf o/ 14:53
rf How are you today Liz?
lizmat pretty good... weather gloomy and grey :-( 14:54
and you ?
rf Good, thanks. Got to sleep in today which is uncommon :^) 14:55
Nemokosch sleep on, dream on 14:56
14:58 sarna left, sarna joined
rf My friend told me to post about Humming-Bird on /r/programming lol, www.reddit.com/r/programming/comme...ogramming/ 15:00
15:00 cfa joined
Geth doc/main: d976b4df72 | cfa++ | 6 files
Last batch of trailing space changes.

There are still a couple of test failures in Language/regexes.rakudoc but these are false positives (trailing space is intentional).
15:02
rf If I have a state variable in a method, will it be GC'd when the object is freed?
lizmat rf: one question: why mention "Perl 6" in the title ? 15:04
rf Thought it might catch more attention, some people I have heard still do not know Perl 6 is now called Raku 15:05
lizmat At this point, I'd say you will only catch vinegar responses on Reddit with anything related to Perl
rf Yeah probably. Tis a shame. 15:06
lizmat the people genuinely interested in Raku, know its heritage
rf Ok, I will not mention next time
lizmat indeed it is
but I stopped crying about that a long time ago, although it still hurts :-( 15:07
rf The nature of reddit I guess lol. But on the bright side I got 2 people messaging me about wanting to learn Raku so that's a ++
I told them to join IRC, and linked them a list of the books 15:08
lizmat rf++ 15:11
now maybe write a blog post on dev.to ? :-)
rf I really should get some Humming-Bird literature out there 15:13
lizmat let's fly!
rf Haha, I will write one up today :^) 15:14
lizmat wonders how many got the Star Trek Discovery reference
rf I am ashamed to say that I have never watched even a second of startrek 15:16
15:16 sarna left 15:17 sarna joined
lizmat I guess it's a boomer thing :-) 15:17
cfa no, that's bsg
lizmat :-) 15:20
not B5 ?
Nemokosch I have at least heard of Star Trek but bsg and b5 are completely beyond my comprehension 15:23
lizmat BattleStar Galactica 15:24
Babylon 5
rf Are those programming languages? //s
Nemokosch I only know that there is the theory of the Möbius :DD 15:25
a twist in the fabric of space where time becomes a loop 🎶
cfa lizmat: it was a (bad) joke about one of the pilots' callsigns 15:27
(and b5 is excellent :))
Nemokosch for now, a look like this might suffice 15:36
cdn.discordapp.com/attachments/633...output.png
lizmat wonders if Nemokosch is studying to be an ophthalmologist 15:37
Nemokosch 🤣 15:46
this is more like the zeroeth step of poor man's Boggle
el what 15:47
is that
16:03 jpn joined 16:07 jpn left
Geth doc: coke self-assigned xt/rakudoc-c.rakutest false positives github.com/Raku/doc/issues/4251
coke self-unassigned xt/rakudoc-c.rakutest false positives github.com/Raku/doc/issues/4251

  cfa++ created pull request #4252: xt/rakudoc-c.rakutest: respect `Z<ignore-code-ws>`
16:10
doc/main: fa65dcc53b | (Will Coleda)++ | 2 files
Rename for some consistency
16:15
doc/main: 68c898ced5 | cfa++ (committed by Will Coleda) | 2 files
xt/rakudoc-c.rakutest: respect Z<ignore-code-ws>

Z<ignore-code-ws> indicates that the following whitespace check ought to be skipped.
Add a couple of these Z<>s to doc/Language/regexes.rakudoc, pass.
16:16
16:58 jpn joined 17:04 jpn left
Geth doc/main: 68f4c76432 | cfa++ | doc/Language/regexes.rakudoc
Add a space between Z<> and C<> to appease aspell

  `Z<ignore-code-ws>C<PostgreSQL is an >` is tokenised as
  ... `wsPostgreSQL` ... during spellcheck.
Adding space between the two codes shouldn't affect rendering.
Addresses (and hopefully closes) #4251.
17:16
17:23 teatwo left 17:25 teatime joined
Geth doc/main: b23449349b | cfa++ | doc/Language/syntax.rakudoc
Language/syntax.rakudoc: Fix incorrectly formatted C<> code
17:32
doc/main: 25a7d497a6 | cfa++ | doc/Language/5to6-perlfunc.rakudoc
Trim leading space, tidy.
17:38
doc/main: 92d2180a36 | cfa++ | doc/Language/5to6-perlfunc.rakudoc
Fix C<> markup
17:40
17:54 jpn joined
Anton Antonov For those poor souls who do use Mathematica here is a teaser: 17:55
cdn.discordapp.com/attachments/633...-table.png
17:59 jpn left 18:00 reportable6 left
guifa Anton: as the math guy 18:00
if something were formatting using, say, 3 significant figures
18:00 reportable6 joined
guifa format 1.2345 -> '1.23' 18:01
format 12.345 -> '12.3'
format 123.45 -> '123.' or '123' ?
or do you do the dot just when it ends in a significant zero or is that overkill? 18:02
Anton Antonov @guifa Interesting question. Normally I would say number-form(123.45, :3n) should give 123. (i.e. with a dot.) 18:04
@guifa But I know that Raku complains when numbers finish with "." when parsing various types of inputs. (CSV, Raku, etc.) 18:05
guifa This is for the international formatting, so I'm not worried about reverse consumption necessarily 18:06
18:12 QhpAptyj9hj0RQwM joined
Anton Antonov @guifa Here is what Matheamtica does with different "number forms." 18:18
cdn.discordapp.com/attachments/633...g-at-3.png
rf lizmat: dev.to/rawleyfowler/writing-micro-...-bird-59k4
Anton Antonov @guifa This tutorial might of interest to you: reference.wolfram.com/language/tut...html#20024 18:20
Is there a Raku are tool for generating CLI scripts? If I remember correctly, someone recently posted here a link to a Raku module that does something like that... 18:22
Geth doc/main: 6d47f750d5 | cfa++ | doc/Programs/04-running-raku.rakudoc
Fix broken link (leading slash missing)
18:23
lizmat rf++ 18:25
18:30 QhpAptyj9hj0RQwM left
Geth doc/main: dee3fbb6f4 | cfa++ | 7 files
Fix a few more broken links
18:32
cfa sorry for the Geth spam today 18:34
Nemokosch this is happy spam ^^ 18:36
shmup nice job rf
18:37 jpn joined
rf Thanks! It's my first piece of literature with code in awhile lol 18:38
shmup found a typo for ya: "Now if we change the age to say 14, we should so a 400 Bad Request response:" 18:41
lizmat shmup++
18:42 jpn left 18:44 Sgeo joined 18:46 teatwo joined
rf shmup thanks! 18:47
18:48 tea3po joined 18:49 teatime left 18:51 teatwo left
Voldenet rf: just fyi, X-whatever headers are deprecated by some rfc, it was decided that it was better to use {orgname}-{header} instead 18:54
Geth ¦ doc: coke self-assigned Definition of infix:<eqv> is not correct github.com/Raku/doc/issues/3346 18:55
Voldenet things got confusing fast because of standardized headers starting with x- ;/
Geth ¦ doc: coke self-unassigned Definition of infix:<eqv> is not correct github.com/Raku/doc/issues/3346
doc/main: da8629423e | (Will Coleda)++ | doc/Language/variables.rakudoc
prefer non-html internal links
19:02
rf Voldenet: Yeah mostly uses it just as an example here
Mostly to show off middleware
Voldenet well getting requirements like this isn't anything new 19:03
it is what it is
guifa AntonAntonov: thanks!
Geth ¦ doc: coke self-assigned Document environment variables for testing github.com/Raku/doc/issues/2637 19:08
¦ doc: coke self-assigned Uniform file names in the Languages directory github.com/Raku/doc/issues/2244 19:11
19:20 jpn joined 19:24 jpn left
Geth ¦ doc: coke self-assigned Styling of types github.com/Raku/doc/issues/2954 19:27
19:28 derpydoo joined 19:37 jgaz joined
rf Voldenet: Yeah the goal of the post is mostly just building something with Humming-Bird 19:43
Geth doc/type-links: 969eee6216 | (Will Coleda)++ | xt/rakudoc-c.rakutest
Type names must be links, not just code

part of #2954
19:49 jpn joined 19:54 jpn left 20:10 tellable6 left, evalable6 left, xinming left, gfldex left, Sauvin left, jmcgnh left, sftp left, silug left, samcv left, Scotteh left, nativecallable6 left, benchable6 left, sourceable6 left, bloatable6 left, unicodable6 left, statisfiable6 left, tinita left, bartolin_ left, tobs left, japhb left, jjatria left, sivoais left, corwin left, ecocode_ left, polettix_ left, Ulti_ left, nicole left, gordonfish left 20:11 tellable6 joined, evalable6 joined, xinming joined, gfldex joined, sftp joined, silug joined, samcv joined, Scotteh joined, nativecallable6 joined, benchable6 joined, sourceable6 joined, bloatable6 joined, unicodable6 joined, statisfiable6 joined, tinita joined, bartolin_ joined, tobs joined, japhb joined, jjatria joined, sivoais joined, corwin joined, ecocode_ joined, polettix_ joined, Ulti_ joined, nicole joined, gordonfish joined, Sauvin joined 20:12 corwin left, gordonfish left 20:13 gordonfish joined, corwin joined 20:14 jmcgnh joined 20:17 sivoais left 20:18 sivoais joined 20:24 jgaz left 20:39 Xliff joined
Xliff I have working Raku bindings for much of LibAdwaita now. 20:43
gnome.pages.gitlab.gnome.org/libad...index.html
lizmat Cool! 20:44
Xliff Working through the bugs with the demos.
There are... quite a few.
guifa how much does Raku break if you set $*TOLERANCE to 0 ? 20:48
(or does it not at all?)
lizmat it might break some programs assuming some floating point values are (not) equal ? 20:53
I don't think Raku itself will suffer ?
guifa hrmph. I was hoping the answer would be "it all breaks" so I can make some assumptions haha 20:56
I've found a slightly faster way for formatting digits. The problem is, I need to know the total number of digits to format. Easy enough when the flag for maximum-fractional-digits is anything other than infinity 20:57
I was thinking maybe to cut back infinity to however far back $*TOLERANCE goes and multiplying accordingly, but if $*TOLERANCE Is 0, will error out somewhere 20:58
Geth doc/type-links: 0fc319dbbc | (Will Coleda)++ | xt/rakudoc-c.rakutest
fix L<C< order, add leading /
21:13
21:25 euandreh joined 21:38 jpn joined 21:42 jpn left
rf Hmm, I think I'm going to try to make a tradition out of writing Raku blog posts on Sunday 22:06
22:29 QhpAptyj9hj0RQwM joined 23:13 jpn joined
Nemokosch sounds great! 23:13
23:14 QhpAptyj9hj0RQwM left
by the way, you could check on us on the Raku Study Group SF zoom meetups, one is taking place right now, usually it starts every second sunday 1pm pacific time 23:16
23:18 jpn left
rf Is it on zoom? 23:30
Nemokosch yes 23:31
rf Oh, lol missed the "zoom" in your message 23:32
I can attend next one, I have to leave in about 5 minutes
Nemokosch okay okay. The next one will be in three weeks accidentally, Joe Brenner (doomvox) will be away 23:33
rf Sounds good! 23:34
Nemokosch this is the repo with the notes github.com/doomvox/raku-study Perl also often comes up because there are some traditionally Perl folks 23:35
this time I got to see XS code, well... I won't miss it. NQP is Shakespeare compared to it 😄
Voldenet inline C was pretty nice, fast and all that 23:48