|
03:19
DarthGandalf left
03:20
DarthGandalf joined
03:32
DarthGandalf left
04:55
sibl joined
05:51
DarthGandalf joined
05:52
sibl left
07:58
Manifest0 joined
07:59
sibl joined
08:06
sibl left
08:28
sibl joined
08:37
sibl left
09:13
leifgunnar left
09:20
leifgunnar joined
11:31
human-blip left
11:35
human-blip joined
|
|||
| disbot4 | <simon_sibl> I am aware that may not be my brightest moment and is more on the side of 'clever' than readable but is there a way to have named variable here instead of using .[0] and .[1] like $^ip $^mask even tho thats an array ? | 13:30 | |
| <simon_sibl> $cidr.split('/', 2).&{min-max-ip(ipv4-to-uint32(.[0]), 0xFFFFFFFF +< (32 - .[1]))}.&{.[0] .. .[1]}.lazy.map(&uint32-to-ipv4); | |||
| lizmat | turn the Callable into a sub with arguments? | 13:32 | |
| disbot4 | <simon_sibl> like .&(-> [$ip, $mask] {}) ? | 13:33 | |
| thowe | I have a GraphQL interface that limits records it returns to 10000. If I want to take 2 identically structured JSON objects, and merge them, is that something one of the JSON libs will do? Alternatively, if I "from-json" them into Raku objects, is there some shortcut to merge those if they are structured the same, or do I just need to manually do it? | 15:46 | |
| disbot4 | <antononcube> What is the structure? | 16:13 | |
| <antononcube> @thowe From what I outlined I see several approaches, depending on factors, like, structure, desired speed of computations, etc. 1. Using "Hash::Merge" 2. Using the graph algebra functions of "Graph" 3. Just ask an LLM to do it (or five) | 16:16 | ||
| <antononcube> Mind you, in Raku, 3 can be done programmatically and be reliable. It can be direct manipulation by the LLM or generating corresponding code (Python, or Raku, or whatever.) | 16:17 | ||
| thowe | It's a simple structure, it's just that I have to eat it in multiple pieces. I can merge easily by looping through it, I just thought there might be a shortcut I didn't know about. | 16:41 | |
|
17:34
human-blip left
17:36
human-blip joined
|
|||
| disbot4 | <comborico> I wonder why the list data structure didn't get its own sigil. Probably an unnecessary addition just for technicality's sake. | 18:46 | |