amiga.org
     
iconAll times are GMT -6. The time now is 11:42 PM. | Welcome to Forum, please register to access all of our features.

» Amiga.org » Coffee House » CH / Science and Technology » OT fork(): bloodline and Karlos erm... discuss Objective-C & C++ :)

CH / Science and Technology This is the correct place for open, moderated discussions relating to science and technology. Open to Registered users only.

Reply
 
Thread Tools Display Modes
Old 11-05-2010, 08:56 AM   #16
Karlos
Sockologist
Points: 48,752, Level: 100 Points: 48,752, Level: 100 Points: 48,752, Level: 100
Activity: 8% Activity: 8% Activity: 8%
 
Karlos's Avatar
 
Join Date: Nov 2002
Location: I solve practical problems...
Posts: 16,606
Blog Entries: 18
Default Re: DiscreetFX Platform Shift

Man, we've gotten so far off-topic. I'm actually considering moving half of this to a developer discussion thread
__________________
OCA
This isn't SCSI... This is SATA!!!
I have CDO. It's like OCD except all the letters are in ascending order. The way they should be.
Core2 Quad Q9450 2.66GHz / X48T / 4GB DDR3 / nVidia GTX275 / Linux x64, AROS, Win64
A1XE 800MHz / 512MB / Radeon 9200 / OS4.1
A1200T BPPC 240MHz / 256MB / Permedia 2 / OS 3.1 - OS3.9, OS4
A1200T Apollo 1240 28MHz / 32MB / Mediator1200 / Voodoo 3000 / OS3.9
A1200D Apollo 1240 25MHz (ejector seat ROM edition) / 32MB
Karlos is offline   Reply With Quote
Old 11-05-2010, 09:04 AM   #17
Karlos
Sockologist
Points: 48,752, Level: 100 Points: 48,752, Level: 100 Points: 48,752, Level: 100
Activity: 8% Activity: 8% Activity: 8%
 
Karlos's Avatar
 
Join Date: Nov 2002
Location: I solve practical problems...
Posts: 16,606
Blog Entries: 18
Default Re: DiscreetFX Platform Shift

Done. Have to say, vbulletin has some nice features for this sort of thing
__________________
OCA
This isn't SCSI... This is SATA!!!
I have CDO. It's like OCD except all the letters are in ascending order. The way they should be.
Core2 Quad Q9450 2.66GHz / X48T / 4GB DDR3 / nVidia GTX275 / Linux x64, AROS, Win64
A1XE 800MHz / 512MB / Radeon 9200 / OS4.1
A1200T BPPC 240MHz / 256MB / Permedia 2 / OS 3.1 - OS3.9, OS4
A1200T Apollo 1240 28MHz / 32MB / Mediator1200 / Voodoo 3000 / OS3.9
A1200D Apollo 1240 25MHz (ejector seat ROM edition) / 32MB
Karlos is offline   Reply With Quote
Old 11-05-2010, 09:17 AM   #18
Karlos
Sockologist
Points: 48,752, Level: 100 Points: 48,752, Level: 100 Points: 48,752, Level: 100
Activity: 8% Activity: 8% Activity: 8%
 
Karlos's Avatar
 
Join Date: Nov 2002
Location: I solve practical problems...
Posts: 16,606
Blog Entries: 18
Default Re: DiscreetFX Platform Shift

Quote:
Hmmm, as once last shout for Obj-C... I think in numbing I see is as BOOPSI done right...
Actually, BOOPSI is a bug bear of mine too. Love the concept, dislike the implementation.

I don't think the potential for this has been explored but when OS4 introduced it's "Interface" concept for libraries, it occurred to me that the mechanism could be used to produce a GUI engine somewhat more efficient than BOOPSI.

To quickly recap, an Interface is simply a C structure with instance data and a set of function pointers that, through a custom __attribute__ get a pointer to the instance passed as the first parameter (Self, in a small nod to smalltalk perhaps?) and thus behaves as a method that can act on that instance.

So far, AFAIK, it has been used solely for making shared libraries, but fundamentally, the interface is a first class object which can be cloned and modified. I've often wondered whether or not a suitably designed Interface could be used as a runtime extensible GUI element.

If so, an Interface call is rather more efficient than a BOOPSI method dispach and has a syntax (InterfaceInstance->Method(<args>)) that's a bit nicer for OO developers too.
__________________
OCA
This isn't SCSI... This is SATA!!!
I have CDO. It's like OCD except all the letters are in ascending order. The way they should be.
Core2 Quad Q9450 2.66GHz / X48T / 4GB DDR3 / nVidia GTX275 / Linux x64, AROS, Win64
A1XE 800MHz / 512MB / Radeon 9200 / OS4.1
A1200T BPPC 240MHz / 256MB / Permedia 2 / OS 3.1 - OS3.9, OS4
A1200T Apollo 1240 28MHz / 32MB / Mediator1200 / Voodoo 3000 / OS3.9
A1200D Apollo 1240 25MHz (ejector seat ROM edition) / 32MB
Karlos is offline   Reply With Quote
Old 11-05-2010, 11:56 AM   #19
Franko
Banned
Points: 22,799, Level: 93 Points: 22,799, Level: 93 Points: 22,799, Level: 93
Activity: 8% Activity: 8% Activity: 8%
 
Join Date: Jun 2010
Posts: 5,707
Blog Entries: 33
Default Re: OT fork(): bloodline and Karlos erm... discuss Objective-C & C++ :)

@ Karlos

Ahh... the perks of being a mod... you get to fork something...
Franko is offline   Reply With Quote
Old 11-05-2010, 12:48 PM   #20
nicholas
Guru Meditator
Points: 16,205, Level: 81 Points: 16,205, Level: 81 Points: 16,205, Level: 81
Activity: 99% Activity: 99% Activity: 99%
 
nicholas's Avatar
 
Join Date: Feb 2003
Location: Englistan
Posts: 6,821
Default Re: OT fork(): bloodline and Karlos erm... discuss Objective-C & C++ :)

Let's heat it up a little!

@Karlos

Please tell us your thoughts on Objective-C++
__________________
http://www.commodore.gen.tr/forum/in...38089#msg38089
http://sf.net/projects/amithlon/files/

“Socialism" is no more an evil word than "Christianity." Socialism no more prescribed Joseph Stalin and his secret police and shuttered churches than Christianity prescribed the Spanish Inquisition. Christianity and socialism alike, in fact, prescribe a society dedicated to the proposition that all men, women, and children are created equal and shall not starve.” - Kurt Vonnegut
nicholas is offline   Reply With Quote
Old 11-05-2010, 01:32 PM   #21
Karlos
Sockologist
Points: 48,752, Level: 100 Points: 48,752, Level: 100 Points: 48,752, Level: 100
Activity: 8% Activity: 8% Activity: 8%
 
Karlos's Avatar
 
Join Date: Nov 2002
Location: I solve practical problems...
Posts: 16,606
Blog Entries: 18
Default Re: OT fork(): bloodline and Karlos erm... discuss Objective-C & C++ :)

Quote:
Originally Posted by nicholas View Post
Let's heat it up a little!

@Karlos

Please tell us your thoughts on Objective-C++
Not even Objective-C fans like Objective-C++. I suppose it has advantages of both but there's no actual overlap in the OO services from Objective-C and those provided by C++.
__________________
OCA
This isn't SCSI... This is SATA!!!
I have CDO. It's like OCD except all the letters are in ascending order. The way they should be.
Core2 Quad Q9450 2.66GHz / X48T / 4GB DDR3 / nVidia GTX275 / Linux x64, AROS, Win64
A1XE 800MHz / 512MB / Radeon 9200 / OS4.1
A1200T BPPC 240MHz / 256MB / Permedia 2 / OS 3.1 - OS3.9, OS4
A1200T Apollo 1240 28MHz / 32MB / Mediator1200 / Voodoo 3000 / OS3.9
A1200D Apollo 1240 25MHz (ejector seat ROM edition) / 32MB
Karlos is offline   Reply With Quote
Old 11-05-2010, 01:36 PM   #22
Karlos
Sockologist
Points: 48,752, Level: 100 Points: 48,752, Level: 100 Points: 48,752, Level: 100
Activity: 8% Activity: 8% Activity: 8%
 
Karlos's Avatar
 
Join Date: Nov 2002
Location: I solve practical problems...
Posts: 16,606
Blog Entries: 18
Default Re: OT fork(): bloodline and Karlos erm... discuss Objective-C & C++ :)

Quote:
Originally Posted by Franko View Post
@ Karlos

Ahh... the perks of being a mod... you get to fork something...
I wouldn't normally bother, but it was an announcement thread and very off-topic
__________________
OCA
This isn't SCSI... This is SATA!!!
I have CDO. It's like OCD except all the letters are in ascending order. The way they should be.
Core2 Quad Q9450 2.66GHz / X48T / 4GB DDR3 / nVidia GTX275 / Linux x64, AROS, Win64
A1XE 800MHz / 512MB / Radeon 9200 / OS4.1
A1200T BPPC 240MHz / 256MB / Permedia 2 / OS 3.1 - OS3.9, OS4
A1200T Apollo 1240 28MHz / 32MB / Mediator1200 / Voodoo 3000 / OS3.9
A1200D Apollo 1240 25MHz (ejector seat ROM edition) / 32MB
Karlos is offline   Reply With Quote
Old 11-05-2010, 01:42 PM   #23
KThunder
Defender of the Faith
Points: 9,812, Level: 66 Points: 9,812, Level: 66 Points: 9,812, Level: 66
Activity: 0% Activity: 0% Activity: 0%
 
