Getting a first look at c conversion of the python program today.

Published:

Updated:

Got ahead on homework for the class, I am able to carve out a few hours before work to start setting up for the conversion to c.

I will need to start by finding the import path for the Pandas c headers, which I found in a local folder. Already have an idea of the csv read mechanism, have to figure out csv write in c, also calculating the malloc() c function to allocate just the right amount of memory.

Have to explicitly declare the variable types, nothing requiring more than a short INT. I would go character but the appended match count can be as high as 1,800 (or more)

Whatever garbage collection I need to implement and whatever pointers I need to iterate through each column will be focal points today.

Compiling and clearing errors will probably then be the workflow until a successful run of the test program happens. Only then can I convert the part of the program that counts to 100 and modify it to count to 10 billion, and also remove the timers. The outputs will be active as well. I disabled the csv write for the last timer test but re enabled them to make sure that the tests are complete.

This is one of those times where I am glad I first did a flow chart so the logic can be converted into another language easier.

Not going to be a quick journey like developing in python, but I am ready for that.

Entry #293

Comments

Avatar hypersoniq -
#1
Actually this was more of a recap from what transpired on the first... program already ran for the pick 2 eve and the results were exactly as expected... kind of disappointing...

Post a Comment

Please Log In

To use this feature you must be logged into your Lottery Post account.

Not a member yet?

If you don't yet have a Lottery Post account, it's simple and free to create one! Just tap the Register button and after a quick process you'll be part of our lottery community.

Register