« first day (1312 days earlier)      last day (1359 days later) » 

2:17 AM
@cannadayr @ngn Did a new version of DejaVu Sans Mono, which I'm now using for the website.
 
 
10 hours later…
11:48 AM
@ngn wait how does this work
So I have a←1 2 3 4 5
and b←6 7 8 9 0
⋄12345⍪67890
 
@Razetime 12345 67890
 
But what I really want is 1 6 2 7 3 8 4 9 5 0
How do I do that
 
12:03 PM
<kritixilithos> ⋄1 2 3 4 5[,.5]6 7 8 9 0
DOMAIN ERROR
<kritixilithos> ⋄1 2 3 4 5,[.5]6 7 8 9 0
1 2 3 4 5
6 7 8 9 0
<kritixilithos> ⋄∊1 2 3 4 5,[1.5]6 7 8 9 0
1 6 2 7 3 8 4 9 5 0
<kritixilithos> ⋄1 2 3 4 5,[1.5]6 7 8 9 0
1 6
2 7
3 8
4 9
5 0
<kritixilithos> @Razetime ^
 
12:25 PM
ah perfect
 
12:37 PM
huh, dzaima/APL throws an error when I try it :/
 
@Razetime i have almost no function bracket axis support
 
lol too bad
 
something like ⍉↑1 2 3 4 5⍮6 7 8 9 0 works
 
interesting
⍮ is an interesting symbol
 
@Razetime imo it's a pretty important primitive, but it didn't seem to exist
 
12:45 PM
It's in dyalog extended right
Doesn't work in the IDE
 
@Razetime yeah
 
having a pairing function is great
 
@dzaima BQN has which is ↑⍤⍮ aka {↑⍺⍵}
 
thanks
Now back to work lol
 
 
1 hour later…
2:04 PM
Hello
Can I get help to verify the time complexity of a sort algorithm I wrote?
 
ngn
2:34 PM
@Razetime try it. the output is netpbm.
 
2:58 PM
@ngn That is an amazingly creative answer
it's way too different from processing one tho
you should separately post it
@Mathphile some of the messages above use ]runtime -c
then call anonymous functions in quotes as arguments
 
bqn question time, how can I successively apply a vector of functions to some input?
example something like this:
{𝕩+1} {𝕩×2} 2
5

with a left argument something like this:
⟨{𝕩+1},{𝕩×2}⟩ {𝕎 𝕩} 2
where output become input for successive monadic function
 
@cannadayr something like {𝕩{𝕎𝕩}´⌽𝕨}
 
:55390922 life changing ngl
 
@dzaima actually, no need for (at which point it's just {𝕎𝕩}´˜)
 
@dzaima you rm'ed it but i noticed you were attempting to use ⊸ or something
 
3:13 PM
@cannadayr that message was {𝕎𝕩}´⟜⌽˜ (or more clearly, ⌽⊸({𝕎𝕩}´˜))
(a F⟜G b is a F (G b), a F⊸G b is (F a) G b)
 
@dzaima gonna take me a little bit to build up to this but tyvm in my notes
gonna keep asking questions hah @dzaima
is there a simpler way to treat a rank 1 array of a single scalar as floating?
ex:
⟨1,2,3⟩ + ⟨1⟩
LengthError: shapes don't match (3 vs 1)
⟨1,2,3⟩ + 1
2‿3‿4
or should I be using ⥊ and ≢
 
3:29 PM
@cannadayr where would you have a situation you couldn't just use enclose (<)? if you have just a 1-item vector of a number, ⊑⟨1⟩ works, but in general you'd need <⊑⟨1⟩
 
so im converting my basic stats fns to bqn, and also learning trains (mostly gnu apl til now)

heres how dyalog does it
mean ← +⌿ ÷ ≢
square ← *∘2
sqrt ← *∘0.5
stdev ← {sqrt(mean square ⍵)-square mean ⍵}
but im attempting to write it more compositionally
 
@cannadayr (note that BQN has )
(apparently s inverse is broken in dzaima/BQN (e.g. ⋆⟜2⁼10); fixing)
 
3:48 PM
{√((+´÷≢) (*⟜2) 𝕩) - (*⟜2) (+´÷≢) 𝕩} ⟨1,2,3⟩
⟨0.816496580927726⟩
could be simpler
i like this tho
(+´÷≢) { √ (𝔽 𝔾 𝕩) - 𝔾 𝔽 𝕩} (*⟜2) ⟨1,2,3⟩
 
@cannadayr you should be using instead of - is the full shape, is the length of the major axis
 
@dzaima ohhh gotchya g2k
 
@cannadayr (⋆⟜2)2⋆˜ (or just remove the parenthesis in the original, but i find 2⋆˜ clearer)
 
:55391113
Stdev ← (+´÷≠) { √ (𝔽 𝔾 𝕩) - 𝔾 𝔽 𝕩} (2⊸⋆˜)
Stdev ⟨1,2,3⟩
0.816496580927726
fantastic ty
is there a way to expunge fns in dzaima/bqn?
 
@cannadayr there you're better off using ⋆⟜2. i meant 2⋆˜ for using inline - {√((+´÷≢) 𝕩*2) - 2*˜(+´÷≢)𝕩}
@cannadayr in what sense?
 
3:59 PM
in the REPL, if I want to reassign a function
 
for deleting variables, there was •Erase"stdev", but it's now broken due to the new variable system
 
all good, ill just quit/reload for now. not like i have enough code to be annoying
 
@cannadayr making not error for reassignment in the REPL is on the TODO. i either just restart the REPL or replace with
 
ohh ↩ gotchya
 
4:14 PM
here's my go at stdev
(⋆⟜2 can be golfed to √⁼ if that's wanted)
 
 
6 hours later…
10:21 PM
@dzaima <⊑⟨1⟩ is the same as ⊏⟨1⟩ (first major cell), or equivalently ⊣˝⟨1⟩.
 

« first day (1312 days earlier)      last day (1359 days later) »