Re: [Pharo-users] global exception handler mechanism

2018-02-05 Thread Igor Stasenko
.. well, anything you see fit. That's, of course, a kind of dangerous, be careful. Do not attempt to throw new exceptions while processing just signaled one, else you'll get infinite recursion :) > > > Thanks, > > Peter > > > -- Best regards, Igor Stasenko.

Re: [Pharo-users] Athens error

2017-12-17 Thread Igor Stasenko
> -- > Dr. Geo > http://drgeo.eu > > -- Best regards, Igor Stasenko.

Re: [Pharo-users] X11 options on Ubuntu VM / Athens rendering problems

2017-10-01 Thread Igor Stasenko
uot;. It is definitely a linux/ubuntu ecosystem fault. - by not providing parallel updates for 32 & 64 bit variant of same library. > Hilaire > > > Le 30/09/2017 à 21:58, Igor Stasenko a écrit : > >> Sure. But i didn't done much, so there's nothing to appriciate

Re: [Pharo-users] X11 options on Ubuntu VM / Athens rendering problems

2017-09-30 Thread Igor Stasenko
h risk with it :( Cheers, > > Jeff > > > -- Best regards, Igor Stasenko.

Re: [Pharo-users] X11 options on Ubuntu VM / Athens rendering problems

2017-09-29 Thread Igor Stasenko
graphics setup work.. i bought this laptop year ago and then figured out, that there are issues with X11 and kernel drivers that prevents using both video cards on board.. and installing latest & finest didn't changed much. -- Best regards, Igor Stasenko.

Re: [Pharo-users] X11 options on Ubuntu VM / Athens rendering problems

2017-09-29 Thread Igor Stasenko
heck i can find binary of appropriate version libcairo2:i386 1.15.2 (googling doesn't helps) > Hilaire > > Le 28/09/2017 à 19:51, Igor Stasenko a écrit : > >> >> I got libsdl and libcairo 32bits installed fine on 64bits Ubuntu >> 17.04. >> >>

Re: [Pharo-users] [Demo] Creating Bloc Widgets with Pharo

2017-09-28 Thread Igor Stasenko
e don't have a way to decide where to > add a dropped element in a parent that has a specified layout. In Morphic > that is also a responsibility of the layout. > > Stephan > > > > > > > -- Best regards, Igor Stasenko.

Re: [Pharo-users] X11 options on Ubuntu VM / Athens rendering problems

2017-09-28 Thread Igor Stasenko
TRIB_DESCRIPTION="Ubuntu 17.04" > Hilaire > > > > Le 28/09/2017 à 01:22, Igor Stasenko a écrit : > >> something in my installation are in conflict with 32-bit version of >> cairo.. that's weird.. >> but unmet dependencies/dependency conflict res

Re: [Pharo-users] X11 options on Ubuntu VM / Athens rendering problems

2017-09-27 Thread Igor Stasenko
Best regards, Igor Stasenko.

Re: [Pharo-users] X11 options on Ubuntu VM / Athens rendering problems

2017-09-27 Thread Igor Stasenko
but unmet dependencies/dependency conflict resolution of linux .deb packages is not my strong side. So, it would be nice if someone could help how to proceed with that. On 28 September 2017 at 01:41, Igor Stasenko wrote: > okay, first, i have to change the path to SDL2 library, because on my

Re: [Pharo-users] X11 options on Ubuntu VM / Athens rendering problems

2017-09-27 Thread Igor Stasenko
sources file corrupted or what? On 28 September 2017 at 01:27, Igor Stasenko wrote: > > > On 27 September 2017 at 22:54, Stephane Ducasse > wrote: > >> Igor I will share the dropbox for you. >> What would be great is to port the code of clement to Pharo 6.1 or >>

Re: [Pharo-users] X11 options on Ubuntu VM / Athens rendering problems

2017-09-27 Thread Igor Stasenko
, if someone could give me short directions how to test it , what to run and what to expect. Because i am clearly was out of context for too long. > Stef > > > On Wed, Sep 27, 2017 at 1:05 PM, Igor Stasenko wrote: > > i'm on ubuntu right now, so i could help with trying

Re: [Pharo-users] X11 options on Ubuntu VM / Athens rendering problems

2017-09-27 Thread Igor Stasenko
i'm on ubuntu right now, so i could help with trying & testing things and/or diagnosing problems. Just tell me what to do -- Best regards, Igor Stasenko.

Re: [Pharo-users] type checking in Smalltalk

2017-04-25 Thread Igor Stasenko
ne.. It is something i learned, being among wise people of smalltalk family. > Anyway, that is my personal opinion, I don't want to convince you. > > Sven > -- Best regards, Igor Stasenko.

Re: [Pharo-users] why is adding instance variables so slow?

2017-04-14 Thread Igor Stasenko
just kept there to let the GC do its > work. > Again if the objects are the same size there is special behavior. > > I hope know the problem is better explained > > Cheers, > Pablo > > > > On Fri, Apr 14, 2017 at 10:50 AM, Igor Stasenko > wrote: > >> >>

Re: [Pharo-users] Export MongoDB to sql format

2017-04-14 Thread Igor Stasenko
eople who buying microwave asking: cool , now how i could fit a coal burner to it? Why I mean if you need your traditional oven, they why even bother to buy a microvawe in a first place? cheers, > Esteban > > > Thanks. > > > Asbath > > -- Best regards, Igor Stasenko.

Re: [Pharo-users] why is adding instance variables so slow?

2017-04-14 Thread Igor Stasenko
u will trigger adding instance var & GC etc etc.. you'll have everything broken.. because there are things didn't meant to work in certain scenarios. IIRC allInstances is highly dependns on NOT having full GC while doing it, and that's why all loops that doing it is highly conservative & cautious about creating new objects while iterating over heap. That's the nature how #allInstance works, and you could have a tons of issues with it regardless , if you do full GC manually, or it triggered by VM itself. So, this is nothing to do with migrating instances of class. -- Best regards, Igor Stasenko.

Re: [Pharo-users] why is adding instance variables so slow?

2017-04-14 Thread Igor Stasenko
t; c2 := Class2 new. >> c1 becomeForward: c2. >> Class1 allInstances "=> #()". >> >> >> And full migration is executed in high priority uninterrupted process to >> ensure that between 1) and 2) nobody will instantiate Class1 >> >> > -- Best regards, Igor Stasenko.

Re: [Pharo-users] type checking in Smalltalk

2017-03-31 Thread Igor Stasenko
gt; > or ones that return self or an appropriate null-value. > > Within your framework where you control all the objects > the Null-object pattern is probably the cleanest OO approach, > but it can't control what the user passes across the public API. > https://en.wikipedia.org/wiki/Null_Object_pattern > > btw, you can search null-object pattern in Spotter using " Null #c " > > > cheers -ben > > -- Best regards, Igor Stasenko.

Re: [Pharo-users] What is the craziest bug you ever face

2017-03-09 Thread Igor Stasenko
ost > difficult bugs we faced and what are the conceptual tools that would have > helped you. > > Stef > -- Best regards, Igor Stasenko.

Re: [Pharo-users] why is concat of Symbols a string?

2017-03-06 Thread Igor Stasenko
it is a bit confusing with an extra comment. > > You got me with this... Hey, stop confusing people, put #== everywhere! :) But if seriously, #assert:equals: hides this detail from us, that's why it looks confusing.. IMO, for given case it would be better to use just straight #assert:, with explicit expression that using #= for comparands. -- Best regards, Igor Stasenko.

Re: [Pharo-users] Crash in Athens

2017-03-05 Thread Igor Stasenko
’s time > (hence we kept it in the form that needs to be displayed). > > Well, this surely helps when you changing session(s). But doesn't helps when you crashing within a single session. A smarter approach will be to recreate surface at attempt to use in new session, to avoid keeping copy of data around.. > Esteban > > -- Best regards, Igor Stasenko.

Re: [Pharo-users] why is concat of Symbols a string?

2017-03-04 Thread Igor Stasenko
;> both of which introduce extraneous syntactical clutter. >> The technical reason seems to be ByteSymbol>>#species returning >> ByteString, but I have no idea why it has to be this complicated. >> >> Thanks, >> Peter >> >> > -- Best regards, Igor Stasenko.

Re: [Pharo-users] Crash in Athens

2017-03-01 Thread Igor Stasenko
h such behavior in single class, since it doesn't knows what it will be used for :( > > On Mon, Feb 27, 2017 at 2:39 PM, Stephane Ducasse > wrote: > >> Tx igor I added >> >> https://pharo.fogbugz.com/f/cases/19764/Improve-comment-of- >> AthensCairoS

Re: [Pharo-users] Crash in Athens

2017-02-27 Thread Igor Stasenko
and i was dealing with it by adding 1 extra line to cairo surface, but reporting 1 less to Form. Like so, bitblt still reads past the allowed size, but it is safe, because there are unused bit(s). On 27 February 2017 at 20:31, Igor Stasenko wrote: > > > On 27 February 2017 at 12:29

Re: [Pharo-users] Crash in Athens

2017-02-27 Thread Igor Stasenko
t; > >> Alexandre > >> > >> > >>> On Feb 22, 2017, at 12:55 AM, Alexander Samoylovich < > samoylov...@gmail.com> wrote: > >>> > >>> Hello > >>> > >>> I am writing graphic demo programs using Athens on Mac Sierra. > >>> Time by time Pharo VM crashes. Programs not using Athens work reliably. > >>> I believe the behavior is reproducible. > >>> How should I report a bug? > >>> > >>> Alex > >> > > > > > > -- > > Using Opera's mail client: http://www.opera.com/mail/ > > > > > -- Best regards, Igor Stasenko.

