The Array Cast cover image

The Array Cast

Control Structures in the Array Languages

Jul 23, 2022
01:28:00

Array Cast - July 22, 2022
Show Notes

Many thanks to Bob Therriault, Marshall Lochbaum and Adám Brudzewsky for gathering these links:

[01] 00:01:10 Dyalog Problem /solving Contest https://contest.dyalog.com/?goto=welcome
[02] 00:01:35 Dyalog Early Bird Discount https://www.dyalog.com/user-meetings/dyalog22.htm
[03] 00:03:50 Iverson Notation https://apl.wiki/Iverson_Notation
[04] 00:05:06 GOTO in Early APL https://www.jsoftware.com/papers/APL1.htm#1.2
[05] 00:06:06 Control Structures https://en.wikipedia.org/wiki/Control_flow
[06] 00:08:33 Goto in APL https://aplwiki.com/wiki/Branch
[07] 00:09:45 Goto in J https://code.jsoftware.com/wiki/Vocabulary/gotodot
[08] 00:09:55 try. catch. throw. in J https://code.jsoftware.com/wiki/Vocabulary/trydot
[09] 00:10:46 whilst. in J https://code.jsoftware.com/wiki/Vocabulary/whiledot
[10] 00:14:09 APL Control Structures https://aplwiki.com/wiki/Control_structure
[11] 00:17:43 J Control Structures https://code.jsoftware.com/wiki/Vocabulary/ControlStructures
[12] 00:18:00 if. else. elseif. do. end. in J https://code.jsoftware.com/wiki/Vocabulary/ifdot
[13] 00:20:40 singleton in APL https://aplwiki.com/wiki/Singleton
[14] 00:21:01 for. for_ijk. in J https://code.jsoftware.com/wiki/Vocabulary/fordot
[15] 00:23:45 Go language for loop syntax https://go.dev/tour/flowcontrol/1
[16] 00:25:22 Javascript Mapping arguments] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map#syntax
[17] 00:26:21 Clojure Mapping https://clojuredocs.org/clojure.core/map
[18] 00:27:40 BQN Control Structures https://mlochbaum.github.io/BQN/doc/control.html
[19] 00:28:20 BQN Blocks https://mlochbaum.github.io/BQN/doc/block.html
[20] 00:28:49 BQN ? predicate https://mlochbaum.github.io/BQN/doc/block.html#predicates
[22] 00:31:05 APL if else operands https://dfns.dyalog.com/n_else.htm
[23] 00:31:42 BQN Stranded Block functions https://mlochbaum.github.io/BQN/doc/control.html#switch-case
[24] 00:32:30 APL Arguments and Operands https://aplwiki.com/wiki/Operand
[25] 00:36:00 Dfn Dop https://help.dyalog.com/latest/#Language/Defined%20Functions%20and%20Operators/DynamicFunctions/Dynamic%20Operators.htm
[26] 00:36:45 BQN Block definition and modifiers https://mlochbaum.github.io/BQN/doc/block.html
[27] 00:38:15 Power Operator
APL https://aplwiki.com/wiki/Power_(operator)
J https://code.jsoftware.com/wiki/Vocabulary/hatco
BQN https://mlochbaum.github.io/BQN/doc/repeat.html
[28] 00:41:30 k/Q Control Structures https://code.kx.com/q/ref/cond/
[29] 00:43:25 power operator in q https://code.kx.com/q/ref/do/
for in k ⍣n/^:n: https://k.miraheze.org/wiki/For
fixed point in k ⍣≡/^:_: https://k.miraheze.org/wiki/Fixedpoint
[30] 00:43:40 if in q https://code.kx.com/q/ref/if/
[31] 00:44:20 while in q https://code.kx.com/q/ref/while/
[32] 00:45:38 Replicate kludge example of if: in APL https://tryapl.org/?clear&q=a%E2%86%9010%20%E2%8B%84%20%E2%8D%8E(5%3C3)%2F%27a%E2%86%90a%2B1%27%20%E2%8B%84%20%E2%8E%95%E2%86%90a%20%E2%8B%84%20%E2%8D%8E(5%E2%89%A03)%2F%27a%E2%86%90a%2B1%27%20%E2%8B%84%20%E2%8E%95%E2%86%90a&run
[33] 00:51:00 J's z locale https://code.jsoftware.com/wiki/Vocabulary/ZeeLocale
[34] 00:52:29 Dfn guard example https://aplwiki.com/wiki/Dfn#Guards
[35] 00:54:20 Game of life with power operator https://tio.run/##SyzI0U2pTMzJT///3z3fR@FR2wSFam19nUe9W2sf9ewyVjB@1NF1aIWxtoHOoRWPuhb9//@obypQUWZeZklmYg6Qpf6od7667aO2iY969j7qnQdHXIe2H9oOlDu0nQtMQphgGsaEQC5dXV0ukN1QM8F8DaDAo97FRprYRI3hogA
[36] 00:56:40 BQN power operator without infinity https://mlochbaum.github.io/BQN/doc/repeat.html
[37] 00:58:34 Recursion in BQN https://mlochbaum.github.io/BQN/doc/block.html#self-reference
[38] 00:59:20 CBQN System ._While_ https://github.com/dzaima/CBQN/blob/master/docs/system.md#_while_
[39] 01:03:30 APL with power match https://aplwiki.com/wiki/Power_(operator)#Examples
[40] 01:04:13 J power operator with infinity https://code.jsoftware.com/wiki/Vocabulary/hatco#u.5E:_.28Converge.29
[41] 01:08:24 Example of power applied when it shouldn't (argument > test point) https://tryapl.org/?clear&q=1%2B%E2%8D%A3%7B%E2%8D%BA%3E10%7D10&run
[42] 01:10:20 Example of Rank or each to simulate loops https://tio.run/##SyzI0U2pTMzJT///v/pR39RHbRPUA4ryk1OLizPz0tV1HvVurT20wtBAwchAwdjg/38A
[43] 01:13:19 Conor's example of 2 to the power of 2 repeated until over 1000
APL solution https://tryapl.org/?clear&q=%C3%97%E2%8D%A8%E2%8D%A3%7B%E2%8D%BA%3E1000%7D2&run
J solution https://jsoftware.github.io/j-playground/bin/html2/#code=t%3D%3A%20*%3A%5E%3A%28%3C%261000%29%5E%3A_%0At%202
BQN solution https://mlochbaum.github.io/BQN/try.html#code=X3doaWxlX+KGkHvwnZS94o2f8J2UvuKImPCdlL1f8J2Vo1/wnZS+4oiY8J2UveKNn/CdlL7wnZWpfQrDl8ucX3doaWxlXyg84p+cMTAwMCkgMg==
[44] 01:15:21 Conor's example of 2 multiplied by 2 repeated until over 1000
APL solution https://tryapl.org/?clear&q=2%C3%97%E2%8D%A3%7B%E2%8D%BA%3E1000%7D2&run
J solution https://jsoftware.github.io/j-playground/bin/html2/#code=t%3D%3A%20%2B%3A%5E%3A%28%3C%261000%29%5E%3A_%0At%202
BQN solution https://mlochbaum.github.io/BQN/try.html#code=X3doaWxlX+KGkHvwnZS94o2f8J2UvuKImPCdlL1f8J2Vo1/wnZS+4oiY8J2UveKNn/CdlL7wnZWpfQory5xfd2hpbGVfKDzin5wxMDAwKSAy
[45] 01:16:49 Adám's example to see the process using quad gets https://tio.run/##SyzI0U2pTMzJT////1Hf1EdtE4wOT3/Uu7gawnnUu0vhUe9WhUfdLUB6l52hgYFBrdH//wA
[46] 01:19:28 Solution to solve problem with no execution if starting argument > 1000
APL solution https://tryapl.org/?clear&q=%7B2%C3%97%E2%8D%A3%7B%E2%8D%BA%3E1000%7D%E2%8D%A3(%E2%8D%B5%E2%89%A41000)%E2%8A%A2%E2%8D%B5%7D1001&run
J solution https://jsoftware.github.io/j-playground/bin/html2/#code=t%3D%3A%20%2B%3A%20%5E%3A%28%3C%261000%29%20%5E%3A_%0At%201001
BQN solution https://mlochbaum.github.io/BQN/try.html#code=X3doaWxlX+KGkHvwnZS94o2f8J2UvuKImPCdlL1f8J2Vo1/wnZS+4oiY8J2UveKNn/CdlL7wnZWpfQory5xfd2hpbGVfKDzin5wxMDAwKSAxMDAx
[47] 01:23:10 Using logarithms to solve the problem
APL solution https://tryapl.org/?clear&q=2*%E2%8C%882%E2%8D%9F1000%20%E2%8B%84%202%C3%97%E2%8D%A3(%E2%8C%88-%2F2%E2%8D%9F1000%202)%E2%8A%A22&run
J solution https://jsoftware.github.io/j-playground/bin/html2/#code=t%3D%3A%20%5E%3E.%40%5E.%261000%0At%202
BQN solution https://mlochbaum.github.io/BQN/try.html#code=4oyI4oy+KDLii4bigbziiqIpIDEwMDA=
[48] 01:25:47 contact@arraycast.com
[49] 01:26:24 Transpose Episode https://www.arraycast.com/episodes/episode29-transpose

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode