🦋 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.
hhcryfqnut Hello 👋 --raku noob with 0 perl experience. Can anyone tell me what I'm doing wrong here: github.com/hhcryfqnut/text-adventu.../main.raku 00:24
```
? walk north
No such method 'CALL-ME' for invocant of type 'Whatever'
  in sub respond-to-input at text_adventure.raku line 19
  in block <unit> at text_adventure.raku line 1
```
SmokeMachine drakonis: this uses rakudo on js: github.com/FCO/MemoizedDOM and here is an example of usage: fco.github.io/MemoizedDOM/todo6.html (it takes a very long time to load) (open the page source to see its Raku code). But I wouldn’t call it something… just a poc 01:08
hhcryfqnut: you probably want switch the * for a | on line 25 01:16
SmokeMachine hhcryfqnut: and it seems your hash never gets created 01:26
guifa_ also $input-string.trim.split(/\s+/) ----> $input-string.words :-) 02:54
but indeed, as SmokeMachine notes, the *@foo syntax slurps up arguments in parameter lists. Where you have *(@command[1..*]), you're wanting to `Slip` the items in, so you use the slip operator (which is a prefixed | ) 02:58
patrickb melezhik: I think being able to configure CI via a text config file in the repo is a good thing to have. Textfiles are accessible and automatable. 09:55
melezhik: Having a web UI to create / adapt that config file is a bonus. 09:56
Geth setup-raku/node16: 4be99eb817 | (Shoichi Kaji)++ | 3 files
node16
11:52
setup-raku: skaji++ created pull request #20:
node16
11:58
setup-raku: 4be99eb817 | (Shoichi Kaji)++ | 3 files
node16
11:59
setup-raku: 41e2bba95f | (Shoichi Kaji)++ (committed using GitHub Web editor) | 3 files
Merge pull request #20 from Raku/node16

