Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8102179
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T23:10:47+00:00 2026-06-05T23:10:47+00:00

I am developing a Firefox extension and I need to perform some high-speed calculations

  • 0

I am developing a Firefox extension and I need to perform some high-speed calculations using structured data currently presented in the form of Javascript object.
To achieve this I’m planning to write the C library to be invoked using js-ctypes.
Is there any way to pass Javascript object to native library using JS-ctypes?
Example of data:

{vendors: 
{Oracle: {products: 
{Exadata: {spec1: 111, spec2: 222}, Exalogic:
{spec1: 111, spec2: 222}}}, IBM: {products: {WebSphere: {spec1: 111, spec2:222}}}
}}

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T23:10:48+00:00Added an answer on June 5, 2026 at 11:10 pm

    You can only pass in types that are valid in C. And since C has no concept of dictionary types or similar you cannot pass those to your C code. So you basically have two options:

    1. You use JSON.stringify() to turn this object into a string. You then have to find some C library that can parse JSON and will allow you to work with it somehow.
    2. You convert your JavaScript data into types that C can understand directly. For example, you could pass in an array of Vendor structures with each Vendor structure containing a pointer to an array of Product structures. Of course, your C code will need to know the size of the array – this will have to be a function parameter for the former array and a Vendor structure field for the latter.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently developing a firefox extension which checks some server side XML-File on a
I am currently developing a Firefox extension, and I need the ability to be
I am developing a Firefox extension which need to change some values on a
I am developing a firefox extension, i need to detect which operating system firefox
While developing a firefox extension, I create a wizard window from overlay.js using: this.wizard
I am developing a Firefox extension and need to access a specific cookie from
I'm developing a Firefox extension. There is a menu X which I need to
I am developing extension for Firefox 3.0-3.5 versions using VS2008. I want to set
I am developing a firefox extension using XUL.I am able to create a button.
I am developing a firefox extension and I need to include the Google Search

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.