Poster | Thread |
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 |
|
|
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 |
|
|
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 |
|
|
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 |
|
|
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 | | |
|
| |
Status: Offline |
|
|
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 |
|
|
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 |
|
|
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 | | |
|
| |
Status: Offline |
|
|
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 |
|
|