Re: [Pharo-users] About asSymbol message , some questions in my mind

2017-02-13 Thread Igor Stasenko
use, so the symbol should >> be composed of alphabet or number ‘without space“. >> >> BUT There are not compliant below >> 1.' ' asSymbol >>>>no meaning >> 2. '$%%&' asSymbol >>>>no meaning >> 3. 'sign' asSymbol = 'sign ' asSymbol >>> false because of space. >> 3. ' one two three ' asSymbol >>>I think It should >> become three symbols = #one, #two, #three >> >> >> Mybe my understanding is wrong. >> >> Bing Liang >> >> >> > -- Best regards, Igor Stasenko.

Re: [Pharo-users] [ANN] CPPBridge: One Ring to rule them ALL

2016-11-10 Thread Igor Stasenko
o i find it frustrating that most of programmers don't know and not even >> thinking about touching assembly. Because it very simple, straightforward >> and megalomaniac-rewarding :) >> -- >> Best regards, >> Igor Stasenko. >> > > Assembly is hard, j

Re: [Pharo-users] about balkanisation

2016-11-10 Thread Igor Stasenko
On 10 November 2016 at 06:07, Dale Henrichs < dale.henri...@gemtalksystems.com> wrote: > > > On 11/8/16 11:04 PM, Igor Stasenko wrote: > > > > On 7 November 2016 at 14:28, stepharo wrote: > >> >> [ ... ] >> >> >> And this one I don&

Re: [Pharo-users] [ANN] CPPBridge: One Ring to rule them ALL

2016-11-09 Thread Igor Stasenko
nd see what happen. Because if you don't understand something down to the tiniest detail - you cannot be sure that what you doing will work, or work optimally. So i find it frustrating that most of programmers don't know and not even thinking about touching assembly. Because it very simple, straightforward and megalomaniac-rewarding :) -- Best regards, Igor Stasenko.

Re: [Pharo-users] Converting an Array of Characters to a String

2016-11-09 Thread Igor Stasenko
ject(s) in FFI, because many C coders use 'char' as a default data type to operate with buffers of certain length and to count their size in bytes. > On Wed, 9 Nov 2016 at 03:41, Igor Stasenko wrote: > >> What i meant, i wanted to warn Dimitris that >> char[100] >

Re: [Pharo-users] about balkanisation

2016-11-08 Thread Igor Stasenko
them clear the mines for you. Step by step. Many will blow themselves up, while some will manage to pass unhurt.. Because else, it will be always a minefield between you and the destination of your journey :) > Stef > > > Thierry > > > -- Best regards, Igor Stasenko.

Re: [Pharo-users] Converting an Array of Characters to a String

2016-11-08 Thread Igor Stasenko
as a convention. But it is not a fixed-size data. On 9 November 2016 at 02:38, Igor Stasenko wrote: > > > On 8 November 2016 at 14:42, Esteban Lorenzano > wrote: > >> (always with Char100 example in mind): >> >> s := MyStructure fromHandle: blah. >> string

Re: [Pharo-users] Converting an Array of Characters to a String

2016-11-08 Thread Igor Stasenko
gt; Characters to a String , I can do with a do: and join characters converted > to strings to a single string but it feels too many steps. > > > > Is there a simpler way ? > > > -- Best regards, Igor Stasenko.

Re: [Pharo-users] UFFI can not generate Structure accessor of type char[100]

2016-11-08 Thread Igor Stasenko
Dimitris Chloupis >> wrote: >> > >> > I have FFIExternalStructure which has at class side >> > >> > fieldsDesc >> > ^#( >> > char data[100]; >> > int count; >> > ) >> > >> > if I try to do >> > >> > EphCPPTestStructure rebuildFieldAccessors . >> > >> > in order to generate the accessors for the members of the struct it >> complains with an error that it does not recognise the type of " [ " >> > >> > Does that mean that char arrays are other arrays are not supported as >> struct members or will I have to do this manually ? >> >> >> > -- Best regards, Igor Stasenko.

Re: [Pharo-users] [ANN] CPPBridge: One Ring to rule them ALL

2016-11-08 Thread Igor Stasenko
e to the hands of users.. And if you just want to make own data exchange for own purpose, then you are basically done. > In any case there is a ton of testing and profiling needed to be done . So > these are just the first steps. > On Wed, 9 Nov 2016 at 02:58, Igor Stasenko wrote: >

Re: [Pharo-users] [ANN] CPPBridge: One Ring to rule them ALL

2016-11-08 Thread Igor Stasenko
it to work , so if you can turn your C/C++ code into a DLL that should > be your first option. > > *Roadmap * > > Currently CPPBridge works only on MacOS , most likely on Linux too > (because it uses the Unix architecture) but I will have to test it. > > Windows is coming next ASAP, since its my No1 platform for creating > commercial games. > > Maybe establish a small protocol of communication via the Shared Memory , > JSON looks like a good universal format > > *Thanks* > > Big thanks to Eliot for inspiring me and Esteban for helping me figure out > things. > -- Best regards, Igor Stasenko.

