Skip to content

Instantly share code, notes, and snippets.

@chrispsn
Last active December 19, 2019 20:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrispsn/65dbb3586016f18f42faae53e6fcfd7a to your computer and use it in GitHub Desktop.
Save chrispsn/65dbb3586016f18f42faae53e6fcfd7a to your computer and use it in GitHub Desktop.
On lambdas
/ Abstraction considered harmful? One-at-a-time thinking preventing parallelisation?
/ AoC 2019 problem 4
```q
i:${x+!1+y-x}.`i$"-"\:"193651-649729"
/ Results are the same:
1~({x~^x}#i)~i@&&/~<':+i
/ But the second line (Attila's) is much faster:
\t:10 {x~^x}#i / 2796 (filter has builtin each)
\t:10 i@&&/~<':+i / 563
```
On ATW coding style
ngn: "one of the good things about this style is that you can estimate at a glance the complexity of a given part of your program ... very hard to do that if you have to zoom and scroll (though i don't "hate scrolling" as much as a.w. does) ... i use a lot of customized syntax highlighting too" https://chat.stackexchange.com/transcript/message/52868645#52868645
ngn: "i also wanted to say: if you seek simplicity, this style is to a large extent discovered (as opposed to invented) ... complicated things can be arranged in many ways. simple in few. that's why it always looks like entropy is increasing in the physical world :)" https://chat.stackexchange.com/transcript/message/52953587#52953587
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment