1. Double trouble
- Posted by irv May 29, 2012
- 1729 views
I have a new version of EuGtk which runs on both 32 and 64-bit processors (at least the ones that I own), using Euphoria 4.1.0. Download EuGTK4.6.0: https://sites.google.com/site/euphoriagtk/
There remains one problem. A few GTK routines require 6 or 7 doubles to be passed to them. The 32-bit version of Eu 4.1 handles this just fine, but the 64-bit goes astray. Here's a test to show what happens:
// dbl.c #include <stdio.h> void display_double(double d1, double d2, double d3, double d4, double d5, double d6) { printf("One %g\n",d1); printf("Two %g\n",d2); printf("Three %g\n",d3); printf("Four %g\n",d4); printf("Five %g\n",d5); printf("Six %g\n",d6); }
--dbl.ex include std/machine.e include std/dll.e atom lib = open_dll("./dbl.so") atom fn = define_c_proc(lib,"displaydouble",{C_DOUBLE,C_DOUBLE,C_DOUBLE,C_DOUBLE,C_DOUBLE,C_DOUBLE}) c_proc(fn,{1.1,1.2,1.3,1.4,1.5,1.6})
Eu 4.1.0 in 64-bit version prints a bogus value for Six. Fortunately, this problem only affects a couple of Cairo graphic routines.
2. Re: Double trouble
- Posted by mattlewis (admin) May 29, 2012
- 1732 views
I have a new version of EuGtk which runs on both 32 and 64-bit processors (at least the ones that I own), using Euphoria 4.1.0. Download EuGTK4.6.0: https://sites.google.com/site/euphoriagtk/
There remains one problem. A few GTK routines require 6 or 7 doubles to be passed to them. The 32-bit version of Eu 4.1 handles this just fine, but the 64-bit goes astray.
I'm not terribly surprised. I'll take a look at what it's doing.
Matt
3. Re: Double trouble
- Posted by mattlewis (admin) May 30, 2012
- 1660 views
I have a new version of EuGtk which runs on both 32 and 64-bit processors (at least the ones that I own), using Euphoria 4.1.0. Download EuGTK4.6.0: https://sites.google.com/site/euphoriagtk/
There remains one problem. A few GTK routines require 6 or 7 doubles to be passed to them. The 32-bit version of Eu 4.1 handles this just fine, but the 64-bit goes astray.
I'm not terribly surprised. I'll take a look at what it's doing.
Looks like we weren't using all of the registers correctly. New 4.1 64-bit eubin (13MB).
Matt
4. Re: Double trouble
- Posted by irv Jun 01, 2012
- 1446 views
Looks like we weren't using all of the registers correctly. New 4.1 64-bit eubin (13MB).
Matt
erm... when I download this I get 512 bytes. It gets blocked somewhere, probably because the name's too long, since I can download the other files at that location no problem.
5. Re: Double trouble
- Posted by jimcbrown (admin) Jun 01, 2012
- 1443 views
Looks like we weren't using all of the registers correctly. New 4.1 64-bit eubin (13MB).
Matt
erm... when I download this I get 512 bytes. It gets blocked somewhere, probably because the name's too long, since I can download the other files at that location no problem.
I just tried it and it downloads fine for me.
6. Re: Double trouble
- Posted by jimcbrown (admin) Jun 01, 2012
- 1463 views
Looks like we weren't using all of the registers correctly. New 4.1 64-bit eubin (13MB).
Matt
erm... when I download this I get 512 bytes. It gets blocked somewhere, probably because the name's too long, since I can download the other files at that location no problem.
I just tried it and it downloads fine for me.
Just in case, I've put it up at an alternative location. (For anyone who is not irv - please try the SF link first.)
http://malcom.unkmar.com/lostsouls/euphoria-4.1.0-Linux-ix86_64-2012-05-30-cbe08aedf560.tar.gz
7. Re: Double trouble
- Posted by mattlewis (admin) Jun 01, 2012
- 1422 views
Looks like we weren't using all of the registers correctly. New 4.1 64-bit eubin (13MB).
Just in case, I've put it up at an alternative location. (For anyone who is not irv - please try the SF link first.)
Just to be clear, the link I posted is hosted right here on openeuphoria.org. And it also works for me.
Matt
8. Re: Double trouble
- Posted by jimcbrown (admin) Jun 01, 2012
- 1457 views
Looks like we weren't using all of the registers correctly. New 4.1 64-bit eubin (13MB).
Just in case, I've put it up at an alternative location. (For anyone who is not irv - please try the SF link first.)
Just to be clear, the link I posted is hosted right here on openeuphoria.org. And it also works for me.
Matt
Oops, sorry. Please try the openeuphoria.org link first, in that case. :) Also available in zip format.
http://malcom.unkmar.com/lostsouls/euphoria-4.1.0-Linux-ix86_64-2012-05-30-cbe08aedf560.zip
9. Re: Double trouble
- Posted by irv Jun 01, 2012
- 1451 views
It's apparently blocked by the school. I got it from the other location. THANKS!
Request denied by WatchGuard HTTP proxy. Reason: reputation Method: GET Host: openeuphoria.org Path: /eubins/linux/4.1.0/64-bit/euphoria-4.1.0-Linux-ix86_64-2012-05-30-cbe08aedf560.tar.gz
(I didn't know we had a reputation :{ }
10. Re: Double trouble
- Posted by mattlewis (admin) Jun 01, 2012
- 1466 views
It's apparently blocked by the school. I got it from the other location. THANKS!
Request denied by WatchGuard HTTP proxy. Reason: reputation Method: GET Host: openeuphoria.org Path: /eubins/linux/4.1.0/64-bit/euphoria-4.1.0-Linux-ix86_64-2012-05-30-cbe08aedf560.tar.gz
(I didn't know we had a reputation :{ }
I took a look at WatchGuard's site, and queried their reputation database, and they don't appear to have anything about this site, so our reputation is listed as "neutral," which makes sense to me. Assuming that you're posting to the forum through their network, I suspect there's some higher threshold set for downloading large files...or something like that.
Or maybe the local administrator has some custom settings applied.
Matt