KThunder's Avatar
 
Join Date: Aug 2002
Location: USA
Posts: 1,503
Default Re: OT fork(): bloodline and Karlos erm... discuss Objective-C & C++ :)

I used to program in compiled Basic and assembly and didn't like C or C++, now I have a C++ programming class in college, and I'm learning a lot. C++ is pretty cool.
__________________
Oh yeah?!?
Well your stupid bit is set,
and its read only!
(my best geek putdown)
KThunder is offline   Reply With Quote
Old 11-05-2010, 01:50 PM   #24
Karlos
Sockologist
Points: 48,752, Level: 100 Points: 48,752, Level: 100 Points: 48,752, Level: 100
Activity: 8% Activity: 8% Activity: 8%
 
Karlos's Avatar
 
Join Date: Nov 2002
Location: I solve practical problems...
Posts: 16,606
Blog Entries: 18
Default Re: OT fork(): bloodline and Karlos erm... discuss Objective-C & C++ :)

Quote:
Originally Posted by KThunder View Post
C++ is pretty cool.
It's one of those languages I find you learn in layers, each one revealed by some new problem you come up against.

First of all, you start of writing what is ostensibly C and perhaps the only features you use are the streams for input and output (though personally I prefer C-style IO and almost always use it in preference). Then you create your first simple classes, and eventually they get more complex as you start introducing inheritance. You start to discover design patterns and how to implement them. You get better at sorting concepts into concrete and abstract classes and so on.

At some point, you invariably come up with generalized ideas for code that works with objects of different types and you suddenly realise what C++ templates can do for you and then what the STL has already done for you. Your code gets bigger and you realise what namespaces are for.

And, just like the STL, after some time, you start looking at 3rd party libraries like boost and realising that some very clever people have done some excellent work so that you don't have to. Although personally, I quite like doing the implementation work, I find it relaxing
__________________
OCA
This isn't SCSI... This is SATA!!!
I have CDO. It's like OCD except all the letters are in ascending order. The way they should be.
Core2 Quad Q9450 2.66GHz / X48T / 4GB DDR3 / nVidia GTX275 / Linux x64, AROS, Win64
A1XE 800MHz / 512MB / Radeon 9200 / OS4.1
A1200T BPPC 240MHz / 256MB / Permedia 2 / OS 3.1 - OS3.9, OS4
A1200T Apollo 1240 28MHz / 32MB / Mediator1200 / Voodoo 3000 / OS3.9
A1200D Apollo 1240 25MHz (ejector seat ROM edition) / 32MB
Karlos is offline   Reply With Quote
Old 11-05-2010, 02:00 PM   #25
KThunder
Defender of the Faith
Points: 9,812, Level: 66 Points: 9,812, Level: 66 Points: 9,812, Level: 66
Activity: 0% Activity: 0% Activity: 0%
 
KThunder's Avatar
 
Join Date: Aug 2002
Location: USA
Posts: 1,503
Default Re: OT fork(): bloodline and Karlos erm... discuss Objective-C & C++ :)

I've had to step back to beginnings for everything. Basic I/O, no loops or subroutines, or anything like that.
We are taking it a step at a time with the class, it has been interesting. My Professor is a wild one too, she is a 5'2" lady with a pretty wacky sense of humor.
__________________
Oh yeah?!?
Well your stupid bit is set,
and its read only!
(my best geek putdown)
KThunder is offline   Reply With Quote
Old 11-05-2010, 03:25 PM   #26
nicholas
Guru Meditator
Points: 16,205, Level: 81 Points: 16,205, Level: 81 Points: 16,205, Level: 81
Activity: 99% Activity: 99% Activity: 99%
 
nicholas's Avatar
 
Join Date: Feb 2003
Location: Englistan
Posts: 6,821
Default Re: OT fork(): bloodline and Karlos erm... discuss Objective-C & C++ :)

Quote:
Originally Posted by KThunder View Post
I've had to step back to beginnings for everything. Basic I/O, no loops or subroutines, or anything like that.
We are taking it a step at a time with the class, it has been interesting. My Professor is a wild one too, she is a 5'2" lady with a pretty wacky sense of humor.
As a college teacher myself, I can thoroughly recommend getting your hands on a copy of Accelerated C++: Practical Programming by Example

Quote:
Why is Accelerated C++ so effective? Because it

Starts with the most useful concepts rather than the most primitive ones:
You can begin writing programs immediately.
Describes real problems and solutions, not just language features:
You see not only what each feature is, but also how to use it.
Covers the language and standard library together:
You can use the library right from the start.

