Die C


I am not a good coder. In my mind a coder is determined by how much he loves C (or, in clinical cases, assembler). I hate C and avoid it whenever I can, because I am always off-by-one, and often even in more then one place, which make debugging even more .. fun. :(

Currently I am coding an application that is centred around use of artificial neural networks (more precisely a multilayer perceptron). The NN part must be done in C for speed and memory usage (imagine adding and multiplying hundreds of millions of floating values just for one operation .. and having to do that for 10 000 times for training .. while holding the whole data set in RAM, because you access every single value of it every second). With that in mind I engineered my system in such a way that the C part can be reduced to a couple simple operations that I can adapt from examples of the NN library. And still I barely wrote those pieces. Working with MySQL in C is pure pain, for example.

The rest of the system is in Python and I must say that Python is a godsend by itself, without even comparing it to C. I am now so used to Python when I was debugging my C program, I automatically wrote a chunk of Python into it and was very surprised when it did not work.

With that in mind, to ease the pain for further generations of neural network researchers, I will (someday) find some time and write Python wrappers for the nice and cool Lightweight Neural Network C library that I am currently using here.

BTW: I found that SourceForge is packed full with great software projects, but it is very hard to find those projects in Google. Morale - seeking for good free software? wajig (or apt-get) it! then sourceforge it! then freshmeat it! and only then google it.

Currently unrated


foo 11 years, 4 months ago

Ist really clear that you ahve no clue about C programming and thats all

Link | Reply

Dave 11 years, 4 months ago

Take a look at Pyrex (http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/). It allows you to write C extensions for python using a language that looks remarkably like python.

And fwiw I share your sentiments re: C :)

Link | Reply

Brian 11 years, 4 months ago

There is also the bleeding edge. The PyPy project offers an extension compiler where you can write things in Restricted Python, compile tehm to C and use them in as C extension in normal python. http://codespeak.net/pypy/dist/pypy/doc/extcompiler.html

Link | Reply

Michael 5 months, 3 weeks ago

C is very useful but what you're saying proves you have no knowledge of it. We previously made a Weight Loss Calculator using C for a website: http://www.weightalogue.com and it was LIT until they had to remove it off the website so they could sell it as a digital product! C is dope!

Link | Reply

New Comment


required (not published)


Recent Posts






RSS / Atom