Wacl: Tcl distro customized for WebAssembly
51–60 of 68 posts
Re: Wacl: Tcl distro customized for WebAssembly
#52>> tDOM for parsing and creating XML and HTML content How is tDOM supposed to work if WebAssembly doesn't have access to the DOM?
Unfortunately the DOM for tDOM is not the web browser DOM that Javascript interfaces with. Same term, so very confusing, but not the same DOM's.
Re: Wacl: Tcl distro customized for WebAssembly
#53Re: Wacl: Tcl distro customized for WebAssembly
#54>> tDOM for parsing and creating XML and HTML content How is tDOM supposed to work if WebAssembly doesn't have access to the DOM?
Re: Wacl: Tcl distro customized for WebAssembly
#55Earlier quoted context omitted.
All my colleagues would agree and did the same. I don't. I want äöü quickly available for chatting and other "quick" writing, while coding typing is usually not the bottleneck.
Is there a German keyboard layout such as?: AltGr + a -> ä AltGr + o -> ö AltGr + u -> ü I'm Polish and I'm very glad that our most common layout is like that for ąćęłńóśźż (with AltGr + x for ź). Currently I'm in Germany and I wonder if there is similar layout for German umlauts.
Re: Wacl: Tcl distro customized for WebAssembly
#56Earlier quoted context omitted.
> A fair amount of the popularity was being the first scripting language with a reasonably complete, cross platform, UI widget toolkit. That wasn't my experience. At least in tcl/tk 8.5 things like zooming in/out of a tk canvas or updating a progress bar were a real pain. For example, tk canvas has this nice, seemingly simple subcommand called "scale" that looks like it does exactly what it's called with a tag and tw…
All fair, but you have to take the time period in context. There wasn't the plethora of choice we have today.
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.
Re: Wacl: Tcl distro customized for WebAssembly
#57Why 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?
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…
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.
Just the fact that Tcl is old doesn't mean that it is dead. It is actively developed and used, although mostly hidden (its not that kind of hype around as with Python or Ruby). That Tcl is old does in fact imply that the code base is mature and reliable, its well documented and doesn't come with surprises. Which in turn means that your code is almost never broken with a new Tcl version. In fact, scripts and extensions written for 8.4, 15 yrs ago, are mostly still functional in 8.6 without modifications. Yet Tcl does come with pleasant surprises that don't break old programs, as can be seen with the new features in 8.6 (TclOO, coroutines, tailcall, try/trap ...)
Re: Wacl: Tcl distro customized for WebAssembly
#58Earlier 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.…
we program at two layers, high level, and low level
features needed or preferred in low level programming, may not be required in high level programming and vice versa
there are several ways to work like this, and many people do for example, many developers use lua or python with c/c++
the effort needed to make the two language interact vary
another approach is to use one language with optional features, like optional typing or optional garbage collection, a language i believe is adopting this approach is red
have a programming framework, where two languages optimized for the two different layer use each others entities (names, objects, values, interfaces) seamlessly is in my opinion a super good approach for most programming
tcl + c .. are not exactly that and i believe a more modern combo will be better
Re: Wacl: Tcl distro customized for WebAssembly
#59Earlier quoted context omitted.
"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.…
well .. i am a big believer in the two layer separation we program at two layers, high level, and low level features needed or preferred in low level programming, may not be required in high level programming and vice versa there are several ways to work like this, and many people do for example, many developers use lua or python with c/c++ the effort needed to make the two language interact vary another approach is…
I believe in this too. Not only two layers, if necessary there can be more.
For that to work, well designed interfaces are quite necessary.
"tcl + c .. are not exactly that and i believe a more modern combo will be better"
You don't necessarily need to reinvent Tcl in another "more modern" language to achieve that. You can compile Rust crates to dynamic libraries (.dll, .so) and use c types, or ffidl in Tcl (http://elf.org/ffidl/) to call the functions in your DLL-crates. Or write a small Tcl C extension to wrap function calls in the Rust code. That will do, without rewriting Tcl in Rust. For the other way around you can always call the Tcl library via its DLL interface in the same manner (which is the way to embed Tcl interpreters in other programs).
Re: Wacl: Tcl distro customized for WebAssembly
#60Earlier quoted context omitted.
> - uses [ and ] for subexpressions instead of ( and ), which makes typing easier I would like to point out that in several non-US keyboard layouts, [ and ] are harder to type, not easier. For instance, on German keyboards, they are mapped to Right-Alt (AltGr) + 8/9, which is quite annoying to type compared to normal parentheses (which are mapped to Shift+8/9, with Shift being better placed and available on both the…
As a German I haven't use a German keyboard layout in years because the US layout easier in most cases (for examole all those curly braces in TeX).
I used to get laptops and keyboards with the US layout on them, but stopped since the resale value in Sweden drops sharply because of it. Thankfully, I've touch typed since forever so I rarely look at the keyboard anyway. (Unless, of course, I have to type with the Swedish layout.)