The authors proved this approach in their professional-education course at Stanford University, where students learned how to write substantial programs on their first day in the classroom.
More details here: http://www.acceleratedcpp.com/
__________________
http://www.commodore.gen.tr/forum/in...38089#msg38089
http://sf.net/projects/amithlon/files/

“Socialism" is no more an evil word than "Christianity." Socialism no more prescribed Joseph Stalin and his secret police and shuttered churches than Christianity prescribed the Spanish Inquisition. Christianity and socialism alike, in fact, prescribe a society dedicated to the proposition that all men, women, and children are created equal and shall not starve.” - Kurt Vonnegut

Last edited by nicholas; 11-05-2010 at 03:28 PM..
nicholas is offline   Reply With Quote
Old 11-05-2010, 03:29 PM   #27
nicholas
Guru Meditator
Points: 16,205, Level: 81 Points: 16,205, Level: 81 Points: 16,205, Level: 81
Activity: 99% Activity: 99% Activity: 99%
 
nicholas's Avatar
 
Join Date: Feb 2003
Location: Englistan
Posts: 6,821
Default Re: OT fork(): bloodline and Karlos erm... discuss Objective-C & C++ :)

Quote:
Originally Posted by Karlos View Post
Not even Objective-C fans like Objective-C++. I suppose it has advantages of both but there's no actual overlap in the OO services from Objective-C and those provided by C++.
Drat!

Maybe I should have asked for your thoughts on Java.
__________________
http://www.commodore.gen.tr/forum/in...38089#msg38089
http://sf.net/projects/amithlon/files/

“Socialism" is no more an evil word than "Christianity." Socialism no more prescribed Joseph Stalin and his secret police and shuttered churches than Christianity prescribed the Spanish Inquisition. Christianity and socialism alike, in fact, prescribe a society dedicated to the proposition that all men, women, and children are created equal and shall not starve.” - Kurt Vonnegut
nicholas is offline   Reply With Quote
Old 11-05-2010, 03:45 PM   #28
Karlos
Sockologist
Points: 48,752, Level: 100 Points: 48,752, Level: 100 Points: 48,752, Level: 100
Activity: 8% Activity: 8% Activity: 8%
 
Karlos's Avatar
 
Join Date: Nov 2002
Location: I solve practical problems...
Posts: 16,606
Blog Entries: 18
Default Re: OT fork(): bloodline and Karlos erm... discuss Objective-C & C++ :)

Quote:
Originally Posted by nicholas View Post
Drat!

Maybe I should have asked for your thoughts on Java.
Java was and is a nice idea. It's somewhat failed to live up to it's potential however.

I do remember a fun discussion with some Java purists that really hated C++ due to the misuse some of it's features can be put to and that such things had no place in a "clean" language. At one point, they went on and on about why operator overloading was the work of satan and no language should ever have it. My pointing out that Java's StringBuffer overrides operator+() for concatenation didn't seem to go down well. Special case this, exception the other. Enforce a rule or don't.

Amusingly, one of their other objections (at the time) was that C++ template syntax was so evil that generics might as well not be a language feature since nobody would ever use it (despite the fact that STL is built from it). I had to smile when Java finally introduced generics. The syntax is practically identical. As it was in C# too

Other aspects of Java I don't like are the lack of support for efficient concrete types (all non-static class functions behave like C++ virtual functions), though in some respects this is less of an issue for a language that is JIT compiled from bytecode, since the extra indirection can often be eliminated at JIT time. I'm also not a big fan of garbage collection but it certainly has it's place in larger systems. I also miss features like multiple inheritance, operator overloading and friend relationships between classes, but SringBuffer+ caveat aside, the features they chose have been largely well-implemented. Syntactically I can't say I have any major objection to Java.
__________________
OCA
This isn't SCSI... This is SATA!!!
I have CDO. It's like OCD except all the letters are in ascending order. The way they should be.
Core2 Quad Q9450 2.66GHz / X48T / 4GB DDR3 / nVidia GTX275 / Linux x64, AROS, Win64
A1XE 800MHz / 512MB / Radeon 9200 / OS4.1
A1200T BPPC 240MHz / 256MB / Permedia 2 / OS 3.1 - OS3.9, OS4
A1200T Apollo 1240 28MHz / 32MB / Mediator1200 / Voodoo 3000 / OS3.9
A1200D Apollo 1240 25MHz (ejector seat ROM edition) / 32MB

Last edited by Karlos; 11-05-2010 at 03:47 PM..
Karlos is offline   Reply With Quote
Reply

Bookmarks

Tags
discuss , argue , fork , karlos , objectivec , bloodline , erm

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump