OSDev.org

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

All times are UTC - 6 hours




Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: The Malevolent Mathemagician | Natural Language Programming
PostPosted: Fri Mar 23, 2018 12:28 pm 
Offline
Member
Member

Joined: Thu May 19, 2011 5:13 am
Posts: 228
https://www.geeksforgeeks.org/the-malev ... ogramming/

_________________
Mike Gonta
look and see - many look but few see

https://mikegonta.com


Top
 Profile  
 
 Post subject: Re: The Malevolent Mathemagician | Natural Language Programm
PostPosted: Sun Mar 25, 2018 3:52 pm 
Offline
Member
Member

Joined: Mon Jul 25, 2016 6:54 pm
Posts: 223
Location: Adelaide, Australia
mikegonta wrote:
https://www.geeksforgeeks.org/the-malevolent-mathemagician-natural-language-programming/

Is it just me or is this article really rambling and vague?
There seems to me to be zero connection between the strange anecdote in the intro and everything else except a odd anti-intellectualism contrasting "natural" and "rational" stuff with "mathemagic".


Top
 Profile  
 
 Post subject: Re: The Malevolent Mathemagician | Natural Language Programm
PostPosted: Mon Mar 26, 2018 12:58 pm 
Offline
Member
Member
User avatar

Joined: Wed Oct 27, 2010 4:53 pm
Posts: 1150
Location: Scotland
It's written by Gerry Rzeppa, the Plain English programming guy. He doesn't like some aspects of reality, such as numbers that can't be expressed as whole numbers, and yet he uses fractions happily enough in his code. He also dislikes nested loops and nested if-clauses, probably because it's easier to write a compiler if it doesn't have to handle them. He doesn't like OOP on the basis that some parts of the way it's done are irrational, so he throws out the baby with the bath water. He's interesting though - I've learned a few things from seeing his mistakes, and he's helped me to see through what was a thick patch of fog.

_________________
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 Malevolent Mathemagician | Natural Language Programm
PostPosted: Mon Mar 26, 2018 7:34 pm 
Offline
Member
Member

Joined: Mon Jul 25, 2016 6:54 pm
Posts: 223
Location: Adelaide, Australia
That explains a lot, this in particular is a head scratcher:
Quote:
We began by borrowing some ideas from non-mathemagicians, like old-time roofers and ancient explorers. From the roofers we got the idea that angles can be expressed in “rise over run” terms (instead of degrees); and from explorers we got the idea for something more natural than the infamous “unit circle” of the mathemagic world: the compass. This is a picture of our Osmosian compass:

Line slope is often used in place of angles. (and I guess he thinks Euclid was a roofer?)
And I have no idea why the compass is considered an alternative to the unit circle, which illustrates points on a circle by their slope instead of degrees, which I guess is bad now. I also like the ultra convenient 384 degree compass he draws below, I guess he doesn't know 360 degrees was chosen due to how easy it was to factorise, something that seems like it would fit very well with his integer ratios only kinda deal.
Finally when I google Osmosian I just get links to an alien race from a cartoon, so I don't know what the deal with that is.


Top
 Profile  
 
 Post subject: Re: The Malevolent Mathemagician | Natural Language Programm
PostPosted: Tue Mar 27, 2018 3:59 am 
Offline
Member
Member

Joined: Thu May 19, 2011 5:13 am
Posts: 228
StudlyCaps wrote:
Finally when I google Osmosian I just get links to an alien race from a cartoon, so I don't know what the deal with that is.
Search skills, maybe?
On the second page (with the default 10 results per page) there is a github link to a fork of the original Osmosian Plain English compiler.
The 4th page has more related links, including the The Osmosian Manifesto.
Funnily enough, Forest Gump thought that Apple was a fruit company.
A google search for apple produces 10 pages before anything fruit related.

_________________
Mike Gonta
look and see - many look but few see

https://mikegonta.com


Top
 Profile  
 
 Post subject: Re: The Malevolent Mathemagician | Natural Language Programm
PostPosted: Tue Mar 27, 2018 4:29 am 
Offline
Member
Member

Joined: Mon Jul 25, 2016 6:54 pm
Posts: 223
Location: Adelaide, Australia
That manifest sure is something...


Top
 Profile  
 
 Post subject: Re: The Malevolent Mathemagician | Natural Language Programm
PostPosted: Tue Mar 27, 2018 7:30 am 
Offline
Member
Member

Joined: Thu May 19, 2011 5:13 am
Posts: 228
DavidCooper wrote:
It's written by Gerry Rzeppa, the Plain English programming guy. ...
He also dislikes nested loops and nested if-clauses, probably because it's easier to write a compiler if it doesn't have to handle them.
You should know that that is not the real reason (even if you don't yet know the actual reasons).
Nested constructs are trivial to implement with recursive decent. While there are some programming languages which don't support
recursion, Plain English is not one of them.

_________________
Mike Gonta
look and see - many look but few see

https://mikegonta.com


Top
 Profile  
 
 Post subject: Re: The Malevolent Mathemagician | Natural Language Programm
PostPosted: Tue Mar 27, 2018 7:31 am 
Offline
Member
Member

Joined: Thu May 19, 2011 5:13 am
Posts: 228
StudlyCaps wrote:
That manifest sure is something...
Especially when you read past the first page...

_________________
Mike Gonta
look and see - many look but few see

https://mikegonta.com


Top
 Profile  
 
 Post subject: Re: The Malevolent Mathemagician | Natural Language Programm
PostPosted: Tue Mar 27, 2018 11:40 am 
Offline
Member
Member
User avatar

Joined: Wed Oct 27, 2010 4:53 pm
Posts: 1150
Location: Scotland
mikegonta wrote:
Nested constructs are trivial to implement with recursive decent. While there are some programming languages which don't support
recursion, Plain English is not one of them.

I don't like being forced by a programming language to make an unnecessary call to what should simply be an inner loop. It makes it harder to read what the program does, and that's why I don't buy his reason for it. I'm sure there are also times where it is better to do it the way Plain English forces you to, but I want to be able to decide for myself when to do that. It's the same with nested "if"s. However, these issues appear to come down to compiler simplification - it's just a prototype system and not the end product, which also excuses the simple way he's put the machine code fragments into it. It's a proof of concept, and it's an admirable one. The place where I part company with him most though is where he imposes his philosophy on how you have to do things instead of leaving it open for you to make your own decisions. And, as I said before, I learned a lot from looking at his compiler - it gave me ideas about how to automate the generation of parts of programs which I'm now following up. I like Gerry and consider anything he's written to be worth a look. (Many look and some see.)

_________________
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 Malevolent Mathemagician | Natural Language Programm
PostPosted: Tue Mar 27, 2018 12:26 pm 
Offline
Member
Member

Joined: Thu May 19, 2011 5:13 am
Posts: 228
DavidCooper wrote:
I don't like being forced by a programming language to make an unnecessary call to what should simply be an inner loop.
Do you mean unnecessary typing or unnecessary call overhead? As I mentioned previously, an optimizing Plain English compiler
will eliminate the overhead by nesting the output. If it's typing you're concerned with, then maybe brainf*ck would be a better choice.
DavidCooper wrote:
It makes it harder to read what the program does, and that's why I don't buy his reason for it.
Factoring the code into separate functions is what makes it easier to read and understand.
DavidCooper wrote:
(Many look and some see.)
Sounds a bit too optimistic to me.

_________________
Mike Gonta
look and see - many look but few see

https://mikegonta.com


Top
 Profile  
 
 Post subject: Re: The Malevolent Mathemagician | Natural Language Programm
PostPosted: Wed Mar 28, 2018 1:46 am 
Offline
Member
Member

Joined: Mon Jul 25, 2016 6:54 pm
Posts: 223
Location: Adelaide, Australia
mikegonta wrote:
StudlyCaps wrote:
That manifest sure is something...
Especially when you read past the first page...

I actually read all three pages, but I kinda switched off when I realized it was ~ style pairing of delusions of grandeur and the old fallacy of "if I don't understand X then it is impossible, because I'm very smart".

Anyway I think the article (and manifesto) are poorly written, and I don't think much of their ideas, but I'll duck out now and let the people who are interested discuss it.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 35 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