ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Wed, 03 Oct 2012 00:20:41 +0200Rstat -interpreter and Haskell -interpreters to Sage?https://ask.sagemath.org/question/9379/rstat-interpreter-and-haskell-interpreters-to-sage/I use mostly R and Python but interested in Haskell. Now I have Sage in iPad, more [here](http://math.stackexchange.com/questions/193072/ipad-for-reading-textbooks-and-writing-math-by-hand/204393#204393), and totally novel idea whether I could get R and Haskell to iPad? You can find the iOS Sage code [here](https://bitbucket.org/gvol/sage-iphone-app). 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?Tue, 02 Oct 2012 15:08:28 +0200https://ask.sagemath.org/question/9379/rstat-interpreter-and-haskell-interpreters-to-sage/Answer by kcrisman for <p>I use mostly R and Python but interested in Haskell. Now I have Sage in iPad, more <a href="http://math.stackexchange.com/questions/193072/ipad-for-reading-textbooks-and-writing-math-by-hand/204393#204393">here</a>, and totally novel idea whether I could get R and Haskell to iPad? You can find the iOS Sage code <a href="https://bitbucket.org/gvol/sage-iphone-app">here</a>. I had an impression that Sage is a bunch of different softwares.</p>
<ol>
<li><p>Where can I find Sage's dependencies?</p></li>
<li><p>Is it possible to run R -code or Haskell -code in Sage?</p></li>
</ol>
https://ask.sagemath.org/question/9379/rstat-interpreter-and-haskell-interpreters-to-sage/?answer=14095#post-id-14095You 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](http://sagemath.org/links-components.html).
- R code can be run in several ways, documented in various places; [here's a question on this site](http://ask.sagemath.org/question/315/how-to-use-r-with-sage) 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.Tue, 02 Oct 2012 15:33:04 +0200https://ask.sagemath.org/question/9379/rstat-interpreter-and-haskell-interpreters-to-sage/?answer=14095#post-id-14095Comment by kcrisman for <p>You have a number of questions here. </p>
<ul>
<li><p>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.)</p></li>
<li><p>Dependencies are at <a href="http://sagemath.org/links-components.html">the components page of the Sage website</a>.</p></li>
<li><p>R code can be run in several ways, documented in various places; <a href="http://ask.sagemath.org/question/315/how-to-use-r-with-sage">here's a question on this site</a> which mentions some. I don't think that the <code>%r</code> syntax works in iOS yet (?) but the <code>r.kruskal_wallis()</code> method should work okay. A lot of people use Sage and R together effectively (including myself) to use the best of each.</p></li>
<li><p>Haskell does not interface with Sage.</p></li>
</ul>
<p>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.</p>
https://ask.sagemath.org/question/9379/rstat-interpreter-and-haskell-interpreters-to-sage/?comment=18929#post-id-18929http://hackage.haskell.org/trac/summer-of-code/ticket/1600 also seems relevant, though clearly not easy to implement!Wed, 03 Oct 2012 00:20:41 +0200https://ask.sagemath.org/question/9379/rstat-interpreter-and-haskell-interpreters-to-sage/?comment=18929#post-id-18929Comment by benjaminfjones for <p>You have a number of questions here. </p>
<ul>
<li><p>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.)</p></li>
<li><p>Dependencies are at <a href="http://sagemath.org/links-components.html">the components page of the Sage website</a>.</p></li>
<li><p>R code can be run in several ways, documented in various places; <a href="http://ask.sagemath.org/question/315/how-to-use-r-with-sage">here's a question on this site</a> which mentions some. I don't think that the <code>%r</code> syntax works in iOS yet (?) but the <code>r.kruskal_wallis()</code> method should work okay. A lot of people use Sage and R together effectively (including myself) to use the best of each.</p></li>
<li><p>Haskell does not interface with Sage.</p></li>
</ul>
<p>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.</p>
https://ask.sagemath.org/question/9379/rstat-interpreter-and-haskell-interpreters-to-sage/?comment=18931#post-id-18931For your Haskell experimentation needs, you might try: http://tryhaskell.org/Tue, 02 Oct 2012 23:31:18 +0200https://ask.sagemath.org/question/9379/rstat-interpreter-and-haskell-interpreters-to-sage/?comment=18931#post-id-18931Comment by hhh for <p>You have a number of questions here. </p>
<ul>
<li><p>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.)</p></li>
<li><p>Dependencies are at <a href="http://sagemath.org/links-components.html">the components page of the Sage website</a>.</p></li>
<li><p>R code can be run in several ways, documented in various places; <a href="http://ask.sagemath.org/question/315/how-to-use-r-with-sage">here's a question on this site</a> which mentions some. I don't think that the <code>%r</code> syntax works in iOS yet (?) but the <code>r.kruskal_wallis()</code> method should work okay. A lot of people use Sage and R together effectively (including myself) to use the best of each.</p></li>
<li><p>Haskell does not interface with Sage.</p></li>
</ul>
<p>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.</p>
https://ask.sagemath.org/question/9379/rstat-interpreter-and-haskell-interpreters-to-sage/?comment=18934#post-id-18934`"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).Tue, 02 Oct 2012 18:12:11 +0200https://ask.sagemath.org/question/9379/rstat-interpreter-and-haskell-interpreters-to-sage/?comment=18934#post-id-18934Comment by benjaminfjones for <p>You have a number of questions here. </p>
<ul>
<li><p>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.)</p></li>
<li><p>Dependencies are at <a href="http://sagemath.org/links-components.html">the components page of the Sage website</a>.</p></li>
<li><p>R code can be run in several ways, documented in various places; <a href="http://ask.sagemath.org/question/315/how-to-use-r-with-sage">here's a question on this site</a> which mentions some. I don't think that the <code>%r</code> syntax works in iOS yet (?) but the <code>r.kruskal_wallis()</code> method should work okay. A lot of people use Sage and R together effectively (including myself) to use the best of each.</p></li>
<li><p>Haskell does not interface with Sage.</p></li>
</ul>
<p>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.</p>
https://ask.sagemath.org/question/9379/rstat-interpreter-and-haskell-interpreters-to-sage/?comment=18932#post-id-18932Compiling 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.Tue, 02 Oct 2012 23:30:04 +0200https://ask.sagemath.org/question/9379/rstat-interpreter-and-haskell-interpreters-to-sage/?comment=18932#post-id-18932Comment by kcrisman for <p>You have a number of questions here. </p>
<ul>
<li><p>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.)</p></li>
<li><p>Dependencies are at <a href="http://sagemath.org/links-components.html">the components page of the Sage website</a>.</p></li>
<li><p>R code can be run in several ways, documented in various places; <a href="http://ask.sagemath.org/question/315/how-to-use-r-with-sage">here's a question on this site</a> which mentions some. I don't think that the <code>%r</code> syntax works in iOS yet (?) but the <code>r.kruskal_wallis()</code> method should work okay. A lot of people use Sage and R together effectively (including myself) to use the best of each.</p></li>
<li><p>Haskell does not interface with Sage.</p></li>
</ul>
<p>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.</p>
https://ask.sagemath.org/question/9379/rstat-interpreter-and-haskell-interpreters-to-sage/?comment=18930#post-id-18930@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.Wed, 03 Oct 2012 00:20:02 +0200https://ask.sagemath.org/question/9379/rstat-interpreter-and-haskell-interpreters-to-sage/?comment=18930#post-id-18930