Viewing profile — daanx
daanx
HN member- Joined
- Mon, Jul 31, 2017, 5:04 PM UTC
- HN karma
- 89
- Public activity
- 17 items
- HN profile
- View on Hacker News ↗
About daanx
Recent public activity
-
comment
Comment #42262159
> This idea is so simple, so crazy, so stupid, and works so well, but I never thought of it. Bravo to the authors. Thanks for the nice summary -- looking forward to read the paper!…
-
comment
Comment #41864123
Haha, thank you for your kind reply :) really enjoyed the blog post as it shows nicely that implementing HM can be straightforward -- many papers on inference are usually quite mat…
-
comment
Comment #41857230
That's a nice overview of Hindley-Milner in practice! For those interested, I recently have been thinking of a better way to specify type inference with principal derivations that …
-
comment
Comment #40194687
And Andrew Kennedy gave a very nice lecture on this recently as part of Xavier Leroy's seminar on control structures: https://www.college-de-france.fr/fr/agenda/seminaire/structu..…
-
comment
Comment #30341237
Yes -- I think historically the power of condition handling was not well understood and algebraic effect handlers were a "rediscovery" coming from well-studied category theory (Plo…
-
comment
Comment #28307415
I like the characterization that Andrej Bauer uses: "while relates to goto, as effect handlers to shift/reset" :-) That is, you indeed need delimited continuations to implement eff…
-
comment
Comment #28305430
Yes! a nice aspect of effect handlers is that they have an untyped dynamic semantics. Having said that, tracking effect types can be very beneficial, especially if you do interesti…
-
comment
Comment #28305149
The modern way of call/cc and shift/reset is using Effect Handlers instead [1]. If you are interested in this, Ningning Xie and I give a tutorial about effect handlers (and more) a…
-
comment
Comment #25181288
In practice , I have not (yet) found many great use cases for the distinction in Koka. It is nice to have "total" functions, but "pure" (exceptions+divergence) is still a good thin…
-
comment
Comment #25179780
Just to add to this: Koka can (obviously :-)) not always determine if a function will terminate or not so it generally adds a `div` effect whenever there is the possibility of infi…
-
comment
Comment #25179695
Ah, I think Stephen meant to write the following: fun add-refs( a : ref , b : ref ) : st int { a := 10 b := 20 (!a + !b) } where indeed the effect is `st ` as the updates are obser…
-
comment
Comment #25179592
(Daan here, creator of [Koka]( https://github.com/koka-lang/koka ) This is an interesting point and comes down to the question -- what is an effect really? I argue that effect type…
-
comment
Comment #23265991
Interesting article -- thanks! I see they used the `key ^ P` encoding where the `key` is `L >> PAGESHIFT` to use the ASLR randomized bits from the free list position `L`. In [mimal…
-
comment
Comment #18479022
Thanks :-) TREX (by Mark Jones and Benedict Gaster) is great. The beauty is that a lacks constraints can get translated to fields offsets at runtime making it super efficient! E.g.…
-
comment
Comment #18477402
Looks like a fun project, very nice :-) For those interested in more of the beautiful theory on extensible row types, this project seems to be based on an earlier paper I wrote on …
-
comment
Comment #14913291
I tried to cite much related work on co-routines and threading libraries in C -- including Simon Tatham's page on co-routines in C [1] -- But I was not yet aware of the work on Ico…
-
comment
Comment #14893855
Hi, I am the author of this report -- thank you for the interest :-) Just wanted to add that you can find the library at: https://github.com/koka-lang/libhandler The `dev` branch c…