1. Phix 0.7.7 uploaded
- Posted by petelomax Jan 09, 2018
- 2487 views
- Last edited Aug 09, 2023
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
2. Re: Phix 0.7.7 uploaded
- Posted by ChrisB (moderator) Jan 09, 2018
- 2394 views
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
3. Re: Phix 0.7.7 uploaded
- Posted by _tom (admin) Jan 09, 2018
- 2371 views
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
4. Re: Phix 0.7.7 uploaded
- Posted by lesterb Jan 09, 2018
- 2366 views
Thanks Pete.
32 bit installed and working fine here (Win7).
les
5. Re: Phix 0.7.7 uploaded
- Posted by petelomax Jan 09, 2018
- 2348 views
What's new?
I listed all the new exciting features in my post above
It mainly contains updates to edix and plade aka pGUI-IDE, neither of which are ready yet.
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
6. Re: Phix 0.7.7 uploaded
- Posted by petelomax Jan 09, 2018
- 2343 views
p32 executed with no errors on my Linux netbook
Thanks
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.
-
Pete
7. Re: Phix 0.7.7 uploaded
- Posted by _tom (admin) Jan 09, 2018
- 2335 views
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
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.
-
Pete
_tom
8. Re: Phix 0.7.7 uploaded
- Posted by _tom (admin) Jan 09, 2018
- 2350 views
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
9. Re: Phix 0.7.7 uploaded
- Posted by petelomax Jan 09, 2018
- 2333 views
/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.
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
10. Re: Phix 0.7.7 uploaded
- Posted by _tom (admin) Jan 09, 2018
- 2382 views
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
11. Re: Phix 0.7.7 uploaded
- Posted by ChrisB (moderator) Jan 10, 2018
- 2284 views
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
12. Re: Phix 0.7.7 uploaded
- Posted by begin Jan 10, 2018
- 2249 views
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.
13. Re: Phix 0.7.7 uploaded
- Posted by petelomax Jan 10, 2018
- 2279 views
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!
14. Re: Phix 0.7.7 uploaded
- Posted by petelomax Jan 10, 2018
- 2247 views
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?
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
15. Re: Phix 0.7.7 uploaded
- Posted by begin Jan 10, 2018
- 2285 views
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
16. Re: Phix 0.7.7 uploaded
- Posted by ChrisB (moderator) Jan 10, 2018
- 2238 views
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?
17. Re: Phix 0.7.7 uploaded
- Posted by petelomax Jan 10, 2018
- 2251 views
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.
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
18. Re: Phix 0.7.7 uploaded
- Posted by begin Jan 10, 2018
- 2228 views
"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.
19. Re: Phix 0.7.7 uploaded
- Posted by _tom (admin) Jan 11, 2018
- 2207 views
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
20. Re: Phix 0.7.7 uploaded
- Posted by ghaberek (admin) Jan 11, 2018
- 2197 views
- 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
21. Re: Phix 0.7.7 uploaded
- Posted by _tom (admin) Jan 11, 2018
- 2329 views
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
22. Re: Phix 0.7.7 uploaded
- Posted by irv Jan 15, 2018
- 2021 views
ybshare link never responds, so can't try phix
23. Re: Phix 0.7.7 uploaded
- Posted by jimcbrown (admin) Jan 15, 2018
- 1985 views
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
24. Re: Phix 0.7.7 uploaded
- Posted by petelomax Jan 16, 2018
- 1951 views
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