1. Euphoria Demos
- Posted by jimcbrown (admin) Mar 24, 2010
- 1369 views
Forked from Re: Euphoria to C
Please suggest a working, translatable, and compilable, program that I and other new users can use to get a demonstration of the benefits of translation.
For starters, multiple demos are included in the beta 2 and beta 3 sources.
For Euphoria 3.1.1, I believe Edita is the best real world example.
2. Re: Euphoria Demos
- Posted by petelomax Mar 25, 2010
- 1214 views
I believe Edita is the best real world example.
Thank you! But has anyone actually tried it yet?
Pete
3. Re: Euphoria Demos
- Posted by Jesse Mar 25, 2010
- 1226 views
I have tried to translate edita.exw with the following command.
Looking for an easier target in the demo folder that came with the Euphoria 4 R3 release I attempted:
and got:
so I didn't bother trying to translate it. (Oddly, if I just type sieve8k.exw a console window binks in and out of existence. So I understand that these files are executable without explicitly calling the interpreter. In fact taskwire.exw works if I just call it, but it produces an error if I type "exw taskwire.exw".)
euc taskwire.exw was successful in creating an executable. Unfortunately I couldn't see any difference in the rendering speed. The good news is that it works!
bench.ex doesn't work.
Going back to the archives I found: http://www.rapideuphoria.com/shootout.zip. This package also features a bench.ex. The default test ran with errors so I modified the list to:
The nbody test ran without errors, so I attempted to translate bench.ex.
Success! bench.exe runs and the results are... slower than the interpreted bench.ex. This is just one test, (after a string of outright failures,) but my enthusiasm is waning.
-edit: I am using version 4 beta 3.
4. Re: Euphoria Demos
- Posted by irv Mar 25, 2010
- 1174 views
C:\euphoria4\include\std/get.e:3 namespace has not been declared namespace stdget ^
Someone here can tell how far back that goes. You might try removing all euphoria folders and code from your machine, and starting fresh.
The compiler works (at least in Linux) - I always compile one program before I make a release of my EuGTK library. However, if you are expecting to see some miraculous speed increase, it isn't going to happen. Euphoria is already fast in interpreted mode, and only a few specialized tasks are going to benefit from the extra minor speed increase. Most differences are completely masked by the OS and user-interface overhead.
5. Re: Euphoria Demos
- Posted by jimcbrown (admin) Mar 25, 2010
- 1164 views
euc and eui are the commands for 4.0 beta 3. ecw and exw are older commands for 3.1.1
Edita is known not to work with 4.0, and the translation errors you had for ecw (which must be Euphoria 3.1.1) appear to be caused by the use of the euphoria.h file from euphoria4. When using Euphoria 3.1.1, you need to make sure that %EUDIR% points to the Euphoria 3.1.1 directory so the correct files are used. (This is only an issue when a person has multiple Euphoria versions installed at the same time.)
6. Re: Euphoria Demos
- Posted by Jesse Mar 25, 2010
- 1143 views
Haha, okay. I cleaned up my 3.1 rapideuphoria install. How can I help with the manual? Statements like, "This will give you an executable file that will typically run much faster than if you used the Euphoria interpreter." are somewhat misleading. My suggestion is to keep the copy of the manual for reference, but earmark it with a big disclaimer and petition the users to transfer anything that is actually useful over to the wiki. In time the wiki will probably make a better manual. Thanks everyone,
7. Re: Euphoria Demos
- Posted by _tom (admin) Mar 25, 2010
- 1124 views
I don't expect to do any work on the Eu3 documentation.
As to the e}4 documentation, just send you comments to this form. All comments are welcome.
I am open to ideas as to how to make the documentation easier to navigate.
I also invite anyone to contribute demos that can be added to the documentation.
Don't worry about the format and details of your contributions--I will worry such things.