📜 ⬆️ ⬇️

Natural Language Programming Instructions or Intentional Programming

This topic can cause a rather negative reaction due to the fact that most developers are its opponents. That's because intentional programming, compared to classical, has significant drawbacks:

But he also has significant advantages:

For me, the last point is of the greatest interest. It allows changing the behavior of the mechanized system on the fly in the process of communication. In this case, the language can act both as a means for manipulating data and as a means for exchanging data. This gives intentional programming the ability to realize its potential in niche areas, such as robotics, when the mechanism can get a description of behavioral algorithms, as well as any other information through a single communication interface, using a single language.

In fact, in the title I’m gossip and it’s still a matter of a planned language, but based on elements of natural language, and which, in the process of development, has the ability to transform into a natural language.

As for the drawbacks of programming in natural language, the problem of speed is to some extent solved by preprocessing while loading instructions into memory, so that when you call it again, you can eliminate resource-intensive procedures. The problem of the length of instructions when typing is solved by intelligent predictive input in the development environment. The problem of the uniformity of the source code is solved by the color coloring instructions. For example:


. — , :


, . . , , , , . : « .» «» : , , . . , «» «» «», «», «», «» «». «» ( ), «» ( ).

, 1 7. , «» «» «». , , . « .» «» «» «».

() , , . . :
? (? , ? ).

— , , .

, , , — . . «» «» «», «».

, . , 1, «1». :
1 1.


:
(? 1, ? 1).


«» : . , :
         ?
              1
         ?
              1

. , :
.

:
? ? ? ? .


:
    ?
        
    ?
        
               ?
                    
                           ?
                                 

:
.

:
? ? (? , ? 1).


:
     ?
         
             ?
                  
     ?
         
     ?
             1

- «» , - (, ) . . . , , .

')

Source: https://habr.com/ru/post/268401/


All Articles