Board.KolibriOS.org

Официальный форум KolibriOS
Текущее время: Сб дек 15, 2018 3:36 pm

Часовой пояс: UTC+03:00




Начать новую тему  Ответить на тему  [ 17 сообщений ]  На страницу 1 2 След.
Автор Сообщение
 Заголовок сообщения: Human language level programming languages
СообщениеДобавлено: Пн ноя 19, 2018 3:21 am 
Не в сети

Зарегистрирован: Пн ноя 19, 2018 3:16 am
Сообщения: 11
Hi,

It is written in book Java How to Program ninth edition that instead of using the strings of numbers that computers could directly understand, programmers began using English-like abbreviations to represent elementary
operations:

1.5 Machine Languages, Assembly Languages and High-Level Languages

Programmers write instructions in various programming languages, some directly understandable by computers and others requiring intermediate translation steps. Hundreds of such languages are in use today. These may be divided into three general types:

Machine languages
Assembly languages
High-level languages
Any computer can directly understand only its own machine language, defined by its hardware design. Machine languages generally consist of strings of numbers (ultimately reduced to 1s and 0s) that instruct computers to perform their most elementary operations one at a time. Machine languages are machine dependent (a particular machine language can be used on only one type of computer). Such languages are cumbersome for humans. For example, here’s a section of an early machine-language program that adds overtime pay to base pay and stores the result in gross pay:

+1300042774
+1400593419
+1200274027

Programming in machine language was simply too slow and tedious for most programmers. Instead of using the strings of numbers that computers could directly understand, programmers began using English-like abbreviations to represent elementary
operations. These abbreviations formed the basis of assembly languages. Translator programs called assemblers were developed to convert early assembly-language programs to machine language at computer speeds. The following section of an assembly-language program also adds overtime pay to base pay and stores the result in gross pay:

load basepay
add overpay
store grosspay

Although such code is clearer to humans, it’s incomprehensible to computers until translated to machine language. Computer usage increased rapidly with the advent of assembly languages, but programmers still had to use many instructions to accomplish even the simplest tasks. To speed the programming process, high-level languages were developed in which single statements could be written to accomplish substantial tasks. Translator programs called compilers convert high-level language programs into machine language. High-level languages allow you to write instructions that look almost like everyday English and contain commonly used mathematical notations. A payroll program written in a high-level language might contain a single statement such as

grossPay = basePay + overTimePay

Instead of using the high-level languages, programmers will start using the more higher-level programming languages or human language level programming languages?

I probably will create the more higher-level programming, in other words, I probably will create the human language level programming.


Вернуться к началу
 Заголовок сообщения: Re: Human language level programming languages
СообщениеДобавлено: Пн ноя 19, 2018 12:50 pm 
Не в сети

Зарегистрирован: Пн мар 27, 2006 6:33 am
Сообщения: 642
http://thinking-forth.sourceforge.net/
https://archive.org/search.php?query=su ... uage%29%22


Вернуться к началу
 Заголовок сообщения: Re: Human language level programming languages
СообщениеДобавлено: Пн ноя 19, 2018 2:00 pm 
Не в сети

Зарегистрирован: Пн ноя 19, 2018 3:16 am
Сообщения: 11
Kopa писал(а):
http://thinking-forth.sourceforge.net/
https://archive.org/search.php?query=su ... uage%29%22


@Kopa,

I did not understand your reply.

What you want to say?


Вернуться к началу
 Заголовок сообщения: Re: Human language level programming languages
СообщениеДобавлено: Пн ноя 19, 2018 2:52 pm 
Не в сети

Зарегистрирован: Пн мар 27, 2006 6:33 am
Сообщения: 642
Forth is human language level programming.


Вернуться к началу
 Заголовок сообщения: Re: Human language level programming languages
СообщениеДобавлено: Пн ноя 19, 2018 3:12 pm 
Не в сети

Зарегистрирован: Пн ноя 19, 2018 3:16 am
Сообщения: 11
Kopa писал(а):
Forth is human language level programming.


@Kopa,

Why did you talk that Forth is human language level programming?


Вернуться к началу
 Заголовок сообщения: Re: Human language level programming languages
СообщениеДобавлено: Пн ноя 19, 2018 3:20 pm 
Не в сети

Зарегистрирован: Пн мар 27, 2006 6:33 am
Сообщения: 642
Why not? :)


Вернуться к началу
 Заголовок сообщения: Re: Human language level programming languages
СообщениеДобавлено: Пн ноя 19, 2018 3:25 pm 
Не в сети

Зарегистрирован: Пн ноя 19, 2018 3:16 am
Сообщения: 11
Kopa писал(а):
Why not? :)


@Kopa,

An intelligent compiler will ask for clarification whenever there’s an ambiguity and may suggest improved wordings to resolve the issue. Writing a program will end up being a conversation with an intelligent machine which anyone could handle even if they know nothing about programming - it will be a collaboration with an intelligent system which is in itself an expert programmer. The error messages will be comments and questions just like the ones you’d get if you were co-writing a program with a human programmer. (“When you say “print the result of that part”, do you mean this part [a section of the code is highlighted], and do you want it printed to the screen or the printer?”)

