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:42 adsasd joined 01:20 adsasd left 01:34 ab5tract left, ab5tract joined 02:16 adsasd joined 02:49 adsasd left 03:41 tea3po joined 03:44 teatwo left 05:51 CIAvash joined 05:55 arkiuat joined 07:08 arkiuat left 08:17 guifa_ joined 08:18 guifa left 10:22 adsasd joined, adsasd left
ab5tract vushu: Good news! With some very minor tweaks I was able to compile and run raylib-raku on macOS :D 10:32
www.irccloud.com/pastebin/OgVKDwJ7 10:34
11:45 teatwo joined 11:48 tea3po left
ab5tract vushu: A small note — you might explore changing parameter-less function definitions to be term definitions instead. This allows you to then write `while !window-should-close {` or `get-time` without any parentheses because the term by its nature will not have any arguments 11:54
11:55 CIAvash left
ab5tract I’ve done this locally and it works: 11:55
www.irccloud.com/pastebin/7SpOI8gE
13:35 habere-et-disper joined 15:15 jgaz joined
.vushu <ab5tract> good to know :), thanks for the tip I will see if can incorparate those things. 15:28
antononcube Cross-posting here because for some reason it was ignored yesterday in the “main” IRC channel. (Because certain sites were down or not working or something.) 15:34
Where I can see example of distribution dependent Raku module tests? For example, I want to run one set of tests on macOS and a different set (maybe empty) on Linux.
rcmlz Here it is suggestet to use "skip" - docs.raku.org/type/Test#sub_skip to exclude single (sub) tests, or maybe plain-vanilla KISS like this? use Test; plan 1; if $*DISTRO.is-win { ok True, "Windows-Tests"; }elsif $*DISTRO.name ~~ /macos/ { ok True, "MacOS-Tests"; }else{ ok True, "Linux-Tests"; } done-testing 17:58
m: use Test; plan 1; if $DISTRO.is-win { ok True, "Windows-Tests"; }elsif $DISTRO.name ~~ /macos/ { ok True, "MacOS-Tests"; }else{ ok True, "Linux-Tests"; } done-testing 17:59
Raku eval 1..1 ok 1 - Linux-Tests
antononcube Thank you1 18:05
@rcmlz And yes I was going to do the "plain vanilla" approach. But I was wondering is there are more streamlined way of doing it. 18:07
rcmlz Or do OS-specific test files starting with e.g. for MacOS use Test; plan 1; unless $*DISTRO.name ~~ /macos/ { skip-rest "Skipping MacOS specific tests"; exit; } ok True, "MacOS-Tests"; done-testing 18:12
20:00 habere-et-disper left 23:44 teatwo left 23:45 teatwo joined