[Pharo-project] Fwd: do you know what is this?
meanwhile, Esteban works on ObjC bridge ;) ---------- Forwarded message ---------- From: Esteban Lorenzano <estebanlm@gmail.com> Date: 16 April 2013 17:56 Subject: [Lsehub-staff] do you know what is this? To: RMoD private list <lsehub-staff@lists.gforge.inria.fr> uh? do you know? this is the code: ObjCClass nbSessionChanged. pool := (ObjCClass named: #NSAutoreleasePool) alloc init. rect := ObjCNSRect fromRect: (0@0 corner: 800@600). window := (ObjCClass named: #NSWindow) alloc autorelease. window initWithContentRect: rect styleMask: 15 "NSTitledWindowMask | NSClosableWindowMask | NSMiniaturizableWindowMask | NSResizableWindowMask" backing: 2 "NSBackingStoreRetained" defer: 0 "NO". window setTitle: ((ObjCClass named: #NSString) stringWithCString: 'Hello' encoding: 1). window makeKeyAndOrderFront: ObjCObject new. "nil" graphicsPort := window graphicsContext graphicsPort. surface := AthensQuartzSurface newContext: graphicsPort extent: 200@200. paint := surface createRadialGradient: { 0->Color red . 1->Color green } center: 100@100 radius: 100. surface drawDuring: [ :canvas | surface clear. canvas pathTransform loadIdentity. canvas setPaint: paint. canvas drawShape: (0@0 corner: 200@200) ]. So... pretty simple in fact :) Esteban -- Best regards, Igor Stasenko.
On 16 April 2013 18:02, Igor Stasenko <siguctua@gmail.com> wrote:
meanwhile, Esteban works on ObjC bridge ;)
Go go go, Esteban! We no need no Cairo on Macs, while we can use Quartz directly :)
-- Best regards, Igor Stasenko.
And you guys then say that pharo is not macos first citizen ha ha and ha I am a macos user , I love my imac and macos, but my vote goes to cross platform. Still another great library that is more than welcomed, definitely cant do any harm ;) -- View this message in context: http://forum.world.st/Fwd-do-you-know-what-is-this-tp4681962p4681975.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
We mainly say that each travel has to start with one step Ben On Apr 16, 2013, at 7:09 PM, kilon <thekilon@yahoo.co.uk> wrote:
And you guys then say that pharo is not macos first citizen
ha
ha
and
ha
I am a macos user , I love my imac and macos, but my vote goes to cross platform.
Still another great library that is more than welcomed, definitely cant do any harm ;)
-- View this message in context: http://forum.world.st/Fwd-do-you-know-what-is-this-tp4681962p4681975.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
why do you think this is the final step? this is just the first one in a long run... and when we arrive to the goal, pharo will be both: cross platform + [your preferred system here] first citizen :) god, forgive this men of little faith... :P Esteban On Apr 16, 2013, at 7:12 PM, Benjamin <benjamin.vanryseghem.pharo@gmail.com> wrote:
We mainly say that each travel has to start with one step
Ben
On Apr 16, 2013, at 7:09 PM, kilon <thekilon@yahoo.co.uk> wrote:
And you guys then say that pharo is not macos first citizen
ha
ha
and
ha
I am a macos user , I love my imac and macos, but my vote goes to cross platform.
Still another great library that is more than welcomed, definitely cant do any harm ;)
-- View this message in context: http://forum.world.st/Fwd-do-you-know-what-is-this-tp4681962p4681975.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
Well to be fair any language that respects itself has an ObjC bridge , and its definetly a big deal if you want to embrace iOS too. So definetly the thumbs up from me. I am no way against this. -- View this message in context: http://forum.world.st/Fwd-do-you-know-what-is-this-tp4681962p4681982.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
On 16 April 2013 19:31, kilon <thekilon@yahoo.co.uk> wrote:
Well to be fair any language that respects itself has an ObjC bridge , and its definetly a big deal if you want to embrace iOS too. So definetly the thumbs up from me. I am no way against this.
well, it is good to stand on the shoulder of giant, but as long as he moves into same direction as you want :)
-- View this message in context: http://forum.world.st/Fwd-do-you-know-what-is-this-tp4681962p4681982.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
-- Best regards, Igor Stasenko.
On 16 April 2013 19:09, kilon <thekilon@yahoo.co.uk> wrote:
And you guys then say that pharo is not macos first citizen
ha
ha
and
ha
I am a macos user , I love my imac and macos, but my vote goes to cross platform.
Still another great library that is more than welcomed, definitely cant do any harm ;)
By saying that we don't need Cairo on MacOS i meant following: Athens designed to support multiple backends. It is out of question, that better to use most suitable backend, available on current platform. But apart of it stays ObjC bridge. Which would allow us to speak with ObjC-runtime (and Mac VM using it) directly.
-- View this message in context: http://forum.world.st/Fwd-do-you-know-what-is-this-tp4681962p4681975.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
-- Best regards, Igor Stasenko.
not to say about efficiency. I've been doing some cpu cycle tests. Rendering a 1600@1200 gradient to world canvas (repeat each 50ms): ~90% cpu consumption Same test, but sending it direct to window canvas using bridge: ~40% cpu consumption so... we are in the good path :) Esteban On Apr 16, 2013, at 8:28 PM, Igor Stasenko <siguctua@gmail.com> wrote:
On 16 April 2013 19:09, kilon <thekilon@yahoo.co.uk> wrote:
And you guys then say that pharo is not macos first citizen
ha
ha
and
ha
I am a macos user , I love my imac and macos, but my vote goes to cross platform.
Still another great library that is more than welcomed, definitely cant do any harm ;)
By saying that we don't need Cairo on MacOS i meant following:
Athens designed to support multiple backends. It is out of question, that better to use most suitable backend, available on current platform.
But apart of it stays ObjC bridge. Which would allow us to speak with ObjC-runtime (and Mac VM using it) directly.
-- View this message in context: http://forum.world.st/Fwd-do-you-know-what-is-this-tp4681962p4681975.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
-- Best regards, Igor Stasenko.
participants (4)
-
Benjamin -
Esteban Lorenzano -
Igor Stasenko -
kilon