Viewing profile — kephasp
kephasp
HN member- Joined
- Fri, Apr 20, 2018, 9:20 PM UTC
- HN karma
- 19
- Public activity
- 38 items
- HN profile
- View on Hacker News ↗
About kephasp
No profile information was provided.
Recent public activity
-
comment
Comment #46415350
I've been using Haskell professionally for the last 5 years, I definitely hope I can continue!
-
comment
Comment #46415343
How can you prevent code from creating a handle in a new place?
-
comment
Comment #45210243
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 mor…
-
comment
Comment #45210224
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 compilin…
-
comment
Comment #45210199
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 lo…
-
comment
Comment #45026398
Do you know papers or technical reports that demonstrate the scalability of authorization-preserving search indexes? I don't doubt they exist but what we hear about are the opposit…
-
comment
Comment #45026358
One typical way to resolve this is to use Voluntary Oblivious Compliance (VOC). In this capability-based pattern, every storage service could provide an opaque handler to a user th…
-
comment
Comment #34217491
My team builds frontends in Elm and backends in Haskell and we experience the opposite: FP made the code very easy to reason about and plugging things together is easy too.
-
comment
Comment #33997740
John Carmack is already advocating for the use of Haskell for video games.
-
comment
Comment #32462400
You need to sketch it and possibly implement it yourself because actual examples don't exist. QED
-
comment
Comment #32460235
I read about them a few times, but I never saw them proposed as the main access to recursion. Are there examples of that use?
-
comment
Comment #32337968
> So the compiler of your immutable language will still have to insert locks No it won't, not at the myriads of places they're needed when there are mutations all over the place. O…
-
comment
Comment #32337906
> Neither C nor C++ have built-in immutable data structures First of all, yes they do, you can use const on structs and objects and methods to ensure your C/C++ data structure is i…
-
comment
Comment #32335215
But once it is created, all pieces of code accessing it can be executed in any order because there will never be a write on it again.
-
comment
Comment #32335172
Look for actual examples in the wild that weren't error prone and I'd be surprised you'll find any. I get that you can imagine it. I'm saying it wouldn't work in practice.
-
comment
Comment #32335153
You're misunderstanding ZFS' persistent data structure. It's the whole point that it's not doing a copy then modifying something. Also no one claims there's one immutable data stru…
-
comment
Comment #32335104
Of course I use combinators more often than I write recursive functions. But if someone finds recursion less readable, I still think they're missing something crucial. And I don't …
-
comment
Comment #32335084
Experimenting around the state of the art or reimplementing the state of the art ourselves while being informed by it would be fine. I guess it would be a great exercise, as you sa…
-
comment
Comment #32326755
Do you have examples of this idea that were implemented and weren't insanely error-prone?
-
comment
Comment #32326736
A mutable data structure will have such data dependencies all around. An immutable data structure cannot, because it will never be written in after creation.
-
comment
Comment #32326649
> It's literally not possible for this to be true When you need a state that you can rollback, an immutable data structure lets you share the parts of the structure that didn't cha…
-
comment
Comment #32326604
I wonder if the loss of locality would be compensated by the better concurrency of the overall process… I'd be interested to see benchmarks.
-
comment
Comment #32326460
> Do you mean to say the compiler will insert locks? I think you're right, it's the compiler that'll insert the locks according to the semantics of the language. > For an out-of-or…
-
comment
Comment #32325869
When you use a mutable data structure, and your code is concurrent, you'll force the CPU to put locks everywhere in your code so that several cores won't see stale data in their in…
-
comment
Comment #32325774
Most so-called software engineers fail to do something crucial in engineering: they have zero knowledge about the scientific state of the art about programming. I agree that the ab…