Jonkman Microblog
  • Login
Show Navigation
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. clacke (clacke@social.heldscal.la)'s status on Saturday, 03-Feb-2018 17:21:17 EST clacke clacke
    shell + awk + make, three separate domains, three languages that have swollen to largely subsume each other, which means for many operations, There Is More Than One Horrible Way To Do It using this language trifecta.

    And of course:

    > You can write a Lisp in each one

    Here is how people use them:

    > When you see awk in a Makefile, you're seeing three intertwined languages, because make is a macro language that passes command strings literally to /bin/sh.

    > Eighty percent of lines in a typical Makefile are literally shell, or variable assignments that are easily expressed in shell.

    > bash and zsh add associative arrays and regex support to shell, which makes them semantically close to awk.

    > Awk only has floating point arithmetic, and bash only has integer arithmetic.

    So what #oil #oilshell aims to do, is to own the capabilities and domains of all three -- "composition of processes", "streaming computation" and "data-driven, incremental, and parallel computation" -- combined in a not-horrible way.

    https://www.oilshell.org/blog/2016/11/13.html
    In conversation Saturday, 03-Feb-2018 17:21:17 EST from social.heldscal.la permalink
    1. Hattie Cat (hattiecat@shitposter.club)'s status on Saturday, 03-Feb-2018 17:25:28 EST Hattie Cat Hattie Cat
      in reply to
      @clacke Isn't that why perl was invented tho?
      In conversation Saturday, 03-Feb-2018 17:25:28 EST from shitposter.club permalink
      1. clacke (clacke@social.heldscal.la)'s status on Saturday, 03-Feb-2018 17:26:31 EST clacke clacke
        in reply to
        @hattiecat Partly. But perl isn't awesome at shell stuff and it doesn't do make stuff. It's a grown-up (or doped-up, depending on your perspective) awk.
        In conversation Saturday, 03-Feb-2018 17:26:31 EST from social.heldscal.la permalink
        1. Hattie Cat (hattiecat@shitposter.club)'s status on Saturday, 03-Feb-2018 17:31:17 EST Hattie Cat Hattie Cat
          in reply to
          @clacke I guess awk is a 'do one thing and do it well' kind of tool. Awesome domain-specific language for what it was designed for. perl is the Pathologically Eclectic Rubbish Lister - what it says on the tin.
          In conversation Saturday, 03-Feb-2018 17:31:17 EST from shitposter.club permalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

Jonkman Microblog is a social network, courtesy of SOBAC Microcomputer Services. It runs on GNU social, version 1.2.0-beta5, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Jonkman Microblog content and data are available under the Creative Commons Attribution 3.0 license.

Switch to desktop site layout.