🦋 Welcome to Raku! raku.org/ | evalbot usage: 'p6: say 3;' or /msg camelia p6: ... | irclog: colabti.org/irclogger/irclogger_log/raku
Set by ChanServ on 14 October 2019.
00:29 pecastro left 00:33 epony joined 00:36 wamba left 00:54 guifa left 01:40 leont left 01:57 xheimlich joined 02:09 molaf left 02:22 molaf joined 03:22 sourceable6 left, nativecallable6 left, releasable6 left, committable6 left, benchable6 left, statisfiable6 left, squashable6 left, bloatable6 left, greppable6 left, quotable6 left, linkable6 left, coverable6 left, shareable6 left, tellable6 left, evalable6 left, bisectable6 left, notable6 left, unicodable6 left, unicodable6 joined, greppable6 joined 03:23 evalable6 joined, bloatable6 joined, shareable6 joined, bisectable6 joined, committable6 joined, squashable6 joined 03:24 statisfiable6 joined, nativecallable6 joined, coverable6 joined, tellable6 joined, linkable6 joined, sourceable6 joined 03:25 releasable6 joined, notable6 joined, benchable6 joined, quotable6 joined, xheimlich left 03:55 __jrjsmrtn__ joined, _jrjsmrtn left 04:35 Maylay left 04:47 gill joined 04:49 gill left 05:06 frost-lab joined 05:09 Doc_Holliwould joined 05:42 aborazmeh left 05:56 parabolize left 06:15 aborazmeh joined, aborazmeh left, aborazmeh joined, rir left 06:23 natrys joined 06:27 jmerelo joined 06:45 molaf left 06:46 wamba joined 06:53 tejr left 06:55 tejr joined 06:56 rir joined 07:14 Doc_Holliwould left 07:20 ufobat joined 07:31 aborazmeh left 07:46 PavelB joined 08:16 abraxxa joined 08:20 abraxxa left 08:22 abraxxa joined 08:29 Sgeo left 08:31 dakkar joined 08:34 domidumont joined 08:42 MasterDuke joined 08:58 stoned75 left 09:04 tib joined 09:07 xelxebar left 09:23 leont joined 09:26 natrys left 09:27 natrys joined 09:34 DarthGandalf left 09:43 pecastro joined 09:55 PavelB left 10:00 stoned75 joined 10:14 jmerelo left 10:21 MasterDuke left 10:25 jmerelo joined 10:26 MasterDuke joined 10:40 stoned75 left 10:43 kensanata joined 10:50 codesect` joined 10:52 codesections left 10:55 stoned75 joined 11:05 MasterDuke left 11:17 jast joined 11:23 wamba left 11:25 mowcat joined 11:30 tejr left, tejr joined 11:31 bbkr joined 11:32 stoned75 left 11:33 bbkr left 11:37 wamba joined 11:38 MasterDuke joined 11:47 abraxxa left 11:53 xheimlich joined 11:55 abraxxa joined
xheimlich so in Python every object has a (up to pseudo-one-way function collisions, I presume) function called "hash". 12:05
most, maybe all objects are hashable. I use this to generate unique filenames for serialized objects.
in Raku hash is the name for a dict (or hashmao, sure). What is Python's "hash"? 12:06
(I use cksum in bash, but I'm not sure that's the same.)
MasterDuke .WHICH maybe
xheimlich p6: say <1 2 3 4>.WHICH; say "Something else".WHICH; 12:08
camelia List|54965328
Str|Something else
xheimlich huh. so It's like an internal identifier? But will it remain the same in a different session/run,or is it like "what's its name in the current session?"
MasterDuke p6: say <1 2 3 4>.WHICH; say "Something else".WHICH; 12:10
camelia List|62519168
Str|Something else
12:11 wamba left
xheimlich yeah, what I'm looking for is pretty much a checksum. I don't expect it to be compatible with other systems, just that it always gives the same number to the same object and that with some probability same number => same oject. 12:12
12:12 wamba joined
xheimlich in my local machine with Rakudo version 2020.01 implementing Perl 6.d, > say "Something else".WHICH; 12:13
Str|Something else
MasterDuke hm, not sure rakudo has something exactly like that
xheimlich I have workflows that download images from bing, google etc. image searches. 12:14
This is done in Python, so I save them has f"{hash(file_contents)}.{original ext}". In this way I avoid most duplicates. 12:15
then I have some bash lollapalooza to move and copy these files to and from hierachical directory structures, a mess. 12:16
MasterDuke ah, i don't think rakudo has a built-in hashing function. if you use nqp there's nqp::sha1, but it's probably better to just use a module
xheimlich So I started to rewrite my bash scripts in Raku and it seemed that downloading the files in Raku was neater. Separate the data wrangling and the machine learning (has to be in Python due to Pytorch).
I can be called experienced in ML with Python but I still can't use it for "shell scripting", it's too convoluted. I already know Raku better than Python for that, and this in a week's time. 12:17
MasterDuke modules.raku.org/search/?q=hash has a bunch of options 12:18
xheimlich ok. Iḿ going to do my homework then.
oh wait. there's MD5. That's a little more secure than needed, but file renaming performance shouldn't be a bottleneck. 12:23
12:28 rindolf joined 12:41 xheimlich left 12:49 frost-lab left 12:50 sena_kun joined 12:51 MasterDuke left 12:54 ufobat_ joined 12:57 ufobat left, tejr left 12:58 tejr joined 13:06 jmerelo left 13:07 MasterDuke joined 13:08 abraxxa left, stoned75 joined 13:16 abraxxa joined 13:17 MasterDuke left
Altreus Never thought I'd see someone say MD5 is more secure than needed :D 13:27
13:30 MasterDuke joined 13:32 Doc_Holliwould joined 13:34 stoned75 left
perryprog who needs MD5 when you have strlen 13:52
13:53 mowcat left
tadzik not PHP :P 13:58
perryprog Sorry sorry, I meant .chars 14:01
Altreus I'm sorry that you recognised it as a PHP function 14:10
nobody should have to be in that position
tadzik nah, I was refering to that story where Rasmus allegedly picked different naming conventions for PHP stdlib functions because he was hashing them with strlen and didn't want too many conflicts 14:13
14:17 hal99999 joined
Altreus A logical philosophy that is fundamental to the design of the entire language 14:23
14:25 jmerelo joined
Altreus any discorders? Is it dead? timotimo ? 14:43
14:43 skids joined
Altreus Had to fight myself not to put @ on that nick 14:43
timotimo yeah discord is ded
-ish
14:45 xheimlich joined
Altreus k 14:47
how am I supposed to waste time now
14:48 angelds joined
timotimo federated social networks :) 14:53
14:53 stoned75 joined
timotimo check out all the latest memes on the secure scuttlebutt 14:55
perryprog timotimo is there news regarding Discord, or do you mean just in general? 14:58
14:58 wamba left
lizmat and another Rakudo Weekly News hits the Net: rakudoweekly.blog/2020/11/09/2020-...-serviced/ 14:59
perryprog \o/
timotimo dunno, it's just having a little bit of a partial outage or something 15:01
i haven't checked on the details
15:03 angelds left
Altreus it's having a paddy 15:03
I will use the time to read the latest newsletter 15:04
xinming SmokeMachine: when we use Red module, is Red:api<2> recommend? or, `use Red` will use all the new features? 15:05
15:07 aluaces left, xheimlich left 15:09 MasterDuke left
SmokeMachine xinming: I’d say to always use :api<2>, even to make it continue working when we lunch :api<3> 15:12
15:13 rir left, Sgeo joined 15:15 MasterDuke joined 15:16 molaf joined 15:19 xheimlich joined 15:22 wamba joined 15:37 sjm_uk joined 15:38 stoned75 left 15:40 domidumont left 15:50 parabolize joined, MilkmanDan left 15:51 xheimlich left 15:53 MilkmanDan joined 16:09 Altai-man joined 16:11 MilkmanDan left 16:12 sena_kun left, MilkmanDan joined 16:31 DarthGandalf joined 16:46 natrys left 16:48 mowcat joined 16:55 aluaces joined 17:10 jmerelo left 17:33 aluaces left 17:34 eater left 17:38 natrys joined 17:41 dakkar left 17:49 domidumont joined 17:50 kensanata left 17:57 approaching236 joined 18:25 stoned75 joined 18:43 domidumont left 18:45 jmerelo joined, approaching236 left 18:50 eseyman left 18:52 approaching236 joined, approaching236 left 18:53 MasterDuke left 18:57 brass_ left 18:59 ufobat_ left, brass joined 19:22 bocaneri left 19:26 MasterDuke joined 19:32 cpan-raku left 19:33 cpan-raku joined, cpan-raku left, cpan-raku joined 19:37 jmerelo left 19:45 gordonfish left
guifa` lizmat++ 19:58
20:10 sena_kun joined 20:12 Altai-man left 20:37 natrys left, gordonfish joined 20:41 sjm_uk left 20:55 rir joined 21:29 hal100000 joined 21:33 hal99999 left 21:34 Doc_Holliwould left, hal100000 left 21:44 guifa joined 21:45 hal99999 joined 21:53 mowcat left 22:04 wamba left 22:05 rindolf left 22:06 MasterDuke left 22:08 \x2D left 22:11 grumble joined 22:24 sena_kun left 22:25 sena_kun joined 22:53 sena_kun left 23:00 hal99999 left 23:39 Kaeipi joined, Kaiepi left