News for hackers. Stuff that matters.
Re:Raku: A Language for Gremlins by flir on Monday August 07, 2023 @05:44PM (#37041378)
> You check set membership with ∈

Yeah, ok, I see what you mean.

>> 0,2,4...10

> (0 2 4 6 8 10)

>> 1,2,4...10

> (1 2 4 8)

Wait... what? Is it looking the next number up in OEIS or something?

Re:Raku: A Language for Gremlins by kragen on Monday August 07, 2023 @05:59PM (#37041533)

    Unable to deduce arithmetic or geometric sequence from: 1,2,5
    Did you really mean '..'?
Re:Raku: A Language for Gremlins by flir on Monday August 07, 2023 @06:02PM (#37041559)
> arithmetic or geometric

See, that doesn't delight me. OEIS is what's needed here.

Re:Raku: A Language for Gremlins by hwayne on Monday August 07, 2023 @06:09PM (#37041626)
Welp now I know what "using it in anger" is gonna look like
Re:Raku: A Language for Gremlins by flir on Monday August 07, 2023 @07:22PM (#37042282)
If you're the author of the posted article, I just want to say that was the best "Introduction to X" I think I've ever read. You really left me wanting more of this apparently delightful, bonkers language.
Re:Raku: A Language for Gremlins by nerdponx on Monday August 07, 2023 @06:23PM (#37041775)
Maybe there's some way to extend the compiler to use OEIS. Is there a "liboeis" that lets you download and interact with the OEIS database offline?
Re:Raku: A Language for Gremlins by anthk on Monday August 07, 2023 @07:00PM (#37042115)
There's must be one or two for either Python or Perl. Well: https://github.com/sidneycadot/oeis
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.
Re:Raku: A Language for Gremlins by SyrupThinker on Tuesday August 08, 2023 @02:19AM (#37045183)
Well… that was supposedly considered at some point:

https://youtube.com/watch?v=BJIfPFpaMRI&t=1891 (~1m)

Re:Raku: A Language for Gremlins by vanderZwan on Tuesday August 08, 2023 @07:48AM (#37047525)
Heh, even Larry Wall says "no, that way lies madness"

(now I want to see it in an esolang precisely because he said that)

Re:Raku: A Language for Gremlins by mst on Tuesday August 08, 2023 @08:01AM (#37047656)
This is much like my wanting to eventually resurrect my MicroVAX 2100 ... so I can install Eunice on it ... so I can get perl's Configure script to take the other branch of the test that reports "Congratulations, you aren't running Eunice" for real and take a photograph of it.
Re:Raku: A Language for Gremlins by anthk on Monday August 07, 2023 @05:55PM (#37041494)
Damn, that made me laugh.