Re: [Pharo-users] about balkanisation

2016-11-06 Thread Igor Stasenko
automatically migrate all open projects. > > First we need good workflows that also work for complex projects. That > includes cross-platform projects like Seaside > > Oh, come on! Throw away everything you had.. and start using something new and trendy, rinse and repeat. Profit! :) &

Re: [Pharo-users] How does Boolean ifTrue work?

2016-11-03 Thread Igor Stasenko
h time you make subclass, you are specializing more and more and hence, you actually narrowing down the potential uses of your instances.. How does that 'extending' complies with narrowing?? Phil > > > -- Best regards, Igor Stasenko.

Re: [Pharo-users] How does Boolean ifTrue work?

2016-11-03 Thread Igor Stasenko
tic types and I hate interfaces. Only pointed that is possible. > I don't like languages that think they are smarter than me. I love my > freedom thank you very much and I love Pharo as it is language wise. > sorry, i confused you with the original question of CodeDmitry. > On Th

Re: [Pharo-users] How does Boolean ifTrue work?

2016-11-03 Thread Igor Stasenko
something in real world. The compiler is written in Smalltalk after all. > > On Wed, 2 Nov 2016 at 23:02, Igor Stasenko wrote: > > > If you want to ensure that your class(es) comply with certain protocol, > just write a test that covers the protocol and checks that class instan

Re: [Pharo-users] How does Boolean ifTrue work?

2016-11-02 Thread Igor Stasenko
implementor of your interface), so it makes no sense to do any (pre)validation on whatever class/object in a system in order to check whether it conforms with it or not. That's " Why don't Smalltalk or Smalltalklike languages have checked interfaces?" -- Best regards, Igor Stasenko.

Re: [Pharo-users] How does Boolean ifTrue work?

2016-11-02 Thread Igor Stasenko
nnecessary. P.S. please forgive me for being rude, impatient and trollish towards newcomers.. but i just can't help with it. -- Best regards, Igor Stasenko.

Re: [Pharo-users] How does Boolean ifTrue work?

2016-11-01 Thread Igor Stasenko
use converters/validators immediately on passed external data: myMethod: externalData myValidState := externalData asSanelyCheckedData. so, like that you don't have to put: myValidState ifValidState: [] everywhere :) Le 1 nov. 2016 15:14, "Igor Stasenko" a écrit : > >

Re: [Pharo-users] How does Boolean ifTrue work?

2016-11-01 Thread Igor Stasenko
86 0 Fax: +49 7141 56 10 86 1 >> >> >> -- > --- > Objektfabrik Joachim Tuchel mailto:jtuc...@objektfabrik.de > > Fliederweg 1 http://www.objektfabrik.de > D-71640 Ludwigsburg http://joachimtuchel.wordpress.com > Telefon: +49 7141 56 10 86 0 Fax: +49 7141 56 10 86 1 > > > -- Best regards, Igor Stasenko.

Re: [Pharo-users] OpenGL project

2016-04-01 Thread Igor Stasenko
and > finding > > out it just OpenGL ES.. > > > > > > > My advise is don't worry about backward compatibility , make it easy, > make > > > it simple. Don't be afraid to code some of it in C if you have to. > > > Sometimes it's far easier to use C than Pharo. Pharo is no magic wand. > > > > > > > > Yep, make it work. That's all what matters. > > -- Best regards, Igor Stasenko.

Re: [Pharo-users] OpenGL project

2016-03-31 Thread Igor Stasenko
ly from NBGLGenerator, so I >> need to get used to the tool beforehand. It looks like a lot of work was >> put into this, can I find a paper about it? >> Also, IMO this all looks too complex. My point in limiting to ES 2 is not >> just removing functions, I want to make it look simple like the C demo! >> >> Thibault >> >> -- Best regards, Igor Stasenko.

Re: [Pharo-users] NativeBoost and variadic functions

2015-07-27 Thread Igor Stasenko
l be ever used.. and start spreading inefficiency in their project(s). And more that that, once they get used to it, then you would be never able to remove it because it is there and everyone using it and some even loving it :) -- Best regards, Igor Stasenko.

Re: [Pharo-users] NativeBoost and variadic functions

2015-07-16 Thread Igor Stasenko
is very hackish and very bad, and I am aware it has some > drawbacks. Moreover I am not even sure it will work everytime. > But for now it seems to work ... > > Oh man... and why would anyone may want to use this? :) Sure you can do whatever it takes to implement a feature you wa

Re: [Pharo-users] NativeBoost and variadic functions

2015-07-16 Thread Igor Stasenko
> More info search [2] for: > * "implicit type conversion" > * "guess wrongly when the program uses floating-point formats in > scanf() or printf()" > > [1] > http://stackoverflow.com/questions/210590/why-does-scanf-need-lf-for-doubles-when-printf-is-okay-with-just-

