Most active commenters
  • hollerith(4)
  • fuzztester(4)
  • gcanyon(3)

←back to thread

95 points Levitating | 37 comments | | HN request time: 0.322s | source | bottom
1. hn-ifs ◴[] No.45082292[source]
I remember looking at red ages ago but never got round to using it. I like to learn odd non-mainstream languages. Currently learning Nushell which is an amazing alternative shell. And I like the look of roc-lang too.

I'm desperate for a truly cross platform programming language with gui abilities on those platforms. I'm slowly learning dart/flutter for this but truly wish for something simpler. I get the reasoning behind flutters declarative style but it's certainly not simple, especially when you get to state management.

replies(6): >>45082338 #>>45082465 #>>45083101 #>>45083117 #>>45083488 #>>45083764 #
2. nesarkvechnep ◴[] No.45082338[source]
How about C?
replies(3): >>45082377 #>>45084841 #>>45085584 #
3. dlahoda ◴[] No.45082377[source]
yeah, C is great xplat.

so I wait Zig to target https://github.com/jart/cosmopolitan at some point too

4. 0x0203 ◴[] No.45082465[source]
Tcl/tk is still alive and doing well. It's cross platform, very quick to learn, and easily embeddable into other languages/projects.
replies(2): >>45082484 #>>45094922 #
5. hollerith ◴[] No.45082484[source]
Can you name an important software written in Tcl or Tk?

Important softwares written in Ruby for example include Rails and Homebrew.

replies(10): >>45082798 #>>45082840 #>>45082852 #>>45082991 #>>45083138 #>>45084308 #>>45085576 #>>45088289 #>>45088499 #>>45097888 #
6. doublerabbit ◴[] No.45082798{3}[source]
One of the big investment banks use TCL/TK, for real-time e-trading. Source my last gig.

The "important software" are normally kept behind NDAs, so you never hear about their uses. TCL was also used on the Mars Rover.

Take a look for yourself: https://wiki.tcl-lang.org/page/Who+Uses+Tcl

7. coliveira ◴[] No.45082840{3}[source]
Tcl is the embedded language of git. Standard git gui is written in Tcl/Tk. Tcl is also the script language for sqlite.
replies(1): >>45082868 #
8. SomeHacker44 ◴[] No.45082852{3}[source]
The FPGA software from Xilinx and Altera are scripted with Tcl/Tk.
replies(2): >>45082884 #>>45083781 #
9. hollerith ◴[] No.45082868{4}[source]
.gitconfig is in an INI-like format though, which is not anything like Tcl.

Also, does anyone use the "standard" git GUI?

>Tcl is also the script language for sqlite.

OK, thanks.

replies(2): >>45084934 #>>45093194 #
10. hollerith ◴[] No.45082884{4}[source]
Thanks for the reply.
11. dmux ◴[] No.45082991{3}[source]
A large part of flightaware.com’s systems were written in TCL.
12. bobajeff ◴[] No.45083101[source]
Many people here hate on Electron but cross platform gui app development really sucks without it.
13. airstrike ◴[] No.45083117[source]
Consider iced, which brings The Elm Architecture to Rust

https://iced.rs

14. nilamo ◴[] No.45083138{3}[source]
Tk has been embedded in python as the GUI toolkit since at least 2.x days. It's used for IDLE, the IDE shipped with Python, and is also used for the turtle module's graphics.
replies(1): >>45090816 #
15. gcanyon ◴[] No.45083488[source]
"simple cross-platform GUI+programming language" livecode.com fits that description. It's been my daily driver for years, but full disclosure I'm now looking for something similar to your requirements, but python-based.
replies(2): >>45083586 #>>45084172 #
16. WillAdams ◴[] No.45083586[source]
Any progress from the openXtalk people trying to keep the opensource of Livecode (from before the rugpull) going?

I bought a book on using QT6 from Python --- hoping to finish an initial read and then give it a try (unless something better comes along).

replies(1): >>45124031 #
17. cmrdporcupine ◴[] No.45083764[source]
I wish the nu-shell stuff was set up so that its language could be used as a Rust crate independentl of the shell? Like in your own runtime? Because it's not a bad general scripting language and kind of makes sense to me to embed in things like editors etc. Places where people would use Tcl (e.g. hw eng / fpga tools etc) or a Lisp (emacs) or an embedded Python/Lua now.

But when I looked at their crate structure it did not seem like this was possible. I don't love nushell the language but it actually fits a niche that not much else fits.

18. cmrdporcupine ◴[] No.45083781{4}[source]
This. In fact it seems like plenty of hardware-eng tools use Tcl, and looking at all alternatives it's not a bad choice.

With Tcl you get something like a Lisp with a flexible consistent syntax, but less brainy and more pragmatic, and designed to drive other tools.

replies(1): >>45084789 #
19. RodgerTheGreat ◴[] No.45084172[source]
Depending on how elaborate your GUI needs are, CardStock might be suitable: https://cardstock.run
replies(1): >>45124033 #
20. progre ◴[] No.45084308{3}[source]
First version of Redis was written in Tcl.
21. justin66 ◴[] No.45084789{5}[source]
My impression many years ago was that it’s really not that bad. I got up and running writing simple programs immediately, and wouldn’t have tried to go outside its capabilities as a simple scripting language.
22. codr7 ◴[] No.45084841[source]
Speaking of non-mainstream languages :)
23. srott ◴[] No.45084934{5}[source]
Only way I know to remove a file from a commit is by using git commit.

I’m also most comfortable with gitk when reviewing branches

replies(1): >>45089751 #
24. avhon1 ◴[] No.45085576{3}[source]
Not written in, but AutoCAD supports scripting in TCL (and in its own AutoLisp, which is much less popular among users than TCL).
25. avhon1 ◴[] No.45085584[source]
With what GUI library? The unmaintained GTK1?
26. Qem ◴[] No.45088289{3}[source]
https://en.m.wikipedia.org/wiki/BRL-CAD
27. AdieuToLogic ◴[] No.45088499{3}[source]
> Can you name an important software written in Tcl or Tk?

MacPorts[0] uses Tcl significantly.

EDIT:

The expect[1] command also uses Tcl and has a variant which uses Tk.

0 - https://github.com/macports/macports-ports

1 - https://man.freebsd.org/cgi/man.cgi?query=expect&apropos=0&s...

28. srott ◴[] No.45089751{6}[source]
git commit -> git gui
replies(1): >>45092630 #
29. fuzztester ◴[] No.45090816{4}[source]
Tk also works with Ruby.

https://tkdocs.com/

30. hollerith ◴[] No.45092630{7}[source]
Thanks for that correction. I was quite confused.
31. aconst ◴[] No.45093194{5}[source]
I never liked other graphical git clients so I switch between CLI and gitk + git gui according to the task at hand.
32. lproven ◴[] No.45094922[source]
Version 9 came out last year. I wrote about it.

https://www.theregister.com/2024/10/02/tcltk_version_9/

27 years after v8.0 which may be some kind of record.

33. fuzztester ◴[] No.45097888{3}[source]
I've read many times in the past that a lot of EDA-related software is written in Tcl and Tk.

Electronic Design Automation.

https://en.m.wikipedia.org/wiki/Electronic_design_automation

See:

https://www.tcl-lang.org/about/uses.html

The section about Embedded Development.

CAD is mentioned there too.

https://en.m.wikipedia.org/wiki/Computer-aided_design

replies(2): >>45097906 #>>45097942 #
34. fuzztester ◴[] No.45097906{4}[source]
Pasting that section's content here:

Because Tcl is a very compact language, and is easily integrated with special hardware, it is a popular choice for embedded development. You'll find Tcl hidden away on many devices, including many networking products from Cisco and others, and set-top boxes including Tivo. Embedding Tcl within other software projects is of course also hugely popular, and has become the dominant control language in some industries, such as in electronic design automation (EDA) and computer-aided design (CAD) applications.

35. fuzztester ◴[] No.45097942{4}[source]
More generally:

https://www.tcl-lang.org/about/uses.html

36. gcanyon ◴[] No.45124031{3}[source]
None as far as I know, but I haven't been following them.
37. gcanyon ◴[] No.45124033{3}[source]
Interesting, thanks!