Re:Raku: A Language for Gremlins
by Dylan16807 on Monday August 07, 2023 @08:01PM
(#37042641)
Do you want it to take the first match? Inputting a unique prefix doesn't sound practical.
[ Parent
| on HN ]
I thought about that. I thought the compiler could error with "Insufficient data for meaningful answer" until you'd added enough digits that the sequence was unambiguous.
Then I tried it in OEIS and there are too many sequences that start [1,2,3,4,5,] - I think we may be stuck with generators and yield. But they're not exactly delightful.
> "Insufficient data for meaningful answer"
Nice reference, by the way.
oh fuck, i missed that
Convert https://trout.me.uk/data.jpg to sixels and have the compiler emit that?
> sixels
Thanks! My build scripts just got that little bit more entertaining (for me. not for the other devs).
you could special-case arithmetic sequences
That would lead to weird behavior since the OEIS is sorted by number of references, which I think prefers "interesting" solutions over straightforward ones. For (1, 2, 3), the positive integers are only ranked 5th -- the top hit are the Fibonacci numbers. It's funny to think about.