1. Phix 0.7.7 uploaded

I've uploaded a new version of Phix: http://phix.x10.mx/download.php (0.7.2 notes: https://openeuphoria.org/forum/130796.wc )

Enjoy,
Pete

new topic     » topic index » view message » categorize

2. Re: Phix 0.7.7 uploaded

Hi

Nice, tested and working here.

What's new?

Is Edix the new Edita (that seemed to have quietly slipped by me, or maybe I wasn't paying attention).

Cheers

Chris

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

3. Re: Phix 0.7.7 uploaded

p32 executed with no errors on my Linux netbook

What is the recommended location for the "/phix" directory?

How you get Phix to execute from other than the "/phix" directory?

_tom

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

4. Re: Phix 0.7.7 uploaded

Thanks Pete.

32 bit installed and working fine here (Win7).

les

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

5. Re: Phix 0.7.7 uploaded

ChrisB said...

What's new?

I listed all the new exciting features in my post above smile
It mainly contains updates to edix and plade aka pGUI-IDE, neither of which are ready yet.

ChrisB said...

Is Edix the new Edita (that seemed to have quietly slipped by me, or maybe I wasn't paying attention).

It will be. I started using it myself about three weeks ago, but it would drive anyone else nuts,
eg it must be restarted after closing files, before (re-)opening anything else, to avoid a crash.

Pete

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

6. Re: Phix 0.7.7 uploaded

_tom said...

p32 executed with no errors on my Linux netbook

Thanks

_tom said...

What is the recommended location for the "/phix" directory?

How you get Phix to execute from other than the "/phix" directory?

I think the correct approach is to put it in your home directory, test it,
then move it to wherever you want it to be, then complain on this list,
explaining precisely what does not work because of that move.
- smile

Pete

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

7. Re: Phix 0.7.7 uploaded

petelomax said...

I think the correct approach is to put it in your home directory, test it,

  • /home

Can only create /home/phix if root; installed anyway:

/home/phix ./p -test

/home/phix/test/t39rndio.exw:51 
attempt to divide by 0 

  • /home/zeven/phix

Where "zeven" is the user for this installation.

No trouble installing.

./p

./p -test

success

open terminal in /phix/demo

p fails
./p fails

petelomax said...

then move it to wherever you want it to be, then complain on this list,
explaining precisely what does not work because of that move.
- smile

Pete

_tom

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

8. Re: Phix 0.7.7 uploaded

try another partitian (same 32-bit netbook)

  • /home/mint/phix
    • passes ./p -test
    • can not open terminal in /phix/demo and get p (./p) to work

Somehow I expect "p" to be in some form of /bin directory with easy access to the include files.

_tom

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

9. Re: Phix 0.7.7 uploaded

_tom said...

/home

Can only create /home/phix if root; installed anyway:

/home/phix ./p -test

/home/phix/test/t39rndio.exw:51 
attempt to divide by 0 

OK, I'm not the best guy to explain anything relating to the linux filesystem to anybody, but it must be a bad idea to create a directory for the non-existent user "phix", and the test is crashing because you don't have the correct permissions to write in "someone else's" home directory.

It is fair to say that things really need restructuring to separate where the executables and any write-able files are, and that is as true on windows as it is on linux - but that really needs to be a group effort though, not all on me.

_tom said...

open terminal in /phix/demo

p fails
./p fails

OK, again not the best guy, but you want some path settings, someone else want to chime in?

Pete

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

10. Re: Phix 0.7.7 uploaded

Tried the brutal method; using root

  • copied the contents of /phix straight to /usr/bin
  • gave permissions to "zeven"
  • p -test

    passes

(where "zeven" is the user; ZevenOS is a Linux made to look like BeOS from pre-history)

I can now open a terminal anywhere and execute p

The brutal method works if you have an ancient netbook dedicated to this purpose.

Thanks Pete,

_tom

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

11. Re: Phix 0.7.7 uploaded

Hi Pete

in edix.exw

include src/dir.e -- DEV xExtractAssociatedIcon, getBackupSet
include src/qj.e -- currProjFileSet("")

Windows, edix, the above two files aren't in the src directory.

Cheers

Chris

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

12. Re: Phix 0.7.7 uploaded

hi,

i am new to phix and i really like what i read in the docs so far. no i try to program something - but is there a usable editor to use? the conversion to the 64 bit phix worked like a charm.

i have 2 questions, as i must use the 64 bit version:

1.) what editor? 2.) how can i use a phix dll from other languages (sequence etc.)

