TACL

所属分类:数据结构
开发工具:Others
文件大小:0KB
下载次数:0
上传日期:2023-12-10 03:19:06
上 传 者sh-1993
说明:  事物动作上下文语言(TACL)是一种以封装数据、动作和控制的“事物”概念为中心的语言
(Thing-Action-Context Language (TACL) is a language that centers around the concept of "Things" which encapsulate data, actions, and control)

文件列表:
examples/
appendices.md
languageagnostic_example.md
specification.md
trainingprompt.md
trainingprompt_example.md
trainingprompt_example_conveyorvfd.md

# Thing-Action-Context Language (TACL) A Domain-Specific, General Purpose Language to Think and Write In "We gotta find a way to [make] \{this\} [fit] into the \, using \{nothing but that\}." - [Apollo 13](https://www.youtube.com/watch?v=ry55--J4_VQ)
Translation is [Make-fit-into] with {this, nothing-but-that}
--- - [Specification](specification.md) - [Appendices (original examples)](appendices.md) ``` [Acronymize]{"Thing-Action-Context Language"} [Print]{theAcronym} ## Run the code above in your head and see below for the answer! ```
Evaluation ``` # As output in the command line of your brain: # > TACL ```
Thing-Action-Context Language, or TACL, is a "programming" "language" I designed to act as an "intermediate language" between my brain and a language model or AI that can produce code. I "write" code in plain English, using a simple brackets-only syntax, and give that to the AI to turn into actual code in my target language. I can then review the code, and focus on the last 90% of programming that requires a human mind. The syntax is flexible enough that I can manually "call out" target-language-specific expressions (such as an "[AssignType](/examples/tacling_c_pointers.tacl)" action that would be required in C-targeted TACL but not in Python-targeted TACL) as needed, and focus on declaring what I want to see performed in the target code, as brief as possible and as detailed as required. It also forces me to think about and express programming in a semi-abstract way, while thinking through problems; it's more "code-like" than plain-English pseudocode, but not quite a proper "standard" language like Python. The fact that it doesn't need to compile, and thus there are no true "wrong" ways to use it (the end-goal is that the *AI* understands what you want to do!), makes it so that one can use it however _they_ use _their_ language. It doesn't have to be English! I could take someone's TACL that's written in a language I don't know, like Korean, and translate it to English, giving me a programming-language-agnostic yet still-precise "thought-for-thought" expression of someone else's scratch ideas. The brackets purposefully surround the whole "Thing" name, and every expression in TACL, which in turn allows any sequence of unicode characters to act as names, with delimiting to separate yet connect "contexts". This makes "variable naming" totally and completely open to creativity. Basic UpperCamelCase? That's my preference, but it's only a preference. A whole sentence, with spaces? I won't stop you! Emojis? Sure, yeah. ONLY variations of the pointing fingers? Actually... `<>[]{}`. Most usefully, it allows for natural and intuitive writing in one's own language, however ordered (LTR, RTL, etc.), however expressed natively or idiosyncratically, with only a few reserved characters for delimiting the part of speech of TACL. It is thus easily Thing-for-Thing translated into other languages using translators, or into actual code using AI. I asked GPT-4 what the "do one thing well" that this language provides is, given the specification, and this is what it said: > The "do one thing well" for Thing-Action-Context Language (TACL) can be summarized as providing a clear and expressive framework for programmatic instruction and control flow that closely aligns with natural language constructs. It excels at allowing users to define and manipulate data, actions, and contexts with an emphasis on readability and ease of understanding. TACL achieves this through a unique syntax that organizes code into "Things" (data or actions) and their associated contexts. ## Example: Hello World In this program, we define a`Main`action that takes one input. This action simply prints "Hello World! ..." to the output and returns 0. (If it returns "An Error has occurred.", the reader is encouraged to contact a physician.) ```TACL # Define the action "Main" with the system "DefineAction" action
[DefineAction]{ {myName} "An Error has occurred." { [Print]{"Hello World! My name is ", myName, "!"} {0} } } # Execute the action "Main" with my name as the input [Main]{"Corey"} ## Run the code above in your head and see below for the answer! ```
Evaluation ``` # As output in the command line of your brain: > Hello World! My Name is Corey! ```
--- https://coreynaas.com/ coreynaas@outlook.com Copyright 2023 Corey Naas. All rights reserved. ---

近期下载者

相关文件


收藏者