Click Here
home features news forums classifieds faqs links search
6071 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
» Home
» Features
» News
» Forums
» Classifieds
» Links
» Downloads
Extras
» OS4 Zone
» IRC Network
» AmigaWorld Radio
» Newsfeed
» Top Members
» Amiga Dealers
Information
» About Us
» FAQs
» Advertise
» Polls
» Terms of Service
» Search

IRC Channel
Server: irc.amigaworld.net
Ports: 1024,5555, 6665-6669
SSL port: 6697
Channel: #Amigaworld
Channel Policy and Guidelines

Who's Online
23 crawler(s) on-line.
 93 guest(s) on-line.
 0 member(s) on-line.



You are an anonymous user.
Register Now!
 kolla:  15 mins ago
 Hypex:  16 mins ago
 outlawal2:  25 mins ago
 NutsAboutAmiga:  47 mins ago
 amigakit:  59 mins ago
 AmigaPapst:  2 hrs 14 mins ago
 Lazi:  2 hrs 27 mins ago
 matthey:  2 hrs 51 mins ago
 billt:  3 hrs 44 mins ago
 QBit:  3 hrs 55 mins ago

/  Forum Index
   /  Amiga Development
      /  IDCMP is still use in modern amigaos/morphos?,and IExec etc
Register To Post

Goto page ( Previous Page 1 | 2 )
PosterThread
Vanhapolle 
Re: IDCMP is still use in modern amigaos/morphos?,and IExec etc
Posted on 20-Dec-2014 9:37:35
#21 ]
Regular Member
Joined: 22-Sep-2014
Posts: 372
From: Unknown

@tonyw

Reading english is not me problem.

 Status: Offline
Profile     Report this post  
Vanhapolle 
Re: IDCMP is still use in modern amigaos/morphos?,and IExec etc
Posted on 20-Dec-2014 9:39:22
#22 ]
Regular Member
Joined: 22-Sep-2014
Posts: 372
From: Unknown

I dont want support MS any kindway i want wrote programs which at least somelevel feels they are really Amiga programs not only lookin but how they work.:)

 Status: Offline
Profile     Report this post  
NutsAboutAmiga 
Re: IDCMP is still use in modern amigaos/morphos?,and IExec etc
Posted on 20-Dec-2014 12:29:41
#23 ]
Elite Member
Joined: 9-Jun-2004
Posts: 12818
From: Norway

@Vanhapolle

Quote:
I dont want support MS any kindway i want wrote programs which at least some level feels they are really Amiga programs not only lookin but how they work.:)


he he, I was thinking modern != amiga, but its all a question of preseparation I suppose.
I think of the way Reaction and MUI works as different.

xyz_Click() is not some thing unique to MS, its code for JavaScript or Java, can also some times look a lot like that.

Befits of setting up a table; cleaner code, faster code. Drawback some extra work as you need some code initialize the table. (Actually setting up the switch case might be just as time consuming.)

Last edited by NutsAboutAmiga on 20-Dec-2014 at 03:36 PM.

_________________
http://lifeofliveforit.blogspot.no/
Facebook::LiveForIt Software for AmigaOS

 Status: Offline
Profile     Report this post  
NutsAboutAmiga 
Re: IDCMP is still use in modern amigaos/morphos?,and IExec etc
Posted on 20-Dec-2014 12:39:25
#24 ]
Elite Member
Joined: 9-Jun-2004
Posts: 12818
From: Norway

@megol

Quote:
Compilers can translate switch statements to table lookup(s) or table lookup(s) + some extra checks. That applies to GCC, LLVM/CLANG, ICC etc.


That's cool, I guess if they check boundary's its possible, smallest and largest number with in the range of valid numbers, or else default, you also need to check for gaps in the number sequence.

Last edited by NutsAboutAmiga on 20-Dec-2014 at 03:34 PM.

_________________
http://lifeofliveforit.blogspot.no/
Facebook::LiveForIt Software for AmigaOS

 Status: Offline
