🦋 Welcome to the MAIN() IRC channel of the Raku Programming Language (raku.org). This channel is logged for the purpose of keeping a history about its development | evalbot usage: 'm: say 3;' or /msg camelia m: ... | Log inspection is getting closer to beta. If you're a beginner, you can also check out the #raku-beginner channel!
Set by lizmat on 25 August 2021.
00:07 reportable6 left 00:10 reportable6 joined
guifa alright, yay I have some color in Pretty::RAST. Unfortunately, Comma's terminal gobbles up all the colored text 00:32
japhb wonders what terminal it's emulating
guifa Not sure. But it's weird that IntelliJ hasn't added basic color support — I tried searching online and I'm definitely not the only one that's missing color output 00:33
01:09 bisectable6 joined, statisfiable6 joined 01:24 DarthGandalf left 01:29 DarthGandalf joined 01:37 DarthGandalf left 01:49 perlbot left, simcop2387_ joined 01:50 simcop2387 left 01:52 simcop2387_ is now known as simcop2387, perlbot joined 01:55 hasrthur joined 02:00 hasrthur left 03:00 linkable6 left, evalable6 left 03:02 linkable6 joined 03:46 DarthGandalf joined 03:54 DarthGandalf left 03:55 frost joined 04:02 DarthGandalf joined 04:03 evalable6 joined 04:19 DarthGandalf left 04:26 guifa__ joined, guifa left 04:28 DarthGandalf joined 04:30 frost left 04:36 mahafyi joined
guifa__ github.com/alabamenhu/PrettyRAST <-- Xliff, you may be interested in this module (altough it doesn't support very many nodes yet) 04:49
moon-child oh cool 04:50
guifa__ moon-child don't peak in the code LOL it's full of half baked ideas and not clean code 04:52
05:05 frost joined 05:55 frost left 05:57 hasrthur joined 06:01 hasrthur left 06:08 reportable6 left 07:08 benchable6 left, releasable6 left, unicodable6 left, notable6 left, linkable6 left, shareable6 left, sourceable6 left, evalable6 left, greppable6 left, bloatable6 left, coverable6 left, committable6 left, quotable6 left, statisfiable6 left, bisectable6 left, tellable6 left, squashable6 left, nativecallable6 left 07:09 evalable6 joined, nativecallable6 joined, tellable6 joined 07:10 squashable6 joined, quotable6 joined, shareable6 joined 07:11 unicodable6 joined, releasable6 joined 07:17 KotH left 07:19 KotH joined 07:34 abraxxa joined 07:39 abraxxa left 07:40 abraxxa joined 07:49 jjido joined 08:09 linkable6 joined, Garbanzo_ left, coverable6 joined 08:11 greppable6 joined, bisectable6 joined, sourceable6 joined 08:15 Sgeo left 08:44 jjido left 08:54 jjido joined 09:01 dakkar joined 09:09 notable6 joined 09:10 statisfiable6 joined 09:38 jjido left 10:00 mahafyi left 10:03 lizmat left 10:04 lizmat joined, Geth joined 10:06 hasrthur joined 10:09 reportable6 joined 10:11 bloatable6 joined, benchable6 joined 10:31 jjido joined 10:37 Voldenet_ joined, Voldenet left, Voldenet_ is now known as Voldenet 11:04 jjido left 11:29 slowtyper left, slowtyper joined 11:46 whatnext joined 11:52 whatnext left, whatnext joined
whatnext do promises/threads leak - does anyone know? :) 12:06
12:07 reportable6 left
lizmat that's a real existential question :-) 12:09
I can only say: if you can produce a gist that shows memory leakage in your opinion, people could have a look at that 12:10
afaik, there aren't many known leaks anymore
whatnext ok that's good news
however I definitely have one 12:11
I wonder if there are any basic safeguards I should be doing but am missing?
lizmat we can't say without you showing any code :-) 12:12
whatnext  ok I have put the method which the api is calling in a gist here:# gist.github.com/whatnext/a33b7bff8...3a3daa6377 12:19
not sure how much sense its going to make out of context mind you :D 12:20
I tried both with `start` and `Thread.start` - it does the same thing 12:23
tbrowder hi, rakuuns! 12:37
i'm working on a module needing textual user input to describe detailed 2d drawings and trying to decide whether to use a custom design (line oriented with tags) or json, toml, or some other well-known system. any opinions? 12:47
the module is already published but i'm adding more capability: Draw2D::Furniture 12:49
12:54 whatnext left
tbrowder the new, yet p-unpublished version already can draw basic rectangular room outlines, but the follow-on version will be able to draw any kind of 2d line segment (and maybe 3d drawings after that) 12:56
as usual, and mentioned by someone cited by lizmat recently, my modules are usually for my needsinput ideas 12:57
*needs but someone else may find a use for them 12:58
lizmat whatnext: nothing obvious shows in that code, but it definitely doesn't show the whole story 12:59
tellable6 lizmat, I'll pass your message to whatnext
13:13 perlbot left, simcop2387 left 13:19 simcop2387 joined 13:21 perlbot joined 13:31 whatnext joined
whatnext lizmat did you see the gist? :) gist.github.com/whatnext/a33b7bff8...3a3daa6377 13:32
tellable6 2022-01-27T12:59:37Z #raku <lizmat> whatnext: nothing obvious shows in that code, but it definitely doesn't show the whole story
whatnext ah sorry messages just caught up
yeah its not obvious
lizmat afk for a few hours& 13:33
13:54 linkable6 left 13:55 clarkema joined 14:09 reportable6 joined 14:11 committable6 joined 14:15 djerius left, djerius joined
[Coke] in general in raku, you're better off using the builtins than managing Threads directly. 14:35
but yah, nothing obvious
14:37 morte_ joined 14:57 linkable6 joined 15:01 whatnext left 15:02 dogbert17 joined
guifa__ vrurg I'll start moving to fez soon 15:16
15:27 Sgeo joined, frost joined
japhb tbrowder: Textual 2D vector drawing formats that have worked well in the past (for different use cases): GraphViz, Pic, SVG, PostScript, ... (almost definitely a few more I'm forgetting) 15:29
Oh, how could I forget Logo?!
vrurg guifa__++ :) 15:31
15:36 linkable6 left 15:37 whatnext joined 15:38 linkable6 joined
whatnext [Coke] by "builtins" do you mean e.g. `start` ? 15:38
I'm not even sure it's a memory leak tbh - I just got "segmentation fault"
something is definitely not happy 15:39
15:41 vrurg left
japhb whatnext: segfaults definitely should not happen (barring forcing one via NativeCall, of course) 15:41
15:47 vrurg joined
vrurg guifa__: BTW, I quick-looked into the module. Why don't you use a Term* module to colorize the output? 15:48
16:00 frost left 16:05 whatnext left 16:22 Guest46 joined
Guest46 Hello, 16:22
I am an employee with the U.S. Army Intermodal and
Distribution Platform Management Office (AIDPMO) responsible for maintaining
ownership records for containers on behalf of the U.S. Army.
Container FLZU2004640 was found during our inventory.
According to the 3 Letter BIC code this container, at one time belonged to your
company.
Please let me know whether your records indicate that Fine
Link Holdings Limited  still owns the container.   If no longer
owned by Fine Link Holdings Limited, can you let me know who it was sold
to?  (Contact, POC, Email)
V/r,
Leidos Contractor
Ms.Chasity Cosby
Inventory Team
SDDC G4 Container Management / AIDPMO (LEC-A)
Scott AFB, IL
618-220-5444
[Coke] Can someone block this idiot? 16:23
Guest46 disregard that message
[Coke] (block them anyway)
Guest46 Hello, 16:24
I am an employee with the U.S. Army Intermodal and
Distribution Platform Management Office (AIDPMO) responsible for maintaining
ownership records for containers on behalf of the U.S. Army.
Containers
RAKU1365898
RAKU1365922
was found during our inventory.
According to the 3 Letter BIC code this container, at one time belonged to your
company.
Please let me know whether your records indicate that RAKU still owns the container.   If no longer
owned by RAKU, can you let me know who it was sold
to?  (Contact, POC, Email)
V/r,
Leidos Contractor
Ms.Chasity Cosby
Inventory Team
SDDC G4 Container Management / AIDPMO (LEC-A)
16:25 Guest46 left
guifa__ vrurg: meh, I like not depending on things. but yeah, long term I should probably go that route 16:26
but also, didn't I say don't peak at my code? hahahaha 16:27
it's such an embarassing mess right now
[Coke] ~Guest46@ec2-54-80-24-206.compute-1.amazonaws.com in case they're gone by the time someone with admin privs shows up 16:29
16:31 whatnext joined
whatnext japhb for me, impossible is nothing! ;) 16:31
at least when it comes to doing something undesirable 16:32
how about this one: "longjmp causes uninitialized stack frame" - when using Inline::Perl5 (? I'm guessing)
guifa__ but I'll just be updating the prettifier as I end up hitting more stuff, bu for my formatters I think basic if/then, method and infix calls, and string concats will be the bulk of what I use 16:35
whatnext I added a comment to my gist here: gist.github.com/whatnext/a33b7bff8...3a3daa6377
i guess it's not looking like a memory leak, but something else 16:36
`can't locate object method "DESTROY" via package "Spreadsheet::ParseExcel::Workbook"` seems to be the only thing in English :D - we are using this module from Perl 5 using `Inline::Perl5`. Suggestions anyone? :) 16:39
lizmat you might want to create an Inline::Perl5 issue
whatnext: OOC what version of Rakudo / Inline::Perl5 are you using ? 17:13
whatnext $ raku --version 17:14
Welcome to 𝐑𝐚𝐤𝐮𝐝𝐨™ v2021.09.
Implementing the 𝐑𝐚𝐤𝐮™ programming language v6.d.
Built on MoarVM version 2021.09.
lizmat then you might want to upgrade to 2021.12 and the latest version of Inline::Perl5 17:15
a lot of issues with NativeCall and Inline::Perl5 were solved in that period
whatnext - Identity: Inline::Perl5:ver<0.58>:auth<github:niner>
ah really 17:16
ok thanks that could be useful
17:25 hasrthur_ joined, hasrthur left 17:27 hasrthur joined, hasrthur_ left
[Coke] Are you on windows, whatnext? 17:29
the $ says no but the XXX says yes. :)
whatnext CentOS 7.9 17:30
[Coke] thanks. 17:32
17:34 dakkar left
El_Che XXX? 17:35
17:37 djerius left
[Coke] 𝐑𝐚𝐤 17:38
I was too lazy to cut and paste the first time.
... ah. could just be me, nevermind!
El_Che Rakudo™
on mine
ah that Raku® 17:39
the TM and R make it USA-silly
17:40 abraxxa left 17:41 jrjsmrtn_ left 17:42 djerius joined, jrjsmrtn joined
El_Che are we forced to do that kind of silliness of is it cargo cult? 17:43
$ ruby -v 17:44
ruby 2.7.4p191 (2021-07-07 revision a21a3b7d23) [x86_64-linux-gnu]
$ go version
go version go1.17.3 linux/amd64
I don't think google is giving up on trademarks and copyrights 17:45
gfldex If you don't use a R it can become void in many countries.
El_Che so google just lost their trademark after I ran the command?
gfldex No, they use their trademark in so many places, that they don't have to for go. 17:46
El_Che so, put the trademark somewhere in a dark corner on the site and problem solved
tonyo .tell tbrowder i can work on a tut for ya on sunday night 17:49
tellable6 tonyo, I'll pass your message to tbrowder
whatnext I am sure you all will be excited to learn I may have found a solution 17:57
that is for my particular case, and meaning it now seems to work but without knowing exactly why
I explicitly set the container for the `Spreadsheet::ParseExcel::Workbook` object to Nil after the extraction 17:59
gfldex Magic! \o/
whatnext and apparently I need to use `Thread.start`. If I use `start` I still get an error
pretty weird - but whatever :D
japhb El_Che: Trademarks must be actively defended in order to remain valid. Hiding that you have one seems unlikely to count. Also, both the distinctive font (Unicode block actually, but it *looks* like a different font) and the TM/R were needed when we got the EU trademark registration. 18:02
El_Che so, ruby and go lost their trademark?
gfldex did they ever have one? 18:03
japhb El_Che: They're probably just protecting them in a different place, that's all. Like on their main website.
El_Che japhb: yes, that's my point
it looks more applicable there than in the cli
japhb El_Che: And I'm saying the reason that we did that is because the international trademark lawyers told us to.
We didn't just do it because we felt like it. 18:04
El_Che yes, I get that
I wonder why other more popular languages don't do it
there is a lot more money to rip off stealing the go or ruby trademark
ugexe to me it feels like a lawyer said that because its easiest to assume that to be correct, instead of verifying something else would work
japhb Possible, sure. 18:05
Interestingly `gcc --version` decides to be explicit about copyright and warranty, rather than trademark
TIL that `python -v` is rather different than `python --version` 18:07
El_Che perl -v does have a copyright notice and no trademark 18:08
18:08 reportable6 left, guifa__ left
lizmat because perl doesn't have a trademark, and raku does 18:08
El_Che really? 18:09
18:10 reportable6 joined
El_Che beside the chuckle every time I see it, I'don't care that much. Everything time I see TM is think of people that shout in social media they are famous. :P 18:11
18:11 Curiosa joined
El_Che python seems to be trademarked as well 18:12
(and no TM in the cli)
japhb Hmmm, ruby has a --copyright option.
El_Che well, that looks like a sane approach to me 18:13
yay for ruby
japhb: good catch
damn, this didn't work: gcc --copyleft 18:14
:)
Nemokosch Honestly, for me, the whole Raku™️ rather hints that Raku is good with Unicode 18:16
El_Che Nemokosch#9980: that was cool 5 years ago, no less so :) 18:17
now
Nemokosch of course you could just drop the ™️ part but frankly it would still remain flamboyant
Well, that's because you have seen it for 5 years 😛
El_Che true :)
Nemokosch the world hasn't moved forward that much in this regard in 5 years 18:18
El_Che yeah, buts langs did catch up
-s
japhb Not very many of them. 18:19
El_Che do you encounter utf8 problems often in other languages?
Nemokosch not really tbh
japhb El_Che: Not a huge number of languages understand the difference between a codepoint and a grapheme. 18:20
El_Che I took it they did it by design 18:21
Nemokosch Emoji problems, for sure
^THIS
tonyo half the stuff that says TM on it is just there and there isn't actually any protection unless you register it with specific entities (each with its own set of protections) 18:22
18:24 discord-raku-bot left
[Coke] it was just me. (was remoted in to an osx box from windows and forgot) 18:24
18:24 discord-raku-bot joined
El_Che [Coke]: you see the discussion you started :P 18:25
[Coke] oops! 18:26
Nemokosch we may call it lazy by design, though
18:29 discord-raku-bot left, discord-raku-bot joined
[Coke] (TM/registration) was added to the version based on discussions with a lawyer, ping codesections for details. 18:34
18:41 jjido joined 18:46 Curiosa left
ugexe right, but the question still remains why would e.g. googles lawyer not have them doing the same thing 18:50
gfldex just ask them! 18:54
El_Che lol 19:02
19:29 rir_ left 19:54 hasrthur left 20:00 jjido left 20:02 MoC joined 20:24 whatnext left 21:01 [Coke] left 21:04 [Coke] joined 21:17 jjido joined 21:47 MoC left 22:02 jjido left 22:20 jjido joined 22:24 Curiosa joined 22:25 jjido left 22:47 Curiosa left 22:50 jjido joined
leont Is there a way to use a hash literal when dealing with non-string keys (in my particular case, enum) 22:51
22:52 Curiosa joined 22:55 Curiosa left 23:05 El_Che left 23:07 El_Che joined
japhb leont: :{} IIRC 23:09
leont m: dd { (More) => 1 } 23:10
camelia {:More(1)}
leont That is a string key, not an enum key 23:11
Oh wait, I missed the semicolon
m: dd :{ (More) => 1 } 23:13
camelia :{Order::More => 1}
leont Yeah that's much better
23:16 D5n9sMatrix77 joined 23:24 morte_ left 23:52 djerius left 23:53 djerius joined