01:04 zetaaaa left 01:05 lucs left, lucs joined 01:18 zetaaaa joined 02:21 johnjaye joined
johnjaye question. is there a reason that variable names cannot have dashes followed by numbers? i read this and found things like x-6 are not allowed as variables 02:22
ugexe it would be ambiguous with subtraction 02:29
02:48 zetaaaa left
johnjaye interesting 02:57
tonyo librasteve: how long of a talk need it be? 03:54
tellable6 tonyo, I'll pass your message to librasteve_
04:24 arkiuat left 04:50 arkiuat joined 04:55 arkiuat left 05:12 Aedil joined, Aedil left, Aedil joined 05:24 arkiuat joined 05:58 arkiuat left 06:00 oodani left 06:03 oodani joined 06:12 itaipu left 06:20 arkiuat joined 06:25 arkiuat left 06:28 nativecallable6 left, notable6 left, shareable6 left, greppable6 left, tellable6 left, bisectable6 left, benchable6 left, bloatable6 left, linkable6 left, tailgate left, bdju left, Aedil left, coverable6 left, abraxxa left, kjp left, johnjaye left, ACfromTX left 06:29 kjp joined, tailgate joined, bdju joined, itaipu joined, johnjaye joined, notable6 joined, shareable6 joined, abraxxa joined 06:30 unicodable6 left, tellable6 joined, bisectable6 joined, nativecallable6 joined, unicodable6 joined, linkable6 joined, bloatable6 joined, benchable6 joined, coverable6 joined 06:34 greppable6 joined 06:39 Sgeo left 06:40 ACfromTX joined 06:45 kylese joined 06:46 kylese left 06:47 kylese joined 06:53 Aedil joined 06:54 arkiuat joined 06:59 arkiuat left 07:21 arkiuat joined 07:26 arkiuat left 07:53 arkiuat joined 07:58 arkiuat left 08:09 dakkar joined 08:22 arkiuat joined 08:27 arkiuat left 08:33 apac joined
ab5tract johnjaye: note that you can use single quotes in identifiers 08:39
I think that applies also to variable names, but alas my iPhone keyboard doesn’t seem to have a proper single quote to try it out with 08:40
08:55 arkiuat joined 09:00 arkiuat left
disbot5 <simon_sibl> probably not the most optimized, but already amazed how short and straightforward it is to do in Raku xD glot.io/snippets/hbv94lalt1 09:04
09:07 librasteve_ joined
librasteve_ tonyo: we are looking at 20 mins talks (ie 15 mins + Q&A) and maybe a longer format if there are speakers and sufficient time 09:11
tellable6 2025-10-09T03:54:47Z #raku <tonyo> librasteve: how long of a talk need it be?
lizmat simon_sibl one nit: is that how you spell dictionary ? :) but cool indeed :-) 09:12
librasteve_ m: my $o'dell = 42; say $o’dell; 09:13
camelia ===SORRY!=== Error while compiling <tmp>
Variable '$o' is not declared. Perhaps you forgot a 'sub' if this was
intended to be part of a signature?
at <tmp>:1
------> my $o'dell = 42; say <HERE>$o’dell;
librasteve_ my $o'dell = 42; say $o'dell; 09:14
m: my $o'dell = 42; say $o'dell;
camelia 42
lizmat yeah, the second ' was a 2019 RIGHT SINGLE QUOTATION MARK ’ 09:15
librasteve_ (turns out macOS terminal interprets “‘” differently to IRCcloud)
neat demo of why this feature should be avoided!
disbot5 <librasteve> @simon_sibl one neat trick with regex (and thus Grammars) is to use look ahead assertion to employ the built in raku syntax, for example 09:22
<librasteve> my regex number { \S+ #grab chars <?{ +"$/" ~~ Real }> #assert coerces via '+' to Real }
09:23 arkiuat joined
disbot5 <simon_sibl> lmaooo sorry xD native french xD 09:24
<simon_sibl> I will fix this xD
<simon_sibl> sorry I am probably tired, would that help making the grammar I made easier ? I try to keep it short, would that help while keeping it not "bloated" xD 09:27
Voldenet ' in variable names is cursed code - I once made a toy programming language that allowed spaces and tabs in variable names
it was horrible idea
09:28 arkiuat left
disbot5 <librasteve> Voldenet: amen to that - the only use case that I could imagine would be to have a single quote at the end such as my $a; my $a'; my $a''; (ie a prime, a douple prime) as in math / physics notation - but that is explicitly disallowed in raku identifiers anyway 09:29
Voldenet instead of a'' consider a" 09:30
disbot5 <librasteve> @simon_sibl - if you are looking for an Int, then standard regex digits (as you have) is definitely better - I was just mentionning in case you want to parse something like a Num or Rat 09:31
Voldenet but $a_ and $a__ is actually good replacement
disbot5 <librasteve> excellent point
lizmat I guess one of the reasons for allowing ' in identifiers is:
m: m: sub don't($a) { say "do not $a" }; don't "foo
camelia ===SORRY!=== Error while compiling <tmp>
Unable to parse expression in double quotes; couldn't find final '"' (corresponding starter was at line 1)
at <tmp>:1
------> on't($a) { say "do not $a" }; don't "foo<HERE><EOL>
expecting any of:
lizmat m: m: sub don't($a) { say "do not $a" }; don't "foo"
camelia do not foo
disbot5 <librasteve> .oO ... that makes (very limited) sense 09:32
<simon_sibl> silly quick question, how does zef/Rakuland find new raku module ? 09:39
<simon_sibl> or "how to submit a module"
<librasteve> you need "fez" for that 09:40
<librasteve> docs.raku.org/language/modules 09:41
<librasteve> raku.land/zef:tony-o/fez 09:42
<librasteve> also, many folk use App::Mi6 to automate release and change control 09:43
<librasteve> raku.land/zef:skaji/App::Mi6
<simon_sibl> thanks, I tried to upload the basic Bencode file xD lets see 09:47
Voldenet m: sub d'_'b($a) { say "♫⋆。♪ ₊˚♬゚.$a♫⋆。♪ ₊˚♬゚." }; d'_'b "foo" 09:54
camelia ♫⋆。♪ ₊˚♬゚.foo♫⋆。♪ ₊˚♬゚.
Voldenet yeah it's nice 09:55
09:56 arkiuat joined 10:01 arkiuat left 10:25 eseyman left 10:26 arkiuat joined 10:28 manu_ joined 10:31 arkiuat left 10:32 apac left
ds7832 Is there any place where one can buy Camelia stickers, to put on laptops and such? 10:46
disbot5 <librasteve> lizmat may be able to help 10:48
11:00 arkiuat joined 11:05 arkiuat left 11:06 apac joined 11:09 arkiuat joined 11:14 arkiuat left 11:20 apac left, apac joined 11:26 apac left
lizmat actually, sjn would be the guy to contact for that -) 11:27
disbot5 <simon_sibl> well now I got a problem with Bencode and Grammar, how do I parse torrent file with raw bytes in it that arent utf8 ? I tried the latin-1 trick but it doesnt seem to solve the issue, it doesnt match anything when I try with latin-1 11:34
<simon_sibl> the code can be found here: raku.land/zef:4zv4l/Bencode / github.com/4zv4l/Raku-Bencode 11:40
11:44 arkiuat joined 11:49 arkiuat left
disbot5 <simon_sibl> yeah for some reason it reads too much (2 characters too much) when there is the bytes part (trying with Debian torrent netinstall file) 11:59
<simon_sibl> cdimage.debian.org/debian-cd/curre...so.torrent 12:00
<simon_sibl> this one
12:10 arkiuat joined 12:14 arkiuat left
ab5tract simon_sibl: Buf and Blob should do the trick 12:15
12:30 arkiuat joined
[Coke] (camelia stickers). I can help with that probably Q1 2025. (where's my UV printer, Bruce!?) 12:53
disbot5 <simon_sibl> let me try 12:55
<simon_sibl> not sure how tho, I do the encoding with latin-1, and I cant give a blob or buf to grammar.parse
<simon_sibl> I read the right amount of byte I guess (62640 so cannot count manually but Blob.bytes shows the same amount) 12:57
<simon_sibl> so I dont understand why it reads a bit too much 12:58
13:04 MoC joined
SmokeMachine Talking about terrible ideas for programming languages, reminded me this: github.com/FCO/bernalang 13:09
disbot5 <simon_sibl> if that helps for people to check: glot.io/snippets/hbvfzohnob 13:13
<simon_sibl> I added the link to the torrent file and to my lib (the lib code isnt necessary here, I took the code for the parser out)
tbrowder yo, anyone else having a prob with zef not finding recent updated distros? 13:15
cf bencode, Text::Utils 13:16
Bencode is found (i mispelled) 13:18
13:41 Sgeo joined 14:53 melezhik joined 15:09 arkiuat left 15:12 johnjaye left 15:14 johnjaye joined 15:21 arkiuat joined 15:25 arkiuat left 15:29 arkiuat joined 15:34 arkiuat left 15:40 apac joined 15:48 abraxxa left, abraxxa1 joined 15:59 abraxxa1 left, abraxxa joined 16:03 arkiuat joined 16:08 arkiuat left 16:19 arkiuat joined 16:20 arkiuat left 16:31 dakkar left 16:38 apac left 16:46 arkiuat joined 16:58 apac joined 17:19 manu_ is now known as eseyman 17:22 MoC left, zetaaaa joined
disbot5 <.landyacht.> Is there any guidance for using NativeCall on Mac? I’m trying to get some code of mine portable, but Mac complains about libcrypto being loaded in an unsafe way. I can solve it by specifying the version the system has installed explicitly (e.g. is native(‘libcrypto.46’)) but that’s obviously not sustainable 17:38
<.landyacht.> My initial thought is a very early phaser to look in the system libraries path but I don’t know how viable or good that is… 17:40
<antononcube> @Rog I do all of my Raku-NativeCall project on macOs. See "Math::DistanceFunctions::Edit" or "Math::SparseMatrix::Native" .
<.landyacht.> I’ll take a look, thanks 17:41
<antononcube> I followed the setup (for NativeCall packages) by titsuki and bduggan. 17:42
<.landyacht.> Oh, is this using your own C code? 17:46
17:48 vasko4 left 17:49 vasko45 joined
disbot5 <antononcube> Yes. 17:49
<.landyacht.> Ah okay, mine is using whatever libcrypto is provided by the system, although maybe I could get around this issue by having my own C layer? Idk how much I like that idea though 17:51
<antononcube> The "Makefile.in" has to be changed accordingly. I am not sure about the C-libraries inclusions. I think I tried that without success with Apple's "Accelerate". 17:52
18:52 melezhik left 18:57 zetaaaa left 19:22 zetaaaa joined 20:33 tonyo left 20:36 tonyo joined
ab5tract .landyacht: lizmat made a module for this 20:43
21:02 Aedil left 21:34 yewscion__ left 21:35 yewscion__ joined 21:51 zetaaaa left 22:01 arkiuat left 22:02 yewscion__ left, yewscion__ joined 22:07 arkiuat joined 22:16 apac left 22:28 zetaaaa joined 22:44 Sgeo_ joined 22:49 tellable6 left, Sgeo left, coverable6 left, linkable6 left, benchable6 left, bisectable6 left, eseyman left, tellable6 joined, nativecallable6 left 22:50 bisectable6 joined, bloatable6 left, eseyman joined, coverable6 joined, linkable6 joined, bloatable6 joined, nativecallable6 joined 22:51 unicodable6 left, unicodable6 joined 23:07 Maylay left 23:13 Maylay joined 23:28 arkiuat left 23:42 arkiuat joined 23:47 arkiuat left 23:51 arkiuat joined 23:55 arkiuat left 23:57 arkiuat joined