| Liste des Groupes | Revenir à cl c |
cross@spitfire.i.gajendra.net (Dan Cross) writes:Scary aspect... Somebody trusting the code it dumps out of its hind end... Runs it. Say its in a server loop... Oh my!In article <10vmtgc$3uus8$14@dont-email.me>,Conversation with google AI:
Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote:On 2026-06-02 17:19, Dan Cross wrote:>In article <10vmna7$3uus8$13@dont-email.me>,>
Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote:On 2026-06-02 15:05, Dan Cross wrote:>[...]>
I suppose you have some tool to create those fancy graphics?
What are you using for that? - Or is that all hand-crafted?
I used, "monodraw" on the Mac. I can't do that by hand; I am
not artistically gifted. :-)
What a pity that it's not available for Linux.
Not related to C, but there are alternatives; `MonoSketch` looks
similar. https://github.com/tuanchauict/MonoSketch
>
AsciiFlow and ASCII Draw are also alternatives.
>
Query: troff macros for flowcharts
The AI responded with an example:
.PS
box "Start"
arrow
box "Read Data"
arrow
diamond "Valid?"
arrow "Yes" right
box "Process"
arrow up
move from last box .s to 0.5 below last diamond
arrow from diamond to last position "No"
arrow
box "Stop"
.PE
Query: pic command complains aboue "Valid?"
Answer:
You are completely right. Standard pic will choke on diamond
"Valid?" because diamond does not natively accept text string
arguments the same way a box or circle does. It evaluates
"Valid?" as an unexpected modifier. New example:
.PS
box "Start"
arrow
box "Read Data"
arrow
diamond # Clear the text string out of this line
"Valid?" at last diamond
arrow "Yes" right
box "Process"
arrow up
move from last box .s to 0.5 below last diamond
arrow from last diamond to last position "No"
arrow
box "Stop"
.PE
Query: PIC still complains about line 7
Answer:
The issue is that standard pic parser grammar is very particular
about relative positioning syntax.
After several more subsequent failed attempts to create a valid PIC,
I dug out my AT&T Documenter's Workbench User's Guide, and
of course, there is no 'diamond' primitive.
Query: pci does not have "diamond". Try again.
Answer:
You are completely correct, and I apologize for Hallucinating
that keyword. pic does not have a diamond primitive. The
primitive shapes are strictly limited to box, circle, ellipse,
line, arrow, arc, and spline.
So much for artifical intelligence built on scraping the web.
Les messages affichés proviennent d'usenet.