You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of relying on clock, we can leverage SQLite3, which is built-in and blazing fast. :)
Explanation of the problem:
The clock command is missing in wapp.tcl.tk. This is a problem with Tcl itself, not with Wapp. Additionally, in Tcl, clock requires loading a script that is several thousand lines long. I have information that these missing functions and whole machinery around auto_path & Co. are implemented as pure Tcl scripts and this is why they are not part of the core library. Dr. Richard Hipp tried to address this issue, but it seems he wasn't completely successful. In the near future I will add at least parray and datetime into the interpreter.
Interestingly, Dr. Richard Hipp of SQLite fame wrote about this very issue on the Tcl Wiki about 8 years ago. This was sorta solved by embedding the init scripts in the stock tclsh with ZipVFS (hence my initial question about the info library output, when I thought you were talking about a static tclsh), but I guess no one gave library usage much thought.
This discussion was converted from issue #5 on February 19, 2025 10:58.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Instead of relying on clock, we can leverage SQLite3, which is built-in and blazing fast. :)
Explanation of the problem:
The clock command is missing in wapp.tcl.tk. This is a problem with Tcl itself, not with Wapp. Additionally, in Tcl, clock requires loading a script that is several thousand lines long. I have information that these missing functions and whole machinery around auto_path & Co. are implemented as pure Tcl scripts and this is why they are not part of the core library. Dr. Richard Hipp tried to address this issue, but it seems he wasn't completely successful. In the near future I will add at least parray and datetime into the interpreter.
...
From my reddit discussion: https://www.reddit.com/r/Tcl/comments/1iro2kt/comment/mdldnqk
anthropoid
7h ago
Edited 7h ago
quite Tclish
Interestingly, Dr. Richard Hipp of SQLite fame wrote about this very issue on the Tcl Wiki about 8 years ago. This was sorta solved by embedding the init scripts in the stock tclsh with ZipVFS (hence my initial question about the info library output, when I thought you were talking about a static tclsh), but I guess no one gave library usage much thought.
...
This is solved, see functions.tcl, proc datetime.
Enjoy!
Beta Was this translation helpful? Give feedback.
All reactions