-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add maybe types #29
Comments
Note that last use requires let-trick still because of #29 which does not allow null to be passed in as an actor.
What is the use case for null actors? |
I was thinking something like that, but in the run-time, that should be represented as Currently, all pointers to actors must be valid pointers -- and that is what I'd |
It is tricky to get right implementing maybe types using null. If the type is Maybe (Maybe int), how can I tell the difference between Nothing, Just Nothing and Just (Just 0)? All would be encoded as 0 – at least, in the scheme I'm imagining. |
I wasn't thinking about maybe types for primitives. That does raise an issue! Still, This also graces another issue: how large are our ints/floats etc. Clearly we won't |
I love the "clearly we won't" part. Why is it so clear for scalability? Big Data needs big ints. The C solution is to make it extremely difficult to have big ints. The Haskell solution is to let to programmer state which, but assume big int unless otherwise specified. The Racket solution is to default to big ints and bury little ints in some library. Sent from my iPhone On 09/08/2014, at 9:14, TobiasWrigstad notifications@github.com wrote:
Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm |
Good that we are not doing big data (yet) then! We want performance. Having to check each integer operation is killing performance. I prefer the solution that's optimised for the common case (probably not big nums then) and where there is a relatively painless solution for having big nums (my autocorrect keeps changing into big nuns) like declaring them big in the type. |
Furthermore, big data seems to mean lots of small numbers. |
EDIT The original topic of this issue was "Update PonyRT with support for null actors"
Pony seems to not have
null
and this causes problems whenevernull
is used in message sends. The appropriate messages (in actor.c?) should be updated with a case that ignoresnull
or we implementnull
actors in a different way.The text was updated successfully, but these errors were encountered: