Monday, October 21, 2013

just a RANT: The world is not sequential. ACID is nice to have, baby.

DISCLAIMER: Sorry, there is no content on ACID here.

I love the Erlang programming language.
It is a kind of functional programming language, but it is not the reason why I love it.

It is based on communication. That's real. So I love it.

'Lazy evaluation' is a bad conception, I think.
An evaluation is a transaction between a caller and  a callee.
In Quantum Physics, 'entangled state of quantum model' is encapsulated most of the case.

Non-deterministic logic is hard to implement (easy to make a permutational / combinational explosion).

Functional language also have same weak point in pattern matching / search trees.

So, real power in Erlang is to make enoumerous number of process(agent)s and support their overwhelming scale of communicaiton.
The magic is there in the simpleness of messages and actions.

Each message goes to requester.
Requester wants messages which he can process only.
The reasons to separate message and process are,
1) scalability
2) parallelism
3) thin connection API

Call tree is just a tree. Not so flexible structure than N x M producer/consumer model.


Now I need more flexibility than N x M connection mesh, especially in time dimension. But extending that way is rather easy for me with Erlang. That is the most important feature for me, right now.

Friday, October 4, 2013

A loop is not a data-structure, but a phenomenon, stupid!

I've lost my way to whether Loop shall be a class or such-a-name of phenomenon.
To track loops are copied, joined, paraphrased, and deleted etc., I need a Class (of Java) or such a programming jargon.
But it would do harm to (the (ability|performance)  to emulate the virtual machine of INTELLIGENCE. | clarity of model).

Loop is not bound by a priori structure. Vivid and lively sequence of firing of synapses are stuck in some limit-cycle or attracted in some patterns, we just say 'I found a loop'.
So I need some criteria to call something as 'loop'.

Here is my idea on API.

Criterion:
Network.isLoop(time-coverage t, place-coverage p) : Network object instance method

Matching:
metric-type Network.similar(Network.coverage a, Network.coverage b): Network Class static method

Copy (Dup?):
void Network.map(Network.coverage c): Network object instance method

for Join (concatenate),  Divide, Connect, Merge, Overlap, Head, Tail, Cur, Cdr can be given if Loop is just a sequence of objects as Lisp. But I want to see how a loop is established, long-run, diminished,, the dynamics of it.
Dynamics and structure of (dynamic and plastic) network is the key, I think.

So, I need to see the very moment of 'birth of the loop', in various type of network model.

Syntax rules the world

If it were loops (echo chamber memorization system) are storage system of brain (or Virtual machine of brain), syntax of spoken sentence would affect the structure of loop.

+ a b
a b +
I love you
WATASHI wa ANATA wo AISURU

loop could be rehearsed as sound 'sequence'.

There is another problem.
How to 'match' each sequence (loop).
Pattern matching? meaning equality?

Anyway, 'translation' can be 'memorization of matching between some loops'.

loop of translation : 'the fact loop A = loop B' to memorize
Thus, yet another loop 'A = B' 

How to match 'partially'?
A B +
C D +
How to detect some compatibility between above loops?

Matching of '+'?

If syntax is not compatible, hard to detect?
(in this case 'containing' matching)
A B +
A + B

Note: Matching problem can be the problem of 'definition of distance'.

Element of loop may be matched.

'+' would be the very popular and significant element (loop) in arithmetic context.
Thus '+' and both loops('A B +' and 'A + B') could be connected and compiled yet another loop.

////

I/O system may affect loop system

Handwriting, Typing keyboard, Speak directly your idea, Thin in mind, etc.
may affect loop construction.

loop is memory of sequence.
Mixture of thinking (loop rehearsal) and IO (body movement) are compiled the loop.

Visual image, music, smell of environment etc. also compiled (make linkages to each element:loop).

Thursday, October 3, 2013

imagine there is no OS, nor DataCenter

no center: P2P (Mob to Mob)
multiplexed, and democratic consensus based decision,
dynamic, random, and stochastic networked,
computing.

maybe encrypted, but if the data is scattered in random pattern with timestamp and window offset, and processed at very high-speed, and in very fat volume,
there would be no decryption scheme to rival.

No OS: no specific boundary other than working sets.
There only are computation units, Data and Recipe.
Data calls process, or wait for in queue.

No architecture on backend. Just API.
Just Virtual Queues and Virtual Coolies there.
Queues are multiplexed and Issuer satisfied by one result. one after another (and even better) result may come later, but first one clears queue. (ticket maybe 2-part, recipe and return address/answer space to call contentment checker)

Tuesday, October 1, 2013

Chorus of loops: how to hear my thoughts

Loops are murmuring random song in random rhythm.  Some are the same, and others are completely different.

When it becomes to a "Chorus" by some group of loops, it comes to 'my mind' and make me move... isn't it?

I wondered how to pickup special loop from the sea of them. But, no one choose, the loudest group can be heard.
How to be louder? Sync with someone like you.

Loops are stored and repeat its song endlessly/randomly  in the long-term storage: Frontal lobe.
But when some of them sync in Chorus, it sounds loud and clear and attract more synchronous peer.

The 'Sound' of Chorus of loops may affect my sensor-connected part of brain like Scenery from my eyes or Music from my ears.
... is it a DREAM?

Chorus of loops may not be heard as the real sound, but memories of sound.
Loop pattern may be constructed chain of other loops.

Chorus of loops can be 'memorized' as another loop. It may differ from original one (some member of Chorus) or mean value of them.

Items of loop may be visual memory, and others may be audible memory.
Then, Chorus memorization process may cause some error to change type of memory. (coded value nearly the same,, but type bit is wrong,,etc.) 
In such a case, visual / audio /smell context may be mixed. I believe some part of my memories are such a mixture/mutation of loop-chains.