Readit News logoReadit News
oldlaptop commented on The Tcl Programming Language   magicsplat.com/ttpl/index... · Posted by u/teleforce
graemep · a year ago
I have used both TCL and Sqlite a fair bit but not both together. I have thought that TCL + in memory Sqlite would make a powerful combination for some tasks but have never actually tried it.

> have a tcl interpreter as a virtual table

Do you mean this: https://sqlite.org/src/file/src/test_tclvar.c ?

oldlaptop · a year ago
I can't comment on virtual-table shenanigans, but I'll enthusiastically confirm that thought. Not only is an in-memory database powerful and useful for all the obvious reasons, but (I would argue) the Tcl interface to SQLite is perhaps the best relational database API in any language. (Even if it cheats a bit by being an embedded database, as with <https://sqlite.org/tclsqlite.html#function>.) It's easily as synergistic a combination as Tcl and Tk themseves, possibly more.
oldlaptop commented on Musician Charged with $10M Music Streaming Fraud Aided by AI   justice.gov/usao-sdny/pr/... · Posted by u/chirau
astura · a year ago
Sounds like wire fraud, which is illegal.
oldlaptop · a year ago
(And that is of course what is actually alleged in the indictment.)
oldlaptop commented on Musician Charged with $10M Music Streaming Fraud Aided by AI   justice.gov/usao-sdny/pr/... · Posted by u/chirau
oldlaptop · a year ago
Alleged musician, surely.
oldlaptop commented on Why I Like Tcl   world-playground-deceit.n... · Posted by u/BoingBoomTschak
oldlaptop · a year ago
I don't (personally) like to think of the type system as "everything is an auto-mutating and cached tagged union + string" - from the perspective of someone writing in Tcl, everything absolutely is a string. It's cool that the implementation happens to store some strings as integers, or arrays, or hash tables, or whatever else as a performance hack, but unless you're actually working with Tcl_Objs at the C level, you generally don't need to care about that.
oldlaptop commented on Darl McBride has died   memorialutah.com/obituari... · Posted by u/throwaway1194
oldlaptop · a year ago
ALS!? :(

Not to join the Darl McBride Fan Club ("modern-day David" indeed), but nobody deserves that.

oldlaptop commented on Tcl 9.0   tcl-lang.org/software/tcl... · Posted by u/bch
bachmeier · a year ago
> which integrate with the Mac/Windows windowing system such that the application will look "native" by default on those systems

That's my point. You can make an app that looks okay on those OSes, but all of the built-in options for Linux look ridiculous, and then you're back to the third-party stuff.

oldlaptop · a year ago
I don't think clam looks "ridiculous", but I suppose we're in to subjective stuff now. :)

In principle this isn't really any different from GTK or Qt theming (where it's up to users to go forth and find themes they like, and set the default as desired), but in those cases you tend to get themes packaged up by distributions and GUI configuration support from desktop environments, and neither seems likely to happen for Tk.

oldlaptop commented on Tcl 9.0   tcl-lang.org/software/tcl... · Posted by u/bch
sbstp · a year ago
I'm not a TCL user, but from the description of wduquette is sounds similar to Python's zipapp

https://docs.python.org/3/library/zipapp.html

oldlaptop · a year ago
The definition of "standalone application" is a bit stronger - what's always been possible with "Tclkits" has been to embed the application code in an interpreter binary and distribute that, and the new core zipfs supports that as well.
oldlaptop commented on Tcl 9.0   tcl-lang.org/software/tcl... · Posted by u/bch
bachmeier · a year ago
Yeah, they added that a long time ago, but it's not at all the same as built-in support. My experience was trying out fragile third-party projects with little or no documentation. The whole point of using Tcl/Tk for writing a GUI was the convenience.

Things may have changed over time. I no longer pay attention. Maybe I'll give it another try.

oldlaptop · a year ago
The theming engine is absolutely "built-in", as are a handful of themes; in particular aqua and the winnative/xpnative/vistanative family (which integrate with the Mac/Windows windowing system such that the application will look "native" by default on those systems).
oldlaptop commented on Tcl 9.0   tcl-lang.org/software/tcl... · Posted by u/bch
bachmeier · a year ago
Really enjoy the language, even if I don't use it much these days. Does it still produce GUIs from 1995 on Linux? I'd still be using it today if it had halfway reasonable support for building GUIs on Linux, like they've had for ages on other platforms.
oldlaptop · a year ago
A theming engine went in something like 15 years ago now; the default theme looks rather dated, but there are plenty of others. See https://wiki.tcl-lang.org/page/List+of+ttk+Themes (though the screenshots of core themes are from 8.5/8.6 - default in particular has changed a bit in Tk 9).

The "catch" is that the theming engine has its own new widgets, and so to be themed an application has to use the new API. Code from 1995 (or 2005) still produces GUIs from 1995.

oldlaptop commented on Tcl 9.0   tcl-lang.org/software/tcl... · Posted by u/bch
wslh · a year ago
I'm curious about why they chose Tcl, particularly over languages like Python or Perl. Were there specific aspects of Tcl that made it appealing for SQLite and Redis, or was the choice more about familiarity with Tcl? Either way, I'd love to understand what they found interesting or advantageous about Tcl in these projects. BTW, I chose Tcl/Tk in the past because it was the easier way I found to quickly built an UI on Unix/Linux.
oldlaptop · a year ago
The Redis protocol reads a lot like Tcl code.

u/oldlaptop

KarmaCake day27September 26, 2024View Original