Re: [Pharo-users] NativeBoost and variadic functions

2015-07-13 Thread Igor Stasenko
rting each of them, you must tell NB what kind of marshaller should be used for it , which means, that it is impossible to know before run time, since you cannot know how many arguments you may pass, not speaking about their types. > Thanks, > > Matthieu > > > -- Best regards, Igor Stasenko.

Re: [Pharo-users] NativeBoost pointer and "+"

2015-06-09 Thread Igor Stasenko
te important for me so your solution is very > attractive and I'll try to use it. Thanks a lot ! > > I find it both fun and amazing what you can do with Pharo. I never thought > I would do assembly inside Pharo ! > > > Again, a big thanks to both of you, > > Cheers, &

Re: [Pharo-users] NativeBoost pointer and "+"

2015-06-09 Thread Igor Stasenko
j++; > } > > free(data); > > ... > > Here basically I'll get in my buffer chunks of 10 integers starting at 200 > with an offset of 30 between chunks, and this 5 times. (200 201 202 ... 208 > 209 230 231 ... 238 239 260 ... 328 329). > > I am okay with the malloc, memcpy and free but I don't know how to handle > the "+" operator in my memcpy function. > > Thank you, > > Matthieu > -- Best regards, Igor Stasenko.

Re: [Pharo-users] running out of memory while processing a 220MB csv file with NeoCSVReader - tips?

2014-11-16 Thread Igor Stasenko
Never ending memory consumption problem. Hopefully with 64-bit version of VM we'll have a way more space to waste and it could take more effort to put system on its knees. -- Best regards, Igor Stasenko.

Re: [Pharo-users] 'function unavailable' when calling OpenDBXDriver for MySQL

2014-11-16 Thread Igor Stasenko
e in context: > http://forum.world.st/function-unavailable-when-calling-OpenDBXDriver-for-MySQL-tp4790564.html > Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com. > > -- Best regards, Igor Stasenko.

Re: [Pharo-users] Pharo on retina macbook

2014-09-04 Thread Igor Stasenko
i'm wrong.. it scales only on ipads.. not on OS X. On 4 September 2014 11:09, Igor Stasenko wrote: > on retina, the display bitmap are 2x scaled. > > > On 4 September 2014 09:56, Tudor Girba wrote: > >> Hi, >> >> This should be a known issue as it was rai

Re: [Pharo-users] Pharo on retina macbook

2014-09-04 Thread Igor Stasenko
* http://superuser.com/questions/457153/getting- >> crisper-fonts-in-os-x-after-switching-from-windows >> * http://www.macworld.com/article/1145157/smoothsnow.html >> * http://graphicdesign.stackexchange.com/questions/ >> 8277/how-does-apples-retina-display-affect-sub-pixel-rendering >> >> Please report your results. >> cheers -ben >> >> > > > -- > www.tudorgirba.com > > "Every thing has its own flow" > -- Best regards, Igor Stasenko.

Re: [Pharo-users] NativeBoost: use of array

2014-08-05 Thread Igor Stasenko
;m cheating my way trough, by pretty much avoiding any > type check. Any clue as to why the typecheck of NB is refusing to call my > function ? > > > Thanks in advance, > > Thomas. > > -- Best regards, Igor Stasenko.

Re: [Pharo-users] NativeBoost: structure with different types

2014-08-04 Thread Igor Stasenko
stored in Pharo memory. Is it problematic when it comes > to pass it by value ? Or should I manage the copying on the C heap to be > safe ? > > > Thomas. > > -- Best regards, Igor Stasenko.

Re: [Pharo-users] String artifact in Athens canvas

2014-06-16 Thread Igor Stasenko
t there > >> with pure morphic canvas and the same font. See screen shot > >> > >> Thanks > >> > >> Hilaire > >> > >> > > > > > > > > -- > Dr. Geo http://drgeo.eu > iStoa - https://launchpad.net/istoa > > > -- Best regards, Igor Stasenko.

Re: [Pharo-users] String artifact in Athens canvas

2014-06-16 Thread Igor Stasenko
screen shot > > Thanks > > Hilaire > > > -- > Dr. Geo http://drgeo.eu > iStoa - https://launchpad.net/istoa > -- Best regards, Igor Stasenko.

Re: [Pharo-users] TextInputField in Spec size issue 12915 (was: dynamic example for spec)

2014-04-30 Thread Igor Stasenko
w widget color: Color white. > w widget widget textMorph setTextStyle: TextStyle default ] > > but then still have the wrong cursor size and position. > > Stephan > > > > -- Best regards, Igor Stasenko.

Re: [Pharo-users] NativeBoost

2014-04-30 Thread Igor Stasenko
On 30 April 2014 11:46, Markus Fritsche wrote: > On 2014-04-30 11:35, Igor Stasenko wrote: > > So, it seems that it is DLL function wants stack alignment. >> > > So does that mean (doing it the right way) that I will have to change my > stackAlignment method or do I have