None of that will stop you putting in a line of C or any other programming language if you want to, but most of the work will simply be done in natural language, typically at a much higher level with the compiler working out how to carry out the tasks asked of it. The end user will also become a programmer, telling the machine how (s)he would prefer things to be done, and the machine will comply. That will rarely be done through anything other than natural language.

Programming languages will end up being increasingly high-level until they become identical to natural language. You will eventually be able to write all your programs in English, Portuguese, or any other natural language, although you will also be able to mix that with instructions of the kind used in today’s programming languages whenever you think that’s more efficient or clearer.


Вернуться к началу
 Заголовок сообщения: Re: Human language level programming languages
СообщениеДобавлено: Пн ноя 19, 2018 3:31 pm 
Не в сети

Зарегистрирован: Пн мар 27, 2006 6:33 am
Сообщения: 642
Bot programmer?


Вернуться к началу
 Заголовок сообщения: Re: Human language level programming languages
СообщениеДобавлено: Пн ноя 19, 2018 3:48 pm 
Не в сети

Зарегистрирован: Пн ноя 19, 2018 3:16 am
Сообщения: 11
Kopa писал(а):
Bot programmer?


@Kopa,

I am human.


Вернуться к началу
 Заголовок сообщения: Re: Human language level programming languages
СообщениеДобавлено: Пн ноя 19, 2018 4:18 pm 
Не в сети

Зарегистрирован: Ср мар 26, 2008 12:44 pm
Сообщения: 222
Forth is a human language level programming.


Вернуться к началу
 Заголовок сообщения: Re: Human language level programming languages
СообщениеДобавлено: Пн ноя 19, 2018 4:22 pm 
Не в сети

Зарегистрирован: Пн ноя 19, 2018 3:16 am
Сообщения: 11
Kopa писал(а):
Forth is human language level programming.


tsdima писал(а):
Forth is a human language level programming.


@tsdima,

O @Kopa also said that Forth is a human language level programming.

Why Forth is a human language level programming?


Вернуться к началу
 Заголовок сообщения: Re: Human language level programming languages
СообщениеДобавлено: Пн ноя 19, 2018 6:04 pm 
Не в сети

Зарегистрирован: Ср мар 26, 2008 12:44 pm
Сообщения: 222
@Quantum_Robin

Why did you talk that you is a human?


Вернуться к началу
 Заголовок сообщения: Re: Human language level programming languages
СообщениеДобавлено: Пт ноя 23, 2018 2:06 am 
Не в сети

Зарегистрирован: Пн ноя 19, 2018 3:16 am
Сообщения: 11
Kopa писал(а):
Forth is human language level programming.


Kopa писал(а):
Why not? :)


@Kopa,

Forth is a fun language to work with if you're trying to do something with linguistics as you can take any words you like from natural language and turn them into instructions, but it still has severe limitations which will prevent it from evolving into natural language programming system.


Вернуться к началу
 Заголовок сообщения: Re: Human language level programming languages
СообщениеДобавлено: Пт ноя 23, 2018 2:28 am 
Не в сети

Зарегистрирован: Пн мар 27, 2006 6:33 am
Сообщения: 642
Only limitations of human thinking :)

Examples: Forth applications and techniques ...
Forth for Artificial Intelligence in Robots
CAM8: a Parallel, Uniform, Scalable Architecture for Cellular Automata Experimentation
A tribute to this great article series by Jack W. Crenshaw...
Welcome, dear space-time traveller ...
and more ...

P.S. May be Factor programming language?
or 8th


Вернуться к началу
 Заголовок сообщения: Re: Human language level programming languages
СообщениеДобавлено: Пт ноя 23, 2018 3:50 am 
Не в сети

Зарегистрирован: Пн ноя 19, 2018 3:16 am
Сообщения: 11
Kopa писал(а):


@Kopa,

Where natural language is ambiguous, the machine can simply ask for clarification to make sure it has understood the instruction the right way, and if it hasn’t, it can help the programmer improve the wording of the instruction.

Please, see the Plain English Programming site so that you can see a language that looks close to natural language. That would let you see that using normal language would be a practical way to write code.


Вернуться к началу
Показать сообщения за:  Поле сортировки  
Начать новую тему  Ответить на тему  [ 17 сообщений ]  На страницу 1 2 След.

Часовой пояс: UTC+03:00


Кто сейчас на конференции

Сейчас этот форум просматривают: нет зарегистрированных пользователей и 0 гостей


Вы не можете начинать темы
Вы не можете отвечать на сообщения
Вы не можете редактировать свои сообщения
Вы не можете удалять свои сообщения
Вы не можете добавлять вложения

Найти:
Перейти:  
Создано на основе phpBB® Forum Software © phpBB Limited
Русская поддержка phpBB