<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel rdf:about="https://community.wolfram.com">
    <title>Community RSS Feed</title>
    <link>https://community.wolfram.com</link>
    <description>RSS Feed for Wolfram Community showing ideas tagged with Staff Picks sorted by active.</description>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/3717709" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/3717198" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/3716885" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/3716766" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/3714827" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/3715139" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/3716833" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/3716486" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/3716438" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/3716185" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/3713047" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/3716240" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/3716255" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/3710334" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/3715214" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/3706475" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/3715438" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/3715016" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/3714716" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/3713462" />
      </rdf:Seq>
    </items>
  </channel>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/3717709">
    <title>The Moving Sofa Problem: numerical optimization in 2D and beyond</title>
    <link>https://community.wolfram.com/groups/-/m/t/3717709</link>
    <description>&amp;amp;[Wolfram Notebook][1]&#xD;
&#xD;
&#xD;
  [1]: https://www.wolframcloud.com/obj/437e8a0f-3bd5-4330-8049-aa11a9c94850</description>
    <dc:creator>Marco Thiel</dc:creator>
    <dc:date>2026-05-18T10:10:15Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/3717198">
    <title>Time travel through the atmosphere: replaying historical weather from 1940 to today</title>
    <link>https://community.wolfram.com/groups/-/m/t/3717198</link>
    <description>![Time travel through the atmosphere: replaying historical weather from 1940 to today][1]  &#xD;
&#xD;
*A 24-hour reanalysis of Hurricane Katrina making landfall on 29 August 2005, reconstructed hour-by-hour from ERA5 alone &amp;#x2014; no satellite imagery involved.  Below: the mechanism behind it, an explanation of why the same trick works for any date since 1 January 1940, and a walk through Apollo 11&amp;#039;s launch morning, the 1953 North Sea Flood, the 1987 UK Great Storm, the 2003 European heatwave, Hurricane Katrina, Stephen Wolfram&amp;#039;s birthday in 1959, and the winter inside the Stalingrad pocket.*&#xD;
&#xD;
&amp;amp;[Wolfram Notebook][2]&#xD;
&#xD;
&#xD;
  [1]: https://community.wolfram.com//c/portal/getImageAttachment?filename=katrina_landfall-resize.gif&amp;amp;userId=20103&#xD;
  [2]: https://www.wolframcloud.com/obj/419d876d-af07-4e6a-98d7-35bd1e67e911</description>
    <dc:creator>Marco Thiel</dc:creator>
    <dc:date>2026-05-18T08:46:48Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/3716885">
    <title>Google Earth Engine (GEE) paclet: climate and weather analysis</title>
    <link>https://community.wolfram.com/groups/-/m/t/3716885</link>
    <description>&amp;amp;[Wolfram Notebook][1]&#xD;
