Recent Posts

Pages: [1] 2 3 ... 10
1
New Users Please Post Here / Re: Perkun
« Last post by 8pla.net on February 25, 2018, 09:33:35 pm »
The more I look...

Code: [Select]
#!/usr/local/bin/perkun

The more I like it.
2
New Users Please Post Here / Re: Perkun
« Last post by pawel.biernacki on February 25, 2018, 06:18:54 pm »
Quote from: http://www.pawelbiernacki.net
% This is a code in Prolog
% created automatically by perkun 0.1.7
% It can be used to generate Perkun code.


if Perkum writes Prolog
And Prolog is A.I.
Then Perkum writes A.I.


Yes, indeed Perkun can generate code in Prolog. You can do it with the Perkun command:

cout << prolog generator << eol;


And this generated code creates a Perkun specification. But it needs to be enhanced a little - the rules in programmer.prolog following "% PLEASE INSERT YOUR CODE HERE" are written manually. It is anyway much easier than writing a model manually.

The result (programmer_final.perkun) has been created by this enhanced Prolog code (programmer.prolog).
3
New Users Please Post Here / Re: Perkum
« Last post by 8pla.net on February 25, 2018, 05:10:41 pm »
Quote from: http://www.pawelbiernacki.net
% This is a code in Prolog
% created automatically by perkun 0.1.7
% It can be used to generate Perkun code.


if Perkum writes Prolog
And Prolog is A.I.
Then Perkum writes A.I.

4
General Project Discussion / AI Java Project
« Last post by vyan on February 25, 2018, 01:37:38 pm »
Hi, would anyone be interested in helping me work on a AI project?(not without payment, of course) If yes, please feel free to drop me a message!
5
New Users Please Post Here / Re: Perkun
« Last post by pawel.biernacki on February 25, 2018, 10:48:15 am »
LOCKSUIT - I have done a small experiment.

You may download it from http://www.pawelbiernacki.net/programmer.zip. It contains three files:
programmer_initial.perkun
programmer.prolog
programmer_final.perkun

Now build Perkun and execute:

perkun programmer_final.perkun


It will enter the interactive mode:

loop with depth 3
I expect the values of the variables: program_command_1 program_command_2 it_works
perkun>


Now type "instruction_if_then instruction_if_then none" and press Enter. Perkun will choose action:

action=execute_the_program which_instruction_to_change=one

Let us assume the program is wrong. We must type "instruction_if_then instruction_if_then false".

Now Perkun wishes to modify the first command to "print":


action=change_instruction_to_print which_instruction_to_change=one


So we must type: "instruction_print instruction_if_then none". Now Perkun chooses:

action=execute_the_program which_instruction_to_change=one

Let us assume the program was wrong again. Type "instruction_print instruction_if_then false". Now it will say:

action=change_instruction_to_print which_instruction_to_change=two


So it wants to change to "print" the second instruction. Now the program is "print print". Let us confirm it: "instruction_print instruction_print none". It responds with:

action=execute_the_program which_instruction_to_change=one

Now let us assume this program is correct. Let us type "instruction_print instruction_print true". Now Perkun will want it executed again!

action=execute_the_program which_instruction_to_change=one

Now maybe it is the time to take a look at the programmer_initial.perkun. In the "variables" section it contains the following variables:

variables
{
    input variable program_command_1:{instruction_if_then, instruction_print};
    input variable program_command_2:{instruction_if_then, instruction_print};
    input variable it_works:{false, true, none};
    output variable action:{change_instruction_to_if_then, change_instruction_to_print, execute_the_program};
    output variable which_instruction_to_change:{one, two};
   
    hidden variable does_if_then_if_then_work:{false, true};
    hidden variable does_if_then_print_work:{false, true};

    hidden variable does_print_if_then_work:{false, true};
    hidden variable does_print_print_work:{false, true};
}


And the model (the one you will see in programmer_final.perkun) has been created automatically with a little help from Prolog. In short - I have made a simple Perkun session in which it searches through all the four combinations:

"if_then if_then"
"if_then print"
"print if_then"
"print print"

And tries to figure out which one works. This is a very primitive programming, I admit. But even for this simple case the model is huge (just take a look at programmer_final.perkun).
6
New Users Please Post Here / Re: Perkun
« Last post by pawel.biernacki on February 25, 2018, 06:58:11 am »
Do you think your algorithm may be useful to optimize writing short stories?

Yes. It is possible. The game Perkun Wars would be an example (take a look at "chat" - all the NPCs you meet tell you a simple story).

"use Perkun PL to make optimal decisions"
i.e.
Perkun helps you figure out how to code something U don't know how to code.

Ya but...If I'm coding something I want to code...only I (me, an AGI) know what must be coded and what comes next after that to code and how the whole program works...Perkun *cannot* give me optimal suggestions like "oh time to use a For Loop!" or "Oh time to code in x = (7>3)*3>1 in line 45 or the next line!", or "Oh time to delete lines 6-98 cus it doesn't work after all!", because Perkun isn't thinking, it isn't an AGI to do so, it doesn't know what must be put in code to create said application...only I know and can reason what to code to make my program...

However if you mean, it makes the code more efficient but remains the same "code" / "application"....then that's another story. That would help our civilization. Who knows how small one's program could be if coded professionally.

I would address the problem as follows:

I introduce the input variables representing the program and output variables allowing modifying it.

variables
{
    input variable program_command_1:{instruction_if_then, instruction_print, instruction_loop};
    input variable program_command_2:{instruction_if_then, instruction_print, instruction_loop};
    input variable program_command_3:{instruction_if_then, instruction_print, instruction_loop};
    input variable it_works:{false, true, none};
    ...
    output variable action:{change_instruction_to_if_then, change_instruction_to_print, change_instruction_to_loop, execute_the_program};
    output variable which_instruction_to_change:{one, two, three};
    hidden variable does_it_work:{false, true};
}


We would also need the input variables denoting the parameters for the instructions. Then we need a model - this is a bit problematic because Perkun does not learn models (they are taken for granted). It is quite obvious how the actions "change_instruction_" should work, but "execute_the_program" is a mystery. The payoff would depend only on the variable "it_works".

In this simple example we would end up with a Perkun specification that would try to build this three-commands program. It is an interesting idea, I did not think about using it for programming.

7
Bot Conversations / Re: Young Alpha
« Last post by LOCKSUIT on February 24, 2018, 11:33:31 pm »
Definite!
8
New Users Please Post Here / Re: Perkun
« Last post by LOCKSUIT on February 24, 2018, 11:25:37 pm »
"use Perkun PL to make optimal decisions"
i.e.
Perkun helps you figure out how to code something U don't know how to code.

Ya but...If I'm coding something I want to code...only I (me, an AGI) know what must be coded and what comes next after that to code and how the whole program works...Perkun *cannot* give me optimal suggestions like "oh time to use a For Loop!" or "Oh time to code in x = (7>3)*3>1 in line 45 or the next line!", or "Oh time to delete lines 6-98 cus it doesn't work after all!", because Perkun isn't thinking, it isn't an AGI to do so, it doesn't know what must be put in code to create said application...only I know and can reason what to code to make my program...

However if you mean, it makes the code more efficient but remains the same "code" / "application"....then that's another story. That would help our civilization. Who knows how small one's program could be if coded professionally.
9
New Users Please Post Here / Re: Perkun
« Last post by 8pla.net on February 24, 2018, 10:25:00 pm »


Title: The Riddle of the Hideout

Publisher Software: PHP

Cite Source: http://aihax.com/shortstory/
____________________________________________________________________________________________________

Do you think your algorithm may be useful to optimize writing short stories?
10
Bot Conversations / Re: Young Alpha
« Last post by 8pla.net on February 24, 2018, 09:40:23 pm »
Hello LOCKSUIT,

Three Likes... That's unbelievable!

Thanks for the Like!
Pages: [1] 2 3 ... 10

Perkun
by 8pla.net (New Users Please Post Here)
February 25, 2018, 09:33:35 pm
AI Java Project
by vyan (General Project Discussion)
February 25, 2018, 01:37:38 pm
Young Alpha
by LOCKSUIT (Bot Conversations)
February 24, 2018, 11:33:31 pm
MIT AGI: How the brain creates emotions (Lisa Feldman Barrett)
by keghn (General AI Discussion)
February 24, 2018, 04:01:56 pm
Spikes in neural networks
by keghn (New Users Please Post Here)
February 24, 2018, 03:10:28 pm
Fractal Orbit
by ranch vermin (Human Computer Interaction)
February 24, 2018, 12:49:39 am
XKCD Comic : The Simpsons
by Tyler (XKCD Comic)
February 23, 2018, 12:02:20 pm
They Are Coming For US!
by LOCKSUIT (General Robotics Talk)
February 21, 2018, 08:27:54 pm

Users Online

33 Guests, 0 Users

Most Online Today: 46. Most Online Ever: 208 (August 27, 2008, 09:36:30 am)

Articles