News for hackers. Stuff that matters.
Re:Zed AI by brigadier132 on Tuesday August 20, 2024 @03:35PM (#41303231)
> AI autocomplete is just a toy

I disagree, when I'm writing code and it just autocompletes the line for me with the correct type with the correct type params set for the generics it saves me the mental effort having to scroll around the file to find the exact type signature I needed. For these small edits it's always right if the information is in the file.

Re:Zed AI by lupire on Tuesday August 20, 2024 @03:39PM (#41303268)
Why do you need an LLM for that? That basic type inference.
Re:Zed AI by brigadier132 on Tuesday August 20, 2024 @04:15PM (#41303604)
i dont know what statically typed language you are using that never requires specifying types. As far as i know only ocaml works this way.

Different languages support different levels of type inference. When im writing rust and typescript im often specifying types this way for structs and function signatures.

With llms what often happens is i write a parameter or variable name and it infers from the name what the type is because i have used the same name somewhere else in my codebase. This would not work without llm autocomplete