&#xD;
&#xD;
  [1]: https://www.wolframcloud.com/obj/569bbd97-1fa8-456e-b49a-dbdbf68bf7e5</description>
    <dc:creator>Diego Zviovich</dc:creator>
    <dc:date>2026-05-15T21:21:37Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/3716766">
    <title>Chatnik: LLM host in the shell -- Part 1: Examples &amp;amp; design principles</title>
    <link>https://community.wolfram.com/groups/-/m/t/3716766</link>
    <description>[![enter image description here][1]](https://resources.wolframcloud.com/PacletRepository/resources/AntonAntonov/Chatnik/)&#xD;
&#xD;
## Introduction&#xD;
&#xD;
[&amp;#034;Chatnik&amp;#034;](https://resources.wolframcloud.com/PacletRepository/resources/AntonAntonov/Chatnik/), \[AAp9\], &#xD;
is a Wolfram Language (WL) paclet that provides Command Line Interface (CLI)&#xD;
scripts for conversing with multiple, persistent Large Language Model (LLM) personas. &#xD;
Files of the host Operating System (OS) are used to maintain persistence.&#xD;
&#xD;
Most importantly, &amp;#034;Chatnik&amp;#034; does not try to entrench users in its own user experience (loop) for interaction with LLMs.&#xD;
Instead, it brings customizable LLM invocations and conversations into the Unix shell -- &#xD;
making them composable, integratable, and scriptable with existing workflows.&#xD;
&#xD;
In other words, the tag line &amp;#034;LLM Host in the Shell&amp;#034; should be understood as &amp;#034;LLMs, not as an app -- but as a Unix shell primitive.&amp;#034; &#xD;
&#xD;
Here are the most notable &amp;#034;Chatnik&amp;#034; features:&#xD;
&#xD;
- Provides UNIX shell pipelining for LLM interactions&#xD;
- Maintains a database of LLM chat objects&#xD;
- Connects to multiple models across different LLM providers&#xD;
- Offers access to a large repository of prompts&#xD;
- Enables convenient retrieval of interaction history&#xD;
- Includes management tools for the LLM chat object database&#xD;
- Preprocesses prompts using a simple domain-specific language (DSL)&#xD;
- Supports loading user-defined LLM personas from JSON files&#xD;
&#xD;
**Remark:** &amp;#034;Chatnik&amp;#034; closely follows the LLM-chat objects interaction system of the Python package [&amp;#034;JupyterChatbook&amp;#034;](https://pypi.org/project/JupyterChatbook/), \[AAp3\], &#xD;
and Raku package [&amp;#034;Jupyter::Chatbook&amp;#034;](https://raku.land/zef:antononcube/Jupyter::Chatbook), \[AAp7\]. &#xD;
Another (remote) resemblance can be found with the Wolfram Language paclet [&amp;#034;Chatbook&amp;#034;](https://resources.wolframcloud.com/PacletRepository/resources/Wolfram/Chatbook/), \[CGp1\]. &#xD;
(In other words, using OS shells instead of Jupyter or Wolfram notebooks.)&#xD;
&#xD;
**Remark:** The WL paclet &amp;#034;Chatnik&amp;#034;, \[AAp9\], is a translation of the Raku package [&amp;#034;Chatnik&amp;#034;](https://github.com/antononcube/Raku-Chatnik), \[AAp8\]&#xD;
and the Python package [&amp;#034;Chatnik&amp;#034;](https://pypi.org/project/Chatnik/), \[AAp4\].&#xD;
The WL CLI scripts are with CamelCase, i.e. `LLMChat`, `LLMChatMeta`, and `LLMPrompt`.&#xD;
The corresponding CLI scripts of the Raku package use kebab-case, i.e. `llm-chat`, `llm-chat-meta`, and `llm-prompt`.&#xD;
The corresponding CLI scripts of the Python package use snake_case, i.e. `llm_chat`, `llm_chat_meta`, and `llm_prompt`.&#xD;
&#xD;
**Remark:** In addition, the Raku package provides the &amp;#034;umbrella&amp;#034; CLI `chatnik`.&#xD;
&#xD;
**Remark:** When the phrase &amp;#034;Chatnik system&amp;#034; is used that is in order to emphasize that there are &amp;#034;Chatnik&amp;#034; packages in several programming languages with (almost) the same design and usage.&#xD;
&#xD;
The rest of this document is organized as follows:&#xD;
&#xD;
- Introductory examples&#xD;
- Why make another LLM-CLI system?&#xD;
- Architectural design&#xD;
- Related and alternative packages&#xD;
&#xD;
----&#xD;
&#xD;
## Introductory examples&#xD;
&#xD;
The examples in this section demonstrate how the CLI scripts `LLMChat` and `LLMChatMeta` -- provided by &amp;#034;Chatnik&amp;#034; -- &#xD;
are used to have multi-turn LLM conversations and compose Unix shell pipelines with LLM interaction messages.&#xD;
&#xD;
**Remark:** In order to use these scripts use the function [`ChatnikCopyScripts`](https://resources.wolframcloud.com/PacletRepository/resources/AntonAntonov/Chatnik/ref/ChatnikCopyScripts.html)  &#xD;
after installing &amp;#034;Chatnik&amp;#034;.&#xD;
&#xD;
**Remark:** The prompts used in the examples are provided by the [Wolfram Prompt Repository (WPR)](https://resources.wolframcloud.com/PromptRepository/).&#xD;
Many of those prompts are also available in Python and Raku via the packages [&amp;#034;LLMPrompts&amp;#034;](https://pypi.org/project/LLMPrompts), \[AAp2\], and [&amp;#034;LLM::Prompts&amp;#034;](https://raku.land/zef:antononcube/LLM::Prompts), \[AAp6\], respectively.&#xD;
&#xD;
### Chat with Yoda&#xD;
&#xD;
Here we create an LLM persona -- by naming it and &amp;#034;priming it&amp;#034; with a prompt -- and start interacting with it:&#xD;
&#xD;
```shell&#xD;
LLMChat &amp;#039;Hi! Who are you?&amp;#039; --chat-id=yoda --prompt=@Yoda &#xD;
```&#xD;
```&#xD;
# Yoda, I am. Wise and old Jedi Master, yes. Help you with the Force, I will. Hmm.&#xD;
```&#xD;
&#xD;
&#xD;
Here we continue the conversation -- using the `--i` synonym of `--chat-id`:&#xD;
&#xD;
```shell&#xD;
LLMChat &amp;#039;How many students did you have?&amp;#039; --i=yoda &#xD;
```&#xD;
```&#xD;
# Many students, I have trained in my long life. Countless, they are. Luke Skywalker, young Anakin, and others, yes. Teach them the ways of the Force, I did. Hmm. Important balance, training Jedi is. Patience and wisdom, the path to success they are.&#xD;
```&#xD;
&#xD;
And continue the discussion some more: &#xD;
&#xD;
```shell&#xD;
LLMChat &amp;#039;Which student is the best?&amp;#039; --i=yoda &#xD;
```&#xD;
```&#xD;
# Best student, difficult to say, it is. Each has strengths and weaknesses, hmmm. Luke Skywalker, strong in the Force he is. Anakin, powerful but troubled, hmmm. Learn from mistakes, all must. Judge by heart and actions, we should. Humble and wise, the true measure of a Jedi is. Yes.&#xD;
```&#xD;
&#xD;
The example used the LLM persona [&amp;#034;Yoda&amp;#034;](https://resources.wolframcloud.com/PromptRepository/resources/Yoda).&#xD;
(See more LLM personas [here](https://resources.wolframcloud.com/PromptRepository/category/personas?sortBy=Name).)&#xD;
&#xD;
### Fortune-echo-limerick pipeline&#xD;
&#xD;
Here we specify a pipeline for&#xD;
1. Getting a fortune&#xD;
2. Echoing it&#xD;
3. Using the fortune to make a limerick&#xD;
&#xD;
&#xD;
```&#xD;
fortune | tee /dev/tty | LLMChat --prompt=&amp;#034;Make a limerick from the given text:&amp;#034;&#xD;
```&#xD;
&#xD;
```text&#xD;
I have made this letter longer than usual because I lack the time to&#xD;
make it shorter.&#xD;
		-- Blaise Pascal&#xD;
		&#xD;
There once was a note, quite verbose,  &#xD;
Longer than needed, I suppose.  &#xD;
Pascal said with a grin,  &#xD;
“To be short takes more spin,”  &#xD;
So brevity’s craft he chose to oppose.&#xD;
```&#xD;
&#xD;
**Remark:** In the shell command above, `LLMChat` created (or reused) a chat object with the default identifier &amp;#034;NONE&amp;#034;. &#xD;
&#xD;
### Make a diagram from previous results&#xD;
&#xD;
Here we use prompt expansion to request the creation of a [Mermaid-JS diagram](https://mermaid.js.org) via the&#xD;
prompt [&amp;#034;CodeWriterX&amp;#034;](https://www.wolframcloud.com/obj/antononcube/DeployedResources/Prompt/CodeWriterX/):&#xD;
&#xD;
```&#xD;
LLMChatMeta last-message --i=NONE | LLMChat - --i=mmd --prompt=&amp;#039;Make a mermaid.js sequence diagram #NothingElse|&amp;#034;mermaid.js code&amp;#034;&amp;#039;&#xD;
```&#xD;
&#xD;
````&#xD;
```mermaid&#xD;
sequenceDiagram&#xD;
    participant Blaise as Blaise Pascal&#xD;
    participant Note as Note&#xD;
    participant Reader as Reader&#xD;
&#xD;
    Blaise-&amp;gt;&amp;gt;Note: Write verbose letter&#xD;
    Note-&amp;gt;&amp;gt;Reader: Deliver longer-than-usual message&#xD;
    Blaise-&amp;gt;&amp;gt;Reader: &amp;#034;To be short takes more spin&amp;#034;&#xD;
    Note-&amp;gt;&amp;gt;Reader: &amp;#034;Brevity&amp;#039;s craft opposed&amp;#034;&#xD;
```&#xD;
````&#xD;
&#xD;
Since the result is given in Markdown code fences we take the last message via the CLI script `LLMMetaChat`,&#xD;
then use `sed` to remove the first and last lines, and then pass that text to the terminal &#xD;
Mermaid-JS visualizer [`mmdflux`](https://github.com/kevinswiber/mmdflux):&#xD;
&#xD;
```&#xD;
LLMChatMeta last-message --i=mmd | sed &amp;#039;1d; $d&amp;#039; | mmdflux&#xD;
```&#xD;
&#xD;
```text&#xD;
┌───────────────┐                        ┌──────┐                            ┌────────┐&#xD;
│ Blaise Pascal │                        │ Note │                            │ Reader │&#xD;
└───────┬───────┘                        └───┬──┘                            └────┬───┘&#xD;
        │                                    │                                    │&#xD;
        │─Write verbose letter──────────────&amp;gt;│                                    │&#xD;
        │                                    │                                    │&#xD;
        │                                    │─Deliver longer-than-usual message─&amp;gt;│&#xD;
        │                                    │                                    │&#xD;
        │─&amp;#034;To be short takes more spin&amp;#034;──────────────────────────────────────────&amp;gt;│&#xD;
        │                                    │                                    │&#xD;
        │                                    │─&amp;#034;Brevity&amp;#039;s craft opposed&amp;#034;─────────&amp;gt;│&#xD;
        │                                    │                                    │&#xD;
```&#xD;
&#xD;
**Remark:** Since the result is usually given in Markdown code fences, we did not make a pipeline to plot the diagram.&#xD;
We used two shell commands in order to observe the intermediate result.&#xD;
&#xD;
**Remark:** The default object identifier for both `LLMChat` and `LLMChatMeta` is &amp;#034;NONE&amp;#034;.&#xD;
&#xD;
### Copy-editing&#xD;
&#xD;
Here is a very practical example --&#xD;
this document was copy-edited with the prompt [&amp;#034;CopyEdit&amp;#034;](https://resources.wolframcloud.com/PromptRepository/resources/CopyEdit) &#xD;
using the following commands:&#xD;
&#xD;
```&#xD;
cat Chatnik-LLM-Host-in-the-Shell-Part-1.md | LLMChat - --i=ce --prompt=@CopyEdit --model=gpt-5.4-mini --max-tokens=16384&#xD;
LLMChatMeta  last-message --i=ce &amp;gt; Chatnik-LLM-Host-in-the-Shell-Part-1_edited.md&#xD;
open Chatnik-LLM-Host-in-the-Shell-Part-1_edited.md&#xD;
```&#xD;
&#xD;
(And, yes, the LLM copy-edited version was evaluated, and some edits were rejected.)&#xD;
&#xD;
---&#xD;
&#xD;
## Why make another LLM-CLI system?&#xD;
&#xD;
### Some questions to answer&#xD;
&#xD;
* Why do it?&#xD;
* Why was it relatively easy to do?&#xD;
* Why is it useful?&#xD;
&#xD;
### Why do it?&#xD;
&#xD;
Most LLM interfaces -- both &amp;#034;big&amp;#034; popular ones and those built by developers experimenting with LLMs -- default to an application-centric design: a closed interaction loop with implicit state. &#xD;
This pattern is convenient, but very limiting. It can be cynically seen as an intentional effort for user lock-in or just as an attempt to impose certain user-experience views.&#xD;
It works against the &amp;#034;freedom enabling&amp;#034; Unix design principles. (Such as composability, transparency, and scriptability.)&#xD;
&#xD;
With &amp;#034;Chatnik&amp;#034;, instead of adapting workflows to fit an LLM application, LLM capabilities are brought into the shell as first-class primitives.&#xD;
This enables reuse of existing tooling (pipes, redirects, scripts) and aligns LLM interaction with long-established UNIX practices.&#xD;
&#xD;
### Why was it relatively easy to do?&#xD;
&#xD;
&amp;#034;Chatnik&amp;#034; is a composition of existing capabilities rather than a ground-up implementation:&#xD;
&#xD;
* Modern LLM providers (e.g., OpenAI, Google, Ollama) expose messy, non-uniform APIs that should be abstracted behind a single interface&#xD;
* The Raku ecosystem already provides flexible text processing, DSL making and usage, and CLI tooling&#xD;
* The &amp;#034;LLM::Functions&amp;#034; package encapsulates model interaction patterns, reducing knowledge of concrete APIs&#xD;
* Persistence can be implemented with simple file-based storage, avoiding the need for complex infrastructure&#xD;
&#xD;
**Remark:** Related to the last point above, the following quote is attributed to [Ken Thompson](https://en.wikiquote.org/wiki/Ken_Thompson) about UNIX:&#xD;
&#xD;
&amp;gt; We have persistent objects, they&amp;#039;re called files.&#xD;
&#xD;
**Remark:** Less obnoxiously, instead of saying that LLM providers expose messy, non-uniform APIs, we can say that their APIs &amp;#034;are individually reasonable, but collectively inconsistent.&amp;#034;&#xD;
Because of the popularity of OpenAI&amp;#039;s models, many LLM providers adhere to a degree with OpenAI&amp;#039;s API.&#xD;
Still, the APIs -- collectively -- have inconsistent schemas, authorization, streaming, tool-calling, roles, etc.&#xD;
&#xD;
### Why is it useful?&#xD;
&#xD;
&amp;#034;Chatnik&amp;#034; is useful because it places LLM capabilities in a natural manner into Unix shell workflows:&#xD;
&#xD;
* LLM calls can be embedded into shell pipelines, enabling automation and chaining&#xD;
* Conversations are persistent and inspectable via the file system&#xD;
* Prompt reuse and DSL preprocessing reduce repetition and keep workflows clear&#xD;
* Multiple providers can be used interchangeably without changing workflows&#xD;
* Existing UNIX tools (e.g., `grep`, `awk`, `sed`) can be combined with LLM outputs&#xD;
  * Also, additional &amp;#034;widgets&amp;#034;, like Markdown viewers, Mermaid-JS renderers, etc. &#xD;
&#xD;
----&#xD;
&#xD;
## Architectural design&#xD;
&#xD;
The following flowchart summarizes the computational components and their interactions fairly well:&#xD;
&#xD;
[![enter image description here][2]](https://raw.githubusercontent.com/antononcube/MathematicaForPrediction/refs/heads/master/MarkdownDocuments/Diagrams/Chatnik-LLM-Host-in-the-Shell-Part-1/Chatnik-WL-flowchart-LR-light.png)&#xD;
&#xD;
Here is a concise narration of the flow:&#xD;
&#xD;
- A chat command is issued from the OS shell, triggering ingestion of the chat objects file into an in-memory chat database.&#xD;
&#xD;
- If a chat ID is specified and exists, the corresponding chat object is retrieved; otherwise, a new chat object is created (with a default “NONE” ID if unspecified).&#xD;
&#xD;
- The input is then processed through prompt parsing using a DSL. If known prompts are detected, they are expanded via the prompt repository; otherwise, the raw input proceeds directly.&#xD;
&#xD;
- The resulting message is evaluated through &amp;#034;LLM::Functions&amp;#034;, which mediates interaction with external providers such as OpenAI (ChatGPT), Google (Gemini), and Ollama.&#xD;
&#xD;
- The evaluation produces a chat result returned to the shell, while the updated chat state is written back to the chat objects file, ensuring persistence.&#xD;
&#xD;
### Expanded narration&#xD;
&#xD;
**Chatnik is built around the principle that LLM interaction should behave like a native shell capability, not a siloed application.**   &#xD;
A command issued in the OS shell is treated as the entry point into a composable pipeline, where LLM calls can participate alongside standard UNIX tools.&#xD;
&#xD;
**State is externalized and file-backed, not hidden in process memory.**   &#xD;
Chat sessions are represented as chat objects that are ingested from and persisted to the file system. &#xD;
This makes conversations durable, inspectable, and naturally versionable using existing OS tools.&#xD;
&#xD;
**Chat identity is explicit but optional.**   &#xD;
When a chat ID is provided, the corresponding conversation is resumed; when absent or unknown, a new chat object is created. &#xD;
This allows both ad-hoc interactions and long-lived conversational contexts without friction.&#xD;
&#xD;
**Prompting is treated as a programmable layer.**   &#xD;
Inputs are not passed directly to models; they are first parsed through a lightweight DSL. &#xD;
Known prompts are expanded from a prompt repository, enabling reuse, parameterization, and standardization of interactions.&#xD;
&#xD;
**LLM invocation is abstracted but not obscured.**   &#xD;
Evaluation is delegated to &amp;#034;LLM::Functions&amp;#034;, which provides a uniform interface over multiple providers, including OpenAI (ChatGPT), Google (Gemini), and Ollama. &#xD;
This keeps provider choice flexible while preserving a consistent workflow.&#xD;
&#xD;
**The system is designed for composability and integration.**   &#xD;
Each stage&amp;#x2014;state ingestion, prompt processing, evaluation, and persistence&amp;#x2014;can be understood as part of a pipeline. &#xD;
This makes LLM interactions scriptable, chainable, and interoperable with existing command-line utilities.&#xD;
&#xD;
**Persistence is a first-class outcome of every interaction.**  &#xD;
Every evaluation both returns a result to the shell and updates the underlying chat object store, ensuring that conversational context evolves incrementally and reliably.&#xD;
&#xD;
**In short.** To reiterate the point in the introduction, &amp;#034;Chatnik&amp;#034; treats LLMs as *shell-native, stateful, and programmable primitives* -- &#xD;
aligning conversational AI with the philosophy of UNIX pipelines rather than application-bound interfaces.&#xD;
&#xD;
-----&#xD;
&#xD;
## Related functions and packages&#xD;
&#xD;
In this section, we point to Raku packages that are both ingredients of, and alternatives to, &amp;#034;Chatnik&amp;#034;.&#xD;
&#xD;
### Main ingredients&#xD;
&#xD;
The LLM-chat object functionalities (creation and interaction) are provided by the Wolfram Language functions&#xD;
[`LLMConfiguration`](https://reference.wolfram.com/language/ref/LLMConfiguration.html), \[WRIf1\],&#xD;
[`LLMPrompt`](https://raku.land/zef:antononcube/LLM::Functions), \[WRIf2\], and&#xD;
[`LLMSynthesize`](https://reference.wolfram.com/language/ref/LLMSynthesize.html), \[WRIf3\].&#xD;
In addition, the expansion of the [prompt DSL](https://writings.stephenwolfram.com/2023/06/introducing-chat-notebooks-integrating-llms-into-the-notebook-paradigm/#applying-functions-in-a-chat-notebook), \[SW1\], is done by the function&#xD;
[`ChatnikPromptExpand`](https://resources.wolframcloud.com/PacletRepository/resources/AntonAntonov/Chatnik/ref/ChatnikPromptExpand.html).&#xD;
&#xD;
The CLI script `LLMPrompt` of &amp;#034;Chatnik&amp;#034; can be used to examine, retrieve, and concretize prompts. &#xD;
For example, here it can be seen the full text of the function prompt &amp;#034;MermaidDiagram&amp;#034; with given arguments:&#xD;
&#xD;
```&#xD;
LLMPrompt MermaidDiagram MYTEXT MY_DIAGRAM_TYPE&#xD;
```&#xD;
&#xD;
In some cases it is more convenient to use `LLMPrompt` than prompt expansion. For example:&#xD;
&#xD;
```&#xD;
LLMChat &amp;#034;FOCUS TEXT START :: $(cat README.md) :: FOCUS TEXT END&amp;#034; | LLMChat - --i=fb --prompt=&amp;#034;$(LLMPrompt ThinkingHatsFeedback &amp;#039;FOCUS TEXT&amp;#039;)&amp;#034;&#xD;
```&#xD;
&#xD;
Here is the context (prompt) of the chat object &amp;#034;fb&amp;#034;:&#xD;
&#xD;
```&#xD;
LLMChatMeta context --i=fb&#xD;
```&#xD;
&#xD;
We can see the outcome of the `LLMChat` pipeline above with:&#xD;
&#xD;
```&#xD;
LLMChatMeta last-message --i=fb | cat &amp;gt; chat.md&#xD;
```&#xD;
&#xD;
### Parsing of CLI arguments &#xD;
&#xD;
The paclet [&amp;#034;CommandLineParser&amp;#034;](https://resources.wolframcloud.com/PacletRepository/resources/Wolfram/CommandLineParser/), [MSp1],&#xD;
is used to parse the CLI arguments of the &amp;#034;Chatnik&amp;#034; scripts. The parser has certain limitations:&#xD;
&#xD;
- The non-named CLI arguments must be placed before the named ones.&#xD;
- The named arguments allways start with `--`. (I.e. `-i` does not work, `--i` does.)&#xD;
&#xD;
Because [`$ScriptInputString` is not very reliable](https://mathematica.stackexchange.com/q/204021) the positional argument `-` &#xD;
can be used to specify that the pipeline value as the input to `LLMChat`.&#xD;
&#xD;
### Including `wolframscript`&#xD;
&#xD;
Of course, we can utilize &amp;#034;full power&amp;#034; of `wolframscript` (or WL) by making pipelines that combine&#xD;
LLM generations with WL computations. For example, here we get LLM-retrieved statistics and plot them&#xD;
(using the last message of the chat with &amp;#034;beta&amp;#034; above):&#xD;
&#xD;
```&#xD;
LLMChatMeta last-message --i=beta | sed &amp;#039;1d; $d&amp;#039; | wolframscript -code &amp;#039;gr=ImportString[Import[&amp;#034;!cat&amp;#034;, &amp;#034;String&amp;#034;],&amp;#034;RawJSON&amp;#034;]//ReverseSort//ListPlot[#, ImageSize-&amp;gt;600, PlotTheme -&amp;gt; &amp;#034;Detailed&amp;#034;, PlotRange-&amp;gt;All]&amp;amp;; Export[&amp;#034;./beta.png&amp;#034;, gr]&amp;#039; &amp;amp;&amp;amp; open ./beta.png &#xD;
```&#xD;
&#xD;
&amp;lt;img src=&amp;#034;https://raw.githubusercontent.com/antononcube/MathematicaForPrediction/refs/heads/master/MarkdownDocuments/Diagrams/Chatnik-LLM-Host-in-the-Shell-Part-1/beta.png&amp;#034; width=&amp;#034;400&amp;#034; height=&amp;#034;248&amp;#034; alt=&amp;#034;Example Image&amp;#034;&amp;gt;&#xD;
&#xD;
----&#xD;
&#xD;
## References&#xD;
&#xD;
### Articles, blog posts&#xD;
&#xD;
\[AA1\] Anton Antonov, [&amp;#034;Jupyter::Chatbook&amp;#034;](https://rakuforprediction.wordpress.com/2023/09/03/jupyterchatbook), (2023), [RakuForPrediction at WordPress](https://rakuforprediction.wordpress.com).&#xD;
&#xD;
\[AA2\] Anton Antonov, [&amp;#034;Jupyter::Chatbook Cheatsheet&amp;#034;](https://rakuforprediction.wordpress.com/2026/03/14/jupyterchatbook-cheatsheet), (2026), [RakuForPrediction at WordPress](https://rakuforprediction.wordpress.com).&#xD;
&#xD;
\[AA3\] Anton Antonov, [&amp;#034;Jupyter Chatbook Cheatsheet&amp;#034;](https://pythonforprediction.wordpress.com/2026/03/12/jupyter-chatbook-cheatsheet), (2026), [PythonForPrediction at WordPress](https://rakuforprediction.wordpress.com).&#xD;
&#xD;
\[AA4\] Anton Antonov, [&amp;#034;Chatnik: LLM Host in the Shell &amp;#x2014; Part 1: First Examples &amp;amp; Design Principles&amp;#034;](https://rakuforprediction.wordpress.com/2026/04/25/chatnik-llm-host-in-the-shell-part-1-first-examples-design-principles/), (2026), [RakuForPrediction at WordPress](https://rakuforprediction.wordpress.com).&#xD;
&#xD;
\[AA5\] Anton Antonov, [&amp;#034;Chatnik: LLM Host in the Shell &amp;#x2014; Part 1: First Examples &amp;amp; Design Principles&amp;#034;](https://pythonforprediction.wordpress.com/2026/05/04/chatnik-llm-host-in-the-shell-part-1-first-examples-design-principles/), (2026), [PythonForPrediction at WordPress](https://pythonforprediction.wordpress.com).&#xD;
&#xD;
\[SW1\] Stephen Wolfram, [&amp;#034;Introducing Chat Notebooks: Integrating LLMs into the Notebook Paradigm&amp;#034;](https://writings.stephenwolfram.com/2023/06/introducing-chat-notebooks-integrating-llms-into-the-notebook-paradigm), (2023), [Stephen Wolfram Writings](https://writings.stephenwolfram.com).&#xD;
&#xD;
### Functions&#xD;
&#xD;
\[WRIf1\] Wolfram Research, Inc., [LLMConfiguration](https://reference.wolfram.com/language/ref/LLMConfiguration.html), (2023), [Wolfram Language function](https://reference.wolfram.com/language/), (updated 2025).&#xD;
&#xD;
\[WRIf2\] Wolfram Research, Inc., [LLMPrompt](https://reference.wolfram.com/language/ref/LLMPrompt.html), (2023), [Wolfram Language function](https://reference.wolfram.com/language/).&#xD;
&#xD;
\[WRIf3\] Wolfram Research, Inc., [LLMSynthesize](https://reference.wolfram.com/language/ref/LLMSynthesize.html), (2023), [Wolfram Language function](https://reference.wolfram.com/language/), (updated 2025).&#xD;
&#xD;
### Packages&#xD;
&#xD;
#### Python&#xD;
&#xD;
\[AAp1\] Anton Antonov, [LLMFunctionObjects, Python package](https://github.com/antononcube/Python-packages/tree/main/LLMFunctionObjects), (2023-2026), [GitHub/antononcube](https://github.com/antononcube). ([PyPI.org page](https://pypi.org/project/LLMFunctionObjects).)&#xD;
&#xD;
\[AAp2\] Anton Antonov, [LLMPrompts, Python package](https://github.com/antononcube/Python-packages/tree/main/LLMPrompts), (2023-2025), [GitHub/antononcube](https://github.com/antononcube). ([PyPI.org page](https://pypi.org/project/LLMPrompts).)&#xD;
&#xD;
\[AAp3\] Anton Antonov, [JupyterChatbook, Python package](https://github.com/antononcube/Python-JupyterChatbook), (2023-2026), [GitHub/antononcube](https://github.com/antononcube). ([PyPI.org page](https://pypi.org/project/JupyterChatbook).)&#xD;
&#xD;
\[AAp4\] Anton Antonov, [Chatnik, Python package](https://github.com/antononcube/Python-Chatnik), (2026), [GitHub/antononcube](https://github.com/antononcube).&#xD;
&#xD;
&#xD;
#### Raku&#xD;
&#xD;
\[AAp5\] Anton Antonov, [LLM::Functions, Raku package](https://github.com/antononcube/Raku-LLM-Functions), (2023-2026), [GitHub/antononcube](https://github.com/antononcube).&#xD;
&#xD;
\[AAp6\] Anton Antonov, [LLM::Prompts, Raku package](https://github.com/antononcube/Raku-LLM-Prompts), (2023-2025), [GitHub/antononcube](https://github.com/antononcube).&#xD;
&#xD;
\[AAp7\] Anton Antonov, [Jupyter::Chatbook, Raku package](https://github.com/antononcube/Raku-Jupyter-Chatbook), (2023-2026), [GitHub/antononcube](https://github.com/antononcube).&#xD;
&#xD;
\[AAp8\] Anton Antonov, [Chatnik, Raku package](https://github.com/antononcube/Raku-Chatnik), (2026), [GitHub/antononcube](https://github.com/antononcube).&#xD;
&#xD;
#### Wolfram Language&#xD;
&#xD;
\[AAp9\] Anton Antonov, [Chatnik, Wolfram Language paclet](https://resources.wolframcloud.com/PacletRepository/resources/AntonAntonov/Chatnik/), (2026), [Wolfram Language Paclet Repository](https://resources.wolframcloud.com/PacletRepository).&#xD;
&#xD;
\[MSp1\] Matteo Salvarezza, [CommandLineParser, Wolfram Language paclet](https://resources.wolframcloud.com/PacletRepository/resources/Wolfram/CommandLineParser/), (2024), [Wolfram Language Paclet Repository](https://resources.wolframcloud.com/PacletRepository).&#xD;
&#xD;
\[CGp1\] Connor Gray, et al., [Chatbook, Wolfram Language paclet](https://resources.wolframcloud.com/PacletRepository/resources/Wolfram/Chatbook), (2023-2024), [Wolfram Language Paclet Repository](https://resources.wolframcloud.com/PacletRepository).&#xD;
&#xD;
### Videos&#xD;
&#xD;
\[AAv1\] Anton Antonov, [&amp;#034;Integrating Large Language Models with Raku&amp;#034;](https://youtu.be/-OxKqRrQvh0?si=5LEj8-Dtcxjn-0QR&amp;amp;t=548), (2023), [The Raku Conference 2023 at YouTube](https://www.youtube.com/@therakuconference6823).&#xD;
&#xD;
&#xD;
  [1]: https://community.wolfram.com//c/portal/getImageAttachment?filename=Chatnik-Androids-shelf-11-conveyor-clean-lab-WL-styled-small.png&amp;amp;userId=143837&#xD;
  [2]: https://community.wolfram.com//c/portal/getImageAttachment?filename=Chatnik-WL-flowchart-LR-light.png&amp;amp;userId=143837&#xD;
  [3]: https://community.wolfram.com//c/portal/getImageAttachment?filename=beta.png&amp;amp;userId=143837</description>
    <dc:creator>Anton Antonov</dc:creator>
    <dc:date>2026-05-16T09:57:01Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/3714827">
    <title>Google Earth Engine (GEE) client paclet</title>
    <link>https://community.wolfram.com/groups/-/m/t/3714827</link>
    <description>![Google Earth Engine (GEE) client paclet][1]&#xD;
&#xD;
&amp;amp;[Wolfram Notebook][2]&#xD;
&#xD;
&#xD;
  [1]: https://community.wolfram.com//c/portal/getImageAttachment?filename=10966GoogleEarthEngine%28GEE%29clientpaclet.jpg&amp;amp;userId=20103&#xD;
  [2]: https://www.wolframcloud.com/obj/2a2947bc-b39e-494c-9309-173af5069ad5</description>
    <dc:creator>Diego Zviovich</dc:creator>
    <dc:date>2026-05-12T01:32:46Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/3715139">
    <title>Borwein Integrals: UnitBox spectral depletion and the mechanism of integral deviation</title>
    <link>https://community.wolfram.com/groups/-/m/t/3715139</link>
    <description>![Borwein Integrals: UnitBox spectral depletion and the mechanism of integral deviation][1]&#xD;
&#xD;
&amp;amp;[Wolfram Notebook][2]&#xD;
&#xD;
&#xD;
  [1]: https://community.wolfram.com//c/portal/getImageAttachment?filename=BorweinIntegrals.png&amp;amp;userId=20103&#xD;
  [2]: https://www.wolframcloud.com/obj/a3cd6afe-f457-4384-a25a-f8a696d214c3</description>
    <dc:creator>Justin Pearson</dc:creator>
    <dc:date>2026-05-12T20:11:52Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/3716833">
    <title>More is less in unpercolated active solids</title>
    <link>https://community.wolfram.com/groups/-/m/t/3716833</link>
    <description>![More is less in unpercolated active solids][2]&#xD;
&#xD;
&amp;amp;[Wolfram Notebook][3]&#xD;
&#xD;
&#xD;
&#xD;
  [2]: https://community.wolfram.com//c/portal/getImageAttachment?filename=S1Final1-optimize2.gif&amp;amp;userId=20103&#xD;
  [3]: https://www.wolframcloud.com/obj/c48dbefc-cd2e-4f75-bcc6-638074499d82</description>
    <dc:creator>Jack Binysh</dc:creator>
    <dc:date>2026-05-15T19:39:17Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/3716486">
    <title>Analytical insights into the transient climate response</title>
    <link>https://community.wolfram.com/groups/-/m/t/3716486</link>
    <description>![Analytical insights into the transient climate response][1]&#xD;
&#xD;
&amp;amp;[Wolfram Notebook][2]&#xD;
&#xD;
&#xD;
  [1]: https://community.wolfram.com//c/portal/getImageAttachment?filename=output.gif&amp;amp;userId=20103&#xD;
  [2]: https://www.wolframcloud.com/obj/2d4a507d-219e-4759-93e3-c1e78ac507da</description>
    <dc:creator>Boriana Chtirkova</dc:creator>
    <dc:date>2026-05-15T18:44:04Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/3716438">
    <title>Painting a Kerr black hole: a backward null-geodesic ray tracer with a real astrophotograph</title>
    <link>https://community.wolfram.com/groups/-/m/t/3716438</link>
    <description>![Painting a Kerr black hole: a backward null-geodesic ray tracer with a real astrophotograph][1]&#xD;
*&amp;#034;Hook image: a viewport screenshot from inside an interactive Wolfram viewer, looking at a 360-degree black-hole panorama generated by OpenAI&amp;#039;s gpt-image-2. This is AI art -- striking, but not derived from general relativity. The rest of the notebook builds the same scene from physics, in pure Wolfram Language. See Section 11 for the viewer itself.&amp;#034;*&#xD;
&#xD;
&amp;amp;[Wolfram Notebook][2]&#xD;
&#xD;
&#xD;
  [1]: https://community.wolfram.com//c/portal/getImageAttachment?filename=PaintingaKerrblackhole.jpg&amp;amp;userId=20103&#xD;
  [2]: https://www.wolframcloud.com/obj/1cc09d34-423c-4144-9e2c-c256740295ad</description>
    <dc:creator>Marco Thiel</dc:creator>
    <dc:date>2026-05-15T09:49:06Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/3716185">
    <title>Aliens? Or weather balloons? You decide!</title>
    <link>https://community.wolfram.com/groups/-/m/t/3716185</link>
    <description>![Aliens? Or weather balloons? You decide!][1]&#xD;
&#xD;
&amp;amp;[Wolfram Notebook][2]&#xD;
&#xD;
&#xD;
  [1]: https://community.wolfram.com//c/portal/getImageAttachment?filename=AliensOrWeatherBalloonsYouDecide.jpg&amp;amp;userId=20103&#xD;
  [2]: https://www.wolframcloud.com/obj/a9f85d83-9d1a-47dc-92bc-bf3cfa1232c4</description>
    <dc:creator>Arnoud Buzing</dc:creator>
    <dc:date>2026-05-15T00:20:07Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/3713047">
    <title>Red hair tips electric eel in fast and slow motion: translating from P5.JS processing to Wolfram</title>
    <link>https://community.wolfram.com/groups/-/m/t/3713047</link>
    <description>![Red hair tips electric eel in fast and slow motion: translating from P5.JS processing to Wolfram][1]&#xD;
&#xD;
&amp;amp;[Wolfram Notebook][2]&#xD;
&#xD;
&#xD;
  [1]: https://community.wolfram.com//c/portal/getImageAttachment?filename=ezgif-20001a6ec98fb594.gif&amp;amp;userId=11733&#xD;
  [2]: https://www.wolframcloud.com/obj/78388bcc-f070-44d3-9035-26433cf1ce85</description>
    <dc:creator>Vitaliy Kaurov</dc:creator>
    <dc:date>2026-05-08T02:51:54Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/3716240">
    <title>Comparison of two explicit friction factor correlations using Colebrook-White as reference</title>
    <link>https://community.wolfram.com/groups/-/m/t/3716240</link>
    <description>&amp;amp;[Wolfram Notebook][1]&#xD;
&#xD;
&#xD;
  [1]: https://www.wolframcloud.com/obj/9686986d-0efe-456e-91b3-cc3a5f314495</description>
    <dc:creator>Housam Binous</dc:creator>
    <dc:date>2026-05-14T15:25:50Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/3716255">
    <title>New release of the Wolfram Language extension for Visual Studio Code</title>
    <link>https://community.wolfram.com/groups/-/m/t/3716255</link>
    <description>&amp;amp;[Wolfram Notebook][1]&#xD;
&#xD;
&#xD;
  [1]: https://www.wolframcloud.com/obj/8cb6693a-dd97-4ab3-b753-6f0bbc77d18c</description>
    <dc:creator>Arnoud Buzing</dc:creator>
    <dc:date>2026-05-14T16:59:43Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/3710334">
    <title>Dirac matrices in a curved spacetime</title>
    <link>https://community.wolfram.com/groups/-/m/t/3710334</link>
    <description>![enter image description here][1]&#xD;
&#xD;
&amp;amp;[Wolfram Notebook][2]&#xD;
&#xD;
&#xD;
  [1]: https://community.wolfram.com//c/portal/getImageAttachment?filename=diracmatrix-hero-wolfram-warm-v2.png&amp;amp;userId=1539902&#xD;
  [2]: https://www.wolframcloud.com/obj/c44dcf0b-91ae-4386-933e-d1f5219fdd86</description>
    <dc:creator>Mohammad Bahrami</dc:creator>
    <dc:date>2026-05-01T22:54:55Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/3715214">
    <title>Google Earth Engine (GEE) paclet: satellite imagery fundamentals</title>
    <link>https://community.wolfram.com/groups/-/m/t/3715214</link>
    <description>&amp;amp;[Wolfram Notebook][1]&#xD;
&#xD;
&#xD;
  [1]: https://www.wolframcloud.com/obj/f3cc5b88-f290-4e68-ac29-2d450c373fd1</description>
    <dc:creator>Diego Zviovich</dc:creator>
    <dc:date>2026-05-12T23:08:24Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/3706475">
    <title>[BOOK] Getting Started with Modelica</title>
    <link>https://community.wolfram.com/groups/-/m/t/3706475</link>
    <description>![Getting Started with Modelica][1]&#xD;
&#xD;
I&amp;#039;m excited to share that my new book, **Getting Started with Modelica**, is now available on Amazon.&#xD;
&#xD;
&amp;gt;[**Amazon Page**][2]&#xD;
&#xD;
**Who is it for?**&#xD;
&#xD;
Engineers and students taking their first serious steps with Modelica. No prior Modelica experience required. If you are already using System Modeler for drag-and-drop modeling and want to understand what is happening under the hood, or start writing your own textual models, this book is for you.&#xD;
&#xD;
**What does it cover?**&#xD;
&#xD;
The essentials you need to go from zero to writing and reading Modelica code. Acausal modeling and connectors, the Modelica Standard Library, inheritance, events, arrays, functions, records, solver internals, and FMI. By the end, you will be able to read code from the Modelica Standard Library, write your own models, and diagnose common problems independently.&#xD;
&#xD;
**Why does it matter in the age of LLMs?**&#xD;
&#xD;
LLMs can generate Modelica. But spotting when it&amp;#039;s wrong takes a human who understands the language. This book builds that understanding.&#xD;
&#xD;
# Selected Figures from the Book&#xD;
&#xD;
## 1. Why Modelica? &amp;#x2014; multi-domain systems&#xD;
&#xD;
![enter image description here][3]  &#xD;
*Multi-domain system: battery, fluid/thermal, and control logic coupled in a single model.*&#xD;
&#xD;
Real systems rarely live in one physical domain. An EV battery&amp;#039;s state-of-charge depends on its temperature, which depends on the coolant loop, which depends on the control logic that watches both. Modelica lets you describe each domain in its own language &amp;#x2014; electrical, thermal, fluid, control &amp;#x2014; and assemble them in one simulation, with the coupling at the boundaries handled by the connectors.&#xD;
&#xD;
## 2. Causal vs. acausal modeling&#xD;
&#xD;
![enter image description here][4]  &#xD;
*Causal approach requires two separate models; one acausal Modelica model handles both naturally.*&#xD;
&#xD;
This is the single image that captures what makes Modelica different. A signal-based tool freezes the direction of information flow at design time, so a motor and a generator are two different models even though the physics is identical. In Modelica you write the equations once; the compiler decides at solve time whether torque is the input or the output, based on how the component is connected. The same DC machine model handles motoring and regeneration &amp;#x2014; no manual switching, no duplication.&#xD;
&#xD;
## 3. Hybrid simulation: continuous + discrete&#xD;
&#xD;
![enter image description here][5]  &#xD;
*Thermostat simulation: continuous temperature dynamics and discrete switching in one run.*&#xD;
&#xD;
Real engineering systems mix smooth continuous physics with sharp discrete events: a valve opens, a relay clicks, a controller switches mode. Modelica handles both natively &amp;#x2014; the solver pauses cleanly at each event, applies any state changes, and resumes. Here the water heats up continuously while a discrete control signal toggles the heater on and off around the setpoint, all inside the same simulation.&#xD;
&#xD;
## 4. The bouncing ball &amp;#x2014; events done right&#xD;
&#xD;
![enter image description here][6]  &#xD;
*Bouncing ball height: each arc lower than the last as energy is lost to the restitution coefficient.*&#xD;
&#xD;
The bouncing ball is the canonical event-handling test in any simulation language. The solver follows ballistic flight, detects each ground impact as a zero-crossing, reinitializes the velocity through Modelica&amp;#039;s `reinit()` operator, and continues. The energy loss per bounce is captured in a single coefficient of restitution &amp;#x2014; no special-case code, no workarounds.&#xD;
&#xD;
## 5. Why event handling matters&#xD;
&#xD;
![enter image description here][7]  &#xD;
*Modelica stops at discontinuities and handles them explicitly; signal-based tools approximate them as steep smooth curves.*&#xD;
&#xD;
A common workaround in signal-based tools is to model a switch as a steep sigmoid. It looks tidy, but the steep gradient forces the integrator into tiny time steps and can cause solver failures at extreme parameter values. Modelica represents the discontinuity honestly &amp;#x2014; the solver stops, re-initializes, and continues &amp;#x2014; which is both faster and numerically robust.&#xD;
&#xD;
&#xD;
## 6. Inheritance in the Modelica Standard Library&#xD;
&#xD;
![enter image description here][8]  &#xD;
*MSL Resistor inheritance chain: each level adds exactly one thing (connector, voltage difference, current conservation, Ohm&amp;#039;s law).*&#xD;
&#xD;
The Modelica Standard Library is built on disciplined object-oriented design. The Resistor doesn&amp;#039;t define its pins, voltage difference, or current bookkeeping &amp;#x2014; those are inherited from three abstract layers above it (`Pin`, `TwoPin`, `OnePort`). The concrete component contributes one equation: `v = R*i`. This is why MSL components compose so cleanly across thousands of models and dozens of domains.&#xD;
&#xD;
&#xD;
## 7. A real engineering example &amp;#x2014; heated pipe&#xD;
&#xD;
![enter image description here][9]  &#xD;
*The pipe system: fluid enters at T_in, loses heat through wall resistance R_wall to ambient T_ambient.*&#xD;
&#xD;
Chapter 10 builds a heated-pipe model from scratch over four stages, introducing one new concept at each step &amp;#x2014; geometry parameters, fluid properties, the energy balance, then heat loss to the environment. This sketch is the physical picture the model is built from. The pedagogy: start from a drawing of the physics, name the variables, then write the equations.&#xD;
&#xD;
&#xD;
## 8. Simulation result of the heated pipe&#xD;
&#xD;
![enter image description here][10]  &#xD;
*PipeSystem over 20 s: Re constant at ~12,700, Q_loss decreasing as T_fluid decays exponentially toward steady state.*&#xD;
&#xD;
The matching result plot for the model above. Three quantities tell a coherent story: Reynolds number stays in the turbulent regime throughout, the wall heat flux falls as the fluid cools, and the fluid temperature decays smoothly toward the ambient-influenced steady state. A clean separation of timescales &amp;#x2014; and exactly the kind of multi-variable readout System Modeler&amp;#039;s Simulation Center produces by default.&#xD;
&#xD;
&#xD;
## 9. Data integration &amp;#x2014; wind turbine&#xD;
&#xD;
![enter image description here][11]  &#xD;
*Full data chain: a CombiTimeTable feeds wind speed to both an efficiency lookup and a power block; their outputs multiply to give actual power.*&#xD;
&#xD;
Engineers often ask: &amp;#034;what do I do when I don&amp;#039;t have equations?&amp;#034; Many real components &amp;#x2014; heat pumps, compressors, rotor blades &amp;#x2014; are characterized by manufacturer curves or measurement data, not closed-form physics. Modelica&amp;#039;s `CombiTable` family lets you connect tabular data directly into the same diagram as your equation-based components, and the solver treats them consistently with everything else. Here, time-series wind speed flows into an efficiency curve and a cubic-power model, and the product is the turbine&amp;#039;s actual output.&#xD;
&#xD;
&#xD;
## 10. Inside the compiler &amp;#x2014; the symbolic preprocessing pipeline&#xD;
&#xD;
![enter image description here][12]  &#xD;
*The symbolic preprocessing pipeline: from hierarchical model to block triangular form, runs automatically at every compile.*&#xD;
&#xD;
When a Modelica tool compiles a model it isn&amp;#039;t just translating code &amp;#x2014; it&amp;#039;s performing a sequence of symbolic transformations: flattening the hierarchy, simplifying, reducing differentiation index, selecting state variables, building a bipartite dependency graph, finding a maximum matching, breaking strongly connected components, and emitting block-triangular code the numerical solver can step through. The user never sees this; the user just sees a model that runs.&#xD;
&#xD;
&#xD;
## 11. The bipartite graph behind every Modelica model&#xD;
&#xD;
![enter image description here][13]  &#xD;
*Maximum matching assigns each equation to the one variable it solves; the thick edges define the computation direction.*&#xD;
&#xD;
This is the moment a Modelica model becomes solvable. Equations and variables form a bipartite graph; an edge means &amp;#034;this variable appears in this equation.&amp;#034; A maximum matching pairs each equation with the unique variable it will be used to compute &amp;#x2014; turning an undirected web of relations into a directed computation order. The same picture, shown as an incidence matrix on the right, is how a sparse linear-algebra package would see it. (The kind of structure a Wolfram Language audience tends to enjoy.)&#xD;
&#xD;
&#xD;
## 12. FMI &amp;#x2014; Modelica&amp;#039;s tool-interoperability story&#xD;
&#xD;
![enter image description here][14]  &#xD;
*FMI as a universal connector: an FMU exported from any tool can be imported by any other FMI-compliant tool.*&#xD;
&#xD;
Once a model is built, the Functional Mock-up Interface (FMI) lets it cross tool boundaries. A Wolfram System Modeler component can be exported as an FMU, dropped into a Simulink controller study, embedded in a Python automation script, or run on dSPACE real-time hardware-in-the-loop. The simulation asset outlives any single tool &amp;#x2014; a real concern for long-lived models in aerospace, automotive, and energy.&#xD;
&#xD;
&#xD;
## 13. The Modelica landscape &amp;#x2014; what the book covers&#xD;
&#xD;
![enter image description here][15]  &#xD;
*What this book covered vs. what lies beyond: a map of where you stand and where the path continues.*&#xD;
&#xD;
A reader&amp;#039;s-eye view of the book&amp;#039;s scope. On the left, the topics the book takes the reader through to fluency: equation-based modelling, the standard library, custom components, events and state machines, records, arrays, inheritance, replaceable components, data integration, FMU export, the solver pipeline, and functions. On the right, the topics that lie beyond &amp;#x2014; stream connectors, homotopy initialisation, multi-phase flow, real-time/HIL &amp;#x2014; pointing the reader to where to go next.&#xD;
&#xD;
&#xD;
## 14. Application gallery &amp;#x2014; a building chiller&#xD;
&#xD;
![enter image description here][16]  &#xD;
*Chiller model from the Buildings library: condenser and evaporator loops connected through the chiller, with control inputs and fluid boundary conditions.*&#xD;
&#xD;
Modelica&amp;#039;s reach into building energy simulation is substantial. The Buildings library (developed at LBNL) provides hundreds of validated HVAC components &amp;#x2014; chillers, heat pumps, fans, control sequences &amp;#x2014; that compose into whole-building models suitable for design and operational studies. This figure shows a single chiller with its condenser and evaporator loops; full plant models scale to thousands of components.&#xD;
&#xD;
&#xD;
## 15. Application gallery &amp;#x2014; a DC motor drive&#xD;
&#xD;
![enter image description here][17]  &#xD;
*DC motor drive model: a voltage source drives current through the EMF, which converts electrical energy to rotational motion against a load.*&#xD;
&#xD;
The DC motor is the textbook example of an acausal multi-domain model &amp;#x2014; and it&amp;#039;s also a real component that ships in countless products. One diagram crosses two physical domains: the electrical loop (resistor, inductor, EMF) and the rotational mechanical loop (inertia, damper, speed sensor). The energy conversion at the EMF couples the two automatically through the connector equations. Set the input voltage profile and the speed comes out; reverse the boundary conditions and the same model behaves as a generator.&#xD;
&#xD;
&#xD;
  [1]: https://community.wolfram.com//c/portal/getImageAttachment?filename=cover_kindle.png&amp;amp;userId=20103&#xD;
  [2]: https://www.amazon.com/Getting-Started-Modelica-Language-Modeling-ebook/dp/B0GY94LXQS&#xD;
  [3]: https://community.wolfram.com//c/portal/getImageAttachment?filename=ch01_multi_domain_system.png&amp;amp;userId=20103&#xD;
  [4]: https://community.wolfram.com//c/portal/getImageAttachment?filename=ch01_causal_vs_acausal_motor.png&amp;amp;userId=20103&#xD;
  [5]: https://community.wolfram.com//c/portal/getImageAttachment?filename=ch01_hybrid_model_thermostat_plot.png&amp;amp;userId=20103&#xD;
  [6]: https://community.wolfram.com//c/portal/getImageAttachment?filename=ch07_bouncing_ball_height_plot.png&amp;amp;userId=20103&#xD;
  [7]: https://community.wolfram.com//c/portal/getImageAttachment?filename=ch07_event_vs_smooth_approximation.png&amp;amp;userId=20103&#xD;
  [8]: https://community.wolfram.com//c/portal/getImageAttachment?filename=ch08_msl_resistor_inheritance_hierarchy.png&amp;amp;userId=20103&#xD;
  [9]: https://community.wolfram.com//c/portal/getImageAttachment?filename=ch10_heated_pipe_physical_diagram.png&amp;amp;userId=20103&#xD;
  [10]: https://community.wolfram.com//c/portal/getImageAttachment?filename=ch10_pipesystem_simulation_result.png&amp;amp;userId=20103&#xD;
  [11]: https://community.wolfram.com//c/portal/getImageAttachment?filename=ch11_wind_turbine_data_chain_diagram.png&amp;amp;userId=20103&#xD;
  [12]: https://community.wolfram.com//c/portal/getImageAttachment?filename=ch12_symbolic_preprocessing_pipeline.png&amp;amp;userId=20103&#xD;
  [13]: https://community.wolfram.com//c/portal/getImageAttachment?filename=ch12_bipartite_graph_maximum_matching.png&amp;amp;userId=20103&#xD;
  [14]: https://community.wolfram.com//c/portal/getImageAttachment?filename=ch14_fmi_universal_connector_diagram.png&amp;amp;userId=20103&#xD;
  [15]: https://community.wolfram.com//c/portal/getImageAttachment?filename=ch16_modelica_coverage_map.png&amp;amp;userId=20103&#xD;
  [16]: https://community.wolfram.com//c/portal/getImageAttachment?filename=ch16_gallery_buildings_chiller.png&amp;amp;userId=20103&#xD;
  [17]: https://community.wolfram.com//c/portal/getImageAttachment?filename=ch16_gallery_dc_motor_drive.png&amp;amp;userId=20103</description>
    <dc:creator>Ankit Naik</dc:creator>
    <dc:date>2026-04-27T09:42:54Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/3715438">
    <title>Wiener filter: adaptive noise removal</title>
    <link>https://community.wolfram.com/groups/-/m/t/3715438</link>
    <description>&amp;amp;[Wolfram Notebook][1]&#xD;
&#xD;
&#xD;
  [1]: https://www.wolframcloud.com/obj/2dd621c0-ea9a-45aa-88da-6e4db8750a21</description>
    <dc:creator>Jana Rusrus</dc:creator>
    <dc:date>2026-05-13T02:52:25Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/3715016">
    <title>Hat tile dynamics from dual-grid projection onto a fractal-subdivided torus</title>
    <link>https://community.wolfram.com/groups/-/m/t/3715016</link>
    <description>![Hat tile dynamics from dual-grid projection onto a fractal-subdivided torus][1]&#xD;
&#xD;
&amp;amp;[Wolfram Notebook][2]&#xD;
&#xD;
&#xD;
  [1]: https://community.wolfram.com//c/portal/getImageAttachment?filename=titleImage.png&amp;amp;userId=2932486&#xD;
  [2]: https://www.wolframcloud.com/obj/644687a3-8e85-4505-b3bc-cc74fbc04ee9</description>
    <dc:creator>Johannes Martin</dc:creator>
    <dc:date>2026-05-12T09:53:01Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/3714716">
    <title>A computational survey of the Theta invariant</title>
    <link>https://community.wolfram.com/groups/-/m/t/3714716</link>
    <description>![A computational survey of the Theta invariant][1]&#xD;
&#xD;
&amp;amp;[Wolfram Notebook][2]&#xD;
&#xD;
&#xD;
  [1]: https://community.wolfram.com//c/portal/getImageAttachment?filename=5999AcomputationalsurveyoftheThetainvariant.png&amp;amp;userId=20103&#xD;
  [2]: https://www.wolframcloud.com/obj/ac7f8f6b-bc74-4bc2-ac75-e68fa28f1260</description>
    <dc:creator>Ali Karim Lalani</dc:creator>
    <dc:date>2026-05-11T19:20:13Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/3713462">
    <title>Superoscillations Part I: 1D foundations, leaky functions and quantum wavefunctions</title>
    <link>https://community.wolfram.com/groups/-/m/t/3713462</link>
    <description>![Superoscillations Part I: 1D foundations, leaky functions and quantum wavefunctions][1]&#xD;
&#xD;
&amp;amp;[Wolfram Notebook][2]&#xD;
&#xD;
&#xD;
  [1]: https://community.wolfram.com//c/portal/getImageAttachment?filename=Image20260511195639.png&amp;amp;userId=20103&#xD;
  [2]: https://www.wolframcloud.com/obj/8d53f8f8-2805-49dd-b7bc-ee20599a9be9</description>
    <dc:creator>Bruno Tenorio</dc:creator>
    <dc:date>2026-05-08T22:22:16Z</dc:date>
  </item>
</rdf:RDF>

