No relation to the sports channel.

  • 13 Posts
  • 1.88K Comments
Joined 1 year ago
cake
Cake day: June 9th, 2023

help-circle

  • Language arises out of social behavior, beginning with imitation and reinforcement in early childhood. Children who don’t learn language (by interacting with adults and older children) in the critical period of early childhood, suffer serious developmental problems. So language is fundamentally anti-solipsistic, even anti-individualistic: you only acquire it by being brought into a community of language-users.

    And written language begins as an encoding for spoken (or signed) language: everyone learns to speak (or sign) before they learn to read, and learning to read starts with learning associations between written structures and spoken ones. (For English-speakers, that means phonics: the relationship between letters or groups of letters, and sounds.)

    Meaning isn’t “assigned” solipsistically; rather it’s “acquired” from a community of use. A single user can’t decide for themselves that “dog” means squirrel. I suspect that if you look at the word “dog” and try to convince yourself that it refers to a bushy-tailed tree-climbing nut-munching rodent, you will be aware that you are doing something very silly, something deliberately contrary to your knowledge.


















  • Regex is good for a few very specific things, and sysadmins used to use it for goddamn everything. If all your server logs are in lightly-structured text files on a small number of servers, being able to improvise regex is damn useful for tracking down server problems. Just write a shell loop that spawns an ssh logging into each server and running grep over the log files, to look for that weird error.

    These days, if you need to crunch production server logs you probably need to improvise in SQL and jq and protobufs or systemd assmonkery or something.

    But if you actually need a parser, for goodness sake use a parser combinator toolkit, don’t roll your own, especially not with regex. Describing your input language in plain Haskell is much nicer than kludging it.

    (This is the “totally serious software engineering advice” forum, right?)