Marius Myburg's Weblog

Skepticism, Science, Stuff

  • About
  • LogicDO – The Way of Logic

I have reached my target neural network size

Posted by mariusmyburg on September 3, 2011
Posted in: Uncategorized. Leave a Comment

I have just successfully allocated 1 Hundred Million Nodes in a neural network. This was just to see if my PC and my program could handle it. I had to compile this for x64 because 32 bit mode cannot handle the memory allocation above about 2GB. But x64 works beautifully.

But size is just promise of additional capability – more important is architecture. SO I am back to much smaller, much more specialized neural circuits.

15 Million Node Neural Network on old 1GB PC

Posted by mariusmyburg on August 28, 2011
Posted in: Uncategorized. Leave a Comment

So, do you want proof that C/C++ is better than managed languages like C#?

I have recently started rewriting my Farve Extensive Connectivity Neural Network system in unmanaged C++. My own PC is broken so I am using my mother’s old PC, with 1GB RAM. On this PC, I just created an Extensive Connectivity neural network consisting of 15 Million nodes, and to allocate all that took just 20 seconds.

15 Million nodes.

Enter the Functor

Posted by mariusmyburg on August 27, 2011
Posted in: Uncategorized. Leave a Comment

The same program as in my previous post, but this time with a functor (overloaded () operator) to make the syntax very easy and C#-like:

#include
#include

using namespace std;

int main();
void myfunc();
void myfunc2();
void myfunc3();

