<div dir="ltr"><div>I have looked at the old naif-spice ruby wrapper while writing up a proposal for this project and will probably have a somewhat similar wrapper interface. I haven&#39;t written any code yet, I&#39;m just getting started and I should have a public repository up on github very soon with the skeleton code. I did not consider using SWIG but I did look at FFI and decided to write the wrapper manually with the standard Ruby C API. For selecting the functions to be ported, I decided <span id="goog_1218776912"></span><span id="goog_1218776913"></span>to include all the functions in the lunaserv gem and found similar related functions in the <a href="https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/info/mostused.html">NAIF SPICE Most Used APIs list</a>.<br><br></div><div>here are some more details in the form of my GSoC proposal as suggested by John (who is also one of my mentors for this project :) ) :-<br></div><div><br></div><div><a href="https://drive.google.com/open?id=0ByLtlXyXw5U2WUI4UmRtVnlCQjA">Project Proposal </a> <br></div><div><a href="https://drive.google.com/file/d/0ByLtlXyXw5U2YkJkUWtfQ1lYR28/view?usp=sharing">More details on the Ruby API  </a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, May 15, 2016 at 12:29 AM, John Woods <span dir="ltr">&lt;<a href="mailto:john.o.woods@gmail.com" target="_blank">john.o.woods@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="white-space:pre-wrap">Gaurav, do you maybe want to share your GSOC proposal? Then people will be better able to provide comments. :)</div><br><div class="gmail_quote"><div><div class="h5"><div dir="ltr">On Sat, May 14, 2016 at 12:29 PM Barry Carter &lt;<a href="mailto:spice_discuss@barrycarter.info" target="_blank">spice_discuss@barrycarter.info</a>&gt; wrote:<br></div></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">Are you familiar with <a href="http://lunaserv.lroc.asu.edu/naif-spice.html" rel="noreferrer" target="_blank">http://lunaserv.lroc.asu.edu/naif-spice.html</a>, have you<br>
written any code so far, and will you be using SWIG <a href="http://www.swig.org/" rel="noreferrer" target="_blank">http://www.swig.org/</a> ?<br>
<br>
<br>
On Sat, 14 May 2016, Gaurav Tamba wrote:<br>
<br>
&gt; Date: Sat, 14 May 2016 10:22:30 +0530<br>
&gt; From: Gaurav Tamba &lt;<a href="mailto:gaurav.tamba@gmail.com" target="_blank">gaurav.tamba@gmail.com</a>&gt;<br>
&gt; To: <a href="mailto:spice_discussion@naif.jpl.nasa.gov" target="_blank">spice_discussion@naif.jpl.nasa.gov</a><br>
&gt; Subject: [Spice_discussion] Creation of a Ruby Wrapper for C SPICE under<br>
&gt;     SciRuby<br>
&gt;<br>
&gt; Hello Everyone,<br>
&gt;<br>
&gt; I hope you&#39;re all doing great. I&#39;m an undergraduate engineering student<br>
&gt; from India and I&#39;m working on a project this summer for Google Summer of<br>
&gt; Code where I&#39;ll be making a wrapper interface for the C SPICE library in<br>
&gt; Ruby mentored by SciRuby (Formally, the project is listed here<br>
&gt; &lt;<a href="https://summerofcode.withgoogle.com/projects/#5642148519084032" rel="noreferrer" target="_blank">https://summerofcode.withgoogle.com/projects/#5642148519084032</a>&gt;)<br>
&gt;<br>
&gt; One of my main goals for this project besides just making a working wrapper<br>
&gt; in Ruby that ports the API, is to create an additional abstracted ruby-like<br>
&gt; API  (the obvious bit is to make a simpler API, but another task is<br>
&gt; grouping multiple related functions into one function call for commonly<br>
&gt; compounded tasks) and to make the use of SPICE a better experience for one<br>
&gt; not so comfortable in C or FORTRAN.<br>
&gt;<br>
&gt; I unfortunately have very little experience with the SPICE toolkit and am<br>
&gt; primarily referring to this list here<br>
&gt; &lt;<a href="https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/info/mostused.html" rel="noreferrer" target="_blank">https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/info/mostused.html</a>&gt; for<br>
&gt; prioritizing which functions to port first. (Since the actual SPICE library<br>
&gt; API is really large, it may not be possible to port more than a subset of<br>
&gt; these features in the summer coding period, but I have no intention to stop<br>
&gt; after that period is over either)<br>
&gt;<br>
&gt; I&#39;d be immensely obliged if anyone could share their most frequent use<br>
&gt; cases with SPICE. This would help the most in the completion of the project.<br>
&gt;<br>
&gt; I realize I&#39;ve been vague about the specifics so please feel free to ask me<br>
&gt; any specific ruby/non-ruby doubts about the wrapper.<br>
&gt;<br>
&gt; Best Regards,<br>
&gt; Gaurav<br>
&gt;<br>
<br></div></div>
_______________________________________________<br>
Spice_discussion mailing list<br>
<a href="mailto:Spice_discussion@naif.jpl.nasa.gov" target="_blank">Spice_discussion@naif.jpl.nasa.gov</a><br>
<a href="https://naif.jpl.nasa.gov/mailman/listinfo/spice_discussion" rel="noreferrer" target="_blank">https://naif.jpl.nasa.gov/mailman/listinfo/spice_discussion</a><br>
</blockquote></div>
</blockquote></div><br></div>