#.
7 messages · Page 1 of 1 (latest)
Interesting!
Using pseudocode is a great way to express ideas more clearly, but in general, language models (and people) understand better if you use common syntax conventions. For example, using SudoLang, you don't need to explain how SudoLang works to the language model - they just intuitively understand it. People (especially with programming backgrounds) also pick it up more easily than if you invent a new syntax from scratch. See https://discord.com/channels/974519864045756446/1095895671925637180 and Google "The Art of Effortless Programming"
I did - it isn't the syntax you're using that is making it work. It's figuring things out from the context. Evidence - the [[ syntax is not what is causing the loops - it would have worked with any delimiter:
Eric
Please explain the meaning of the [[ syntax in the following:
[suggest{age: 30, interests: "technology, photography"}]]*5
ChatGPT
In the provided text, [[ and ]] are used as special delimiters to mark a custom embedded command or template within a string. This specific syntax seems to be designed for a content generation or recommendation system that processes these commands to generate desired outputs.
Let's break down the command inside the delimiters:
suggest: This is the main command or function, which appears to be responsible for generating suggestions or recommendations.
(gifts): This is an argument or parameter provided to the suggest command, indicating that the recommendations should be related to gifts.
{age: 30, interests: "technology, photography"}: This is a JSON-like object containing key-value pairs, providing additional information or filters for the recommendations. In this case, the age is set to 30, and the interests are "technology" and "photography". The system would use this data to provide more tailored suggestions.
*5: This part of the syntax indicates that the generated output should consist of 5 separate suggestions or recommendations.
In summary, the [[ and ]] syntax in the given example encloses a custom command for generating 5 gift recommendations for a person aged 30 with interests in technology and photography.
this is so much easier to understand compared to SudoLang
Nice, I like how terse it is!