chrispahm / gams-helpers

GAMS helper function for Atom editor
2 stars 0 forks source link

GDX viewer #3

Open matzech opened 5 years ago

matzech commented 5 years ago

What do you think about an integrated GDX-viewer in Atom?

chrispahm commented 5 years ago

Hey @Matzee! I think that would be awesome. However, in order for that to work, we'd need to write a GDX parser / writer in JavaScript first. I already thought about that quiet often, but it's not so trivial when you would like to ensure cross platform compatibility. An approach could be to

  1. Dig through the GAMS C++ API
  2. Write a node.js package that builds on the C++ API. As described here
  3. Go on writing the Atom package from there

However, my C++ skills are basically non-existing. Another option would be to spawn a Python process from node.js, read the GDX there and give back the results. GAMS always ships with a Python installation (in the GMSPython directory of the GAMS install dir), so then GAMS would remain to be the only thing a user would need to have installed.

Let me know what you think! Christoph