OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 5:00 am

All times are UTC - 6 hours




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 102 posts ]  Go to page 1, 2, 3, 4, 5 ... 7  Next
Author Message
 Post subject: The approaches about natural language programming
PostPosted: Mon Sep 30, 2019 12:18 pm 
Offline
Member
Member

Joined: Tue Aug 13, 2019 10:52 pm
Posts: 32
Location: Piaui, Brazil
The approaches about natural language programming are describe here...

Approach #1: Brute Force Crowd Source. This is the method used in Amazon's ALEXA, Apple's SIRI, Wolfram's ALPHA, Microsoft's CORTANA, Google's HOME, etc. In all these cases, a programmer imagines a question or command that a user will give the machine, and then he writes specific code to answer that specific question ("Alexa, what is the temperature outside?") or carry out that particular command ("Alexa, turn on the living room lights"). Get enough imaginative programmers to write enough routines, et voila! Apparently Intelligent machines that actually exist and work and learn and grow, today.

Approach #2: Dynamically-Generated-User-Tweaked code. This is essentially describe here...

If the programmer is happy with the generated code, (s)he can approve of it and it needn't be saved because it will generate correctly each time before compiling - a label would be attached to the high-level NLP program to tell the compiler that it compiles correctly. If the generated code isn't right though (or isn't complete), that label will not be attached to the NLP code and the support code will need to be saved as part of the program instead. Some of that support code could still be auto-generated initially, creating the loop and setting up the count, for example, while leaving the programmer to fill in the content of the loop manually.

Approach #3 is the one where you build AGI first so that it can solve all the programming problems itself.

What are the programmers' statements about the approaches I quoted above?


Top
 Profile  
 
 Post subject: Re: The approaches about natural language programming
PostPosted: Mon Sep 30, 2019 12:25 pm 
Offline
Member
Member

Joined: Tue Aug 13, 2019 10:52 pm
Posts: 32
Location: Piaui, Brazil
The prototypes (ALEXA, SIRI, etc) are based on Approach #1, and they are being scaled up, daily, by a plethora of crowd-programmers motivated by the royalties they hope to get when users employ the "skills" they develop for these machines. So it is clear that we humans know how to build Apparently Intelligent machines, and we know how to motivate our fellow humans to improve and expand and scale up these machines. Pretty hard to compete with that.


Top
 Profile  
 
 Post subject: Re: The approaches about natural language programming
PostPosted: Mon Sep 30, 2019 11:28 pm 
Offline
Member
Member
User avatar

Joined: Thu Nov 16, 2006 12:01 pm
Posts: 7612
Location: Germany
This is now the fourth? fifth? thread about "natural language programming" that surfaced in the last couple of months. All of it on the wish-wishing / Sputnik view level. What do you think this will accomplish? That someone will come, wave the magic wand, and suddenly you can program without learning the first thing about data flow, structured programming, version management, diffs and merges, testing etc.?

_________________
Every good solution is obvious once you've found it.


Top
 Profile  
 
 Post subject: Re: The approaches about natural language programming
PostPosted: Tue Oct 01, 2019 1:04 pm 
Offline
Member
Member

Joined: Tue Aug 13, 2019 10:52 pm
Posts: 32
Location: Piaui, Brazil
Solar wrote:
This is now the fourth? fifth? thread about "natural language programming" that surfaced in the last couple of months. All of it on the wish-wishing / Sputnik view level. What do you think this will accomplish? That someone will come, wave the magic wand, and suddenly you can program without learning the first thing about data flow, structured programming, version management, diffs and merges, testing etc.?


Maybe I will find other people who is trying to create the natural language programming or human-language-level programming.

David Cooper is interested in natural-language programming. The Graham Nelson, the creator of the Inform system (http://inform7.com/) is interested in natural-language programming. Pablo, who developed the SAL (the Spanish/English version of the Plain English Programming (https://forums.anandtech.com/threads/na ... l.2559516/) is interested in natural-language programming. Generally speaking, maybe you'll find that people "brought up" in the C-language tradition are less amenable to the idea of natural language programming than people "brought up" in the BASIC/COBOL/Pascal tradition.

Brute-force natural language "understanding" is simple and yet has given us interesting and useful Apparent Intelligences like Amazon's ALEXA, Apple's SIRI, Wolfram's ALPHA, Microsoft's CORTANA and Google's HOME. And Plain English programming.

Plain English Programming is a very good starting point.
Maybe the Plain English Programming is a better route to follow than the neural network approach, and anyone who follows it will likely get to AGI sooner. The neural net approach will create imperfect AGI which may be highly irrational. We'll never be able to trust it. We need to design AGI where we understand every little bit of functionality contained in it, and that's what my approach will provide. A development of Plain English Programming would do the same because it programs everything directly without training any imperfect nets.

Plain English Programming may be able to become full NLP if enough people interact with it and extend the range of phrases it can handle, so while it may only handle a subset of English today, that is not an inherent restriction on it. It can keep improving as people write code to support more words. For that reason, it is arguably not a step towards NLP because it arguably already is NLP. We will only find out when enough code is written to handle all words an all possible uses of them. Maybe it will run into difficulties with ambiguities, but little additions to the program could fix that. AGI will study Plain English Programming in the future to see what it could have done if the world had got behind it in 2006.


Top
 Profile  
 
 Post subject: Re: The approaches about natural language programming
PostPosted: Tue Oct 01, 2019 2:11 pm 
Offline
Member
Member
User avatar

Joined: Wed Oct 27, 2010 4:53 pm
Posts: 1150
Location: Scotland
QuantumRobin wrote:
Maybe I will find other people who is trying to create the natural language programming or human-language-level programming.

You should wait until there's been some significant advance before bothering people about this subject here again. You won't find anyone new here that you haven't already reached, and you have nothing new to tell them. Is there any forum you've posted to where you're getting a positive reaction? If so, post about it some more there and see if you can annoy them too.

_________________
Help the people of Laos by liking - https://www.facebook.com/TheSBInitiative/?ref=py_c

MSB-OS: http://www.magicschoolbook.com/computing/os-project - direct machine code programming


Top
 Profile  
 
 Post subject: Re: The approaches about natural language programming
PostPosted: Tue Oct 01, 2019 7:18 pm 
Offline
Member
Member

Joined: Tue Aug 13, 2019 10:52 pm
Posts: 32
Location: Piaui, Brazil
DavidCooper wrote:
QuantumRobin wrote:
Maybe I will find other people who is trying to create the natural language programming or human-language-level programming.

You should wait until there's been some significant advance before bothering people about this subject here again. You won't find anyone new here that you haven't already reached, and you have nothing new to tell them. Is there any forum you've posted to where you're getting a positive reaction? If so, post about it some more there and see if you can annoy them too.


David Cooper,

Maybe I will not find in a forum other people who is trying to create the natural language programming or human-language-level programming.

Solar,

Do you agree with the David Cooper's response that he posted in this topic?

If not, why you don't agree with the David Cooper's response that he posted in this topic?


Top
 Profile  
 
 Post subject: Re: The approaches about natural language programming
PostPosted: Tue Oct 01, 2019 9:20 pm 
Offline
Member
Member

Joined: Wed Aug 30, 2017 8:24 am
Posts: 1593
QuantumRobin wrote:
Generally speaking, maybe you'll find that people "brought up" in the C-language tradition are less amenable to the idea of natural language programming than people "brought up" in the BASIC/COBOL/Pascal tradition.


Here's a counter example for you: My first programming language was Pascal, and I think NLP is as useful as underwater basket weaving.

Why do you think a forum of OS programmers (i.e. practitioners of the trade) would contain people interested in such a theoretical and far-away topic? And why would you continue to think so after having been rebuffed twice already?

_________________
Carpe diem!


Top
 Profile  
 
 Post subject: Re: The approaches about natural language programming
PostPosted: Wed Oct 02, 2019 5:24 am 
Offline
Member
Member

Joined: Tue Aug 13, 2019 10:52 pm
Posts: 32
Location: Piaui, Brazil
nullplan wrote:
QuantumRobin wrote:
Generally speaking, maybe you'll find that people "brought up" in the C-language tradition are less amenable to the idea of natural language programming than people "brought up" in the BASIC/COBOL/Pascal tradition.


Here's a counter example for you: My first programming language was Pascal, and I think NLP is as useful as underwater basket weaving.

Why do you think a forum of OS programmers (i.e. practitioners of the trade) would contain people interested in such a theoretical and far-away topic? And why would you continue to think so after having been rebuffed twice already?


nullplan,

Thanks for your response!

The Solar deleted the other response that he posted in this topic.


Top
 Profile  
 
 Post subject: Re: The approaches about natural language programming
PostPosted: Fri Oct 25, 2019 6:24 pm 
Offline
Member
Member

Joined: Sun Jun 23, 2019 5:36 pm
Posts: 618
Location: North Dakota, United States
First, your last reply didn't exactly answer the argument/counter it. Second, I agree with everyone else here -- I do not consider NLP worthwhile. I consider natural language processing something interesting to play with and to make speech recog systems out of, but I would never want to program in it. People who want that kind of universe are lazy and, I'd guess, don't have the talent or drive to learn how to program anyway.

Also, the "brute-force method" (approach no. one) in your OP is not a method of programming in the sense that we use here (or in any other developer forum). Sure, your educating a very massive, highly distributed, HA-enabled machine learning algorithm (and its associated models), but you are in no way "programming" the machine. You are simply generating the illusion that the machine is intelligent, when it in fact is most definitely not and is just as much of a dumb machine as all the machines that came before it.

Finally, since we're on the subject, why would you even want to program in a naturalistic way? What benefit would programming "naturally" bring to the table that less "natural" languages haven't already delivered? By wanting to program "naturally", you are over-complicating a problem that is already complicated enough as is, and making it far more difficult to accomplish any kind of task in a programmatic way, both for those who program in your "natural" way as well as those who write the systems to interpret, parse, and translate your "natural" code into machine code.


Top
 Profile  
 
 Post subject: Re: The approaches about natural language programming
PostPosted: Sat Oct 26, 2019 11:52 am 
Offline
Member
Member
User avatar

Joined: Tue Mar 06, 2007 11:17 am
Posts: 1225
The same words/phrases/sequences always refer to the same set of limited meanings.

Why not add effective code to those things for parsing natural language and have the program give results that happen to be useful or enlightening at least to the one that programmed it?

Probably that's why humanoid/animal/vehicle robots are so intelligent. It seems that natural language needs a real world to emulate with a constant state, like what we experience. Then it's easy to derive verbal/visual/physical/logical/etc. results if we can spawn what is said and move things around to get results, like when reasoning.

Modisms seem to be an example of communicating things with the computer. They are constant, simple, set context immediately.

_________________
Live PC 1: Image Live PC 2: Image

YouTube:
http://youtube.com/@AltComp126/streams
http://youtube.com/@proyectos/streams

http://master.dl.sourceforge.net/projec ... 7z?viasf=1


Top
 Profile  
 
 Post subject: Re: The approaches about natural language programming
PostPosted: Sat Oct 26, 2019 1:22 pm 
Offline
Member
Member
User avatar

Joined: Wed Oct 27, 2010 4:53 pm
Posts: 1150
Location: Scotland
Ethin wrote:
I agree with everyone else here -- I do not consider NLP worthwhile.

Not quite. I consider it to be more than worthwhile, but didn't want to discuss it again until there's a demonstrable advance that makes it worth opening it up again.

Quote:
Finally, since we're on the subject, why would you even want to program in a naturalistic way?

Working at a higher level enables more automation. Imagine a user switching their computer on and having a conversation with it like this:-

"Can you make a wordprocessor that has every second line of text run from right to left instead of left to right?"

"Done."

"Great. Can you do it with the letters in mirror image when they're going to the left?"

"Done."

"Actually, I think it might be better to switch to Arabic text for going that way. Can you try that?"

"Done."

"Thanks - it looks great! That would have taken me at least a week of programming in the old days."

"That's what I'm here for."

Do you think anyone will program the old way once that kind of power is available?

_________________
Help the people of Laos by liking - https://www.facebook.com/TheSBInitiative/?ref=py_c

MSB-OS: http://www.magicschoolbook.com/computing/os-project - direct machine code programming


Top
 Profile  
 
 Post subject: Re: The approaches about natural language programming
PostPosted: Sat Oct 26, 2019 11:53 pm 
Offline
Member
Member

Joined: Thu May 17, 2007 1:27 pm
Posts: 999
What you describe is not programming but rather customization of an existing concept.

_________________
managarm: Microkernel-based OS capable of running a Wayland desktop (Discord: https://discord.gg/7WB6Ur3). My OS-dev projects: [mlibc: Portable C library for managarm, qword, Linux, Sigma, ...] [LAI: AML interpreter] [xbstrap: Build system for OS distributions].


Top
 Profile  
 
 Post subject: Re: The approaches about natural language programming
PostPosted: Sun Oct 27, 2019 11:22 am 
Offline
Member
Member
User avatar

Joined: Wed Oct 27, 2010 4:53 pm
Posts: 1150
Location: Scotland
Korona wrote:
What you describe is not programming but rather customization of an existing concept.

Most programming is just reinventing wheels, so it makes sense to automate all that by working at a high enough level to recognise that. There was an innovation in the example above in which every second line runs in the opposite direction. Most programming doesn't involve anything new though. Most parts of an operating system don't do anything new, but just produce the same old functionality as every other OS. If you're working at the highest level, you'd just say: "I want to make an operating system." The system replies, "You're using one already." You reply, "But I want to experiment with a new way of doing X." (Insert your experiment in place of X.) The system replies, "Okay, I can do that: wait a moment while I redesign myself... Done. Congratulations: you have speeded up performance by -55%. Do you want me to try anything else?"

_________________
Help the people of Laos by liking - https://www.facebook.com/TheSBInitiative/?ref=py_c

MSB-OS: http://www.magicschoolbook.com/computing/os-project - direct machine code programming


Top
 Profile  
 
 Post subject: Re: The approaches about natural language programming
PostPosted: Sun Oct 27, 2019 6:45 pm 
Offline
Member
Member

Joined: Sun Jun 23, 2019 5:36 pm
Posts: 618
Location: North Dakota, United States
Though that is an interesting (and star trek-ish way of working with a computer) I certainly wouldn't want to program a computer with it. Not only would it be too wordy but it would be way too abstract to me. Plus, if its going to be possible I'd want to do it in an offline manner instead of screaming my intentions to the universe.


Top
 Profile  
 
 Post subject: Re: The approaches about natural language programming
PostPosted: Sun Oct 27, 2019 11:10 pm 
Offline
Member
Member

Joined: Thu May 17, 2007 1:27 pm
Posts: 999
That's more science fiction than a system that is likely to exist in the next 100 years (and maybe ever).

_________________
managarm: Microkernel-based OS capable of running a Wayland desktop (Discord: https://discord.gg/7WB6Ur3). My OS-dev projects: [mlibc: Portable C library for managarm, qword, Linux, Sigma, ...] [LAI: AML interpreter] [xbstrap: Build system for OS distributions].


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 102 posts ]  Go to page 1, 2, 3, 4, 5 ... 7  Next

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 39 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group