Hello All, Iam new to Ruby on Rails. I am moving my application to Ruby on rails. Is there an way i can call C++ API from ruby, so that i dont have to do much porting on Ruby on Rails. I have alread an DB and i want to just show only selected columns from one of the table. I am not getting how to write an sql query. Can any one help me in this regard. Regards, Amit JAin -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
hi amit .. There is no any bridge available for c++ and ruby till.. 1 way is there you can convert your app to ror complete... pls refer this in case of any help http://saurabh.purnaye.googlepages.com Regards Saurabh purnaye saurabh[dot]purnaye[at]gmail[dot]com Amit Jain wrote:> Hello All, > > > Iam new to Ruby on Rails. I am moving my application to Ruby on rails. > Is there an way i can call C++ API from ruby, so that i dont have to do > much porting on Ruby on Rails. > > I have alread an DB and i want to just show only selected columns from > one of the table. I am not getting how to write an sql query. Can any > one help me in this regard. > > Regards, > Amit JAin-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Saurabh Purnaye wrote:> > hi amit .. > There is no any bridge available for c++ and ruby till.. > 1 way is there you can convert your app to ror complete... > pls refer this in case of any help > http://saurabh.purnaye.googlepages.com > Regards > Saurabh purnaye > saurabh[dot]purnaye[at]gmail[dot]com > > > > Amit Jain wrote: >> Hello All, >> >> >> Iam new to Ruby on Rails. I am moving my application to Ruby on rails. >> Is there an way i can call C++ API from ruby, so that i dont have to do >> much porting on Ruby on Rails. >> >> I have alread an DB and i want to just show only selected columns from >> one of the table. I am not getting how to write an sql query. Can any >> one help me in this regard. >> >> Regards, >> Amit JAinHello Saurabh, Thanks for replying me back. 1 way is there you can convert your app to ror complete. How can i achieve this? I have added you on skype. i went thru site, but could not find. Can u send me the exact link. Regards, Amit Jain -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 19 Feb 2008, at 07:26, Saurabh Purnaye wrote:> > > hi amit .. > There is no any bridge available for c++ and ruby till..Um you can quite easily write a ruby extension in c++. It''s really just the same as writing one in C (although there are some gotchas around exception handling, ruby exceptions not unwinding the c++ stack properly and things like that). We use several such extensions. Fred> > 1 way is there you can convert your app to ror complete... > pls refer this in case of any help > http://saurabh.purnaye.googlepages.com > Regards > Saurabh purnaye > saurabh[dot]purnaye[at]gmail[dot]com > > > > Amit Jain wrote: >> Hello All, >> >> >> Iam new to Ruby on Rails. I am moving my application to Ruby on >> rails. >> Is there an way i can call C++ API from ruby, so that i dont have >> to do >> much porting on Ruby on Rails. >> >> I have alread an DB and i want to just show only selected columns >> from >> one of the table. I am not getting how to write an sql query. Can >> any >> one help me in this regard. >> >> Regards, >> Amit JAin > > -- > Posted via http://www.ruby-forum.com/. > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Frederick Cheung wrote:> On 19 Feb 2008, at 07:26, Saurabh Purnaye wrote: > >> >> >> hi amit .. >> There is no any bridge available for c++ and ruby till.. > > Um you can quite easily write a ruby extension in c++. It''s really > just the same as writing one in C (although there are some gotchas > around exception handling, ruby exceptions not unwinding the c++ stack > properly and things like that). We use several such extensions. > > FredCan you prvoide me some link or document where i can understand this extensions? Regards, Amit Jain -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 19 Feb 2008, at 13:35, Amit Jain wrote:> > Frederick Cheung wrote: >> On 19 Feb 2008, at 07:26, Saurabh Purnaye wrote: >> >>> >>> >>> hi amit .. >>> There is no any bridge available for c++ and ruby till.. >> >> Um you can quite easily write a ruby extension in c++. It''s really >> just the same as writing one in C (although there are some gotchas >> around exception handling, ruby exceptions not unwinding the c++ >> stack >> properly and things like that). We use several such extensions. >> >> Fred > > Can you prvoide me some link or document where i can understand this > extensions? >Well there''s stuff in the pickaxe, and a quick search for ''ruby c extension'' brings up stuff like http://www.rubyinside.com/how-to-create-a-ruby-extension-in-c-in-under-5-minutes-100.html> Regards, > Amit Jain > -- > Posted via http://www.ruby-forum.com/. > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Carlson & Richardson''s "Ruby Cookbook" (O''Rielly) might be a good reference. They present a few different ways to ref a C-based API. On Feb 19, 8:37 am, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 19 Feb 2008, at 13:35, Amit Jain wrote: > > > > > > > Frederick Cheung wrote: > >> On 19 Feb 2008, at 07:26, Saurabh Purnaye wrote: > > >>> hi amit .. > >>> There is no any bridge available for c++ and ruby till.. > > >> Um you can quite easily write a ruby extension in c++. It''s really > >> just the same as writing one in C (although there are some gotchas > >> around exception handling, ruby exceptions not unwinding the c++ > >> stack > >> properly and things like that). We use several such extensions. > > >> Fred > > > Can you prvoide me some link or document where i can understand this > > extensions? > > Well there''s stuff in the pickaxe, and a quick search for ''ruby c > extension'' brings up stuff likehttp://www.rubyinside.com/how-to-create-a-ruby-extension-in-c-in-unde... > > > Regards, > > Amit Jain > > -- > > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---