Profile     Report this post  
megol 
Re: IDCMP is still use in modern amigaos/morphos?,and IExec etc
Posted on 20-Dec-2014 13:34:32
#25 ]
Regular Member
Joined: 17-Mar-2008
Posts: 355
From: Unknown

@NutsAboutAmiga

Yes and even more complicated mappings too, this paper lists a number of them if you are interested: https://ols.fedoraproject.org/GCC/Reprints-2008/sayle-reprint.pdf

But IMHO using a table tends to be cleaner looking than a switch. :)

 Status: Offline
Profile     Report this post  
Hypex 
Re: IDCMP is still use in modern amigaos/morphos?,and IExec etc
Posted on 20-Dec-2014 13:47:22
#26 ]
Elite Member
Joined: 6-May-2007
Posts: 11211
From: Greensborough, Australia

@NutsAboutAmiga

I don't know why we have to resort to MS like code. We should be able produce optimised Amiga code readily. Infact, historically, MS software has been rather slow so I don't know if they are the best example!

But, I do see where you are coming from, it just hasn't bothered me that much as most of my IDCMP checking would be for a close window or gadget click. And for a gadget the ID would be made use of.

 Status: Offline
Profile     Report this post  
NutsAboutAmiga 
Re: IDCMP is still use in modern amigaos/morphos?,and IExec etc
Posted on 20-Dec-2014 15:27:32
#27 ]
Elite Member
Joined: 9-Jun-2004
Posts: 12818
From: Norway

@Hypex

Quote:
I don't know why we have to resort to MS like code. historically, MS software has been rather slow so I don't know if they are the best example!


MS like, not MS code nescessarily. VB and C# is interpretated code so its slow, C# is bit nicer to work with, but I most admit not having written a lot code using C#.

on the other hand VB/C# is just calling DLL's or OCX files that might be optimized or not, it depends on what your trying to make, writing things in C++ might be the better choice if you wont speed.

the most annoying part is lack of threading in the Window GUI system, having to force refreshing the GUI, on tasks that is time consuming, this makes the program look sluggish, but it might be just working really hard on some thing.

Quote:
We should be able produce optimized Amiga code readily. Infact,


Well that's the point, I don't think the event loop is the most important part to optimize, but the code becomes more readable so it might be worth it, at least if you have many case's in your switch.

Last edited by NutsAboutAmiga on 20-Dec-2014 at 03:32 PM.
Last edited by NutsAboutAmiga on 20-Dec-2014 at 03:28 PM.

_________________
http://lifeofliveforit.blogspot.no/
Facebook::LiveForIt Software for AmigaOS

 Status: Offline
Profile     Report this post  
NutsAboutAmiga 
Re: IDCMP is still use in modern amigaos/morphos?,and IExec etc
Posted on 20-Dec-2014 15:38:15
#28 ]
Elite Member
Joined: 9-Jun-2004
Posts: 12818
From: Norway

@megol

That PDF is private.

_________________
http://lifeofliveforit.blogspot.no/
Facebook::LiveForIt Software for AmigaOS

 Status: Offline
Profile     Report this post  
itix 
Re: IDCMP is still use in modern amigaos/morphos?,and IExec etc
Posted on 20-Dec-2014 16:54:16
#29 ]
Elite Member
Joined: 22-Dec-2004
Posts: 3398
From: Freedom world

@NutsAboutAmiga

Quote:

MS like, not MS code nescessarily. VB and C# is interpretated code so its slow, C# is bit nicer to work with, but I most admit not having written a lot code using C#.


C# is not interpreted.

Quote:

the most annoying part is lack of threading in the Window GUI system, having to force refreshing the GUI, on tasks that is time consuming, this makes the program look sluggish, but it might be just working really hard on some thing.


Use threads. In fact it can be good idea to seperate GUI and data processing to separate thread. There is no way around it, were you developing for Windows or Amiga.

_________________
Amiga Developer
Amiga 500, Efika, Mac Mini and PowerBook

 Status: Offline
Profile     Report this post  
Goto page ( Previous Page 1 | 2 )

[ home ][ about us ][ privacy ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright (C) 2000 - 2019 Amigaworld.net.
Amigaworld.net was originally founded by David Doyle