Pure Beauty

Isn’t this just beautiful?

Delegate.h

#pragma once
#include <functional>
#include <vector>

class CDelegate
{
private:
std::vector<std::function<void()>> funcs;

public:
CDelegate();
~CDelegate();

void operator+ (std::function<void()> func)
{
funcs.push_back(func);
}

CDelegate& operator+= (std::function<void()> func)
{
funcs.push_back(func);
return *this;
}

void operator()()
{
for each (auto f in funcs)
{
f();
}
}
};

Delegate.cpp

#include “Delegate.h”

CDelegate::CDelegate()
{
}

CDelegate::~CDelegate()
{
funcs.clear();
}

And its usage:

void func1()
{
}

void func2()
{
}

int _tmain(int argc, _TCHAR* argv[])
{
CDelegate d;
d + func1;
d += func2;

d += ([]()

{ /* Lambda body */

});

d();

return 0;
};

Mom, there is a girl that I want to marry. Her name is…. C++.

Extensive Connectivity Update

Hello readers!

I was walking to and from my car tonight and the sky was a very dark blue grey, almost black, the moon was slowly diffusing through some white clouds giving the night a bit of an eerie, but not ominous feeling, with a coolness in the air but no breeze… and I thought that this is nice, as humans we need more of this. We are always so very much ENCLOSED in our houses, in our cars, in our workplaces, in our shops and malls – damn, man! We almost never see and feel the WORLD! It can be so beautiful. Do we really choose to stay inside, in these lifeless walls we build?

Anyway. That is a digression. I was recently sitting in front of my computer, surrounded by the four walls and roof of my room, working hard on my Talos Extensive Connectivity Artificial General Intelligence. And I have made so great progress, this will not mean much to my readers, but I want to post this image here of my latest neural network, just for the records, just for the history annals :)

What is it? It is the beginnings of a neural network that grows by itself, and that organizes itself, in a Hebbian-like manner, just a “tiny” bit more advanced :) I call it “ActiveGrowth”. It is too much to explain here, but I plan to create an in-depth document that I will publish on a scholarly website somewhere, wherein I describe the “big idea”. When I have done that some day, I will let you know here. The concept is this, though: see the orange arrows? Those are all nodes that the Extensive Connectivity ActiveGrowth system has ‘grown’ dynamically, at runtime, in order to facilitate the learning of a state. And it works, this is a screenshot of the actual working result of a self-growing network.

Also of note is that I have added location data to my neural system. I had an insight a few days ago; that location can serve a computational purpose. A very important computational purpose; in the case of neural systems, location is a powerful ‘filter’ for dynamic network generation parameters. Again this is too much to describe here, it will be detailed soon.

Image

Keep looking up at the sky. Otherwise, you might miss the moon, and she is quite beautiful. :)

Follow

Get every new post delivered to your Inbox.

Join 134 other followers