This channel is intended for people just starting with the Raku Programming Language (raku.org). Logs are available at irclogs.raku.org/raku-beginner/live.html Set by lizmat on 8 June 2022. |
|||
00:00
lizmat left,
Kaipei left,
Util left,
Util joined
00:01
lizmat joined
00:53
frost joined
00:57
thowe left
00:58
thowe joined
04:43
kjp left
08:13
human-blip left
10:26
human-blip joined
10:31
human-blip left
10:32
Guest6291 joined
|
|||
Guest6291 | n | 10:34 | |
10:34
Guest6291 left
10:55
human-blip joined
10:59
frost left
13:55
n1to joined
|
|||
thowe | what does "+%" do? Specifically I am looking at a grammar that was made for parsing ip addresses and this is part of some of the regexes. That's here: rosettacode.org/wiki/Parse_an_IP_Address#Raku | 15:12 | |
that symbol isn't in the docs | 15:13 | ||
that said, I also can't find "hexdigit" | 15:15 | ||
I mean, I'm guessing it is a character class, but it isn't constructed here, so is it a built-in character class? | 15:21 | ||
Ah, is it maybe old syntax??? There is a character class <xdigit> that should match a hexdigit. Is it deprecated code maybe? | 15:23 | ||
hm <xdigit> and <hexdigit> both work interchangeably when I run the code... Must be some leftover syntax(?) | 15:34 | ||
still wondering what +% is | 15:47 | ||
or maybe that's not an operator and they have specified a modified quantifier in a funny way.... That makes sense I think | 15:51 | ||
I was wrong, hexdigit and xdigit are not equiv now I'm confused again | 15:55 | ||
I asked in the other channel and apparently it's a unicode class, and case and underscores are ignored, so Hex_Digit can be hexdigit. sites.google.com/site/icuprojectus...properties | 16:28 | ||
newer stuff is harder to find but is here: unicode-org.github.io/icu/userguid...rties.html | 16:30 | ||
gfldex | thowe: hexdigit is defined in the Raku grammar. | 17:47 | |
17:53
chikega joined
18:05
chikega left
|
|||
stevied | i have a command the prompts a user for input. I want to get at the output of the program. So I have this: | 18:36 | |
``` | |||
my $proc = Proc::Async.new('bin/docexec'); | |||
$proc.stdout.tap(->$v { say $v; say 'bye'; }); | |||
$proc.start; | |||
react { | |||
whenever Promise.in(1) { | |||
$proc.kill; # sends SIGHUP, change appropriately | |||
} | |||
} | |||
``` | |||
however, I'm not getting anything back in `$v` | |||
ah, dammit, was getting back something but first line was blank. | 19:19 | ||
how do I get back all the lines? | 19:20 | ||
ok, there was some line buffering going on. using "unbuffer" utility did the trick. see stackoverflow.com/a/63513815/1641112 | 20:26 | ||
thowe | gfldex: where do you see hexdigits defined? | 20:54 | |
stevied: I'm willing to play with it a bit, but I think you need a pastbin or gist or something so I can get your real code. | 21:44 | ||
23:48
n1to left
|