News for hackers. Stuff that matters.
Re:Cthulhu.jl – show type-inferred Julia code by vchuravy on Thursday September 07, 2023 @05:39PM (#37425965)
One of the authors here, happy to answer questions.
Re:Cthulhu.jl – show type-inferred Julia code by contravariant on Thursday September 07, 2023 @06:59PM (#37426830)
You had a perfectly good opportunity to call a function madness and then descend into it, why didn't you?
Re:Cthulhu.jl – show type-inferred Julia code by vchuravy on Thursday September 07, 2023 @07:21PM (#37427036)
Ah but what defines madness? For me it's innocuous functions that have surprising/wild behavior due to type inference disagreeing with me.

Most of the time I am the one wrong.

Re:Cthulhu.jl – show type-inferred Julia code by sundarurfriend on Friday September 08, 2023 @03:39AM (#37430678)
Changing the `function foo()` in the "Usage: descend" section to `function madness()` sounds like a pretty good/funny idea.

    @descend madness()
would be a pretty good reference to the original text!

Positive: it would also let people know at a glance that things like `rand() > 0.5 ? Int64 : Float64` are indeed madness.

Potential negative: some people may not consider it super DEI-friendly? As a neurodivergent person, I'd just find it to be just a lovely reference though.

Re:Cthulhu.jl – show type-inferred Julia code by drt5b7j on Friday September 08, 2023 @04:52AM (#37431192)
What a vapid comment.
Re:Cthulhu.jl – show type-inferred Julia code by philipov on Thursday September 07, 2023 @07:12PM (#37426950)
This could be a feature request.
Re:Cthulhu.jl – show type-inferred Julia code by Cthulhu_ on Friday September 08, 2023 @09:52AM (#37433491)
Ph'nglui mwgl'nafh Cthulhu R'lyeh wgah'nagl fhtagn?