1. Using Win32Lib-IDE with Euphoria 4.0 (Alpha)
- Posted by euphoric (admin) Oct 03, 2008
- 1550 views
Here are the required changes to run Win32Lib IDE with Euphoria 4.0:
First, copy the Euphoria 3.x include files into the Euphoria 4.0 include folder.
Then make changes to these files:
File | lines | change |
ide.exw | 2855 to 2904 | change integer variable 'continue' to 'iContinue' |
ide_config.ew | 473 to 480 | change sequence variable 'entry' to 'sEntry' |
ide_draw.ew | 213 to 467 | change sequence variable 'entry' to 'sEntry' |
ide_syntax.ew | 835 to 843, 1817 to 1825, 2176 to 2184 | change loop variable 'loop' to 'iloop' |
This allows Win32Lib-IDE to run translated. However, when I bind it, it crashes and gives me an empty ex.err. Somebody should look into that one.
2. Re: Using Win32Lib-IDE with Euphoria 4.0 (Alpha)
- Posted by mattlewis (admin) Oct 03, 2008
- 1544 views
Yes, definitely. Is there any noticeable difference in start up time?
Matt
3. Re: Using Win32Lib-IDE with Euphoria 4.0 (Alpha)
- Posted by euphoric (admin) Oct 03, 2008
- 1535 views
Is there any noticeable difference in start up time?
Upon close examination, the difference appears to be half a second. 311 starts in about 2, and 40a starts in about 2.5. This is using a stopwatch in my head. YMMV.
4. Re: Using Win32Lib-IDE with Euphoria 4.0 (Alpha)
- Posted by RStowasser Oct 03, 2008
- 1514 views
Here are the required changes to run Win32Lib IDE with Euphoria 4.0:
Using IDE1.04, IDE and editor should run without changes using Euphoria 4.0 (rev 1188) and the include files of version 3.11 in the include folder.
It is also possible to change Win32lib to use only the std/include files. But it is some work and I think CChris can do this more effective. But I know it is possible. Most of the demos work unchanged. I also managed to run IDE and editor after changing the include statements of many of the files in IDE's include folder. But with rev 1188 IDE starts slower with the 4.0 include files than with the include files of 3.11. I do not see a visual difference of speed of the compiled versions, only the size of the compiled files with the include files of version 4.0 is bigger.
Roland
5. Re: Using Win32Lib-IDE with Euphoria 4.0 (Alpha)
- Posted by mattlewis (admin) Oct 03, 2008
- 1565 views
Here are the required changes to run Win32Lib IDE with Euphoria 4.0:
Actually, I just grabbed a fresh IDE and Win32Lib, and they work out of the box (well, except for the garbage on the last line...not sure what that was).
I commented out the splash screen opening and the call to WinMain (so there's some execution going on in there) and I got ~3 and ~3.5 for 3.1.1 and 4.0, respectively. Interestingly, running with the -test option, it cuts about a second off of the 4.0 time, so I guess that there's some serious initialization done in there.
And I think now there may be some justification (though probably not a huge amount of gain here) for taking another look at the hash function being used in parsing. I measured the frequency of the number of symbols that we had to look at before we could resolve a symbol. Obviously, these numbers and examples will change with each program. The real challenge is that the current function looks like it's pretty quick to calculate.
Here are the results:
Symbols Looked At | Frequency | Pct | Cumulative | Sample Name |
1 | 104871 | 37.82% | 37.82% | Controls |
2 | 27846 | 10.04% | 47.86% | attachCleanUp |
3 | 58057 | 20.94% | 68.80% | end |
4 | 29560 | 10.66% | 79.46% | LastCleanUp |
5 | 19991 | 7.21% | 86.67% | function |
6 | 24046 | 8.67% | 95.34% | return |
7 | 4960 | 1.79% | 97.13% | setTimer |
8 | 4615 | 1.66% | 98.80% | crashName |
9 | 1744 | 0.63% | 99.42% | VOID |
10 | 1044 | 0.38% | 99.80% | updateKeywords |
11 | 304 | 0.11% | 99.91% | w32HTimer |
12 | 86 | 0.03% | 99.94% | Long |
13 | 94 | 0.03% | 99.98% | getVScrollPos |
14 | 4 | 0.00% | 99.98% | cfgBackupFolderName |
15 | 2 | 0.00% | 99.98% | getAppState |
16 | 1 | 0.00% | 99.98% | setProtectedHandler |
17 | 2 | 0.00% | 99.98% | setTransparentColor |
18 | 2 | 0.00% | 99.98% | save_as_xpm |
19 | 1 | 0.00% | 99.98% | clock_run_xpm |
20 | 2 | 0.00% | 99.98% | ButtonY |
21 | 28 | 0.01% | 99.99% | setPropWaitForEnter |
22 | 26 | 0.01% | 100.00% | setPropWaitForEnter |
Matt
6. Re: Using Win32Lib-IDE with Euphoria 4.0 (Alpha)
- Posted by euphoric (admin) Oct 03, 2008
- 1517 views
I obviously wasn't up-to-date with my IDE.
Okay, so I'll update now!