News for hackers. Stuff that matters.
Re:Wacl: Tcl distro customized for WebAssembly by forinti on Saturday April 29, 2017 @07:51PM (#14229447)
There's a situation that springs up sometimes that is perfect for Tcl/Tk: when you need to write a small app with a GUI and you would like it to be multiplatform.

Say you want to write an app to rename files in batch, or a wrapper for Ghostscript that automates certain tasks. With Tcl/Tk you can immediately run it on most Linux distros and with Freewrap you get a Windows executable that's a few MB+your source (it's a lot better than having your users install Java).

Re:Wacl: Tcl distro customized for WebAssembly by mappu on Saturday April 29, 2017 @09:41PM (#14229756)
My usual solution for this is C++/Qt. Runs well on Linux, and on Windows you can statically link Qt into the single .exe if your small app is FOSS (at least LGPL-compatible), otherwise you should ship a few extra .dll files.

Compared to Tcl/tk you get (A) catch errors at compile time, and (B) Qt apps usually look better than Tk apps.

With mxe+qmake it's one command to cross-compile from Linux to a Windows binary.

Re:Wacl: Tcl distro customized for WebAssembly by eggy on Sunday April 30, 2017 @01:27AM (#14230273)
I am now looking at the Red programming language [1] for exactly this, but it does not have the libraries of C++ or Tcl. Still it is under 1 meg complete with libraries and it is homoiconic, cross-platform, and has a REPL and a systems language Red/System for going low level. The GUI and UI DSL and drawing DSL work on Windows and Mac for now, with Linux close behind.

  [1]  http://www.red-lang.org/p/about.html
Re:Wacl: Tcl distro customized for WebAssembly by mappu on Sunday April 30, 2017 @01:42AM (#14230298)
There's also Lazarus in this category.
Re:Wacl: Tcl distro customized for WebAssembly by deckiedan on Sunday April 30, 2017 @08:45AM (#14231282)
The default download didn't have GUI support on my Mac when I just tried it, and the documentation seems to indicate it's Windows only so far?
Re:Wacl: Tcl distro customized for WebAssembly by eggy on Sunday May 14, 2017 @08:42AM (#14335373)
@mappu above (no reply link by his reply):

I like Lazarus a lot. I am not a fan of Pascal though, and Red is under 1 MB batteries included. I like how it seems a cross between Lisp, Forth and other languages.

Re:Wacl: Tcl distro customized for WebAssembly by eggy on Sunday May 14, 2017 @08:39AM (#14335366)
I think it is in 0.63 or the latest binary now available. I'll check on my iMac later and get back to you. I use it on my Windows box for now.
Re:Wacl: Tcl distro customized for WebAssembly by pjmlp on Sunday April 30, 2017 @08:46AM (#14231285)
Back in the day a big mistake from Tk devs was how it just looked like Motif everywhere.

Eventually that got fixed, but we were already busy with other languages.