thanks for that great compiler/tool.

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

13. Re: Phix 0.7.7 uploaded

ChrisB said...

Windows, edix, the above two files aren't in the src directory.

Thanks, you may also be missing compare/plan9/fif/htmlise.

Pete

PS: Edix just crashed on me twice, simply trying to test this, in the last two minutes, and by that I mean after all the needed files were in place!

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

14. Re: Phix 0.7.7 uploaded

begin said...

hi,

i am new to phix and i really like what i read in the docs so far. no i try to program something - but is there a usable editor to use? the conversion to the 64 bit phix worked like a charm.

i have 2 questions, as i must use the 64 bit version:

1.) what editor?

Sorry, win32-only Edita is the only stable one right now. You could try compiling that as a 32-bit executable (just add "format PE32" at the top of edita.exw), perhaps?
I have only just last month started using the planned replacement, Edix, which will be 64-bit compatible, but still at least a few months away and trust me it would drive you nuts.
There isn't anything particularly wrong with having both 32 and 64 bit versions of Phix knocking about at the same time, even in the same directory, as say p[w].exe (64bit) and p[w]32.exe (32bit).
Can I ask why you must use the 64 bit version?

begin said...

2.) how can i use a phix dll from other languages (sequence etc.)

Erm, the final answer is going to be read the documentation of the other languages.
I will say that they will not understand sequences, so you cannot pass one in or return one out.
Myself, I would write a full suite of test calls in Phix, before going anywhere near another language.

HTH, Pete

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

15. Re: Phix 0.7.7 uploaded

well with the editors is too bad.

i am willing to write a scanner/parser/generator for a customer and by now, NOBODY wants 32bit anymore, 64 bit is an absolute must.

i usually use a "https://www.modula2.org/adwm2/" modula-2 (32/64 - with objects - free) for projects, but want to use something else. it very easy to call other language-dll from this compiler, but one has to know how the internal format of sequences etc is.

richard

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

16. Re: Phix 0.7.7 uploaded

petelomax said...
ChrisB said...

Windows, edix, the above two files aren't in the src directory.

Thanks, you may also be missing compare/plan9/fif/htmlise.

Pete

PS: Edix just crashed on me twice, simply trying to test this, in the last two minutes, and by that I mean after all the needed files were in place!

Good to know!

Cheers

Chris

ps - just realised - is that the plan from outer space?

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

17. Re: Phix 0.7.7 uploaded

begin said...

by now, NOBODY wants 32bit anymore, 64 bit is an absolute must.

I strongly disagree.
Obviously, ALL applications MUST run on a 64-bit OS.
That is a completely different requirement to the application must be 64-bit.
In fact you just said you successfully ran a 32-bit Phix, presumably on a 64-bit box, to create a 64-bit Phix.
See what I mean?

Of course if you are calling a dll from some other 64-bit language, it must be a 64-bit dll, totally conceded.
You could in fact do 95% of the work in 32-bit Phix, if that helps any, and only at the last moment package

-- myapp64.exw 
format PE64 DLL 
include myapp32.exw 

But you don't even have to do that. I cannot think of any problems with using a 32-bit Edita to develop 64-bit code, other than either tweaking options/File Extensions to use the 64-bit compiler, or remembering to put format PE64 at the start of the main source files.

Anyway, surely you already have a favorite editor, what is it and is there something wrong with that?
If you are just looking for syntax-coloring, there may well already be something you could use for that editor.

begin said...

but one has to know how the internal format of sequences etc is.

The structure itself is not the issue.
See builtins\VM\pHeap.e, line 110, for the full details.
The problem is more of ownership, i.e. getting the reference counting right, and who gets to delete it.
It would probably not be difficult to create a bunch of low-level routines as part of the dll to create/append/subscript/decref/etc a sequence.
I am just worried that doing so might be rather fiddly, error prone, and not really worthwhile.

Pete

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

18. Re: Phix 0.7.7 uploaded

"I strongly disagree. Obviously, ALL applications MUST run on a 64-bit OS. That is a completely different requirement to the application must be 64-bit. In fact you just said you successfully ran a 32-bit Phix, presumably on a 64-bit box, to create a 64-bit Phix. See what I mean? "

you are wright - but my opinion is worth noting, when companies have different views/rules.

