Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

To do this you made the Debug effect a special case in the compiler. Won't users want to create their own special effect types? Could these special effects be expressed within the language itself instead of being compiler builtins?


We can certainly extend it to a language feature-- if there are good use cases.

Do you have some specific special effects in mind?


Disclaimer: I don't know much about this programming language or about Effects, so there may be a better way to do this already

something I'd sometimes like to do when I'm profiling complex code will be to have an (essentially) global variable tracking the sum of how long a function took to execute over all invocations.

I am guessing that mutating the global counter would count as an effect, and I wouldn't really want to add the effect all the way through the call graph. I think this is something where the handling ought to be similar to how you're handling Debug.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: