Re: announcing fython

2016-10-03 Thread nicolasessisbreton
>Have you looked at f2py? >There is also fortran magic for Jupyter notebooks >f90wrap extends f2py to support modern Fortran f2py and others are great to use static Fortran code, like LAPACK or BLAS. By static, I mean that no change is necessary to the Fortran code. Fython can do that too, and als

Re: announcing fython

2016-10-02 Thread Denis Akhiyarov
On Sunday, October 2, 2016 at 10:57:57 AM UTC-5, nicolases...@gmail.com wrote: > >One problem with using very similar syntax for distinct languages is that it > >can get confusing. > > The first inspiration for Fython was to be close to Fortran, while improving > the syntax. The project is in th

Re: announcing fython

2016-10-02 Thread nicolasessisbreton
>One problem with using very similar syntax for distinct languages is that it >can get confusing. The first inspiration for Fython was to be close to Fortran, while improving the syntax. The project is in the early days, so all suggestions are welcome. Some difference to the Python language are

Re: announcing fython

2016-10-02 Thread BartC
On 02/10/2016 14:43, nicolasessisbre...@gmail.com wrote: **Is Fython a full-featured Python implementation that compiles to Fortran, or a thin wrapper around Fortran that uses Python syntax, or something in between? It's something in between. Fython is a programming langugage with its own synt

Re: announcing fython

2016-10-02 Thread nicolasessisbreton
**Is Fython a full-featured Python implementation that compiles to Fortran, or a thin wrapper around Fortran that uses Python syntax, or something in between? It's something in between. Fython is a programming langugage with its own syntax. For example def mean: int in

Re: announcing fython

2016-10-01 Thread Raoul Fleckman
On 2016-10-02, nicolasessisbre...@gmail.com : > **How does this compare to Python+Numpy? > **How much faster is Fython, and what are the restrictions on the > **Python code? > > Python+Numpy allows easy processing of vector, but there is a limit to > how much user-defined logic can be used with N

Re: announcing fython

2016-10-01 Thread Michael Torrie
On 10/01/2016 09:06 PM, Chris Angelico wrote: > On Sun, Oct 2, 2016 at 1:58 PM, wrote: >> Fython speed is the same as Fortran speed. >> >> There is no restriction on the Python code. >> Once a Fython program is avalaible, Python can throw any scalar or Numpy >> array at it. >> >> For the program

Re: announcing fython

2016-10-01 Thread Chris Angelico
On Sun, Oct 2, 2016 at 1:58 PM, wrote: > Fython speed is the same as Fortran speed. > > There is no restriction on the Python code. > Once a Fython program is avalaible, Python can throw any scalar or Numpy > array at it. > > For the programmer convenience, like Fortran, Fython allows the choice

Re: announcing fython

2016-10-01 Thread nicolasessisbreton
**How does this compare to Python+Numpy? **How much faster is Fython, and what are the restrictions on the Python code? Python+Numpy allows easy processing of vector, but there is a limit to how much user-defined logic can be used with Numpy. For example, operating on three different arrays to d

Re: announcing fython

2016-10-01 Thread Steve D'Aprano
On Sun, 2 Oct 2016 11:18 am, Raoul Fleckman wrote: > Interested to hear the answers to those questions, and whether Fython is > pass by reference (Fortran) or value (python, unless passing a list, for > example); That's not how Python works. Ints and lists are passed exactly the same way, neithe

Re: announcing fython

2016-10-01 Thread Chris Angelico
On Sun, Oct 2, 2016 at 11:18 AM, Raoul Fleckman wrote: > Interested to hear the answers to those questions, and whether Fython is > pass by reference (Fortran) or value (python, unless passing a list, for > example); and then there's the 'little' matter of one-based (Fortran) or > zero-based (pyth

Re: announcing fython

2016-10-01 Thread Raoul Fleckman
On 2016-10-01, Chris Angelico wrote: > On Sat, Oct 1, 2016 at 11:41 PM, wrote: >> Fython permits to write numerical code with the same syntax then Python. >> Under the hood, the code is transpiled to Fortran and run at top speed. > > How does this compare to Python+Numpy? How much faster is Fyth

Re: announcing fython

2016-10-01 Thread Chris Angelico
On Sat, Oct 1, 2016 at 11:41 PM, wrote: > Fython permits to write numerical code with the same syntax then Python. > Under the hood, the code is transpiled to Fortran and run at top speed. How does this compare to Python+Numpy? How much faster is Fython, and what are the restrictions on the Pyth

announcing fython

2016-10-01 Thread nicolasessisbreton
Hi All, I would like to announce a new project call Fython. In short, Fython is Fortran with a Python syntax. Fython permits to write numerical code with the same syntax then Python. Under the hood, the code is transpiled to Fortran and run at top speed. Fython primary goal is to facilitate nume