• 0 posts
  • 30 comments
Joined 2 years ago
Cake day: July 22nd, 2024
  • I mean, I find the tech fascinating and probably would like it, except that I hate the way it was created, the way it is peddled, the things it is used for, the companies who use it, the way it “talks”, the impact it has had on society, the impact it has on the environment, the way it is monetised, and the companies who own it.

    And all that makes it difficult to “just appreciate the tech”

  • A few good reasons, the first being that brand new operating systems don’t get written all that often. But even if they were, functional languages focus a lot on abstractions, making them generally higher level languages and so not fast enough to compete with C.

    Having said that, Rust’s design is quite inspired by functional languages in many ways, and it is indeed being used in operating systems.

  • Of course, but this assumes I know roughly what the text will look like that I’m searching for. If I already know what it will look like, I’ll use global search of course, but if all I know is that “at some point this element is put into the document” then I have no idea how that might actually happen. AI is just pretty good (ie succeeds sometimes) at generalising my words into a rough idea and searching for that.

  • I mostly use it as a code search tool, when dealing with large projects that I’m not very familiar with. Like I can ask “where is this component actually inserted into the web page” and it can sometimes point to a file and function. It doesn’t always work of course, but when it does it can save a lot of time.

    I don’t ever let AI write code for me though

  • This is close, but as someone already said, an index into a list just means you are mutating the list.

    Your stable “identifier” needs to be a function, ie. a reused design pattern. Compared to the list, this would be an index function which gets an element from an arbitrary list, meaning you don’t have to mutate your list anymore, you just build a new one which still works with your function.

    This is why languages which avoid mutation and side effects are always (to my knowledge) functional languages.