Re:Poll: Where do you live?
by l0b0 on Friday February 04, 2022 @02:57PM
(#30212124)
Ask codegolf.stackexchange.com, there's probably a Mathematica one-liner to display a globe with colour-coded areas.
[ Parent
| on HN ]
I never understood the purpose of languages with unicode operators that can supposedly express a 30 line script in like 2 symbols.
Are they purpose built on the spot for CodeGolf?
Not on the spot, a condition for the answer to be accepted is that the language must exist before the challenge, but yes, many languages exist only just for the purpose of golfing. Mathematica is a legitimate language though, it just is the case that some operations are surprisingly compact.
Re:Poll: Where do you live?
by LeifCarrotson on Friday February 04, 2022 @05:12PM
(#30214063)
Like checking if an image is of a goat:
ImageInstanceQ[x,"caprine animal",RecognitionThreshold->i/100]
https://codegolf.stackexchange.com/a/71680I doubt Mathematica is built for code golf. Check out Burlesque (which is ASCII).
If ask for a "histogram" of the data, did I just write a 30 line script as a single word?