[Coke] sw_vers is a macos thing. 00:03
I show it mainly to get the OS version in there. 00:04
arkiuat m: with 1000 { say exp($_)/(1+exp($_)) } 00:28
camelia NaN
arkiuat m: say exp 1000 00:30
camelia Inf
arkiuat m: .say for (.exp for 707..711).map({"%.2e".sprintf: $_}) 00:40
camelia 1.11e+307
3.02e+307
8.22e+307
Inf
Inf
arkiuat that looks about right for expected overflow of IEEE-754 binary64 floats 00:50
Voldenet hm, I saw notgull.net/block-pattern/ on orange website and I'm wondering if raku's block calling could do something similar without () 02:27
m: my $x = { my $a = 1; my $b = 2; $a + $b }; say $x # nope, obviously
camelia -> ;; $_? is raw = OUTER::<$_> { #`(Block|4435940645272) ... }
Voldenet m: my $x = { my $a = 1; my $b = 2; $a + $b }(); say $x # yes, but not beautiful
camelia 3
Voldenet m: sub call(&x) { x() }; my $x = call { my $a = 1; my $b = 2; $a + $b }; say $x # hmmm 02:28
camelia 3
Voldenet I wouldn't mind a hint on some built-in here 02:29
02:38 kylese left, hulk joined 02:40 lue is now known as ShimmerFairy
SmokeMachine m: say one(1, my $f).defined 02:43
camelia True 02:44
SmokeMachine say one(1, Failure.new).defined
evalable6 True
SmokeMachine say one(1, Failure.new).DEFINITELY 02:45
m: say one(1, Failure.new).DEFINITE 02:46
camelia True
02:47 johnjay left 02:49 johnjay joined 03:15 hulk left, kylese joined