[squeak-dev] re: would it be fun to implement Squeak (and SPOON!)
on this hardware?
Bert Freudenberg
bert at freudenbergs.de
Mon Dec 23 14:27:42 UTC 2013
On 2013-12-23, at 15:02, Nicolas Cellier <nicolas.cellier.aka.nice at gmail.com> wrote:
> 2013/12/23 Bert Freudenberg <bert at freudenbergs.de>
>> don't be surprised if the fallback code suffers from bitrot. It is never executed on regular VMs with all the primitives in place. Having recently implemented a minimal VM I did discover those bugs ;)
>
> Yep, I saw at least one when I failed to change some primitive and made it accidentally fail.
> For better testability, we could isolate the fallback code under a separate method, but that would consume a bunch of selectors and somehow be contradictory with a principle of economy - less is more.
For testing you could temporarily set the CompiledMethod's primitive index to 0.
- Bert -
More information about the Squeak-dev
mailing list
|