1. Trying Phix

Hi Pete

Thought I'd play with Phix.

After the install, I got this

"D:
Phix" Cannot open autoinclude VM\pcallfunc.e in D:\Phix\, D:\Phix\builtins\VM\, D:\Phix\builtins\, or C:\EUPHORIA\INCLUDE\.

Press Enter, or d for diagnostics...

and indeed pcallfunc.e does not exist in that directory, or any where else that I can see.

Cheers

Chris

new topic     » topic index » view message » categorize

2. Re: Trying Phix

Hi

nor does pAlloc.e (whentrying to run helloutf8 and several other demos)

Cheers

Chris

new topic     » goto parent     » topic index » view message » categorize

3. Re: Trying Phix

Thanks. I am working on a new release, both the above have been addressed internally, but it'll be a while.

If you cannot wait, you can grab any missing files from https://bitbucket.org/petelomax/phix/src - as per that, pcallfunc.e lives in builtins\VM whereas pAlloc.e lives in builtins\

Pete

new topic     » goto parent     » topic index » view message » categorize

4. Re: Trying Phix

petelomax said...

Thanks. I am working on a new release, both the above have been addressed internally, but it'll be a while.

If you cannot wait, you can grab any missing files from https://bitbucket.org/petelomax/phix/src - as per that, pcallfunc.e lives in builtins\VM whereas pAlloc.e lives in builtins\

Pete

I am also interested in Phix. I tried it once, but had the same problem as Chris. Would you mind explaining what the significance of Phix is, and how it compares to OpenEuphoria? And how does it build/compile itself compared to how OpenEuphoria binds/translates? What are your future plans for Phix? I am really curious.

new topic     » goto parent     » topic index » view message » categorize

5. Re: Trying Phix

Hi Pete

pCrashN.e is also missing - found it.

Chris

new topic     » goto parent     » topic index » view message » categorize

6. Re: Trying Phix

ryanj said...

Would you mind explaining what the significance of Phix is, and how it compares to OpenEuphoria?

See http://openeuphoria.org/forum/m/117059.wc

To that I would add native threads are complete and that Phix self-hosts on Linux, though not much else works there yet. Two other things I know are missing are regular expressions and sockets.

ryanj said...

And how does it build/compile itself compared to how OpenEuphoria binds/translates?

Phix is self hosted, no other tools required. All done in 15 seconds or less - just run "p -c p", or "./phix -c p" on Linux.

ryanj said...

What are your future plans for Phix?

Just today, I got my first ever pure-Phix dll working, in preparation for getting .so to run properly on Linux (whether pure-Phix or not), and getting more things working on Linux is top of the list (or should be, I keep on finding excuses to do more Windows stuff, like creating dlls, porting Edita to pGUI/IUP, or yet more rosettacode entries).

Pete

new topic     » goto parent     » topic index » view message » categorize

7. Re: Trying Phix

Where I find pAlloc.e ? and whehe i put it?

Phix hybrid interpreter/compiler. 
 
Version 0.6.8 (32 bit Windows) Copyright Pete Lomax 2006..2015 
 
Enter ? for options or filename to execute:demo\hd 
"C:\\Program Files\\Phix" 
Cannot open autoinclude pAlloc.e 
in C:\Program Files\Phix\demo\, 
   C:\Program Files\Phix\, 
   C:\Program Files\Phix\builtins\VM\, 
   C:\Program Files\Phix\builtins\, 
   C:\EUPHORIA\WIN32LIB\INCLUDE\, 
or C:\euphoria\include\. 
new topic     » goto parent     » topic index » view message » categorize

8. Re: Trying Phix

I find pAlloc.e in https://bitbucket.org/petelomax/phix/raw/772b4c59b783910a1ad6b6d82046c5ff7f5999d2/builtins/pAlloc.e and install it in builtin folder Solved question :)

new topic     » goto parent     » topic index » view message » categorize

9. Re: Trying Phix

What should I do to solve this error?

C:\euphoria\win32Lib\Include\w32utils.e:350 
        for i=1 to length(a) do 
                          ^ incompatible type for routine signature 
 
 
...included by C:\euphoria\win32Lib\Include\w32support.e, line 4 
...included by C:\euphoria\win32Lib\Include\win32lib.ew, line 574 
...included by c:\001We\00We\we.exw, line 156 
 
C:\euphoria\win32Lib\Include\w32utils.e:295 
    return floor(remainder({a,a/#10000},#10000)) 
                 ^Warning: sq_rmdr assumed 
new topic     » goto parent     » topic index » view message » categorize

10. Re: Trying Phix

sergelli said...

What should I do to solve this error?

C:\euphoria\win32Lib\Include\w32utils.e:350 
        for i=1 to length(a) do 
                          ^ incompatible type for routine signature 
 
 
...included by C:\euphoria\win32Lib\Include\w32support.e, line 4 
...included by C:\euphoria\win32Lib\Include\win32lib.ew, line 574 
...included by c:\001We\00We\we.exw, line 156 
 
C:\euphoria\win32Lib\Include\w32utils.e:295 
    return floor(remainder({a,a/#10000},#10000)) 
                 ^Warning: sq_rmdr assumed 

Phix\demo\win32lib\w32utils.e contains

--PL 27/07/09: (DEV: untested) 
--      for i=1 to length(a) do 
        for i=1 to length(b) do 

(in both w32remainder() and w32round())
Rather cleverly and quite correctly, the Phix compiler has spotted a bug in the code for you that OE completely missed, albeit one (erm, two) that no-one has ever reported, either.

You could get rid of the other warning with either

    return sq_floor(sq_rmdr({a,a/#10000},#10000)) 

or, more compatible with OE,

    return {floor(remainder(a,#10000)),floor(remainder(a/#10000,#10000))} 

I personally ditched win32lib over a decade ago, I think arwen is better, but still windows 32 bit only, and plan on using pGUI (32/64 bit, and win/lnx) from now on.
You may or may not find using the demo\win32lib\ version goes better than the one you have installed for OE, but it may not be the latest version.

Oh - I just checked and actually Phix ships with demo\win32lib6\, which is even older, v0.60.6 from 2004, and there's no w32utils.e in that version.
Then again, I suppose I should just say outright that I have no time or sympathy for anyone who "cannot live without win32lib"!
Nah - that's too harsh. Instead I'll say "If you need a later Phix-compatible win32lib, tell me the version and I'll see what I can do."

Pete

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu