News for hackers. Stuff that matters.
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.
Re:Raku: A Language for Gremlins by flir on Monday August 07, 2023 @08:16PM (#37042788)
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.

Re:Raku: A Language for Gremlins by Sharlin on Tuesday August 08, 2023 @05:08AM (#37046326)
> "Insufficient data for meaningful answer"

Nice reference, by the way.

Re:Raku: A Language for Gremlins by kragen on Tuesday August 08, 2023 @05:01PM (#37055401)
oh fuck, i missed that
Re:Raku: A Language for Gremlins by mst on Tuesday August 08, 2023 @08:00AM (#37047638)
Convert https://trout.me.uk/data.jpg to sixels and have the compiler emit that?
Re:Raku: A Language for Gremlins by flir on Tuesday August 08, 2023 @05:46PM (#37055888)
> sixels

Thanks! My build scripts just got that little bit more entertaining (for me. not for the other devs).

Re:Raku: A Language for Gremlins by kragen on Tuesday August 08, 2023 @04:43PM (#37055187)
you could special-case arithmetic sequences
Re:Raku: A Language for Gremlins by codeflo on Tuesday August 08, 2023 @02:32AM (#37045261)
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.