Re: [Pharo-users] NativeBoost

2014-04-30 Thread Igor Stasenko
On 30 April 2014 11:09, Markus Fritsche wrote: > On 2014-04-30 04:58, Igor Stasenko wrote: > >> NBFFICallout>>foreignCall: aBlock >> > > callInfo := self newCallInfo. >> callInfo alignment: 16. >> asm performingCall: callInfo in: aBlock. >> >

Re: [Pharo-users] "stepping" a non-morphic object

2014-04-29 Thread Igor Stasenko
ew this message in context: > http://forum.world.st/stepping-a-non-morphic-object-tp4756998p4757081.html > Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com. > > -- Best regards, Igor Stasenko.

Re: [Pharo-users] NativeBoost

2014-04-29 Thread Igor Stasenko
wanna know, who corrupts stack: external function or VM itself. Should this be reported on fogbugz? > > Thank you > Markus > > -- Best regards, Igor Stasenko.

Re: [Pharo-users] NativeBoost

2014-04-29 Thread Igor Stasenko
ror during materialization. > Thank you for your patience, > Markus > > On 29.04.2014 00:36, Igor Stasenko wrote: > > Object subclass: #TM1U > > uses: TTM1ApiLibrary > > instanceVariableNames: 'handle' > > classVariableNames: 

Re: [Pharo-users] NativeBoost

2014-04-28 Thread Igor Stasenko
ss from own base class, you can just subclass from NBExternalObject, which means you already having handle ivar, and #asNBExternalType: inherited at class side, tested and working..? So, try NBFFICallout new resolveType: #TM1U what it gives? On 28 April 2014 23:44, Markus Fritsche wrote: >

Re: [Pharo-users] NativeBoost

2014-04-28 Thread Igor Stasenko
asses of object. What's my mistake? Can you tell with the > information I provided? > > This is strange.. should work fine. There's no way how NBExternalObjectType could return an instance of NBExternalHandle. Please check your code again. Best regards, > Markus > > -- Best regards, Igor Stasenko.

Re: [Pharo-users] Athens and ellipse drawing

2014-04-23 Thread Igor Stasenko
On 23 April 2014 13:17, Henrik Johansen wrote: > > On 22 Apr 2014, at 2:23 , Igor Stasenko wrote: > > > as for why there's 4 arc segments instead of one, its because > > of bad approximation, when drawing more that 90 degree arcs. > > > > also, in athens,

Re: [Pharo-users] Athens question: AffineTransform, AthensCairoMatrix and Float values

2014-04-22 Thread Igor Stasenko
d to add dozens of drawRect: drawOval: drawZigZag: drawAnotherWeirdThing: instead of simple method which covers all. Thank you, Juraj El 11-04-2014, a las 13:29, Igor Stasenko escribió: On 11 April 2014 17:41, Juraj Kubelka wrote: > Hi, > > We are integrating Athens transformat

Re: [Pharo-users] Athens and ellipse drawing

2014-04-22 Thread Igor Stasenko
le losing ability to draw full circle with single command.. On 22 April 2014 14:05, Igor Stasenko wrote: > > > > On 14 April 2014 13:53, Juraj Kubelka wrote: > >> >> El 14-04-2014, a las 8:21, Juraj Kubelka >> escribió: >> >> Thank you Stef,

Re: [Pharo-users] Athens and ellipse drawing

2014-04-22 Thread Igor Stasenko
sform scaleBy: 200 . > can > setPaint: Color red ; > drawShape: path. > "(athensCanvas setStrokePaint: strokePaint) > width: (self strokeWidth / self scale) asFloat." > can drawShape: path.]. > can pathTransform > restoreAfter: [ > can pathTransform scaleBy: 190 . > can > setPaint: Color blue ; > drawShape: path. > "(athensCanvas setStrokePaint: strokePaint) > width: (self strokeWidth / self scale) asFloat." > can drawShape: path > > ] > ] ; > openInWindow > > > > > > > -- Best regards, Igor Stasenko.

Re: [Pharo-users] Athens and ellipse drawing

2014-04-11 Thread Igor Stasenko
k supports drawing ellipses as a basic command/primitive..for instance? I know of at least one, which doesn't - try drawing it with OpenGL. ;) > Thank you anyway. > Juraj > > El 11-04-2014, a las 17:35, Igor Stasenko escribió: > > yes, you using stroke for 2nd ellipse, >

Re: [Pharo-users] Athens and ellipse drawing

2014-04-11 Thread Igor Stasenko
> athensCanvas drawShape: self path ] > -=-=-=-=- > > But with a different shapes, the border does not have same width all > around the ellipse. See the image: > > > Is there better way to draw it? > Thank you, > Jura > -- Best regards, Igor Stasenko. <>

Re: [Pharo-users] Athens question: AffineTransform, AthensCairoMatrix and Float values

