From mboxrd@z Thu Jan 1 00:00:00 1970 From: Isaac Subject: proposal for a tool to translate orgmode outlines into programs Date: Fri, 4 Oct 2013 16:38:52 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46791) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VS8QE-0005Bm-8X for emacs-orgmode@gnu.org; Fri, 04 Oct 2013 12:40:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VS8Q8-0004L4-Dv for emacs-orgmode@gnu.org; Fri, 04 Oct 2013 12:40:10 -0400 Received: from plane.gmane.org ([80.91.229.3]:57587) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VS8Q8-0004JK-7D for emacs-orgmode@gnu.org; Fri, 04 Oct 2013 12:40:04 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VS8Q6-0008BG-Pz for emacs-orgmode@gnu.org; Fri, 04 Oct 2013 18:40:03 +0200 Received: from yx.mskcc.org ([140.163.254.27]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Oct 2013 18:40:02 +0200 Received: from isaacpei by yx.mskcc.org with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Oct 2013 18:40:02 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org proposal for a tool to translate orgmode outlines into programs Idea: a program to translate orgmode note into script/programs which can be used as a template/starting point for a real program after debugging, refactoring. Background and reasons: As I am accumulating more orgmode notes for problem solving, task planning, project coordination, I think it would be nice if a tool can translate the orgmode (especially those problem solving ones) into programs (as much as it can)- at least a program skeleton, where after ideas(outlines) are done, we can generate a corresponding program which can be quickly edited/debugged/re factored/tightened up to be useful running programs - to facilitate problem solving and task repetition in the future. Questions and Discussions: 1. whether this would be a worthwhile idea, or such idea has been tried before? 2. do we have alternative solutions? 3. if indeed this idea is interesting, what programming language it would e worthwhile to translate to? currently I am thinking more along of the line of python, as its indenting structure more or less resemble outlines. (though my personal take for writing script is in ruby, lua is another interesting choice). this 3rd question is what I don't know for sure, I found for me ruby is more productive for scripting, and python has better supports ... ruby could be another attractive choice - level 1 headlines maybe translated to a class, while other levels translate to methods ... Welcome your comments and ideas thanks, Isaac (while I am doing some search, found 1. the reverse direction of this is: https://github.com/bjonnh/PyOrgMode - python reading and writing orgmode, but would I would prefer is orgmode => python/ruby instead. 2. another candidate is tangle - but idea here is different, not to export codes written in orgmode, but to translate/turn orgmode text directly into codes. 3. an interesting node.js parser for orgmode: https://github.com/daitangio/org-mode-parser Some further elaboration: 1. say if a headline is an action: translate to def ... a function 2. say if a headline is some description: translate to class ... 3. some long lines can be simply turned to comments/docstring 4. ... maybe ... some NLP can be used to decide what actions to take?