GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    clacke (clacke@libranet.de)'s status on Tuesday, 22-Aug-2023 23:11:32 JST clacke clacke
    • The Tcl Programming Language

    One field of use for #tcl that I think people might find surprising is that it mixes well with #nix , at least to me.

    Tcl in #nixos has few dependencies, so you can use it for miscellaneous scripts without feeling bad about it.

    When doing Nix stuff you can easily get into a few layers of quoting, something Tcl's syntax handles better than the shell code people instinctively reach for.

    Tcl excels at orchestrating and composing system commands, again a typical Nix concern.

    Finally, even though the programming model could be said to be the inverse of functional programming, on a superficial level I think Nix code and Tcl have a shared aesthetic, they just look good together. 😃

    @tcltk @tcl @nixos

    In conversation Tuesday, 22-Aug-2023 23:11:32 JST from libranet.de permalink
    • LinuxWalt (@lnxw48a1) {3EB165E0-5BB1-45D2-9E7D-93B31821F864} likes this.
    • LinuxWalt (@lnxw48a1) {3EB165E0-5BB1-45D2-9E7D-93B31821F864} repeated this.
    • Embed this notice
      The Tcl Programming Language (tcltk@fosstodon.org)'s status on Tuesday, 22-Aug-2023 23:12:17 JST The Tcl Programming Language The Tcl Programming Language
      in reply to

      @clacke @nixos @tcl Tcl is multi-paradigm, it can be OO, procedural, functional etc. You use the paradigm that best suits your use case and is impartial to all of them.

      Another good fit is using Except to test various configurations automatically and report errors should they appear. Even though Tcl has been inspired by shell scripting, it keeps an elegant and simple to grasp syntax and semantics and is more than capable of being used as an interactive shell in and of itself.

      #tcltk #nixos

      In conversation Tuesday, 22-Aug-2023 23:12:17 JST permalink
      clacke likes this.
    • Embed this notice
      The Tcl Programming Language (tcltk@fosstodon.org)'s status on Tuesday, 22-Aug-2023 23:12:25 JST The Tcl Programming Language The Tcl Programming Language
      in reply to

      @clacke @nixos @tcl Additionally, Tcl makes deployment easier compared to other dynamic languages because they often make you get both the language interpreter and the application scripts onto the target machine. Most dynamic languages provide tools to "compile" everything into a single executable (Tcl has had that too, since about 1993), but we have more advanced technologies such as the Tcl Virtual File System, Starkits and Starpacks to make deployment as easy and reproducible as in #nixos.

      In conversation Tuesday, 22-Aug-2023 23:12:25 JST permalink
      clacke likes this.
    • Embed this notice
      clacke (clacke@libranet.de)'s status on Tuesday, 22-Aug-2023 23:12:31 JST clacke clacke
      in reply to
      • pinpox
      • The Tcl Programming Language
      @pinpox @tcltk It's been a while, but I'll try to find some of my one-off scripts. =)
      In conversation Tuesday, 22-Aug-2023 23:12:31 JST permalink
    • Embed this notice
      pinpox (pinpox@chaos.social)'s status on Tuesday, 22-Aug-2023 23:12:33 JST pinpox pinpox
      in reply to
      • The Tcl Programming Language

      @nixos @tcltk @tcl @clacke any real world examples of using tcl in nixos? Would be interstitial to see how that looks

      In conversation Tuesday, 22-Aug-2023 23:12:33 JST permalink
    • Embed this notice
      clacke (clacke@libranet.de)'s status on Tuesday, 22-Aug-2023 23:13:18 JST clacke clacke
      in reply to
      • pinpox
      • Alecu Ștefan-Iulian
      • The Tcl Programming Language
      @tcltk @pinpox @alecui aaand suddenly I'm playing 2048 in NixOnDroid 😃
      In conversation Tuesday, 22-Aug-2023 23:13:18 JST permalink
    • Embed this notice
      The Tcl Programming Language (tcltk@fosstodon.org)'s status on Tuesday, 22-Aug-2023 23:13:19 JST The Tcl Programming Language The Tcl Programming Language
      in reply to
      • pinpox
      • Alecu Ștefan-Iulian

      @pinpox @nixos @tcl @clacke @alecui if it helps, here's Tcl2048 packaged in NixOS, maybe this gives you a slight idea

      https://github.com/NixOS/nixpkgs/blob/dbab2564bca446ab430741c41f131a826a052f54/pkgs/games/tcl2048/default.nix

      In conversation Tuesday, 22-Aug-2023 23:13:19 JST permalink
    • Embed this notice
      The Tcl Programming Language (tcltk@fosstodon.org)'s status on Tuesday, 22-Aug-2023 23:13:20 JST The Tcl Programming Language The Tcl Programming Language
      in reply to
      • pinpox
      • Alecu Ștefan-Iulian

      @pinpox @nixos @tcl @clacke I (@alecui) haven't seen any examples, mostly because from what I have experimented with the integration I haven't found anything that integrates nicely with NixOS (perhaps because it's not quite a popular OS around these parts). From my memory though Nix has official Perl bindings so you could interop through one of the available CPAN modules. You can contribute to the Tcl community in that regard, we encourage your efforts :)

      In conversation Tuesday, 22-Aug-2023 23:13:20 JST permalink
    • Embed this notice
      clacke (clacke@libranet.de)'s status on Wednesday, 23-Aug-2023 03:15:54 JST clacke clacke
      in reply to

      Yeeesss!!

      First 2048 victory ever. Finally!

      In conversation Wednesday, 23-Aug-2023 03:15:54 JST permalink

      Attachments


      1. https://libranet.de/photo/199040450764e4c0de4fc5f142609765-0.jpg
      Haelwenn /элвэн/ :triskell: likes this.
    • Embed this notice
      Raito Bezarius (raito@nixos.paris)'s status on Wednesday, 23-Aug-2023 09:52:18 JST Raito Bezarius Raito Bezarius
      in reply to
      • The Tcl Programming Language

      @tcltk @clacke @nixos @tcl but we use bash and we do have folks maintaining perl stuff and bash stuff

      Though the question is really: what is the Tcl ecosystem? Is it still full of people, active development, can upstream work with us, etc. Which are very interesting and desirable properties.

      In conversation Wednesday, 23-Aug-2023 09:52:18 JST permalink
      clacke likes this.
    • Embed this notice
      The Tcl Programming Language (tcltk@fosstodon.org)'s status on Wednesday, 23-Aug-2023 09:52:19 JST The Tcl Programming Language The Tcl Programming Language
      in reply to
      • Raito Bezarius

      @raito @clacke @nixos @tcl
      as realistic as using Perl for that purpose, maybe even better. To my knowledge there isn't someone dedicated to NixOS in the Tcl sphere

      In conversation Wednesday, 23-Aug-2023 09:52:19 JST permalink
    • Embed this notice
      Raito Bezarius (raito@nixos.paris)'s status on Wednesday, 23-Aug-2023 09:52:21 JST Raito Bezarius Raito Bezarius
      in reply to
      • The Tcl Programming Language

      @tcltk @clacke @nixos @tcl interesting, how realistic Tcl can become a replacement for bash for building derivations and having phases, etc. ? (aka nixpkgs stdenv)

      Did anyone try?

      In conversation Wednesday, 23-Aug-2023 09:52:21 JST permalink
    • Embed this notice
      clacke (clacke@libranet.de)'s status on Wednesday, 25-Oct-2023 21:06:01 JST clacke clacke
      in reply to
      • Raito Bezarius
      • fgaz

      @fgaz I love a good necropost and I'm so happy to see someone else feel the Nix Tcl vibe!

      @raito

      In conversation Wednesday, 25-Oct-2023 21:06:01 JST permalink
    • Embed this notice
      fgaz (fgaz@cdrom.tokyo)'s status on Wednesday, 25-Oct-2023 21:06:02 JST fgaz fgaz
      in reply to
      • Raito Bezarius
      • The Tcl Programming Language

      @raito @tcltk @clacke @nixos I’ve been planning to try this since forever and I’ve been slowly packaging stuff to that end. #Nix and #Tcl would go so well together!

      The #nushell talk at #NixCon reminded me of this again, but my list of ongoing side projects is a little too big at the moment 😅. Still, if anyone is working on it please let me know!

      (sorry for the necropost, I just found the thread by browsing tags)

      In conversation Wednesday, 25-Oct-2023 21:06:02 JST permalink
    • Embed this notice
      fgaz (fgaz@cdrom.tokyo)'s status on Thursday, 22-Feb-2024 19:28:47 JST fgaz fgaz
      in reply to
      • Raito Bezarius

      @clacke @raito I ended up writing a proof of concept https://cdrom.tokyo/notice/Af8WEUo1QkesHl4Sky

      In conversation Thursday, 22-Feb-2024 19:28:47 JST permalink

      Attachments

      1. Domain not in remote thumbnail source whitelist: cdrom.tokyo
        fgaz (@fgaz@cdrom.tokyo)
        What if… #NixOS used #Tcl instead of #Bash?I present you tcl-stdenv!Previously@nixos @tcl @tcltk @tcl @tcl
      clacke likes this.

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.