"The structure itself is not the issue. See builtins\VM\pHeap.e, line 110, for the full details. The problem is more of ownership, i.e. getting the reference counting right, and who gets to delete it. It would probably not be difficult to create a bunch of low-level routines as part of the dll to create/append/subscript/decref/etc a sequence. I am just worried that doing so might be rather fiddly, error prone, and not really worthwhile. "

you are wright, it might be rather fiddly. i guess i have to start to learn about pgui, interface pdfium and cryptosyspki, ... but i am optimistic, that one can do with the interpreter compiler and the language things pretty quick.

thank you very much for all the info.

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

19. Re: Phix 0.7.7 uploaded

One way to get Phix working on Linux:


Download Phix

You need three files:

  • phix.0.7.7.1.zip
  • phix.0.7.7.2.zip
  • p32 or p64 (match the bits of your computer)

Create phix Folder

  • Make a phix folder. The suggested location is:
    /home/user/phix
  • Open the .zip files with the Archive Manager and Extract the files to ../phix
  • Copy p32 (or p64) to ../phix

Copy Files

Copy the essential Phix files to a /bin folder.

Folder Comments
/usr/bin may be crowded
/usr/local/bin a good choice
/home/bin available on some Puppy Linux
  • copy p32 or p64 to ../bin
  • rename to "p"
  • change "p" permissions to "executable" or "allow running as a program"
  • copy the ../phix/builtins folder to ../bin

This is enough to run console programs in a terminal.

Test Phix

In the ./phix folder open a terminal and test the interpreter:

$ p -test 

You can now explore the demo programs in the /phix folder.

_tom

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

20. Re: Phix 0.7.7 uploaded

_tom said...
  • Make a phix folder. The suggested location is:
    /home/user/phix
  • Open the .zip files with the Archive Manager and Extract the files to ../phix
  • Copy p32 (or p64) to ../phix

By ../phix did you mean ~/phix?

  • "../" means the parent directory
  • "./" means the current directory
  • "~/" means the user's home directory

-Greg

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

21. Re: Phix 0.7.7 uploaded

Windows

Follow the instructions at http://phix.x10.mx/download.php

Linux

  • download and copy Phix files to some "phix" folder
  • copy essential files to some "bin" folder

Download Phix

Visit http://phix.x10.mx/download.php

You need three files:

  • phix.0.7.7.1.zip
  • phix.0.7.7.2.zip
  • p32 or p64 (match the bits of your computer)

phix Folder

  • Make a phix folder. The suggested location is:
    /home/user/phix
  • Open the .zip files with the Archive Manager and Extract the files to /home/user/phix
  • Copy p32 (or p64) to /home/user/phix

Install

Copy the essential Phix files to a "bin" folder.

Folder Comments
/usr/bin may be crowded
/usr/local/bin a good choice
/home/bin available on some Puppy Linux
  • copy p32 or p64 to /usr/local/bin
  • rename to "p"
  • change "p" permissions to "executable" or "allow running as a program"
  • copy the /home/user/phix/builtins folder
    to /usr/local/bin

This is enough to run console programs in a terminal.

still needed

  • install iup binary runtime
  • install gGUI files

What you get

  • p will run from any open terminal
  • you can compile p.exw only from the "phix" folder
  • you can run demo programs
  • Warning: many of the demo programs are Windows only

Test Phix

In the /home/user/phix folder open a terminal and test the interpreter:

$ p -test 

You can now explore the demo programs in the /home/user/phix folder.


thanks Greg

_tom

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

22. Re: Phix 0.7.7 uploaded

ybshare link never responds, so can't try phix

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

23. Re: Phix 0.7.7 uploaded

irv said...

ybshare link never responds, so can't try phix

I've uploaded them to openeuphoria.org so you can download them.

Try these links:

http://openeuphoria.org/eubins/p32

http://openeuphoria.org/eubins/phix.0.7.7.2.zip

http://openeuphoria.org/eubins/phix.0.7.7.1.zip

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

24. Re: Phix 0.7.7 uploaded

irv said...

ybshare link never responds, so can't try phix

Thanks for letting me know. I have added a couple of backup links, which should help.
Note the .zip files are on the main site, so they should always be downloadable - it is just the windows installer that has to be off-site (as it is >10MB).

One day I'll get round to a proper (as in small and fully integrated) zip extractor, so I can host a <10MB windows installer that downloads more stuff and puts things in the right place...

Pete

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

Search



Quick Links

User menu

Not signed in.

Misc Menu