Giter Site home page Giter Site logo

petelomax / phix Goto Github PK

View Code? Open in Web Editor NEW
50.0 50.0 2.0 424.58 MB

The Phix Programming Language

Home Page: http://phix.x10.mx/

License: Other

Euphoria 60.66% Batchfile 0.03% C 0.12% Assembly 28.81% HTML 0.59% Go 0.17% CSS 0.27% PHP 0.02% Python 0.32% JavaScript 9.01%
phix

phix's People

Contributors

petelomax avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

phix's Issues

Strange Error when attempting to use 8.2

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:
image

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.

Where I can ask Phix questions?

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?

weird memory violation

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

Cross compilation?

I was wondering if there is any cross compilation support. For example, from Ubuntu Linux to Windows?

t42 failed

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

Show program output in edita pane

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!

A little mistake on "Readme" section

<<...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.

problem with trace and function parameters

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 c

c = 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

t64 test fails with 0.8.2

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

64 bit crash on Ubuntu with uninitialized vars

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, b

a = 1
if false then
b = 2
end if

return {a,b}
end function

?p1()

autoinclude ubits.e

Hi,

it seems that ubits.e is not autoincluded according to the manual (0.8.1).

Greetings
Otto

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.