Poster | Thread |
TRIPOS
| |
Introduction to Objective-C in MorphOS 3.10 Posted on 28-Mar-2018 17:06:00
| | [ #1 ] |
|
|
|
Super Member |
Joined: 4-Apr-2014 Posts: 1204
From: Unknown | | |
|
|
MorphOS 3.10 introduces first applications written in ObjectiveC-MUI. You can read more about the implementation details and how MorphOS developers will be able to use the new frameworks in this article:
http://morphos-team.net/guide/objective-c
|
|
Status: Offline |
|
|
kolla
| |
Re: Introduction to Objective-C in MorphOS 3.10 Posted on 29-Mar-2018 10:11:33
| | [ #2 ] |
|
|
|
Elite Member |
Joined: 20-Aug-2003 Posts: 2859
From: Trondheim, Norway | | |
|
| @TRIPOS
This is probably more awesome than most people grasp, lol _________________ B5D6A1D019D5D45BCC56F4782AC220D8B3E2A6CC |
|
Status: Offline |
|
|
kamelito
| |
Re: Introduction to Objective-C in MorphOS 3.10 Posted on 29-Mar-2018 11:46:32
| | [ #3 ] |
|
|
|
Cult Member |
Joined: 26-Jul-2004 Posts: 813
From: Unknown | | |
|
| @kolla
it is if the development time is reduced like it is for Mac or iOS development. Maybe some Mac iOS coders who were Amigans can be interested, as for Amiga dev they'll have to learn Obj-C and OOP.
|
|
Status: Offline |
|
|
jacadcaps
| |
Re: Introduction to Objective-C in MorphOS 3.10 Posted on 29-Mar-2018 13:24:25
| | [ #4 ] |
|
|
|
Regular Member |
Joined: 20-Nov-2007 Posts: 203
From: Canada | | |
|
| @kamelit0
I am biased and I know mui.framework in and out, but I am certain that yes, the development time is reduced by a lot.
The major showstopper with MUI was always threading and this is where ObjC really fills in, making it easy to pass arguments to methods you want to call on a thread and then sending results back to the UI thread.
Usually one had to waste a lot of time inventing some messaging system for that and this usually meant that apps didn't perform many things on a thread that they should have (like a picture viewer loading a jpg on the main thread, which is all too common).
With ObjectiveC and the ob.framework you can get your method to be called on a thread with a one-liner and then invoke a method on the main thread with any results you may want to pass with another one-liner.
This will be even nicer once ARC and blocks become available - hopefully around the time 3.12 comes out.
The fact that dealing with MUIC_Family and related similar classes that essentially handled collections of child object was unified also helps. No matter if you're dealing with MUIC_Application, MUIC_Group or MUIC_List, you can always access the children as if you were accessing an NSMutableArray from Foundation. Last edited by jacadcaps on 29-Mar-2018 at 01:32 PM.
|
|
Status: Offline |
|
|
Leo
| |
Re: Introduction to Objective-C in MorphOS 3.10 Posted on 29-Mar-2018 13:46:44
| | [ #5 ] |
|
|
|
Super Member |
Joined: 21-Aug-2003 Posts: 1597
From: Unknown | | |
|
| @jacadcaps
Looks very interesting!
Just wondering: is they any impact on performance when using Objective-C VS C? _________________ http://www.warpdesign.fr/ |
|
Status: Offline |
|
|
jacadcaps
| |
Re: Introduction to Objective-C in MorphOS 3.10 Posted on 29-Mar-2018 15:29:01
| | [ #6 ] |
|
|
|
Regular Member |
Joined: 20-Nov-2007 Posts: 203
From: Canada | | |
|
| @Leo
Sure, there's extra overhead in ObjectiveC, but it's not big enough to really matter. |
|
Status: Offline |
|
|
BSzili
| |
Re: Introduction to Objective-C in MorphOS 3.10 Posted on 29-Mar-2018 20:44:14
| | [ #7 ] |
|
|
|
Regular Member |
Joined: 16-Nov-2013 Posts: 447
From: Unknown | | |
|
| @jacadcaps
It looks like ObjC can get rid of a lot of boilerplate. I'm looking forward to seeing more examples, comparisons with plain C code. _________________ This is just like television, only you can see much further. |
|
Status: Offline |
|
|
retro
| |
Re: Introduction to Objective-C in MorphOS 3.10 Posted on 30-Mar-2018 6:55:35
| | [ #8 ] |
|
|
|
Super Member |
Joined: 16-Dec-2003 Posts: 1049
From: Unknown | | |
|
| the only thing thats is interesting with morphos is that there are rumors that it will get portet to x64 but there is no x86/x64 version soooo what is the point
|
|
Status: Offline |
|
|
ASiegel
| |
Re: Introduction to Objective-C in MorphOS 3.10 Posted on 30-Mar-2018 7:17:20
| | [ #9 ] |
|
|
|
Regular Member |
Joined: 22-Oct-2013 Posts: 212
From: Unknown | | |
|
| @retro
Given your post, your nickname seems highly unfitting. |
|
Status: Offline |
|
|
kolla
| |
Re: Introduction to Objective-C in MorphOS 3.10 Posted on 30-Mar-2018 22:16:39
| | [ #10 ] |
|
|
|
Elite Member |
Joined: 20-Aug-2003 Posts: 2859
From: Trondheim, Norway | | |
|
| @retro
Quote:
the only thing thats is interesting with morphos is that there are rumors that it will get portet to x64 but there is no x86/x64 version soooo what is the point
|
No worries, the rumours will not go away, so the only interesting thing about MorphOS will remain :)_________________ B5D6A1D019D5D45BCC56F4782AC220D8B3E2A6CC |
|
Status: Offline |
|
|
kamelito
| |
Re: Introduction to Objective-C in MorphOS 3.10 Posted on 31-Mar-2018 8:45:28
| | [ #11 ] |
|
|
|
Cult Member |
Joined: 26-Jul-2004 Posts: 813
From: Unknown | | |
|
| @jacadcaps
Since there some developers bringing their software to more than one Amiga NG platform, if they develop using Objective C and the new Morphos frameworks, I guess that they couldn’t build for say AmigaOS and/or Atos right? |
|
Status: Offline |
|
|
DiscreetFX
| |
Re: Introduction to Objective-C in MorphOS 3.10 Posted on 31-Mar-2018 13:25:01
| | [ #12 ] |
|
|
|
Elite Member |
Joined: 12-Feb-2003 Posts: 2480
From: Chicago, IL | | |
|
| @TRIPOS
Very cool, do you know if the open source Swift will be used in the future as well? _________________ Sent from my Quantum Computer. |
|
Status: Offline |
|
|
Kronos
| |
Re: Introduction to Objective-C in MorphOS 3.10 Posted on 31-Mar-2018 15:17:33
| | [ #13 ] |
|
|
|
Elite Member |
Joined: 8-Mar-2003 Posts: 2553
From: Unknown | | |
|
| @DiscreetFX
Same as with ObjC, if someone with the needed skills is motivated to port it, you will see a port.
Don't need to be a team member to pull that of (but it might help in some regards). _________________ - We don't need good ideas, we haven't run out on bad ones yet - blame Canada |
|
Status: Offline |
|
|
AmigaMac
| |
Re: Introduction to Objective-C in MorphOS 3.10 Posted on 31-Mar-2018 15:20:41
| | [ #14 ] |
|
|
|
Super Member |
Joined: 26-Oct-2002 Posts: 1094
From: 3rd Rock from the Sun! | | |
|
| @DiscreetFX
I was curious about the same thing myself. Nothing against ObjC, but Swift is definitely fun to code in (from my little bit of experience with it so far). Of course Apple supports Swift and ObjC mixed code so I could assume that would be possible here as well (with some work obviously). _________________
|
|
Status: Offline |
|
|
Karlos
| |
Re: Introduction to Objective-C in MorphOS 3.10 Posted on 31-Mar-2018 21:49:53
| | [ #15 ] |
|
|
|
Elite Member |
Joined: 24-Aug-2003 Posts: 4394
From: As-sassin-aaate! As-sassin-aaate! Ooh! We forgot the ammunition! | | |
|
| @TRIPOS
I can see some advantages of Objective C, especially as a runtime, but my, oh my, how I detest it as a language. Don't get me wrong, I like C and I like Smalltalk, but not at the same time. Like mixing gravy and ice cream. _________________ Doing stupid things for fun... |
|
Status: Offline |
|
|
jacadcaps
| |
Re: Introduction to Objective-C in MorphOS 3.10 Posted on 1-Apr-2018 0:03:31
| | [ #16 ] |
|
|
|
Regular Member |
Joined: 20-Nov-2007 Posts: 203
From: Canada | | |
|
| @kamelit0
I'm sure you could *build* this stuff for other OS - it just wouldn't run due to the lack of runtime. |
|
Status: Offline |
|
|