🦋 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:00 reportable6 left 00:02 reportable6 joined 00:03 jpn left 00:32 jpn joined 00:34 sena_kun left
Geth ecosystem/main: 45030b4dcb | thundergnat++ (committed using GitHub Web editor) | META.list
Modules migrated to fez ecosystem
00:52
01:01 jpn left 01:15 Averna left 01:25 djerius left 01:27 djerius joined 01:39 djerius left, jpn joined 01:41 epony joined, djerius joined 02:14 jpn left 02:29 jpn joined 02:34 razetime joined 02:35 jpn left 02:42 melezhik joined 02:47 melezhik left 02:48 jpn joined 02:53 jpn left
leont guifa_: yeah, we don't really have a standard for "how old versions should you support". 02:59
I don't think a lot of people use distro supplied raku, so I guess not that long in practice, but I may be mistaken
guifa_ I've been doing two-ish years for when I, e.g., change the name of a module (to continue to `provide` under the old name) 03:00
leont I think I've been doing something similar, but it has varied with the module and the issue at hand 03:02
03:07 jpn joined, jgaz joined 03:15 jgaz left 03:17 deoac joined 03:26 jpn left 03:39 jpn joined 03:46 Kaiepi left 03:47 jpn left 04:01 jpn joined 04:07 jpn left 04:20 jpn joined 04:29 deoac left 04:35 jpn left 04:49 jpn joined 04:53 jpn left 05:06 jpn joined 05:12 jpn left 05:25 jpn joined 06:00 reportable6 left 06:01 reportable6 joined 07:01 linkable6 left, nativecallable6 left, evalable6 left, sourceable6 left, coverable6 left, committable6 left, tellable6 left, releasable6 left, quotable6 left, shareable6 left, bloatable6 left, notable6 left, bisectable6 left, statisfiable6 left, squashable6 left, unicodable6 left, benchable6 left, greppable6 left, reportable6 left, unicodable6 joined, shareable6 joined 07:02 squashable6 joined, evalable6 joined, quotable6 joined, linkable6 joined 07:03 bloatable6 joined, statisfiable6 joined, sourceable6 joined, benchable6 joined, greppable6 joined, coverable6 joined, releasable6 joined, tellable6 joined, reportable6 joined, notable6 joined, committable6 joined 07:04 bisectable6 joined, nativecallable6 joined
Geth App-Rakubrew: 254bd09061 | Jasmin++ | Changes
Document master/main changes for moar-blead
07:18
App-Rakubrew: 44b5db8d16 | Jasmin++ | 3 files
Version 32
07:22 jpn left 07:56 jpn joined 08:56 committable6 left, bisectable6 left, benchable6 left, squashable6 left, nativecallable6 left, notable6 left, quotable6 left, shareable6 left, reportable6 left, tellable6 left, evalable6 left, linkable6 left, unicodable6 left, coverable6 left, sourceable6 left, releasable6 left, bloatable6 left, greppable6 left, statisfiable6 left, nativecallable6 joined 08:57 tellable6 joined, bisectable6 joined, coverable6 joined, evalable6 joined, shareable6 joined, statisfiable6 joined, greppable6 joined 08:58 linkable6 joined, unicodable6 joined, benchable6 joined, reportable6 joined, quotable6 joined, bloatable6 joined, releasable6 joined 08:59 sourceable6 joined, notable6 joined, squashable6 joined, committable6 joined 09:00 jpn left 09:08 razetime left 09:09 Kaiepi joined 09:23 jpn joined 09:28 jpn left 09:36 jpn joined 09:41 jpn left
patrickb I was on a different computer. The above commits are authored by me. I really need to change the gitconfig. 09:56
Nemokosch Lol 😄 10:00
10:31 jpn joined 10:35 jpn left 10:47 sena_kun joined 11:05 Sgeo left 11:53 epony left 12:00 reportable6 left 12:02 reportable6 joined
Anton Antonov @patrickb Unfortunately, I doing that also… (Way too often!) 12:13
12:18 jpn joined 12:27 jpn left 12:40 jpn joined 12:46 jpn left 13:16 Nemokosch joined
Nemokosch :abloy: 13:16
tellable6 2022-12-24T15:22:41Z #raku-dev <MasterDuke> Nemokosch: any idea why the windows tests failed? can you force push to get them to rerun? i tried to rerun them from the PR, but it's too old and it won't let me
2022-12-24T15:24:24Z #raku-dev <MasterDuke> Nemokosch: btw, were you asking about Actions.nqp? i think it will eventually go away when rakuast fully takes over
Nemokosch had to try :D
13:20 jpn joined 13:24 epony joined, jpn left 13:30 grondilu joined 13:43 epony left 14:09 jgaz joined, amenonsen left 14:10 amenonsen joined 14:25 Nemokosch left 14:30 epony joined 14:35 jgaz left 15:07 jpn joined 15:12 jpn left 15:13 TieUpYourCamel left 15:25 TieUpYourCamel joined 15:50 Kaiepi left 16:02 jpn joined 16:06 jpn left 16:18 Kaiepi joined 16:46 melezhik joined
melezhik . 16:46
16:47 melezhik left 16:53 jpn joined 16:58 jpn left 17:03 Sevalecan is now known as maximus 17:11 jpn joined 17:16 jpn left 17:30 melezhik joined, melezhik left 17:45 sena_kun left 17:46 grondilu left 17:47 sena_kun joined 17:55 ProperNoun left 18:00 ProperNoun joined, reportable6 left 18:01 reportable6 joined 18:28 retroman joined, retroman left 18:30 Xliff joined 18:31 Homer_Simpson joined
Homer_Simpson is there a way to print str from my @a = (["string1", "string2"]); but without using a method 18:33
i,e using operators
or if not can I just make a character array instead of using a string type 18:34
str from string1 18:36
I could do the retarded way but this doesnt work with a scalar: my @a = ('s','t','r','i','n','g','1'); 18:38
18:43 jpn joined 18:48 jpn left
Juerd Homer_Simpson: I don't understand your question. 18:53
Nemokosch same, kind of 18:54
Homer_Simpson I want to print str (for example from the string "string1"
Nemokosch so far so good, what next? 18:55
Homer_Simpson but without using .trim or any other method
Juerd Homer_Simpson: What do you mean by "print str"? 18:56
"string1" is a Str and you can print it
Homer_Simpson I want to print "stri" for example
Juerd Have a look at substr
Homer_Simpson or whatever
is it a method 18:57
Juerd m: print substr "string1", 0, 4
camelia stri
Nemokosch method, subroutine, whatever you prefer
Homer_Simpson ok that seems to work I guess 18:58
my @a = (["string1]); 19:01
print(substr(@a[0], 0, 4)); #fail
never mind
ok what if I wanted a raw array 19:02
Nemokosch by the way, ([]) is kinda paranoid. The outer () is not doing anything
Juerd Homer_Simpson: What is a "raw" array?
Homer_Simpson oh ok, im coming from perl 5 19:03
its a byte array
Juerd Raku has Buf for byte buffers
Nemokosch in fact, in this case, not even [] is really doing anything, iirc
the assignment takes care of all this 19:04
Homer_Simpson yes, It is just to make it obvious that its a single dimentional array
I wish raku could do [2][2], instead you gotta do [2;2] 19:05
ill try buf thx
Nemokosch Raku can do [2][2], what do you mean
one more thing: don't forget that [] is rather a way of conversion than "encapsulation" (or how to put it) 19:06
it's the comma that builds the list
Homer_Simpson I get an error saying "sorry multiple shapes not yet supported!" 19:07
19:07 Nemokosch joined
Nemokosch then there is something else off with the code 19:07
Xliff \o
Regarding NativeCall and C function pointers... could subsets be used to make them reusable? 19:08
Full disclosure: I am trying to revisit this: github.com/Raku/problem-solving/is...-489427474
Oh.. how rude of me. Merry Christmas, everyone!
Nemokosch: Here -> github.com/Xliff - that's the total of all of my Raku projects.
Homer_Simpson: Can we see what the problem code is? Generaly that means that you are trying to access an array in more than one dimension. 19:09
Nemokosch m: (1..10).batch(3)[1][2].say
camelia 6
Homer_Simpson my @a[2][2] = ([0,0],[0,0]);
Xliff Yeah.
m: my @a[2;2] = ([0, 0], [0, 0]); @a.gist.say 19:10
camelia [[0 0]
[0 0]]
Nemokosch but why would you do that on declaration...
Xliff Use a semicolon. Not another set of square braces.
Homer_Simpson same applies if I try and do print(@a[0][0]);
Xliff m: my @a[2;2] = ([0, 0], [0, 0]); @a[0;0].say 19:11
camelia 0
Nemokosch m: use v6.e.PREVIEW; (1..10).batch(3).snitch.[1].snitch.[2].say
camelia ((1 2 3) (4 5 6) (7 8 9) (10))
6
(4 5 6)
Xliff Nemokosch: That will always work, since you are using references for the extra dimension. 19:12
Nemokosch the order is a bit funky, I don't quite grasp this snitch method yet
anyway, it does work very apparently
Homer_Simpson maybe its my compiler
Nemokosch Xliff: I mean, is the goal that it don't work? :D 19:13
Xliff Nemokosch: No. That's not t he goal. It's just not completed, yet.
Nemokosch having said that, I don't see much value in shaped array declarations when you can just nest arrays 19:14
Xliff TIMTOWTDI
Nemokosch and it seems that people shared this opinion enough to always have greater priorities
Homer_Simpson yeah I tried nested arrays, those work 19:15
Xliff Nemokosch: I think the completed object will make column access easier.
Nemokosch what is "the completed object"?
Xliff m: (1..10).batch(3).map( *[1] ).say
camelia (2 5 8 Nil)
Xliff Yes, that's easy enough, but not as easy as [for example] "(1..10).batch(3).col(2)" 19:16
Or .col(1), really
Nemokosch It's probably not as easy on the runtime, either, as sequential access of elements... 19:20
This is sort of whataboutism but I would rather any optimisation on data structures before adding more sugar for expensive operations 19:21
(looking at you, Daniel :P)
20:06 Nemokosch left 20:10 jpn joined 20:12 Sgeo joined 20:15 jpn left
[Coke] i think shaped arrays can use more compact storage 20:16
20:31 guifa_ left 20:41 maximus is now known as Sevalecan 21:06 jpn joined 21:11 jpn left 21:29 Homer_Simpson left 21:36 xinming joined 21:38 melezhik joined 21:39 melezhik left, melezhik joined 21:43 melezhik left 21:51 Xliff left
Voldenet Merry christmas #raku 22:01
smol-hors 🎄 🦋
MasterDuke i'm not 100% sure that shaped arrays do actually use more compact storage right now, but that is the idea 22:10
22:14 jpn joined 22:21 jpn left 22:25 guifa_ joined 23:05 sena_kun left