node16
Geth doc: 8a88a6eb97 | (Daniel Sockwell)++ (committed using GitHub Web editor) | doc/Language/containers.pod6
Remove incorrect text & non-compiling example (#4035)

This commit removes some text that describes binding semantics that, after discussion, turned out to be the result of a bug rather than intended behavior. It also removes the accompanying test, which failed to compile once the bug was fixed.
Finally, it adds a doc-comment clarifying that an adjacent test fails at runtime even though it *looks* like it would throw a compile-time error (and thus would need to be marked for xt/example-compilation to skip).
12:56
linkable6 Link: docs.raku.org/language/containers
nine hhcryfqnut: (*(@command[1..*])) is not Raku syntax 12:57
looks Pythonish to me
Geth doc: a58c658b90 | (Daniel Sockwell)++ (committed using GitHub Web editor) | doc/Language/regexes.pod6
\d is for decimal (#3991)

  * \d is for decimal
As we correctly note [further down the page](docs.raku.org/language/regexes#Pre..._classes), `\d` matches _decimal digits_
  (Unicode `Nd`) not all numbers (Unicode `N`). This commit fixes the description here, adds an example of where that makes a difference, and provides
a way to match against Numbers if that's what the user meant.
  * Minor fixes from reviews
13:02
Geth doc: e50230adeb | (JJ Merelo)++ | doc/Language/containers.pod6
Minor :memo:
13:12
Geth doc: 9ca63f5d17 | (JJ Merelo)++ | doc/Language/operators.pod6
Eliminate 1 of course, just delete it #4044

Implicit in the 'also'
13:35
doc: 1cdc9b4ad7 | (JJ Merelo)++ | doc/Language/operators.pod6
Adds example of skipping anon parameter

Following example by @gfldex :clap: closes #4040
guifa_ is starting to regret refactoring Intl::CLDR. So. Many. LOC. 13:52
holyghost re 14:11
holyghost I mentioned 2 years ago I was building a Scheme language system to extend raku such as guile for GNU code 14:14
I am currently at a symbol API and tables for parsing the thing with a theorem prover 14:15
As a demo I am trying to make it into a Gameboy microcode client 14:16
SFY, the code at sourceforge.net/projects/gremlin-scheme/files//
After the theorem prover thingies are stable I can start on the racial extension to convert/translate files for it 14:17
S/racial/raku
guifa_ was about to ask lol
holyghost HTH later on 14:19
It compiles, that's all
tonyo yea that took an interesting turn prior to correction 14:31
Geth doc: 1f201e2d71 | raiph++ (committed using GitHub Web editor) | doc/Language/regexes.pod6
Avoid implying C<Nd> = C<\D> = Not decimal digit

The unfortunate use of a comma and "and" coincides with the possibility that a reader might think Nd means "Not digit" rather than "Number, decimal".
14:32
Geth App-Rakubrew/ugexe-patch-1: ea1edde822 | (Nick Logan)++ (committed using GitHub Web editor) | lib/App/Rakubrew/Build.pm
Use `-I.` instead of `-Ilib`

Its probably fine either way, but technically the former is better than the later. For instance older perl6 executables that do not understand the `.rakumod` extension won't be able to discover such modules with `-Ilib` whereas `-I.` explicitly adds any files in the META6.json regardless of their extension.
15:36
App-Rakubrew: ugexe++ created pull request #49:
Use `-I.` instead of `-Ilib`
Geth doc: 4a36f187a5 | (JJ Merelo)++ | doc/Language/operators.pod6
Solves #4018 by adding examples to the stub reference

Incorporates the OP as well as the comment, with a note
16:33
linkable6 Link: docs.raku.org/language/operators
Geth doc: 25180c53e1 | (JJ Merelo)++ | doc/Language/regexes.pod6
Change to POD markup
16:34
drakonis does raku have anything for loading images or saved state? 17:52
for remote code execution 17:54
or speeding up binaries 17:55
japhb Precompiled modules are bytecode and serialized state. 18:07
The biggest thing that people can do to speed up a Raku *script* is to move all of it into a *module*, leaving just a #! line and a use line in the script, and nothing else. Because then the module gets precompiled, and it's much faster. 18:08
guifa_ drakonis: codesections++ is working on stuff for persistent data 18:44
Geth App-Rakubrew: ea1edde822 | (Nick Logan)++ (committed using GitHub Web editor) | lib/App/Rakubrew/Build.pm
Use `-I.` instead of `-Ilib`

Its probably fine either way, but technically the former is better than the later. For instance older perl6 executables that do not understand the `.rakumod` extension won't be able to discover such modules with `-Ilib` whereas `-I.` explicitly adds any files in the META6.json regardless of their extension.
18:47
App-Rakubrew: 9b50b4b661 | (Patrick Böker)++ (committed using GitHub Web editor) | lib/App/Rakubrew/Build.pm
Merge pull request #49 from Raku/ugexe-patch-1

Use `-I.` instead of `-Ilib`
drakonis japhb: basically, what i want is to compile raku code and execute it in another machine with a rakudo binary without needing to install the modules in the target and if i understand correctly, doing that should help? 19:52
Geth doc: 1f8c9d4fc2 | Coke++ | doc/Language/operators.pod6
fix typo
20:23
linkable6 Link: docs.raku.org/language/operators
drakonis guifa_: cool. 21:26
though i'm not sure it is what i need
[Coke] m: say 100! 21:29
camelia ===SORRY!=== Error while compiling <tmp>
Bogus postfix
at <tmp>:1
------> say 100⏏!
expecting any of:
infix
infix stopper
postfix
statement end
statement modifier
s…
[Coke] m: say [*] (1..100)
camelia 93326215443944152681699238856266700490715968264381621468592963895217599993229915608941463976156518286253697920827223758251185210916864000000000000000000000000
[Coke] m: say sqrt(2*pi*100)*(100/e)**100 21:30
camelia 9.32484762526942e+157
[Coke] Man, math is weird.
drakonis it is, indeed.
[Coke] m: say [*] 1..100 / sqrt(2*pi*100)*(100/e)**100 21:35
camelia (timeout) 21:35
[Coke] oops
moon-child m: use NativeCall; sub tgamma(num64 --> num64) is native('m') {*}; say tgamma 101e0 21:37
camelia Cannot locate native library 'libm.so': /usr/lib64/libm.so: invalid ELF header
in method setup at /home/camelia/rakudo-m-inst-1/share/perl6/core/sources/947BDAB9F96E0E5FCCB383124F923A6BF6F8D76B (NativeCall) line 319
in method setup at /home/ca…
moon-child huh?
MasterDuke i get the same thing locally, /usr/lib/libm.so is a text file 21:40
m: use NativeCall; sub tgamma(num64 --> num64) is native("m", v6) {*}; say tgamma 101e0 21:41
camelia 9.332621544394415e+157
melezhik . 22:18
drakonis oh, hi. 22:19
what's your goal for sparrow?
melezhik hi patrickb thanks! yeah config files for CI are absolutely first thing to go, I just meat, my vision is this CI services should be as simple as possible and provides a A LOT of features out of the box, without necessity to code anything
so, I would like to have a list of such features from Raku community , may be I'll need o create a reddit post or something ))) 22:20
drakonis you pinged the wrong person, but alright.
melezhik hi drakonis
I answered previous patrickb reply on my idea to start writing Raku focused CI server 22:21
drakonis i see.
melezhik NP ))
drakonis i'm writing a automation framework, however it doesnt follow the kind of design you're going for 22:22
melezhik drakonis are you interested in Sparrow, any specific questions? I don't have any specific vision for it right now, I just use it whenever it's possible and this makes my life easier , that is it
cool! have you checked Sparrow documentation?
also I use Sparrow as a low level framework to build more high level tools, services including Sparky, Tomtit, Tomty 22:23
if this helps
drakonis i've checked the code
melezhik basically Sparrow is just all in one universal language agnostic engine with a Raku orchestrator on the top 22:24
drakonis i see
melezhik code, could be far from being ideal and optimal
I encourage you to read the docs and posts ( which I have produced quite a number for the last X years, he-he ), maybe you'll borrow some my ideas and do better implementation )))) 22:25
have you checked that? - raku-advent.blog/2020/12/07/mixing...g-sparrow/ 22:26
Sparrow's GH docs could be maybe tough to start with, these Raku advents and dev.to posts are more easier and friendly )))) 22:27
anyway, I'd be happy to help you in anyways ...
drakonis cool 22:28
it does seem a bit more like the traditional automation tooling but with more syntax options
melezhik yeah, it's quite simple by users's API but it has some ( a lot of ) features that cover (many) cases 22:29
you might be also interested in Sparky, which is a CI/integration  server built on the top of Sparrow - github.com/melezhik/sparky#job-api 22:30
the "latest and greatest" (sorry for showing off) feature is one can run distribute jobs ( Sparrow scenarios basically ) across clusters with VMs or docker instances 22:31
anyway ... let me know if you have more specific questions or post your thought as GH issues )))
drakonis no worries
i think i'm going with something different for my own 22:32
it does seem nice though 22:33
melezhik . 22:36
sure! and good luck! 22:37
drakonis thanks. 22:38
n1to hi, can someone tell me how to use external libraries in the Comma IDE. I am using `rakubrew` and installed 'Color' with `zef`. Even though the IDE provides me with auto completion for Color it does not find the module with the use statement and fails with 'Cannot find Color in the ecosystem'. When I try it in the repl inside the IDE, it works though. 23:17
n1to I think I am missing something really simple. 23:33
El_Che n1to: normally in settings => languages you can set paths 23:43
or set RAKULIB env variable
japhb n1to: Couple possibilities that I can think of. Have you added your current rakudo as an "SDK" for the project? Also, have you added Color to your META6.json as a depends entry? 23:55