{"id":748,"date":"2006-11-28T03:36:00","date_gmt":"2006-11-27T20:36:00","guid":{"rendered":"http:\/\/project-ile.net\/lulu\/confessions\/?p=29"},"modified":"2006-11-28T03:36:00","modified_gmt":"2006-11-27T20:36:00","slug":"29-2","status":"publish","type":"post","link":"https:\/\/project-ile.net\/lulu\/blog\/2006\/11\/28\/29-2\/","title":{"rendered":"FTOP"},"content":{"rendered":"<p>I want to design a programming paradigm that focus on fairy tale. Should I call it, FTOP Fairy tale oriented programming language. Why ? because most of the fairy tales are happy ending, so my programming paradigm should allow or force the programmer to be happier when they finish their job.<\/p>\n<p>In my idea, a program should be the hybrid between pure OOP and prototype-based programming (e.g. wolf eat: girl.prototype(size=small, hat.type=hood, hat.color=red)) plus some indent-forced style of evil Python . This should allow to reuse a fairy tale. I mean, fox is mostly a bad guy, we should reuse them, right.<\/p>\n<p>the program may be started and ended using tags like this<\/p>\n<p>once upon a time<br \/>\n&#8230;<br \/>\nhappily ever after<\/p>\n<p>Well, let&#8217;s try a short program then, let&#8217;s use this <a href=\"http:\/\/www.pitt.edu\/%7Edash\/type0333.html#perrault\">tale<\/a><\/p>\n<pre>tale name: \"Little Red Ridding Hood\"\nonce_upon_a_time: {\n   little_red_ridding = human clone:\n                              prototype: {sex = woman,\n                                          age = girl,\n                                          size = little,\n                                          living_place = country|village,\n                                          appearance = prettiest}.\n   mother = human clone:\n                  prototype: {sex = woman,\n                              age = adult,\n                              mother_of = little_red_ridding,\n                              living_place = little_red_ridding.living_place}.\n   grandmother = human clone:\n                       prototype: {sex = woman,\n                                   age = old,\n                                   mother_of = mother}.\n   little_red_ridding_hood = cloth clone:\n                                   prototype: {type = hood,\n                                               color = red}.\n   little_red_ridding prototype: {hat = little_red_ridding_hood}.\n   cakes = food clone:\n                prototype: {type = cake}.\n   mother made: cakes\n          said: \"Go, my dear, and see how your grandmother is  doing,\n                 for I hear she has been very ill. Take her a cake,\n                 and this little pot of butter.\"\n          to: little_red_ridding.\n   grandmother prototype: {living_place = other_village}.\n   little_red_ridding go: grandmother.living_place.\n   wolf = animal clone:\n                 prototype: {type = wolf}.\n   little_red_ridding met: wolf.\n   woodcutters =  human clone: many\n                        prototype: {sex = man,\n                                    age = adult}.\n   wolf wanted: (eat: girl)\n        but: (cannot because: woodcutters location: nearby)\n        said: \"where she was going\"\n        to: little_red_ridding.\n   little_red_ridding know: !(talk: wolf)\n                      said: \"I am going to see my grandmother\n                             and carry  her a cake and a little pot\n                             of butter from  my mother.\"\n                      to: wolf.\n   wolf said: \"Does she live far off?\"\n        to: little_red_ridding.\n   little_red_ridding said: {\"Oh I say,\", \"it is beyond that mill you see \n                              there, at the first house in the village.\"}\n                      to: wolf.\n   wolf said: {\"Well,\", \"and I'll go and see her too. I'll go this way\n                and go you that, and we shall see who will be there first.\"}\n        to: little_red_ridding.\n   wolf ran: fast\n        gathered: nuts\n        ran: (after: butterflies)\n        gathered: (bouquets of:  flowers clone: many\n                                         prototype: {size = little}).\n    wolf knocked: grandmother.house.\n    grandmother said: \"Who's there?\"\n                to: wolf.\n    wolf counterfeit: little_red_ridding.voice\n           said: {\"Your grandchild, Little Red Riding Hood,\",\n                  \"who has brought you a cake and a little pot of butter\n                   sent you by mother.\"}\n           to: grandmother.\n   grandmother prototype: {status = ill}\n               said: \"Pull the bobbin, and the latch will go up.\"\n               to: wolf.\n   wolf pulled: bobbin\n        opened: door\n        ate: grandmother\n        shut: door\n        get_into: bed.\n   little_red_ridding knocked: door.\n   wolf said: \"Who's there?\"\n        to: little_red_ridding.\n   little_red_ridding heard: wolf.voice\n                      afraid: wolf.voice\n                      believed: (grandmother cold: hoarse:)\n                      said: \"It is your grandchild Little Red Riding  Hood,\n                             who has brought you a cake and a little pot of \n                             butter mother sends you.\"\n                     \u00a0to: wolf.\n   wolf cried:\n        soften: wolf.voice\n        said: \"Pull the bobbin, and the latch will go up.\"\n        to: little_red_ridding.\n   little_red_ridding pulled: bobbin\n                      opened: door.\n   wolf saw: (little_red_ridding came:)\n        said: \"Put the cake and the little pot of butter upon\n              \u00a0the stool, and come get into bed with me.\"\n        to: little_red_ridding\n        hide: (bedclothes under:).\n   little_red_ridding took_off: her.cloth\n                     \u00a0moved_to: bed\n                      amazed:\n                      saw: (grandmother.nightClothes)\n                      said: \"Grandmother, what big arms you have!\"\n                      to: wolf.\n   wolf said: \"All the better to hug you with, my dear.\"\n        to: little_red_ridding.\n   little_red_ridding said: \"Grandmother, what big legs you have!\"\n                     \u00a0to: wolf.\n   wolf said: \"All the better to run with, my child.\"\n        to: little_red_ridding.\n   little_red_ridding said: \"Grandmother, what big ears you have!\"\n                      to: wolf.\n  \u00a0wolf said: \"All the better to hear with, my child.\"\n        to: little_red_ridding.\n  \u00a0little_red_ridding said: \"Grandmother, what big eyes you have!\"\n                     \u00a0to: wolf.\n   wolf said: \"All the better to see with, my child.\"\n       \u00a0to: little_red_ridding.\n   little_red_ridding said: \"Grandmother, what big teeth you have got!\"\n                     \u00a0to: wolf.\n   wolf said: \"All the better to eat you up with.\"\n        to: little_red_ridding\n        ate: little_red_ridding.\n} happily_ever_after:<\/pre>\n<p>Errr well, it&#8217;s not happy ending, I should put grammatical error around here. Anyway, you got the idea \ud83d\ude00<\/p>\n<p>I&#8217;ll try to show you another program later, maybe &#8230; snow white.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I want to design a programming paradigm that focus on fairy tale. Should I call it, FTOP Fairy tale oriented programming language. Why ? because most of the fairy tales are happy ending, so my programming paradigm should allow or force the programmer to be happier when they finish their job. In my idea, a [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[38],"tags":[],"class_list":["post-748","post","type-post","status-publish","format-standard","hentry","category-language"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3RSgi-c4","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/project-ile.net\/lulu\/blog\/wp-json\/wp\/v2\/posts\/748"}],"collection":[{"href":"https:\/\/project-ile.net\/lulu\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/project-ile.net\/lulu\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/project-ile.net\/lulu\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/project-ile.net\/lulu\/blog\/wp-json\/wp\/v2\/comments?post=748"}],"version-history":[{"count":0,"href":"https:\/\/project-ile.net\/lulu\/blog\/wp-json\/wp\/v2\/posts\/748\/revisions"}],"wp:attachment":[{"href":"https:\/\/project-ile.net\/lulu\/blog\/wp-json\/wp\/v2\/media?parent=748"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/project-ile.net\/lulu\/blog\/wp-json\/wp\/v2\/categories?post=748"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/project-ile.net\/lulu\/blog\/wp-json\/wp\/v2\/tags?post=748"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}