VM experts: Are polymorphic closures like`a=x=>y=>x+y; hi=a('hi'); two=a(2);` optimized as a single subroutine or two separate? cc @mraleph
-
-
Replying to @sebmarkbage
I.e. Does the instance matter for optimizations if the source function (the factory) is the same?
1 reply 0 retweets 0 likes -
Replying to @sebmarkbage
@sebmarkbage not an expert but my understanding is it would be two. Looking forward to@mraleph's response3 replies 0 retweets 1 like -
Replying to @stefanpenner
@stefanpenner@sebmarkbage@mraleph : that's a single function. It'll (de|re)optimise as such. Polymorphic here AFAICT1 reply 0 retweets 0 likes -
@stefanpenner @sebmarkbage @mraleph I missed the missing return. Different function objects will get different IC/opt. Unique in that case.
12:52 PM - 19 Dec 2015
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.