Re: Exotic classes

2019-04-22 Thread Remi Forax
> De: "mechanical-sympathy" > À: "mechanical-sympathy" > Envoyé: Lundi 22 Avril 2019 20:25:01 > Objet: Re: Exotic classes > These classes (especially MostlyConstant) are pretty cool. I have some > questions > about them: > 1. In MostlyConstant I noticed that modifying the constant doesn't call

Re: Exotic classes

2019-04-22 Thread Nitsan Wakart
The cost would be a combination of the deopt, cost of slow down, and cost of compilation all of which are variable based on the generated code which embeds the constant and the compiler used. > On 22 Apr 2019, at 20:25, 'Carl Mastrangelo' via mechanical-sympathy > wrote: > > These classes (e

Re: Exotic classes

2019-04-22 Thread 'Carl Mastrangelo' via mechanical-sympathy
These classes (especially MostlyConstant) are pretty cool. I have some questions about them: 1. In MostlyConstant I noticed that modifying the constant doesn't call MutableCallSite.syncAll(). Should it? 2. A followup to #1: MutableCallSite.syncAll() doesn't actually seem implemented in Op