Discussion:
Lua and TCL/TK
Dirk Laurie
2018-12-03 05:33:54 UTC
Permalink
1. Can stock Lua do most of what TCL/TK does? (answer: no)
2. Could one write a support package that will enable Lua to do most
of what TCL/TK does? (answer: yes)
3. Is there a rock for such a package? (answer: yes. it's called ltcltk)
4. Does that rock build effortlessly in the most commonly used current
systems? (answer: no)
5. Does it at least build effortlessly for Lua 5.3 in Debian/Ubuntu?
(answer: no)
6. Has anybody on the list got it working for Lua 5.x on whatever system?
7. Is it worth the effort to get it working or might I just as well
just have done the whole thing in TCL without dragging in Lua?
Doug Currie
2018-12-03 16:46:14 UTC
Permalink
6. Has anybody on the list got [ltcltk] working for Lua 5.x on whatever
system?
According to Gunnar's site: http://tset.de/ltcltk/index.html
it's not supported, which is a shame because I found it very useful.

It worked out of the box on Lua 5.2 I believe, based on notes in my copy,
where I have a few edits to make it work in 5.3.

See https://github.com/dcurrie/ltcltk
for my changes.

e
g***@tset.de
2018-12-04 15:37:58 UTC
Permalink
Post by Doug Currie
According to Gunnar's site: http://tset.de/ltcltk/index.html
it's not supported, which is a shame because I found it very useful.
I stopped supporting it because I did not use it any more and because,
well, seemingly nobody else did. I thought about continuing support for
ltcl, without the tk part, because the latter is what creates the most
work. But then my attention drifted elsewhere and the rest is...
negligence ;)
Post by Doug Currie
It worked out of the box on Lua 5.2 I believe, based on notes in my
copy, where I have a few edits to make it work in 5.3.
See https://github.com/dcurrie/ltcltk
for my changes.
Nice :)

Gunnar

Xavier Wang
2018-12-04 10:01:34 UTC
Permalink
Post by Dirk Laurie
1. Can stock Lua do most of what TCL/TK does? (answer: no)
2. Could one write a support package that will enable Lua to do most
of what TCL/TK does? (answer: yes)
3. Is there a rock for such a package? (answer: yes. it's called ltcltk)
4. Does that rock build effortlessly in the most commonly used current
systems? (answer: no)
5. Does it at least build effortlessly for Lua 5.3 in Debian/Ubuntu?
(answer: no)
6. Has anybody on the list got it working for Lua 5.x on whatever system?
7. Is it worth the effort to get it working or might I just as well
just have done the whole thing in TCL without dragging in Lua?
I have been make a Lua/Tcl bidirection binding here[1].

But it lacks documents and test cases :-(

Just make it for fun

[1]: https://gist.github.com/starwing/3ea235fee1a4b03bef00
--
regards,
Xavier Wang.
Loading...