1. Phix features to import into Open Euphoria
- Posted by GreenEuphorian Dec 22, 2012
- 1875 views
Forked from Re: Information about Phix
I'd like to know which aspects of Phix that you, or others, would like to see implemented in OpenEu. So far I've heard of two ...
- Multiple core support
- Boolean tests in conditional expressions. eg. if Seq1 = Seq2 then ... This currently fails in OpenEu
As far I know, it is Pete's choice not to work on OpenEu project.
Some of the features Pete mentioned (at http://openeuphoria.org/forum/m/117059.wc) would be cool in OE too:
- Named parameters, eg message_box(title:="title", text:="text", style:=MB_OK) works the same as message_box("text","title",MB_OK)
- Direct comparison (eg if name="pete" then)
- Variable length slice assignment (eg s="food" s[2..3]="e"; s is now "fed")
And, of course, if Seq1 = Seq2 then would also be very much appreciated.
Other features that he mentioned somewhere else are related to readability: introducing := for assignments and == for comparisons, while still retaining =, so the code will not be broken.
All improvements to readability, in general, should be welcome to Open Euphoria, I believe.
2. Re: Phix features to import into Open Euphoria
- Posted by BRyan Dec 22, 2012
- 1883 views
I think you will find that Phix is a compiler not an interpreter.
3. Re: Phix features to import into Open Euphoria
- Posted by GreenEuphorian Dec 22, 2012
- 1877 views
I think you will find that Phix is a compiler not an interpreter.
I seem to remember that it was mentioned as an interpreter/compiler.
4. Re: Phix features to import into Open Euphoria
- Posted by petelomax Dec 23, 2012
- 1846 views
I think you will find that Phix is a compiler not an interpreter.
I seem to remember that it was mentioned as an interpreter/compiler.
Absolutely. One of my favorite tricks is "p p p p p p p -cp" which stacks 7 interpreted copies of phix on top of one another, with the last one recompiling itself, and not very noticeably any slower that "p -cp", which is down to 6 and a bit seconds on my new box.
Pete
5. Re: Phix features to import into Open Euphoria
- Posted by GreenEuphorian Dec 24, 2012
- 1732 views
So, I guess the question needs to be asked directly now: what are the chances of seeing *some* features of Phix imported to Euphoria in the near future? I do understand that the codebases of the two projects have considerably diverged, so by importing I do not mean simply doing a copy and paste - I mean reproducing those features in Euphoria.
6. Re: Phix features to import into Open Euphoria
- Posted by petelomax Dec 25, 2012
- 1666 views
So, I guess the question needs to be asked directly now: what are the chances of seeing *some* features of Phix imported to Euphoria in the near future?
It is not really my place to answer but but I will give it a go.
The short answer is: Zero.
The long answer is: We cannot possibly give any meaningful answer to such a non-question. You may as well ask how much does "some stuff" weigh? And actually, when you say "*some* features" it sounds to me that you really don't care what it is, as long as you steal something. There is a world of difference between sharing something someone needs and the greedy pig that just takes.
Pete
7. Re: Phix features to import into Open Euphoria
- Posted by GreenEuphorian Dec 25, 2012
- 1715 views
So, I guess the question needs to be asked directly now: what are the chances of seeing *some* features of Phix imported to Euphoria in the near future?
It is not really my place to answer but but I will give it a go.
The short answer is: Zero.
The long answer is: We cannot possibly give any meaningful answer to such a non-question. You may as well ask how much does "some stuff" weigh? And actually, when you say "*some* features" it sounds to me that you really don't care what it is, as long as you steal something. There is a world of difference between sharing something someone needs and the greedy pig that just takes.
Pete
Pete, if you bother to read the first post in this thread (just scroll to the top of the page), you will see that those features are mentioned. That is clearly what I was referring to.
8. Re: Phix features to import into Open Euphoria
- Posted by petelomax Dec 25, 2012
- 1604 views
Pete, if you bother to read the first post in this thread (just scroll to the top of the page), you will see that those features are mentioned. That is clearly what I was referring to.
Oops. Slight over-reaction there, sorry