[squeak-dev] Elastic Tabstops (was Re: Need better default code font)

Vanessa Freudenberg vanessa at codefrau.net
Mon Apr 5 20:37:20 UTC 2021


Since we're on the subject of how our code looks:
I would 💜 love 💜 if we had elastic tabstops by default in our code
editors.
This would eliminate (IMHO) the biggest counter-argument to using
proportional fonts.


Vanessa

On Sat, Apr 3, 2021 at 12:55 PM Vanessa Freudenberg <vanessa at codefrau.net>
wrote:

> I just fixed a typo that went unnoticed for ~9 years (see KernelTests-codefrau.395).
> Even when Levente revised the code in 2015, he did not spot it:
>
> [image: image.png]
>
> IMHO (speaking as a typo nerd) this is due to our default code font not
> having distinct enough letter shapes. I very much like our use of a
> proportional font, but maybe it's time to switch to a different one?
>
> - Vanessa -
>
> On Sat, Apr 3, 2021 at 12:06 PM <commits at source.squeak.org> wrote:
>
>> Vanessa Freudenberg uploaded a new version of KernelTests to project The
>> Trunk:
>> http://source.squeak.org/trunk/KernelTests-codefrau.395.mcz
>>
>> ==================== Summary ====================
>>
>> Name: KernelTests-codefrau.395
>> Author: codefrau
>> Time: 3 April 2021, 12:06:03.17026 pm
>> UUID: 062e8b73-a62e-46ce-af80-0dbb34c2f8dc
>> Ancestors: KernelTests-mt.394
>>
>> Fix typo in CompiledMethodComparisonTest.
>>
>> =============== Diff against KernelTests-mt.394 ===============
>>
>> Item was changed:
>>   ----- Method: CompiledMethodComparisonTest>>testHash (in category
>> 'tests') -----
>>   testHash
>>         <timeout: 120>
>>
>>         | ai |
>>         ai := CompiledMethod allInstances.
>>         "We assume here that if two CompiledMethods are equal then they
>> have the same size and header."
>>         (ai groupBy: [ :method | { method size. method header } ]) values
>>                 replace: [ :each | each asArray ];
>>                 do: [ :methods |
>>                         1 to: methods size do: [ :i |
>>                                 i to: methods size do: [ :j |
>>                                         (methods at: i) = (methods at: j)
>> ifTrue: [
>> +                                               self assert: (methods at:
>> i) hash equals: (methods at: j) hash ] ] ] ]
>> -                                               self assert: (methods at:
>> i) hash equals: (methods at: i) hash ] ] ] ]
>>                 displayingProgress: 'Testing hashes'.
>>         self assert: (ai collect: [ :cm | cm hash ] as: Set) size * 2 >=
>> ai asSet size!
>>
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20210405/10cdda06/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 71210 bytes
Desc: not available
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20210405/10cdda06/attachment-0001.png>


More information about the Squeak-dev mailing list