Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 04-07-2011, 02:23 PM   #1
LQ Newbie
Registered: Jan 2010
Distribution: Fedora
Posts: 23

Rep: Reputation: 4
Gnumeric plugins: can they be in a compiled language?

Does anyone know whether it is possible to write compiled plugins for Gnumeric? I've had some experience writing plugins in Python, and I've encountered two problems:
(1) A plugin containing mathematical functions is actually slower than setting up the same formulas in the spreadsheet and adding them together. The spreadsheet becomes fairly unmanageable that way, hence the decision to write a plugin, but the plugin makes it take considerably longer to execute.
(2) I've encountered a fairly significant memory leak due to Gnumeric not cleaning up references after the Python functions exit. Each call to Python produces more references and leaked memory. The function in (1) leaks memory at the rate of about 1 GB per minute for one of my spreadsheets.

I'm wondering if there's another method, possibly involving a compiled language like C, C++, or Fortran, that would produce faster plugins and possibly solve/circumvent the memory leak problems.

There's a package that ships with Fedora and some other distros called "gnumeric-devel"; the description says it "includes files necessary to develop Gnumeric-based applications." What would a "Gnumeric-based application" be, exactly, and what files does it include?

Thanks in advance.

Last edited by kaiserkarl13; 06-02-2011 at 12:26 PM. Reason: Changed title to be more descriptive
Old 04-15-2011, 06:19 PM   #2
LQ Newbie
Registered: Jan 2010
Distribution: Fedora
Posts: 23

Original Poster
Rep: Reputation: 4
For that matter...

For that matter, is there a better way to get actual numbers (instead of references to them) in the Python plugins? For example, I've had to do something like the following:

cellsum = Gnumeric.functions['sum']
index = Gnumeric.functions['index']
A = cellsum(index(cells,1,1))
to set A to the value of cell A1, when all I really wanted was something like
  A = cells(1,1)
  A = cells[0][0]


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Gnumeric templates? Radiolarian Linux - Software 1 04-04-2009 01:15 PM
gnumeric gone from RH? molivera Red Hat 1 10-20-2004 11:26 AM
Gnumeric phishman3579 Slackware 3 06-02-2003 07:06 PM
gnumeric griv Linux - Software 0 06-30-2002 01:56 PM
gnumeric ry Linux - Software 1 06-30-2002 01:27 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:39 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration