I did forget to mention that you could experiment with emscipten to port
the C++ over to js

https://github.com/kripken/emscripten

On 29 January 2013 08:57, Dale Harvey <[email protected]> wrote:

> I would very much suggest using indexedDB over localstorage, but the rest
> is correct, indexedDB / HTML5 API's and JavaScript are the native API +
> language
>
> Cheers
> Dale
>
>
> On 29 January 2013 05:11, Chris Molozian <[email protected]> wrote:
>
>> Hey all,
>>
>> I'm just starting to experiment with Firefox OS and all the developer
>> tools / documentation available at the moment. I understand the design
>> goals for the project and its focus on using web technologies as the
>> technology stack for developers to build their applications with but I want
>> to know if there's plans to provide a native API at some point?
>>
>> Android provide the NDK (http://developer.android.com/**
>> tools/sdk/ndk/index.html<http://developer.android.com/tools/sdk/ndk/index.html>)
>> which makes it easier to integrate existing C and C++ libraries into mobile
>> development. Is something like this on the roadmap for Firefox OS?
>>
>> For example, let's say that I wanted to develop a Firefox OS wrapper
>> library for Riak Mobile <http://www.infoq.com/**
>> presentations/Bringing-Riak-**to-the-Mobile-Platform<http://www.infoq.com/presentations/Bringing-Riak-to-the-Mobile-Platform>>.
>> It's a software library written in C++ that uses the SQLite database
>> available in the handset APIs and allows data to be synchronized in a
>> controlled way between a mobile device and a Riak <
>> http://docs.basho.com/riak/**latest/references/appendices/**
>> concepts/#What-is-Riak<http://docs.basho.com/riak/latest/references/appendices/concepts/#What-is-Riak>>
>> cluster. Now because the code is written in C++ its been wrapped for
>> Android using the NDK and is accessible via C on iOS.
>>
>> As far as I'm aware if I want to add support for Firefox OS to that
>> project I'll actually not be able to make use of the library at all.
>> Instead I believe I'll need to port the entire codebase to Javascript and
>> use the HTML5 Local Storage 
>> <http://diveintohtml5.info/**storage.html<http://diveintohtml5.info/storage.html>>
>> API for the data storage layer.
>>
>> Is my current conclusion correct?
>>
>> Cheers,
>>
>> Chris
>> ______________________________**_________________
>> dev-b2g mailing list
>> [email protected]
>> https://lists.mozilla.org/**listinfo/dev-b2g<https://lists.mozilla.org/listinfo/dev-b2g>
>>
>
>
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to