On 8 March 2010 17:13, Levente Uzonyi <[hidden email]> wrote:
> On Mon, 8 Mar 2010, Igor Stasenko wrote: > >> On 8 March 2010 16:50, Levente Uzonyi <[hidden email]> wrote: >>> >>> On Mon, 8 Mar 2010, Igor Stasenko wrote: >>> >>>> Guys, can anyone explain me, what i should load to get a working set >>>> of VMMaker/plugins packages in trunk image? >>>> >>>> I'm not interested right now in digging these bugs, since i focused on >>>> making changes to VMMaker (i promised that), >>>> and bring that to community to disscuss the pros and cons. >>> >>> Just update your Trunk image and you can load VMMaker from the mcm. >>> >> >> I tried that - updated the image and then tried to load mcm from >> vmmaker repo. And met same problems. > > It depends on when did you try it. The issue was fixed ~2-3 hours ago. If > your image version is 9643 or newer, then it will work. > i update the trunk image. :) But nevermind. I am already got working setup and run vm building process. > > Levente > >> >> Then i manually loaded FFI, VMMaker >> and then did VMMaker updateFromServer, and it worked fine. >> >>> >>> Levente >>> >>>> >>>> >>>> -- >>>> Best regards, >>>> Igor Stasenko AKA sig. >>>> >>>> >>> >>> >> >> >> >> -- >> Best regards, >> Igor Stasenko AKA sig. >> >> > > -- Best regards, Igor Stasenko AKA sig. |
In reply to this post by Levente Uzonyi-2
2010/3/8 Levente Uzonyi <[hidden email]>:
> On Mon, 8 Mar 2010, Nicolas Cellier wrote: > >> OK, I re-analyzed the stop conditions to sort the mess out. >> Take for example >> MultiCharacterScanner >> scanMultiCharactersFrom: startIndex to: >> stopIndex in: sourceString rightX: rightX stopConditions: stops kern: >> kernDelta >> >> Once upon a time, the test was: >> (encoding = 0 and: [ascii < stopConditions size and: >> [(stopConditions at: ascii + 1) ~~ nil]]) ifTrue: [^ stops at: ascii + >> 1]. >> There was a conflict with endOfRun/CrossedX in case of ascii=256 or >> ascii=257 (A macron...) >> But this did not happen with Unicode leadingChar = 15 (Unicode). >> >> This code was the starting point for reifying a TextStopConditions object. >> >> Then Andreas tested with 256 instead of stopConditions size: >> (encoding = 0 and: [ascii < 256 and: [(stops at: ascii + 1) >> notNil]]) >> ifTrue: [^ stops at: ascii + 1]. >> This was a more lightweight solution, no TextStopConditions object >> required anymore. >> The A macron potential bug was out. >> >> Then FreeType was merged, reintroducing >> (encoding = 0 and: [ascii < stopConditions size and: >> [(stopConditions at: ascii + 1) ~~ nil]]) ifTrue: [^ stops at: ascii + >> 1]. >> The A macron potential bug was back in. >> >> Then I corrected, because the instance variable stopConditions was >> shadowing the argument stops: >> (encoding = 0 and: [ascii < stops size and: [(stops at: >> ascii + 1) >> ~~ nil]]) ifTrue: [^ stops at: ascii + 1]. >> The A macron potential bug was still in. >> >> So I wonder if I will not revert to the simple stopConditions >> class=Array solution with Andreas test ascii < 256. >> The main reason is for efficiency, this is a critical internal >> CPU-consuming loop. > > I think we should keep TextStopCondition, but it should be a variable > subclass. This gives us fast accessing, it can have 256 or 258 slots (for > backwards compatiblity, if necessary) and have the instance variables and > accessors for endOfRun and crossedX. > > > Levente > On the other hand, (stops at: EndOfRun) always == #endOfRun, same for CrossedX... So as Igor said once, this is over-engineered, and an (Array new: 256) would just do the trick if we would suppress this unused indirection... (bad solution for interim-compatibility with obsolete code though). Nicolas >> Unless we want to handle control characters with codePoint >= 256 ? >> >> What do you think ? >> >> Nicolas >> >> 2010/3/8 Nicolas Cellier <[hidden email]>: >>> >>> 2010/3/8 Andreas Raab <[hidden email]>: >>>> >>>> On 3/7/2010 8:06 PM, Levente Uzonyi wrote: >>>>> >>>>> I uploaded two packages to the Inbox which (seem to be) fixing the >>>>> issue. After evaluating this in an updated Trunk image (9634) FreeType >>>>> should load normally: >>>>> >>>>> (Installer squeak project: 'inbox') >>>>> install: 'Graphics-ul.117.mcz'; >>>>> install: 'Multilingual-ul.100.mcz'. >>>>> CharacterScanner initialize. >>>>> >>>>> >>>>> Levente >>>>> >>>>> P.S. I uploaded these to the Inbox because I'm not familiar with this >>>>> part of Squeak at all, and there's a bit cleaner way to implement these >>>>> fixes if they are correct. >>>> >>>> Nicolas should look at the changes. I think this is a side effect of the >>>> Unicode leading char updates he posted. >>>> >>>> Cheers, >>>> - Andreas >>>> >>>> >>> >>> Yes,we cross-posted. >>> Take Levente workaround, it's just perfect. >>> >>> Nicolas >>> >> > > > > |
Free forum by Nabble | Edit this page |