HackerTrans
TopNewTrendsCommentsPastAskShowJobs

kephasp

no profile record

comments

kephasp
·6 месяцев назад·discuss
I've been using Haskell professionally for the last 5 years, I definitely hope I can continue!
kephasp
·6 месяцев назад·discuss
How can you prevent code from creating a handle in a new place?
kephasp
·10 месяцев назад·discuss
Resumable code is extremely helpful and I'm pretty sure you're describing a chicken and egg issue: if resumable code was readily available in general, people would use it a lot more and it would look like a very normal tool that is often the best.

But when it's only a feature available in niche languages or many languages make it unsafe or unreliable, then very few people will get to the point where it naturally pops up in their mind as a solution to their problem.
kephasp
·10 месяцев назад·discuss
This is basically what we already have in Haskell. Debug functions that sidestep the typing system can be annotated with a warning and you can make this one an error while compiling for production.

And in a more general sense, you can ask the compiler to forbid escape hatches altogether.

We already have a pragmatic, reliable solution.
kephasp
·10 месяцев назад·discuss
First, you can write a function that's generic on the effects used, so you could write use it in a way that calls an LLM and use it elsewhere in a way that cannot, with the same logic.

But I see the need to change the code as a good thing when it is necessary: I don't want a dependency, inside or outside my codebase, to suddenly add network calls without me knowing it. Same goes for code that was pure and has become stateful. Not knowing this kind of fundamental change is a recipe for a nightmare.

It should be especially apparent with the recent supply chain attacks.