Ask Your Question
0

Rstat -interpreter and Haskell -interpreters to Sage?

asked 12 years ago

hhh gravatar image

updated 12 years ago

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?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
0

answered 12 years ago

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.

Preview: (hide)
link

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 ( 12 years ago )

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 ( 12 years ago )

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

benjaminfjones gravatar imagebenjaminfjones ( 12 years ago )

@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 ( 12 years ago )

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

kcrisman gravatar imagekcrisman ( 12 years ago )

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: 12 years ago

Seen: 1,120 times

Last updated: Oct 02 '12