Skip to content

Instantly share code, notes, and snippets.

@kenwebb
Last active July 29, 2025 19:55
Show Gist options
  • Save kenwebb/ee383341553a893b8e900ae83be2d1e2 to your computer and use it in GitHub Desktop.
Save kenwebb/ee383341553a893b8e900ae83be2d1e2 to your computer and use it in GitHub Desktop.
AI - Hello World (template)
<?xml version="1.0" encoding="UTF-8"?>
<!--Xholon Workbook http://www.primordion.com/Xholon/gwt/ MIT License, Copyright (C) Ken Webb, Tue Jul 29 2025 15:54:25 GMT-0400 (Eastern Daylight Time)-->
<XholonWorkbook>
<Notes><![CDATA[
Xholon
------
Title: AI - Hello World (template)
Description:
Url: http://www.primordion.com/Xholon/gwt/
InternalName: ee383341553a893b8e900ae83be2d1e2
Keywords:
My Notes
--------
29 July 2025
Write a simple Hello World app that I can give to an AI as an example or template, for building AI generated Xholon apps.
TODO
- add ports between Hello and World
- add behaviors for Hello and World
- make everything as easy as possible for AI to understand
- generate a Xholon Module from this workbook
- maybe present that to AI as the example/template?
]]></Notes>
<_-.XholonClass>
<HellowWorldSystem/>
<HiWorl/>
<Hello/>
<World/>
</_-.XholonClass>
<xholonClassDetails>
<Hello>
<port name="world" connector="../World"/>
</Hello>
<World>
<port name="hello" connector="../Hello"/>
</World>
<Avatar><Color>red</Color></Avatar>
</xholonClassDetails>
<HellowWorldSystem>
<HiWorl>
<Hello/>
<World/>
</HiWorl>
</HellowWorldSystem>
<Hellobehavior implName="org.primordion.xholon.base.Behavior_gwtjs"><![CDATA[
var me, beh = {
postConfigure: function() {
me = this.cnode.parent();
},
act: function() {
me.println(me.name());
}
}
//# sourceURL=Hellobehavior.js
]]></Hellobehavior>
<Worldbehavior implName="org.primordion.xholon.base.Behavior_gwtjs"><![CDATA[
var me, beh = {
postConfigure: function() {
me = this.cnode.parent();
},
act: function() {
me.println(me.name());
}
}
//# sourceURL=Worldbehavior.js
]]></Worldbehavior>
<SvgClient><Attribute_String roleName="svgUri"><![CDATA[data:image/svg+xml,
<svg width="100" height="50" xmlns="http://www.w3.org/2000/svg">
<g>
<title>Block</title>
<rect id="HellowWorldSystem/HiWorl" fill="#98FB98" height="50" width="50" x="25" y="0"/>
<g>
<title>Height</title>
<rect id="HellowWorldSystem/HiWorl/Hello" fill="#6AB06A" height="50" width="10" x="80" y="0"/>
</g>
</g>
</svg>
]]></Attribute_String><Attribute_String roleName="setup">${MODELNAME_DEFAULT},${SVGURI_DEFAULT}</Attribute_String></SvgClient>
</XholonWorkbook>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment