<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't written any code yet, I'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"><<a href="mailto:john.o.woods@gmail.com" target="_blank">john.o.woods@gmail.com</a>></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 <<a href="mailto:spice_discuss@barrycarter.info" target="_blank">spice_discuss@barrycarter.info</a>> 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>
> Date: Sat, 14 May 2016 10:22:30 +0530<br>
> From: Gaurav Tamba <<a href="mailto:gaurav.tamba@gmail.com" target="_blank">gaurav.tamba@gmail.com</a>><br>
> To: <a href="mailto:spice_discussion@naif.jpl.nasa.gov" target="_blank">spice_discussion@naif.jpl.nasa.gov</a><br>
> Subject: [Spice_discussion] Creation of a Ruby Wrapper for C SPICE under<br>
> SciRuby<br>
><br>
> Hello Everyone,<br>
><br>
> I hope you're all doing great. I'm an undergraduate engineering student<br>
> from India and I'm working on a project this summer for Google Summer of<br>
> Code where I'll be making a wrapper interface for the C SPICE library in<br>
> Ruby mentored by SciRuby (Formally, the project is listed here<br>
> <<a href="https://summerofcode.withgoogle.com/projects/#5642148519084032" rel="noreferrer" target="_blank">https://summerofcode.withgoogle.com/projects/#5642148519084032</a>>)<br>
><br>
> One of my main goals for this project besides just making a working wrapper<br>
> in Ruby that ports the API, is to create an additional abstracted ruby-like<br>
> API (the obvious bit is to make a simpler API, but another task is<br>
> grouping multiple related functions into one function call for commonly<br>
> compounded tasks) and to make the use of SPICE a better experience for one<br>
> not so comfortable in C or FORTRAN.<br>
><br>
> I unfortunately have very little experience with the SPICE toolkit and am<br>
> primarily referring to this list here<br>
> <<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>> for<br>
> prioritizing which functions to port first. (Since the actual SPICE library<br>
> API is really large, it may not be possible to port more than a subset of<br>
> these features in the summer coding period, but I have no intention to stop<br>
> after that period is over either)<br>
><br>
> I'd be immensely obliged if anyone could share their most frequent use<br>
> cases with SPICE. This would help the most in the completion of the project.<br>
><br>
> I realize I've been vague about the specifics so please feel free to ask me<br>
> any specific ruby/non-ruby doubts about the wrapper.<br>
><br>
> Best Regards,<br>
> Gaurav<br>
><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>