2014-04-11 Thread Igor Stasenko
loats is perfectly fine. Fraction created only if you use division on integer.. so all you need to do is to ensure the result of division is float: (x/y) asFloat. > What do you think? > I am biased towards having better performance, even at cost of inconvenience, where at some places i have to ensure i need to pass correct value(s). > Juraj > -- Best regards, Igor Stasenko.

Re: [Pharo-users] Socket Handles to C

2014-04-09 Thread Igor Stasenko
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com. > > -- Best regards, Igor Stasenko.

Re: [Pharo-users] [ANN] JNIPort for Pharo 3.0 alpha

2014-04-05 Thread Igor Stasenko
ome: the JNIObject into a global ref if necessary" self convertToGlobal: aJNIObject. ^ super findClassFor: aJNIObject. -- so, without going deep into implementation details, just by reading comment i can already see potential bottleneck - using #become: operation which is veery slow. also, by tracking senders of #knownJavaSubclasses , i see there's also uses of #become operation.. So, my first verdict is: - excessive use of #become ==> slow performance :) (sure, i have no idea if you can avoid using become or not, but my bet this is main reason of low performance) -- Best regards, Igor Stasenko.

Re: [Pharo-users] I Can Read C++ and Java But I Can't Read Smalltalk

2014-03-30 Thread Igor Stasenko
Smalltalk is anything else than very easy to > learn. > > Other than that like any language out there it takes some time to get > used > > to some things. > > > > > > On Sun, Mar 30, 2014 at 9:04 PM, Ben Coman wrote: > >> > >> I came across this article a few days ago. Thought it might be of > >> interest to some. > >> http://www.eli.sdsu.edu/courses/spring01/cs635/readingSmalltalk.pdf > >> > > > > > > -- Best regards, Igor Stasenko.

Re: [Pharo-users] How to draw a Morph with Athens?

2014-03-28 Thread Igor Stasenko
M. > > > > -- > View this message in context: > http://forum.world.st/How-to-draw-a-Morph-with-Athens-tp4751463.html > Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com. > > -- Best regards, Igor Stasenko.

Re: [Pharo-users] Calculate angle between two vectors (probably @Igor :)

2014-03-19 Thread Igor Stasenko
gt; ^ cosinusOfAngle arcCos > > > > But my Boids behave wrong when i use it. I found another implementation of > the same problem by Igor Stasenko which works and looks like this: > > angleBetween: p1 and: p2 ifDegenerate: aBlock > " Calculate an angle (in radians

Re: [Pharo-users] Athens question - #openInSceneView

2014-02-14 Thread Igor Stasenko
t;> Havent looked deeper. Incomplete or a bug? >> >> Thx >> T. >> >> >> >> >> >> >> >> > > > -- > Jochen "Jeff" Rick, Ph.D. > http://www.je77.com/ > Skype ID: jochenrick > -- Best regards, Igor Stasenko.

Re: [Pharo-users] Fwd: NativeBoost and standard out

2014-02-07 Thread Igor Stasenko
ttp://forum.world.st/Fwd-NativeBoost-and-standard-out-tp4732117p4742216.html >> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com. >> >> >> > -- Best regards, Igor Stasenko.

Re: [Pharo-users] [Pharo-dev] Nice chapter on NativeBoost

2014-02-07 Thread Igor Stasenko
mething extra or not). > > Stef and Igor > -- Best regards, Igor Stasenko.

Re: [Pharo-users] Drawing a line

2014-01-16 Thread Igor Stasenko
t; >>> You only need to use a LineMorph if the line is not supposed to be >>> static, otherwise drawing it directly on the Form is just as easy. >>> >>> Unless what you actually want is to create something like a spreadsheet, >>> in which case a CellMorph, with RectangleMorph (cell outline) / StringMorph >>> (cell contents) as subcomponents would probably be a better solution. >>> (And the spreadsheet itself a morph, with CellMorphs as subcomponents) >>> >>> Cheers, >>> Henry >>> >> > -- Best regards, Igor Stasenko.

Re: [Pharo-users] Drawing a line

2014-01-16 Thread Igor Stasenko
nother question: I know how to > initialize both of them, but don't know how to draw it on my form. > > Thank you for help. > Mark > -- Best regards, Igor Stasenko.

Re: [Pharo-users] json tweet object

2014-01-13 Thread Igor Stasenko
nse in a simplest way? > > what is Twitter? :) > Cheers, > Rosario > -- Best regards, Igor Stasenko.

Re: [Pharo-users] Pharo and the Morphic one window limitation

2014-01-11 Thread Igor Stasenko
> > -- > > View this message in context: > http://forum.world.st/Pharo-and-the-Morphic-one-window-limitation-tp4735921.html > > Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com. > > > > > -- Best regards, Igor Stasenko.

Re: [Pharo-users] Pharo and the Morphic one window limitation

