Live data from Hacker News

Wacl: Tcl distro customized for WebAssembly

fossil.e-lehmann.de

61–68 of 68 posts

Re: Wacl: Tcl distro customized for WebAssembly

#61

At long, overdue, too late last... In the very early days of the web, I used to fantasize - naively - about the whole undignified html hodgepodge never having happened, and the entire web just running on served-up tcl/tk.

If you've ever placed a sports bet anywhere in the world online, chances are your bet went through Tcl code front and back. I spent 15 years writing it.

I didn't ever. But nice to know.

Re: Wacl: Tcl distro customized for WebAssembly

#62
post #20

Earlier quoted context omitted.

All fair, but you have to take the time period in context. There wasn't the plethora of choice we have today.

It's the "reasonably complete" phrase that I'm responding to. For example: Qt was released around the same time. Do you know if the first version included QGraphicsView? Because it has features we still associate with a modern 2d graphics API-- affine transforms, opacity, grouping of primitives, arbitrarily complex paths, and decent performance even with event handlers and many items being animated on the canvas.

Yes, qt is a better toolkit. But it wasn't embedded in a cross platform scripting language at the time.

Re: Wacl: Tcl distro customized for WebAssembly

#63
post #57
post #26

Earlier quoted context omitted.

well, for me, when i used to like Tcl, it was * the everything is a string, mantra * meta-programming possibilities * tcl wiki ( http://wiki.tcl.tk/ ) the tcl wiki is the reason i fell in love with wikis, my first wiki experience, and in my opinion when it was very active, it was home of a really nice community I think if someone can rewrite tcl or a tcl like language, as the top level language, using a more modern l…

"I think if someone can rewrite tcl or a tcl like language, as the top level language, using a more modern low level language, like Rust or Go ... it will be a very nice combo, I think Tcl can serve as a really nice declarative language" Why would someone rewrite Tcl in another language? That is just an immense amount of work and would (re)introduce bugs that have been found and fixed in Tcl over the last 3 decades.…

I do think we need a richer ABI than C offers (in particular, one with native support for sum types). .net was intended to be that (sort of) but people don't write low - level libraries in it because it ties you to GC.

Re: Wacl: Tcl distro customized for WebAssembly

#64
post #5

Why do people like Tcl? I've never tried diving in to using the language, but I have debugged MacPorts now and then, which is all Tcl, and I've seen that Tcl UI library used in other scripting languages. What's the draw, other than having some existing code written in the language? Gems like the `upvar` command? ( http://wiki.tcl.tk/1508 ) Is there something special about Tcl that makes it a joy to use?

By the time you outgrow TCL you are a really good programmer. You choose and advocate appropriately.

Re: Wacl: Tcl distro customized for WebAssembly

#65
post #62

Earlier quoted context omitted.

It's the "reasonably complete" phrase that I'm responding to. For example: Qt was released around the same time. Do you know if the first version included QGraphicsView? Because it has features we still associate with a modern 2d graphics API-- affine transforms, opacity, grouping of primitives, arbitrarily complex paths, and decent performance even with event handlers and many items being animated on the canvas.

Yes, qt is a better toolkit. But it wasn't embedded in a cross platform scripting language at the time.

And that was quite obviously a reason many developers chose tcl/tk at the time, in spite of tk not being a "reasonably complete" GUI toolkit.

Re: Wacl: Tcl distro customized for WebAssembly

#66
post #5

Why do people like Tcl? I've never tried diving in to using the language, but I have debugged MacPorts now and then, which is all Tcl, and I've seen that Tcl UI library used in other scripting languages. What's the draw, other than having some existing code written in the language? Gems like the `upvar` command? ( http://wiki.tcl.tk/1508 ) Is there something special about Tcl that makes it a joy to use?

By the time you outgrow TCL you are a really good programmer. You choose and advocate appropriately.

I think you are a really good programmer by the time you use Tcl again: as a complementary language for test automation, or to integrate it in your software as DSL...

First you use it because it is simple to learn. Then you outgrow it and blame its weaknesses. Then you remember its strengths from a different perspective and pick it up again :)

Re: Wacl: Tcl distro customized for WebAssembly

#67
post #31

Earlier quoted context omitted.

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

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?

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

#68
post #31

Earlier quoted context omitted.

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

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?

@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.

Post reply on HN