🦋 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.
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
Geth doc/main: 9cfba63d1b | cfa++ | 12 files
Another batch of C< trailing space > changes.
04:21
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
guifa ugh I swear I can't figure out a way to make formatting any faster 05:15
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
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)
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... :-)
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
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
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
rf My friend told me to post about Humming-Bird on /r/programming lol, www.reddit.com/r/programming/comme...ogramming/ 15:00
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
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
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
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
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
Anton Antonov For those poor souls who do use Mathematica here is a teaser: 17:55
cdn.discordapp.com/attachments/633...-table.png
guifa Anton: as the math guy 18:00
if something were formatting using, say, 3 significant figures
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
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
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
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++
rf shmup thanks! 18:47
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
Geth ¦ doc: coke self-assigned Styling of types github.com/Raku/doc/issues/2954 19:27
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
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
rf Hmm, I think I'm going to try to make a tradition out of writing Raku blog posts on Sunday 22:06
Nemokosch sounds great! 23:13
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
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