2014-01-11 Thread Igor Stasenko
context: > http://forum.world.st/Pharo-and-the-Morphic-one-window-limitation-tp4735921.html > Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com. > > -- Best regards, Igor Stasenko.

Re: [Pharo-users] World to Morph Local Co-ordinates

2014-01-08 Thread Igor Stasenko
ll morphs use same, global coordinates, simple subtraction works: localpoint := globalpoint - morph topLeft > Thanks. > > > > - > Cheers, > Sean > -- > View this message in context: > http://forum.world.st/World-to-Morph-Local-Co-ordinates-tp4735247.html > Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com. > > -- Best regards, Igor Stasenko.

Re: [Pharo-users] Athens on Pharo 3.0 on Ubuntu

2014-01-06 Thread Igor Stasenko
age_surface_create', and here I'm lost... any ideas what's going on? >> >> Thanks! >> >> -- >> Bernat Romagosa. >> > > > > -- > Bernat Romagosa. > -- Best regards, Igor Stasenko.

Re: [Pharo-users] Fwd: NativeBoost and standard out

2013-12-23 Thread Igor Stasenko
> > > > > > > Best > > > > > > > > Emilio > > Bump... > > > I not sure how this question related to NB. WinProcess is not part of it. As for alternatives, i guess there is some, and can be implemented with FFI calls, but what exactly, you better look for windows API docs. -- Best regards, Igor Stasenko.

Re: [Pharo-users] have a question for morphic Designer in pharo.

2013-12-19 Thread Igor Stasenko
igner project. > you can then little hint give to me please. > > My little hint: 1. read code 2. try to understand what's wrong 3. contact authors of code for help 4. try to fix it 5. if nothing helps, repeat from step 1. :) > thank you...T.T > > > -- > http://onionmixer.net | http://gentoo.or.kr | http://gnome.or.kr > peter yoo. ROK > -- Best regards, Igor Stasenko.

Re: [Pharo-users] Finalization

2013-11-29 Thread Igor Stasenko
eManager class comment > Thanks! > > > > - > Cheers, > Sean > -- > View this message in context: > http://forum.world.st/Finalization-tp4726046.html > Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com. > > -- Best regards, Igor Stasenko.

Re: [Pharo-users] NativeBoost: Regenerate Native Code

2013-11-28 Thread Igor Stasenko
gt; Cheers, > Sean > -- > View this message in context: > http://forum.world.st/NativeBoost-Regenerate-Native-Code-tp4725651.html > Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com. > > -- Best regards, Igor Stasenko.

Re: [Pharo-users] NativeBoost: Regenerate Native Code

2013-11-28 Thread Igor Stasenko
.. or just restart an image On 28 November 2013 12:01, Igor Stasenko wrote: > > > > On 27 November 2013 17:03, Sean P. DeNigris wrote: > >> How do I tell NativeBoost to regenerate all naive code for a class e.g. >> after >> changing the implementation of #n

Re: [Pharo-users] NativeBoost Questions while wrapping FMOD

2013-11-25 Thread Igor Stasenko
Thanks! > > > > - > Cheers, > Sean > -- > View this message in context: > http://forum.world.st/NativeBoost-Questions-while-wrapping-FMOD-tp4724116p4725188.html > Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com. > > -- Best regards, Igor Stasenko.

Re: [Pharo-users] NativeBoost Questions while wrapping FMOD

2013-11-23 Thread Igor Stasenko
s > argument). > > I have a few more questions, but this is the most pressing as it's holding >> up any further development. >> >> Thanks! >> >> >> >> - >> Cheers, >> Sean >> -- >> View this message in context: >> http://forum.world.st/NativeBoost-Questions-while-wrapping-FMOD-tp4724116.html >> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com. >> >> > > > -- > Best regards, > Igor Stasenko. > > > -- Best regards, Igor Stasenko.

Re: [Pharo-users] NativeBoost Questions while wrapping FMOD

2013-11-23 Thread Igor Stasenko
On 23 November 2013 17:42, Denis Kudriashov wrote: > Hi > > 2013/11/22 Igor Stasenko > >> >> >>> 2. instead of returning useful objects, FMOD returns error codes and you >>> pass a pointer to receive the object. >>> >>> - The first

Re: [Pharo-users] [Athens] Finding if a line passes through a specific pixel .

2013-11-23 Thread Igor Stasenko
/distance-to-quadratic-bezier-curve.html >>>> >>>> Hilaire >>>> >>>> >>>> Le 14/11/2013 21:07, kilon alios a écrit : >>>> > In order to do that I will have to check that the line passes through >>>> a >>>> > specific pixel. Or to be more correct that the place that mouse has >>>> > clicked is where my path passes through. How I do that ? Can Athens do >>>> > that ? Can athens tell me which pixels my path passes through ? >>>> > >>>> >>>> >>>> -- >>>> Dr. Geo http://drgeo.eu >>>> >>>> >>>> >>> >>> >> >> >> > -- Best regards, Igor Stasenko.

  1   2   >