Does anyone have any thoughts on what motivates people to play sudoku or write solvers for sudoku ? I have trouble finding motivation to solve artificial problems. That said I sink hundreds of hours into factorio.
Arthur Whitney's one liner sudoku solver (2011)
71–80 of 210 posts
Re: Arthur Whitney's one liner sudoku solver (2011)
#72Does anyone have any thoughts on what motivates people to play sudoku or write solvers for sudoku ? I have trouble finding motivation to solve artificial problems. That said I sink hundreds of hours into factorio.
Re: Arthur Whitney's one liner sudoku solver (2011)
#73Re: Arthur Whitney's one liner sudoku solver (2011)
#74I'll sometimes gauge code complexity by comparing the number of lines of code against the output of tar -cf - . | gzip | base64 | wc -l IE "how much does it compress?" Looking at APL -- I'm reminded of what happens if I accidentally send the gzipped output to my tty... I'm impressed that there's anyone who can follow along (can you find the bug?) to code like p←{(↑⍵)∘{(⍺∨.=⍵)/⍳n×n∘}¨,⍵},(n*÷2){⍵,⍺⊥⌊⍵÷⍺}'⍳n n←⍴⍵ It re…
Legitimately curious how APL programmers think about maintainability and readability. Is code just thoroughly commented or otherwise documented?
Re: Arthur Whitney's one liner sudoku solver (2011)
#75Earlier quoted context omitted.
Sure. but please elaborate ..
I cannot comprehend the mindset of people who decide to spam (because that is what your comment is) any forum with a page of bullshit GPT slop. Do you think it's helpful or interesting?
I was surprised that Claude was able to identify the language and explain the code.
But, please feel free to downvote my comments. I guess the aggregate in the end will demonstrate whether it was a useful comment or spam + bullshit GPT slop.
Re: Arthur Whitney's one liner sudoku solver (2011)
#76> Advocates of the language emphasize its speed, facility in handling arrays, and expressive syntax. Indeed. https://en.m.wikipedia.org/wiki/K_(programming_language)
Re: Arthur Whitney's one liner sudoku solver (2011)
#77Earlier quoted context omitted.
I cannot comprehend the mindset of people who decide to spam (because that is what your comment is) any forum with a page of bullshit GPT slop. Do you think it's helpful or interesting?
Personally I believe it is interesting since it shows the current state of the art for the 3 LLMs. I was surprised that Claude was able to identify the language and explain the code. But, please feel free to downvote my comments. I guess the aggregate in the end will demonstrate whether it was a useful comment or spam + bullshit GPT slop.
Re: Arthur Whitney's one liner sudoku solver (2011)
#78Earlier quoted context omitted.
"Debugging is twice as hard as writing a program in the first place. So if you're as clever as you can be when you write it, how will you ever debug it?" — Kernighan, Brian. The Elements of Programming Style (2e) . McGraw-Hill, 1978.
By becoming even more clever: https://www.linusakesson.net/programming/kernighans-lever/in...
Re: Arthur Whitney's one liner sudoku solver (2011)
#79"one line in your custom language" is not one line at all lol
To be fair K is a real language that's used by more than just him. Why array languages seem to gravitate to symbol soup that makes regex blush I'll never know.
Re: Arthur Whitney's one liner sudoku solver (2011)
#80Earlier quoted context omitted.
Well no, not in a non-array programming language. In any language that has a semi-decent type/object system and some kind of functional programming support, `avg a+b` would just be `avg(a, b)`, which is not any easier or harder, with an array type defined somewhere. Once you make your basic array operations (Which they have to be made in q anyways, just in the stdlib), you can compose them just like you would in q, a…
Why would it be avg(a, b)? What if I want to take the average difference of two arrays?