🦋 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:06
reportable6 left
00:07
reportable6 joined
00:08
reportable6 joined
00:18
derpydoo joined
|
|||
japhb | Xliff: If you're talking about the difference between Terminal::Print::DecodedInput and the later versions of similar code -- T::P::DI is a hack that *mostly* works, as long as your needs are not too great. The later modules try to actually get *correct* parsing, based on the work in Terminal::ANSIParser, and with the ability to send queries to (and receive responses from, of course) the terminal/terminal | 00:29 | |
tellable6 | japhb, I'll pass your message to Xliff | ||
japhb | emulator. Which allows things like detecting screen size and color depth. | ||
01:18
evalable6 left,
linkable6 left,
linkable6 joined
01:20
evalable6 joined
01:49
epony left
01:50
epony joined
01:52
archenoth left
01:55
Kaipei joined
02:08
archenoth joined
02:11
simcop2387 left,
perlbot left
02:12
derpydoo left
02:14
simcop2387 joined
02:15
perlbot joined
03:04
nebuchadnezzar left
03:13
simcop2387 left,
perlbot left
03:15
simcop2387 joined
03:17
perlbot joined
03:30
perlbot left,
simcop2387 left
03:49
simcop2387 joined
03:51
perlbot joined
03:53
epony left
03:54
epony joined
04:54
linkable6 left,
coverable6 left,
tellable6 left,
evalable6 left,
notable6 left,
nativecallable6 left,
statisfiable6 left,
greppable6 left,
quotable6 left,
benchable6 left,
shareable6 left,
bisectable6 left,
reportable6 left,
releasable6 left,
unicodable6 left,
committable6 left,
squashable6 left,
sourceable6 left,
bloatable6 left
04:55
evalable6 joined,
squashable6 joined,
nativecallable6 joined,
releasable6 joined,
tellable6 joined,
notable6 joined,
benchable6 joined,
statisfiable6 joined,
reportable6 joined
04:56
unicodable6 joined,
shareable6 joined,
sourceable6 joined,
greppable6 joined
04:57
coverable6 joined,
committable6 joined,
bisectable6 joined,
quotable6 joined,
linkable6 joined,
bloatable6 joined
05:03
xinming left
05:44
japhb left
05:45
japhb joined
05:57
epony left
05:59
epony joined
06:05
epony left
06:06
reportable6 left
06:07
reportable6 joined,
xinming joined
06:17
japhb left
06:22
japhb joined,
archenoth left
06:23
archenoth joined
06:32
xinming left
06:34
xinming joined
07:08
jjido joined
07:16
Sgeo left
08:07
ProperN[out] joined,
ProperNoun left
08:16
epony joined
08:19
PolarBearXL joined
08:21
jjido left
|
|||
Nemokosch | Voldenet is back 💪 | 08:34 | |
08:47
Kaipii joined
08:51
Kaipei left
09:05
discord-raku-bot left,
discord-raku-bot joined
09:18
discord-raku-bot left
09:19
discord-raku-bot joined
09:27
Kaipii is now known as Kaiepi
09:34
lichtkind joined
09:35
frost24 joined
10:08
frost24 left
10:20
epony left
10:22
epony joined
10:29
PolarBearXL left
10:32
Nemokosch joined
|
|||
Nemokosch | hi hi | 10:32 | |
m: say '1' ~~ S/1/2/ | 10:33 | ||
camelia | Potential difficulties: Smartmatch with S/// is not useful. You can use given instead: S/// given $foo at <tmp>:1 ------> say '1' ~~ ⏏S/1/2/ 2 |
||
Nemokosch | Telling lies again, ha? :s | ||
Does anybody know about this fake potential difficulty? Smartmatch with S/// is not only useful but it does work, even. | 10:34 | ||
lizmat | how does it work ? | 10:43 | |
Nemokosch | it did correctly return 2 | 10:46 | |
these "potential difficulties" are sometimes more harmful than useful, to be honest; smartmatching does set the topic variable and anyway, why _should_ it not work when s/// also works with smartmatching | 10:50 | ||
lizmat | m: no worries; say '1' ~~ S/1/2/ | 10:54 | |
camelia | 2 | ||
lizmat | m: say '1' ~~ s/1/2/ | ||
camelia | Cannot modify an immutable Str (1) in block <unit> at <tmp> line 1 |
||
lizmat | perhaps the worry should be for the "s" case .... | 10:55 | |
Nemokosch | the s case is also good if the LHS is mutable | 10:58 | |
m: my $foo = '1'; $foo ~~ s/1/blah/; say $foo; | 11:00 | ||
camelia | blah | ||
Nemokosch | I'd say smartmatching to S/// is in fact more useful than to s/// because you can use it as a part of a longer expression. | 11:01 | |
for s/// the return value seems to be as if you did m// or sth alike | 11:02 | ||
lizmat | yeah, that's why I like to chain .subst statements all the time :) | ||
11:03
jjido joined
|
|||
Nemokosch | Fair point but wouldn't it be good if something ~~ S/// just didn't shout? ^^ | 11:04 | |
lizmat | seems like the original text was "Smartmatch with S/// can never succeed because the subsequent string match will fail" | 11:05 | |
f54ff833 from 2015 | 11:06 | ||
11:06
linkable6 left
|
|||
lizmat | which was changed by Zoffix in 2016 in be210fba | 11:06 | |
11:07
linkable6 joined
|
|||
Nemokosch | m: no worries; say '2' ~~ S/2/12/ ~~ S/12/42/ | 11:07 | |
camelia | 42 | ||
Nemokosch | I would say this paradigm is elegant even | 11:08 | |
lizmat | this was the associated issue: github.com/Raku/old-issue-tracker/issues/5273 | 11:10 | |
lizmat goes back to look at other stuff | 11:11 | ||
Nemokosch | the only concern I could see arise is that this smart"match" doesn't produce a Bool value. However, that goes for m// as well, and there might be others | 11:13 | |
11:13
Kaiepi left
|
|||
Nemokosch | So maybe it's not even a criterion of smartmatch to always be strictly about matching in the "is it or is it not" sense | 11:14 | |
11:15
Kaiepi joined
11:21
jjido left
11:30
frost53 joined
11:48
jjido joined
11:49
lichtkind left
11:56
frost53 left
11:57
frost70 joined
12:07
reportable6 left
12:09
reportable6 joined
12:24
epony left
12:26
epony joined
12:27
frost70 left
|
|||
Voldenet | Nemokosch: I was always here, just more quiet than usual :) | 12:32 | |
12:33
derpydoo joined
12:47
Ulti joined
|
|||
Ulti | hey ho, I was wondering if anyone knows of or has tried to produce Dash compatible DocSets for the Raku documentation? | 12:48 | |
12:50
jgaz joined
|
|||
Ulti | or perhaps more importantly would value that | 12:53 | |
Nemokosch | what is Dash? | 12:57 | |
13:09
jjido left
13:25
[Coke] joined
|
|||
[Coke] | . | 13:25 | |
Nemokosch | boo | 13:27 | |
[Coke] returns from a business trip to find his long running irc session is kaput and all messages lost. | 13:28 | ||
[Coke] read some raku blog posts while traveling, thanks lizmat et al. :) | 13:29 | ||
Ulti | Nemokosch it's a documentation tool, basically a man system but GUIafied kapeli.com/dash the main thing is it has a "docset" format thats basically a precompiled SQLite file indexing the docs plus all the docs in a directory. zealdocs.org/ is a Linux client | 13:42 | |
I noticed Perl 5 is on there but not Raku, and p6doc being relatively similar it might not be very hard to sort out a Raku docset | 13:43 | ||
Nemokosch | Seems like some greedy Mac-orinted thing, I for one don't feel positive towards anything that starts like this | 13:47 | |
Voldenet | I'm betting that some mac-owning person might implement that eventually | 13:48 | |
Ulti | who do you think I am??? | 13:49 | |
Voldenet | :) | ||
Ulti | I havent touched anything to do with the doc system in Raku though and know there are some peeps here deep in it | ||
I'll start by taking a look how the perldoc version for P5 works | 13:50 | ||
though I think its one supported by the author of Dash which is maybe less helpful | |||
I tend to have at all times like 20 browser tabs open with docs in, which destroys battery life and is just annoying they're not local | 13:51 | ||
I also program in maybe 5 different languages regularly so having to use different tools to search the docs is mildly annoying | 13:52 | ||
Voldenet | …i just use one tool, web browser :> | 13:54 | |
though I get the point | |||
Ulti | a little Raku program that understands the docset format and can search from the CLI would also be a neat outcome of playing around, given if Im modelling the SQLite file to write one I can definitely go around reading and searching them | 13:58 | |
maybe render as ascii to the terminal too... | |||
Nemokosch | the browser is the new OS haha | 14:00 | |
Voldenet | you can run x86 vms through webasm | ||
Altreus | Where does zef come from, or whatever's replaced zef if that's a thing? | 14:01 | |
it's not in rakudo-moar-2022.07-01-linux-x86_64-gcc.tar.gz | 14:02 | ||
Voldenet | raku.land/github:ugexe/zef | 14:03 | |
Ulti | Altreus I thought that was always true? | ||
Voldenet | the installation section works, I've tested this many times | ||
Altreus | It might be but I'm usually several months removed from the last time I downloaded raku :D | ||
so I never remember that this happened before | 14:04 | ||
Voldenet: thanks :) | |||
Voldenet | Ulti: I think that you can use kapeli.com/docsets#copyDocumentation with github.com/Raku/doc | 14:05 | |
BUT creating good index will be difficult, because docs don't contain enough semantic info | 14:06 | ||
Altreus | Personally I've found pod6 (what's it called now?) to be harder to use than pod5 | 14:07 | |
hrm i've linked $PATH/raku to bin/raku from the dist, which itself links to rakudo, and installing zef seems to want to use /usr/bin/env rakudo | 14:13 | ||
14:13
Sgeo joined
|
|||
Altreus | Is it better to add that bin dir to my $PATH instead? | 14:13 | |
oh I bet what I previously did was make a raku dir and link *that* and then put that dir/bin into $PATH! Maybe I should just use rakubrew | 14:14 | ||
14:29
epony left
14:30
epony joined
|
|||
Nemokosch | maybe you should :) | 15:04 | |
patrickb | Altreus: The archives in rakudo.org definitely have ZDF included. I suspect you missed to look in archive/share/perl6/site/bin/ | 15:15 | |
s/ZDF/zef/ | |||
Also there is the set-env.sh script, which sets up the paths correctly (both bin/ and share/perl6/site/bin/) | 15:17 | ||
15:30
linkable6 left,
evalable6 left,
linkable6 joined
15:33
evalable6 joined
15:35
[Coke] left
15:37
Ulti left
15:38
[Coke] joined
16:02
Nemokosch left
16:03
Nemokosch joined
16:13
derpydoo left
|
|||
[Coke] | I have a mac and am interested in the docs, what was the original thing? | 16:15 | |
16:21
Kaiepi left
16:33
epony left
16:34
epony joined
16:39
[Coke]_ joined
16:42
[Coke] left
|
|||
Voldenet | [Coke]: original thing was Dash compatible DocSets for the Raku documentation for viewing in kapeli.com/dash | 16:44 | |
tellable6 | Voldenet, I'll pass your message to [Coke] | ||
17:02
Nemokosch1 joined
17:05
Nemokosch left
17:06
deoac left
17:15
Kaiepi joined
17:31
derpydoo joined
18:07
Nemokosch1 left,
reportable6 left
18:09
reportable6 joined
18:21
epony left
19:02
n1to joined
19:03
n1to left
19:11
jgaz left
19:32
jgaz joined
19:58
xinming left,
xinming joined
20:08
derpydoo left
20:10
[Coke] joined
20:13
[Coke]_ left
20:22
jgaz left
21:22
linkable6 left,
evalable6 left
21:23
evalable6 joined,
linkable6 joined
21:31
Nemokosch joined
21:33
jjido joined
21:39
derpydoo joined
22:10
bigdata joined
22:12
bigdata left
22:17
jjido left
22:31
jaguart joined,
jaguart left
22:36
derpydoo left
22:49
jaguart joined
23:04
deoac joined
23:16
Sgeo_ joined
23:20
Sgeo left,
deoac left
23:59
euandreh joined
|