Ask Your Question
0

Rstat -interpreter and Haskell -interpreters to Sage?

asked 2012-10-02 08:08:28 -0500

hhh gravatar image

updated 2012-10-02 08:10:10 -0500

I use mostly R and Python but interested in Haskell. Now I have Sage in iPad, more here, and totally novel idea whether I could get R and Haskell to iPad? You can find the iOS Sage code here. I had an impression that Sage is a bunch of different softwares.

  1. Where can I find Sage's dependencies?

  2. Is it possible to run R -code or Haskell -code in Sage?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2012-10-02 08:33:04 -0500

kcrisman gravatar image

You have a number of questions here.

  • The iOS app is not actually native Sage. What the apps (also the Android one) do is to communicate with a server API that computes individual code fragments one at a time. (Which is still powerful, if you have a long enough fragment.)

  • Dependencies are at the components page of the Sage website.

  • R code can be run in several ways, documented in various places; here's a question on this site which mentions some. I don't think that the %r syntax works in iOS yet (?) but the r.kruskal_wallis() method should work okay. A lot of people use Sage and R together effectively (including myself) to use the best of each.

  • Haskell does not interface with Sage.

I should point out that a lot of this would have been pretty easy to find with a generic web search, but hopefully this will help not just yourself but others looking for it as well.

edit flag offensive delete link more

Comments

`"Haskell does not interface with Sage."` <--- what does this mean? Why not Haskell? It looks to be useful for beginner mathematician, more [here](http://math.stackexchange.com/questions/21489/is-learning-haskell-a-bad-thing-for-a-beginner-mathematician).

hhh gravatar imagehhh ( 2012-10-02 11:12:11 -0500 )edit

Compiling Haskell requires a (very large) compiler and library framework. This is too large a dependency to include with Sage, but it may become an optional package sometime in the future.

benjaminfjones gravatar imagebenjaminfjones ( 2012-10-02 16:30:04 -0500 )edit

For your Haskell experimentation needs, you might try: http://tryhaskell.org/

benjaminfjones gravatar imagebenjaminfjones ( 2012-10-02 16:31:18 -0500 )edit

@hhh: we would certainly take a Haskell interface if someone wrote one, but there has been no movement at all on this (other than the occasional complaint that Sage wasn't actually written in Haskell, or Lisp, or ...). That said, you may find [gfsage](http://www.molto-project.eu/wiki/living-deliverables/d62-prototype-comanding-cas/gfsage-natural-language-interface-sage) interesting, which uses Haskell in something that uses Sage.

kcrisman gravatar imagekcrisman ( 2012-10-02 17:20:02 -0500 )edit

http://hackage.haskell.org/trac/summer-of-code/ticket/1600 also seems relevant, though clearly not easy to implement!

kcrisman gravatar imagekcrisman ( 2012-10-02 17:20:41 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-10-02 08:08:28 -0500

Seen: 660 times

Last updated: Oct 02 '12