petelomax / phix Goto Github PK
View Code? Open in Web Editor NEWThe Phix Programming Language
Home Page: http://phix.x10.mx/
License: Other
The Phix Programming Language
Home Page: http://phix.x10.mx/
License: Other
The download instructions for Linux indicate that phix can be downloaded using wget
instructions like this:
wget http://phix.x10.mx/phix.1.0.2.zip
...
However, when I do this, I get a 404 error.
I downloaded 8.1 and installed it per the instructions on the website.
I then downloaded a zip of the git repo, unzipped it, named it Phix (8.1 Phix to Phix_old) and copied pw.exe from the old to the new (8.2) file, and used the installation instructions to recompile the compiler using the 8.2 source.
p -test ran fine.
when i go to do pw edita.exw in the proper folder, it fails with the following:
I am also including the text from ex.err as per the screenshot.
ex.txt
This also occurred when I tried to run manip.exw from the pgui launched with pw. Except it was with regards to int and not bool.
If i messed up in some way with my attempt to "update" to 8.2 I apologize for making this mess of a post.
Hello there,
I have a couple of questions about Phix.
First: Can I run it on Mac M1 architecture?
Second: How small it can be? Memory footprint.
Third: Is there any Phix IRC channel or something?
Hi,
I'm porting some old software and stumbled over a weird crash:
global function func1(atom man, atom ecc)
constant P2 = 2*PI;atom m=man/360.0
m = P2*(m-trunc(m));
return m
end function?func1(50.0, 0.9672725)
message is
...\test_bug.ex:12
(warning: lineno of -1 for era of #00685CEC)
fatal exception [MEMORY VIOLATION] at #00685CEC
it seems to crash on the m=P2* ... line ...
Version is 1.0.0 32 Bit on Windows
Greetings
Otto
I was wondering if there is any cross compilation support. For example, from Ubuntu Linux to Windows?
Hi,
t42 failed on Ubuntu 20.04, 64 Bit with Phix 0.8.3 - see below.
Greetings
Otto
Testing[42]: /home/thales/phix/test/t42cback.exw
-77
-77
hello pete
1
1
hello pete
hello pete
{{0}}
hello pete
{{2}}
3
3
hello pete
{{2}}
3
3
handler: 1 2 3 4
handler: #00000001 2 3 4
10
10
handler: 1 2 3 4
handler: #00000001 2 3 4
10
10
-1
the result of 7 * 8.50 is: 4.85876e-309
Is it possible to redirect the output of Phix programs to the lower edita pane?
The constant resizing and closing of terminal windows is annoying.
Thanks for your work!
<<...For example if s="food" then s[2..3]="e" makes s "fed", and then s[2..1]="east" makes s "feasted".>> is wrong.
<<...For example if s="food" then s[2..3]="e" makes s "fed", and then s[2..2]="east" makes s "feasted".>> is correct.
Hi again,
another interesting one:
I crashed with a traced source if I want to check a function parameter.
function with trace call:
1: with trace
2:
3: global function ellip(atom m, atom a, atom ecc)
4: atom k,e,c,s,fac,rho
5: atom x, y, vx, vy
6:
7: trace(1)
8==> k := KGAUSS / sqrt(a);
9: e := eccanom(m,ecc); c:=cs(e); s:=sn(e);
10: fac:= sqrt((1.0-ecc)(1+ecc)); rho:=1.0-eccc;
11: x := a*(c-ecc); y :=afacs; vx:=-ks/rho; vy:=kfac*c/rho;
12:
13: return {x, y, vx, vy}
14: end function
then I want to see 'm' with '?' ... this gives a crash ...
variable name? m
m
pDiagN.e line 3064: oops, rtn[=9476] out of range[1..4113]
pDiagN.e line 3064: oops, rtn[=9488] out of range[1..4113]
pDiagN.e line 3064: oops, rtn[=9516] out of range[1..4113]
pDiagN.e line 3064: oops, rtn[=9584] out of range[1..4113]
pDiagN.e line 3064: oops, rtn[=9645] out of range[1..4113]
/home/thales/work/astro/phix/keplib/ellip.e:-1 (era=#00807E54, from_addr=#41CEDBA9, ret_addr=#41CEDC38) in function ellip()
variable ???(varno=9366) has not been assigned a value
m = 473.8013708
a = 17.93901765
ecc = 0.9672725
k =
e =
c =
s =
fac =
rho =
x =
y =
vx =
Tried to simplify the case with this code:
with trace
function p1(atom a, atom b)
atom cc = a + b
trace(1)return c
end function?p1(2,3)
doesn't crash but the output for the variables is c = 3 b = 8589934592 a = 2
Greetings
Otto
Testing[59]: /home/thales/phix/test/t64struct.exw
[1;5,2] + 1/2 -> [1;1,2,7,36600682685931650]
/home/thales/phix/test/t64struct.exw:598
attempt to divide by 0
greetings
Otto
Hi again,
seems there are still several 64/32 issues. On Win32 the "variable not assigned" message comes nicely for the return statement, on Ubuntu64 we get a segmentation fault ...
Cheers
Otto
function p1()
atom a, ba = 1
if false then
b = 2
end ifreturn {a,b}
end function?p1()
Hi,
on Linux 64 Bit, Phix 1.0.1 if you have
string x
?x
you'll get a seg fault instead of a nice message ...
Greetings
Otto
Hi,
it seems that ubits.e is not autoincluded according to the manual (0.8.1).
Greetings
Otto
tested for Unix and Windows, version 1.0.1
Hi,
the p executable 64bit V1.0.1 worked fine on Ubuntu 20.04.x. Yesterday I upgraded to Ubuntu 22.04 - the p executable crashes with a segmentation violation ...
Greetings
Otto
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.