[Vm-dev] Fwd: MiscPrimitive plugin: plan for next 6 months, please read

Bert Freudenberg bert at freudenbergs.de
Sat Dec 30 13:35:13 UTC 2017

On Sat, Dec 23, 2017 at 10:49 PM, Levente Uzonyi <leves at caesar.elte.hu>

> On Fri, 22 Dec 2017, Clément Bera wrote:
> Hi all,
> snip
> 1. translate: aString from: start  to: stop  table: table
>> This primitive seems to be unused. I suggest we move it from a primitive
> to plain Smalltalk code.
> That primitive is currently used to convert ByteStrings to lower and upper
> case, and it's also used to convert between cr and lf line endings. The
> primitive fails in Pharo for some reason, but it's still used in the 6.0
> image I have.
> It works properly in Squeak and Cuis.


Also, the primitive is a lot faster for non-jit VMs. E.g. the Stack
interpreter for iOS, where no JIT compiler is allowed.

We should keep those primitives, in some form.

One idea would be to rewrite MiscPrimitivePlugin as a plain plugin, and
only keep the few primitives that are not moved elsewhere.

- Bert -​
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20171230/3bc566a3/attachment.html>

More information about the Vm-dev mailing list