class CDelegator
{
private:
std::vector _functions;

public:
void operator()()
{
Fire();
}

void operator+=(void (fn)())
{
AddFunction(fn);
}

void AddFunctionPtr(void (*fn)())
{
_functions.push_back(fn);
}

void AddFunction(void (fn)())
{
_functions.push_back(*fn);
}

void Fire()
{
vector::iterator iter;
for (iter = _functions.begin();
iter<_functions.end();
iter++)
{
cout << &*iter <>t;
return 0;
}

void myfunc()
{
cout << "MyFunc" << endl;
}

void myfunc2()
{
cout << "MyFunc2" << endl;
}

void myfunc3()
{
cout << "MyFunc3" << endl;
}

C / C++ wonderfulness

Posted by mariusmyburg on August 25, 2011
Posted in: Uncategorized. Leave a Comment

Some of you might know that I am re-learning myself C and C++. Why? Because C and C++ are the most powerful computer languages on the planet.

After chatting to a work colleague, Siegfried, I decided to try to implement delegate-like functionality in C. I am very happy to say that my small test program is a complete success.

Here is the code:


#include
#include

using namespace std;

int main();
void myfunc();
void myfunc2();
void myfunc3();

class CDelegator
{
private:
std::vector _functions;

public:
void AddFunctionPtr(void (*fn)())
{
_functions.push_back(fn);
}

void AddFunction(void (fn)())
{
_functions.push_back(*fn);
}

void Fire()
{
vector::iterator iter;
for (iter = _functions.begin();
iter<_functions.end();
iter++)
{
cout << &*iter << endl;

void(*func)();
func = *iter;
func();
}
}
};

int main()
{
CDelegator delegator;

delegator.AddFunction(myfunc);
delegator.AddFunction(myfunc2);
delegator.AddFunction(myfunc3);

delegator.Fire();

return 0;
}

void myfunc()
{
cout << "MyFunc" << endl;
}

void myfunc2()
{
cout << "MyFunc2" << endl;
}

void myfunc3()
{
cout << "MyFunc3" << endl;
}

Tip for ASSERT(afxCurrentResourceHandle != NULL);

Posted by mariusmyburg on August 8, 2011
Posted in: Uncategorized. 1 comment

If you are developing an application in C++ and you an assertion error on this line:

ASSERT(afxCurrentResourceHandle != NULL);

in atlmfc\include\afxwin1.inl

the problem might be that you are linking to a library that uses a different character set to your main application.

Go to project Properties – general, and make sure ‘Character Set’ is the same for your app and the libraries you are linking to.

‘Goodness’ Question

Posted by mariusmyburg on July 26, 2011
Posted in: Uncategorized. Leave a Comment

One day everything is good and happy, and the next you are falling into oblivion down an apparently infinite precipice. Sometimes I wonder, what does our ‘morals’ and our self-sacrifice help us then? Should we not just live life like simpletons, just seeking the quick rewards? Are these people not happier? And is that not the point of life – happiness? So why bother with what can arguably be described as pretentious hoo-haa, commonly practised by people with so-called ‘better’ habits? At the end of the day, after you gave everything you had, you can very easily be stepped on by your benefactors.

Should we not just say, to hell with everything, I am living for myself and not for other people? I mean, take the black widow spider. After mating, the male can stay and be eaten by the female, or he can say screw that, and kill the female when she tries to kill him instead. Is the fact not that the universe has dealt the poor male black widow spider a cruel hand, one that he must oppose or else, freaking die? Is it ‘good’ to say ‘but it is for nutrients for the poor baby spiders’? Or should he say ‘Screw that’!

My point is – in a perfect world, communism would work. But it does not work, it is not a perfect world. Under communism, in this corrupt world, the ‘good’ people suffer endlessly, because the opportunistic people step on them. Is it not the same with life in general?

I am bitter because of Lorena just apparently leaving me, after all these years that I have given her everything I had – more than I could afford. And then on one sunny day she is just gone. That is the emotional motivation for this post. But the question is valid, I think: should we trust in people? Should we believe their nice words? Should we, I don’t know… even work overtime without getting paid? Even only sometimes? Should we give even R2 to a beggar on the street? Because like my girlfriend left me, after my years of personal sacrifice for her, of calling her almost every single day at great expense to just say hi, of writing a good morning SMS every morning just to be nice, – the question is will your manager really value your overtime contributions (no offence to my own managers)? If they will, then that is great! Or will the beggar really appreciate the money you give him? Or will he, if given the opportunity, come into your house and kill you and your family while you are sleeping?

In a war situation – when you die, when you f*cking DIE… will your president even care to know your story? Or will you just be dead? ‘Dying for your country’ – is that ‘noble’, or is that just a gigantic waste of a life? Excuse my language, but it helps convey emotion which I feel is necessary.

The real question, I guess, is: should you give people the benefit of the doubt? I think that is the question. I implicitly and gladly gave my girlfriend the benefit of the doubt – I believed her when she spoke to me and when she wrote to me. I told her I would do anything for her, and I would have. With her inexplicably gone, I must wonder: is the lesson I must learn, to NOT practice ‘faith’, any kind of faith including faith in people, any more? Or is that the wrong conclusion? Help me here with your comments please.

XmlSerializer and enums not serializing

Posted by mariusmyburg on July 22, 2011
Posted in: Uncategorized. Leave a Comment

Today while working on code that serializes objects to XML, I came across a bug – the object that was serialized got serialized fine, except for the annoying fact that enum properties of the object got ignored completely. After alot of debugging, I came across the solution: decorating the enum declaration with the [Flags()] attribute.

So if you even come across a probklem where enums values are not being serialized, maybe this can help.

Spectral Energies in Basement – Actual Video of Paranormal Activities!!

Posted by mariusmyburg on July 20, 2011
Posted in: Uncategorized. Leave a Comment

Ghosts being investigated – ACTUAL VIDEO!!!

Posted by mariusmyburg on July 20, 2011
Posted in: Uncategorized. Leave a Comment

Artificial Intelligence demo video

Posted by mariusmyburg on July 20, 2011
Posted in: Uncategorized. Leave a Comment

I have just uploaded a short video where I demonstrate my XCON neural network. This is a very simple network, consisting of only 7 nodes. It implements the Boolean AND logic gate.

People have laughed at me, through my years of research and development. Soon they will stand and watch in awe as traditionally stupid machines become something greater.

Intelligent machines are inevitable.

Posts navigation

← Older Entries
Newer Entries →
  • Blogroll

    • JREF
    • Learning Lisp
    • RichardDawkins.net
  • Topics

    • Love
    • Mathematics
    • Uncategorized
    • Windows 7
  • Archives

    • May 2012
    • March 2012
    • January 2012
    • December 2011
    • October 2011
    • September 2011
    • August 2011
    • July 2011
    • June 2011
    • May 2011
    • April 2011
    • March 2011
    • February 2011
    • January 2011
    • December 2010
    • November 2010
    • October 2010
    • September 2010
    • August 2010
    • July 2010
    • June 2010
    • May 2010
    • April 2010
    • March 2010
    • February 2010
    • January 2010
    • December 2009
    • November 2009
    • October 2009
    • September 2009
    • August 2009
    • July 2009
    • June 2009
    • May 2009
    • April 2009
    • March 2009
    • February 2009
    • January 2009
    • December 2008
    • November 2008
    • October 2008
    • September 2008
    • August 2008
    • July 2008
    • June 2008
    • May 2008
    • April 2008
    • November 2007
    • October 2007
Blog at WordPress.com. Theme: Parament by Automattic.
Follow

Get every new post delivered to your Inbox.

Powered by WordPress.com