TCL/tk crisis over

29 views
Skip to first unread message

dr.mt...@gmail.com

unread,
May 15, 2024, 6:10:55 AMMay 15
to Shen
It turned out that pushing strings wasn't the way to go for web pages
and so I dropped stringifying the TCL output for web pages.  The 
reason being that Shen could not cleanly read in the ensuing output
because the HTML itself used strings and the scope of quotation was
muddled.

So the new url command reads in the entire page as binary which is 
faster and various auxiliary functions will exist to extract e.g.. text,
hyperlinks, images etc.

(1-) (url "https://shenlanguage.org/TBoS/Programs/3.3.txt")
[40 100 101 102 105 110 101 32 102 97 99 116 111 114 105 97 108 32 13 10 ... etc]

(2-) (time (url "https://shenlanguage.org/"))

run time: 0.10899999737739563 secs
[60 104 116 109 108 62 13 10 32 32 32 32 32 32 32 32 32 32 32 32 ... etc]


The last call is to a 32K file.  So about 320Kbytes a second on my connection.

Mark


dr.mt...@gmail.com

unread,
May 15, 2024, 6:14:39 AMMay 15
to Shen
Thanks to all those here who stepped in to fill the gap created by 
the loss of the TCL news group.

Mark

dr.mt...@gmail.com

unread,
May 15, 2024, 6:17:16 AMMay 15
to Shen
I should not say binary - I mean ASCII code - my bad.

M.

Reply all
Reply to author
Forward
0 new messages