We have moved to a new Sailfish OS Forum. Please start new discussions there.
28

scientific applications in jolla SailfishOS

asked 2015-11-10 20:06:17 +0200

antoniovr gravatar image

For me having scientific applications in the mobile is a must have. Actually, I like mobile can replace calculator, programmable calculators and even computer for certain quick uses.

The tool I used more often is GNU Octave, but also scipy (for instance through Ipython) or maxima. I know at the moment only some versions of ipython were developed. They could be easy to port from maemo or from any GNU/Linux distribution, but as far as Mer project has no fortran compiler anymore, it seem it could be really difficult to obtain.

I think jolla should include another gcc version which includes fortran for this purpose. On the other hand, it would be nice an adapted UI for them.

What do you think? Actually I am a bit worried because my n900 seems to be close to its end of life (due to screen problems), and I am not sure of how to replace it. I am not very convinced of buying a device in which even "simple (to get)" GNU programs like Octave will be to run under the android VM or with a chroot.

edit retag flag offensive close delete

Comments

1

I would love to see VisualCalc running on Sailfish.

Heck, I would love to see it running on Maemo. Much better suited for this kind of thing.

pichlo ( 2015-11-11 12:24:30 +0200 )edit
2

I'd like to see mcnpx running on it and watch it melt while calculating the core of a fusion plant. ;)

lakutalo ( 2015-11-11 12:58:55 +0200 )edit

I have compiled gcl and maxima for Jolla. Was not a big deal. No graphics (gnuplot) though.

Eierkopp ( 2015-11-12 11:14:00 +0200 )edit

Do they need fortran compiler or fortran libs?

lakutalo ( 2015-11-12 11:22:46 +0200 )edit
1

Let's do it: xwayland port please. Especially for the tablet

gfwp ( 2015-11-13 16:36:17 +0200 )edit

7 Answers

Sort by » oldest newest most voted
5

answered 2015-11-11 10:00:16 +0200

Marius gravatar image

I've compiled once ROOT (http://root.cern.ch) on N900. Just for fun, it is not really useful, but I'm going to try it on sailfish when I get my tablet:-)

edit flag offensive delete publish link more

Comments

2

I am really looking forward how you solve the Fortran issue on SFOS.

lakutalo ( 2015-11-11 10:21:48 +0200 )edit
1

Can't you compile your own version of gcc toolchain including fortran and newer g++? Then make RPM out of it and use it to build octave, ipython, ...

marko ( 2015-11-11 12:40:06 +0200 )edit

Did you compile fortran on N900?

polarphone ( 2015-11-11 17:01:43 +0200 )edit

No, root is fully C++. Big parts of scientific community managed to shift to C++/python:-)

Marius ( 2015-11-11 17:12:20 +0200 )edit

Anyway in Maemo 5 N900 there is fortran compiler:

apt-cache search fortran
f2c - A FORTRAN 77 to C/C++ translator
[...]
fort77 - Invoke f2c like a real compiler
[...]
gfortran-4.6 - GNU Fortran 95 compiler
antoniovr ( 2015-11-11 17:14:39 +0200 )edit
4

answered 2015-11-11 22:46:36 +0200

lakutalo gravatar image

Surprise! I've just stumbled upon this one: https://openrepos.net/content/rcolistete/ipython-sailfishos

So after all, it's not impossible. Let's have a closer look at it.

edit flag offensive delete publish link more
3

answered 2015-11-10 20:22:55 +0200

ApB gravatar image

There are some calculators in the store. Other than that to get scientific apps someone has to write them. However if you can run octave or any other app you need from a terminal in linux i am quite sure you -don't take my word for it- can do the same from fingerterm.

edit flag offensive delete publish link more

Comments

At the moment, I usually use octave under the terminal in my N900 (and actually also in my computer), so I would be happy if I could use it in fingerterm.

antoniovr ( 2015-11-11 13:30:02 +0200 )edit
3

answered 2015-11-10 22:09:38 +0200

lakutalo gravatar image

updated 2015-11-11 13:00:44 +0200

I may be old-fashioned, but all my numerical computing ever was done in C and it really rocked, also parallelly computed on 25 nodes, plus I never felt in need of a f77 compiler. And gcc you can get with pkcon. How about that for starters? ;) IMO that's already a lot for a phone. You can use vi or nano with syntax highlighting, and use fingerterm if you're an acrobat, or edit your sources from a ssh connected PC. Of course, you could try to compile octave on an armv7 environment, I do not know of any intents in that direction, though. Also Ipython sounds feasible from the look of it.

edit flag offensive delete publish link more

Comments

1

I feel comfortable about terminal use of octave (although adapted ui would be cool for extending its uses). As far as i know, GNU Octave is mostly programmed in C++ and C, but it make use of some fortran matrix code: https://www.gnu.org/software/octave/doc/interpreter/Running-Configure-and-Make.html

To compile Octave, you will need a recent version of g++ or other ANSI C++ compiler. In addition, you will need a Fortran 77 compiler or f2c. If you use f2c, you will need a script like fort77 that works like a normal Fortran compiler by combining f2c with your C compiler in a single script.

So it is not possible to compile it without f2c or f77.

antoniovr ( 2015-11-10 22:18:17 +0200 )edit

Same happens with scipy (ipython): http://www.scipy.org/scipylib/building/linux.htmlC and Fortran compilers (typically gcc and gfortran)

And for Scilab we have the same: http://wiki.scilab.org/Compiling%20Scilab%205.x%20under%20GNU-Linux%20UnixScilab can be compiled with. For the C language : GCC (tested from gcc-4.0 => 4.5) Intel C Compiler Sun compiler For fortran : gfortran (GCC suite) Intel Fortran Compiler Sun compiler

Removing any option of a fortran compiler is limiting the use on a big sector of users.

antoniovr ( 2015-11-10 22:22:16 +0200 )edit
1

Excuse my ignorance, but wouldn't be f2c an option? To be honest, all that fortran gives me the shivers, I'm traumatised. ;) But I second you, it would be a great asset, and got my vote.

lakutalo ( 2015-11-10 23:09:28 +0200 )edit
1

I may be old-fashioned, but all my numerical computing ever was done in C

Hate to burst your bubble but Fortran is older than C ;)

pichlo ( 2015-11-11 12:19:12 +0200 )edit
2

That was meant in respect of Matlab et al. You see, multitasking also hits me now and then. Added a magic plus to be more specific but keep the context.

lakutalo ( 2015-11-11 12:47:13 +0200 )edit
3

answered 2015-11-11 13:38:54 +0200

polarphone gravatar image

There is a qt frontend fir octave which soles the graphicak problems.

As stated above octae must be adapted with fortran and c. To get this running on sailfish there is some work. Questiin is how much. Needed.

  1. Fix fortran compiler.
  2. Adapt octave code if necessary. 3 Adaot qt octave interface to saulfish environment.

Have thought about it but havent had time.

edit flag offensive delete publish link more
1

answered 2015-11-13 11:29:22 +0200

antoniovr gravatar image

By the way, you and the new price convince me to come on board!! I am waiting for my jolla!

edit flag offensive delete publish link more

Comments

Welcome aboard, and thanks for launching this vivid thread!

lakutalo ( 2015-11-13 11:43:17 +0200 )edit
0

answered 2015-11-13 16:06:22 +0200

Salzi gravatar image

I like SpeedCrunch to do some calculations. You can download from the store or have a look here.

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
6 followers

Stats

Asked: 2015-11-10 20:06:17 +0200

Seen: 1,597 times

Last updated: Nov 13 '15