Ask Reuben 6 - Do You Need Your C-Extension?

Started by Reuben B., April 17, 2020, 11:52:30 AM

Previous topic - Next topic

Reuben B.

Whenever I get a question on C-Extension's I turn the question around and ask "Do you need a C-Extension"?  What I invariably find is that the C-Extension is being used to overcome a short-coming in Informix-4gl, and the C-Extension can be replaced with some pure Genero code that we have introduced to do what Informix-4gl did not do.

These are some of the scenarios I find a C library being used for when a Genero library is now available...

  • Reading/Writing to a File (base.Channel)
  • Interacting with Files/Directories (os.Path)
  • Advanced Mathematics and Random Numbers (util.Math)
  • Security Algorithms (util.security)

Removing the C-Extension and using a Genero code can simplify your build and deployment practices.

Read more at https://4js.com/ask-reuben/ig-6/
Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero