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
    SoapDog (soapdog@toot.cafe)'s status on Tuesday, 07-Jan-2025 02:19:34 JST SoapDog SoapDog

    Seeing many posts about
    #Lua

    #programming
    language on my feeds and socials recently. Very often the comments on these posts tend to fall into the same rants and misunderstandings. In 2021 I wrote about it in:

    https://andregarzia.com/2021/01/lua-a-misunderstood-language.html

    That is a good read for anyone puzzling about Lua.

    In conversation about 5 months ago from toot.cafe permalink
    • Embed this notice
      SoapDog (soapdog@toot.cafe)'s status on Tuesday, 07-Jan-2025 02:21:19 JST SoapDog SoapDog
      in reply to

      When I wrote that post, my blog was SSG generated by Pollen (which is ultimately running on the #Racket runtime). That was a great system and it served me well for years, but it had its shortcomings and eventually I decided to replace it with something simpler. I went with a dynamic #Lua site.

      The new system is good old CGI based scripts written in #Lua using a #SQLite file as source of truth. About 1169 lines for the whole CMS including my #IndieAuth #Micropub and my #MetaWeblog endpoint.

      In conversation about 5 months ago permalink
    • Embed this notice
      SoapDog (soapdog@toot.cafe)'s status on Tuesday, 07-Jan-2025 05:58:03 JST SoapDog SoapDog
      in reply to
      • Danie van der Merwe

      @danie10 what kind of plugin or script you're planning for DaVince Resolve?

      In conversation about 5 months ago permalink
    • Embed this notice
      Danie van der Merwe (danie10@mastodon.social)'s status on Tuesday, 07-Jan-2025 05:58:04 JST Danie van der Merwe Danie van der Merwe
      in reply to

      @soapdog interesting, I'm thinking of learning it as DaVinci Resolve video editor supports Lua and Python. Although I know the basics of Python, supposedly Lua is simpler for thew scripting jobs there.

      In conversation about 5 months ago permalink
    • Embed this notice
      SoapDog (soapdog@toot.cafe)'s status on Wednesday, 08-Jan-2025 02:54:34 JST SoapDog SoapDog
      in reply to
      • Matěj Cepl 🇪🇺 🇨🇿 🇺🇦

      @mcepl I don't think you understood it at all. The TL;DR of the article is that Lua is a toolbox to be adapted, and that the community favours mechanisms and tools over features. There is zero claims about hate whatsoever.

      Regarding to your PR, I think your tone there was not right for someone who is trying to contribute to FOSS (I read the mailing list exchange). You literally patronised and antagonised the maintainer because they didn't want your PR. That is not the way.

      In conversation about 5 months ago permalink
    • Embed this notice
      Matěj Cepl 🇪🇺 🇨🇿 🇺🇦 (mcepl@en.osm.town)'s status on Wednesday, 08-Jan-2025 02:54:36 JST Matěj Cepl 🇪🇺 🇨🇿 🇺🇦 Matěj Cepl 🇪🇺 🇨🇿 🇺🇦
      in reply to

      @soapdog

      So, if I understand it correctly, TL;DR of the article is “Normal users hate #Lua, because they miss standard library; the feeling is mutual, we hate them as well. Lua should be used only by large (semi-)professional projects, which build they own standard library.” Did I get it right?

      (Meanwhile, I have to fight about https://git.sr.ht/~mcepl/vis/commit/d19f12337e440 being included into #vis).

      In conversation about 5 months ago permalink

      Attachments

      1. No result found on File_thumbnail lookup.
        ~mcepl/vis: lua: add function vis:file_exists() - sourcehut git
    • Embed this notice
      SoapDog (soapdog@toot.cafe)'s status on Tuesday, 14-Jan-2025 07:38:34 JST SoapDog SoapDog
      in reply to
      • Matěj Cepl 🇪🇺 🇨🇿 🇺🇦

      @mcepl that is really not the case. You can use Lua in small projects without any problem. I do it all the time.

      The article is not about having or not having a standard library. That matters very little. It is about providing mechanisms and tools over features.

      In conversation about 5 months ago permalink
    • Embed this notice
      Matěj Cepl 🇪🇺 🇨🇿 🇺🇦 (mcepl@en.osm.town)'s status on Tuesday, 14-Jan-2025 07:38:36 JST Matěj Cepl 🇪🇺 🇨🇿 🇺🇦 Matěj Cepl 🇪🇺 🇨🇿 🇺🇦
      in reply to

      @soapdog

      Exactly: a programming language is either like Python (“batteries included”) or it is like C (“do it yourself”; although there is a large stdlib called libc). The first is good for a general scripting, the second one isn’t. Yes, no sense adding file functions to Lua embedded in WoW, but e.g. Neovim (and any other editor like vis) must develop their own stdlib. Thus, “we don’t like you to use Lua for anything smaller than a project large enough for you to develop your own stdlib”.

      In conversation about 5 months ago permalink

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.