News for hackers. Stuff that matters.
Re:Zed AI by janice1999 on Tuesday August 20, 2024 @03:06PM (#41302958)
JetBrains ships a local, offline AI auto-complete in PyCharm. Sure it's limited, but it shows it can be done. It's a pity other companies aren't trying the same, especially this one that boasts about millisecond editing times.

Edit: JetBrains, not IntelliJ. Auto-complete details - https://blog.jetbrains.com/blog/2024/04/04/full-line-code-co...

Re:Zed AI by xemoka on Tuesday August 20, 2024 @03:19PM (#41303079)
Zed will hook into ollama as well; so you can run your own locally; just not as part of the same process (yet?).
Re:Zed AI by vineyardmike on Tuesday August 20, 2024 @03:48PM (#41303357)
Hooking into standard APIs like Ollama is definitely preferred (at least to me) because it means it’s more composable and modular. Very Unix-y. Lets you use whatever works for you instead of the vendor.
Re:Zed AI by rkharsan64 on Tuesday August 20, 2024 @03:57PM (#41303459)
I agree that the completions might not be that great, but for context: this is a 100M model, while most models that people compare this to are atleast 100x bigger.

They also focus on single line completions, and ship different models per programming language. All these make it possible to ship a decent completion engine with a very small download size.

Re:Zed AI by raincole on Tuesday August 20, 2024 @03:17PM (#41303054)
I tried it with C#. It's not comparable to Copilot.

If I've never used Copilot I might be slightly impressed.

Re:Zed AI by sangnoir on Tuesday August 20, 2024 @03:42PM (#41303304)
For those who don't have the latitude of uploading their code to Microsoft servers, smaller, limited but fully local AI is better than nothing.
Re:Zed AI by teaearlgraycold on Tuesday August 20, 2024 @03:19PM (#41303074)
I don’t see programming getting exponentially harder. So eventually local compute will catch up with programming needs and offline AI will be pretty good.
Re:Zed AI by lovethevoid on Tuesday August 20, 2024 @03:37PM (#41303252)
The local compute problem is a cost problem, and most people do not have the hardware necessary and judging by trends this will continue for another ~decade.
Re:Zed AI by __loam on Tuesday August 20, 2024 @03:48PM (#41303358)
Local compute is also getting progressively harder to make faster. I have a CPU from 6 years ago and checked some benchmarks to see if upgrades would be worth it. It's a 90% increase in performance with a 27% improvement in single threaded. Pretty substantial but not exponential. GPUs are advancing more quickly than CPUs right now but I wouldn't be surprised if they hit a wall soon.
Re:Zed AI by rileymichael on Tuesday August 20, 2024 @06:34PM (#41304791)
You're right, it's not comparable. Jetbrain's code completion actually integrates with the IDE to guarantee the suggested code isn't entirely a hallucination -- for example it checks for unresolved references so that its suggestions don't reference non-existent variables/methods.

I've disabled Copilot as it produces garbage way too often. I found myself "pausing" to wait for the suggestion that I'd ultimately ignore because it was completely invalid. I've left Jetbrain's code completion on though because it's basically just a mildly "smarter" autocomplete that I'll occasionally use / I don't find myself relying on.

Re:Zed AI by TechDebtDevin on Tuesday August 20, 2024 @03:49PM (#41303370)
Maybe its because there's literally no point in using a local llm for code-completion. You'd be spending 90% of your time correcting it. Its barely worth it to use co-pilot.
Re:Zed AI by _joel on Tuesday August 20, 2024 @03:12PM (#41303007)
Interesting, have you used it/found it to be usable? I use IntelliJ myself, but it's not known for being a lean beast. With the addition of stuff like test containers and a few plugins, I'd be suprised if my machine didn't melt adding a local LLM too.
Re:Zed AI by janice1999 on Tuesday August 20, 2024 @03:15PM (#41303035)
I mainly use PyCharm and I found the auto-complete to be good. It doesn't always kick in when I expect but some of the suggestions have been surprisingly complex and correct.
Re:Zed AI by jstummbillig on Tuesday August 20, 2024 @03:14PM (#41303026)
What it shows is that it can be done — in a limited way. Other people might not like those limits and chose to go a different way. I am not sure what's worth lamenting here.
Re:Zed AI by janice1999 on Tuesday August 20, 2024 @03:19PM (#41303080)
> I am not sure what's worth lamenting here.

The normalisation of surrendering all our code to remove AI cloud gods maybe? The other being a super responsive IDE now having major features have network requests delaying them, although HW requirements likely make that faster for most people.

Re:Zed AI by jstummbillig on Wednesday August 21, 2024 @02:51AM (#41307500)
That sounds a little too spooky for my taste, but you do you. What anything beyond that means, in effect, is that you (not necessarily you) want to chose my values for me (not necessarily me).

I don't see why I should care to have you do that.

Re:Zed AI by 0cf8612b2e1e on Tuesday August 20, 2024 @03:22PM (#41303102)
Zed is trying to position itself as a next gen hackers editor. Text editing with lessons learned from the multitude of experiments in the space. A flagship feature that is online only and requires me to trust a third party is a deal breaker to many. For instance, my employer would not be pleased if I suddenly started sharing code with another.

Take the AI out of the conversation: if you told your employer you shared the codebase, that’s an insta-fire kind of move.

Re:Zed AI by nprateem on Tuesday August 20, 2024 @03:33PM (#41303201)
Yeah but so is I sent a message to s random person about our business vs I sent a message to one of our suppliers
Re:Zed AI by 0cf8612b2e1e on Tuesday August 20, 2024 @04:02PM (#41303505)
Is Zed a supplier? Sounds like a random developer can sign up at will without any corporate NDAs or other established legal agreements. Will my employer hash out the NDAs for every developer tool that wants to incorporate cloud AI for the lulz?
Re:Zed AI by jsheard on Tuesday August 20, 2024 @03:21PM (#41303098)
What's the impact on laptop battery life roughly, when you have a local LLM constantly running in the background of your text editor?
Re:Zed AI by jeroenhd on Tuesday August 20, 2024 @03:28PM (#41303160)
IntelliJ is an IDE, though, not a text editor. If you want a text editor with AI, you may need to wait for Microsoft to bring ChatGPT to notepad.

It seems to be limited to a single CPU core at a time, so depending on your CPU boosting settings, some but not too much.

It's quite snappy despite not using a lot of resources. I tried replicating the effect using a CUDA-based alternative but I could get neither the snappiness nor the quality out of that.

Re:Zed AI by kilohotel on Tuesday August 20, 2024 @03:35PM (#41303227)
sure, but if it was good more people was use it
Re:Zed AI by nsonha on Tuesday August 20, 2024 @03:26PM (#41303140)
AI autocomplete is just a toy, it has been there since the begining of AI code and I find it pretty useless. I prefer making a proper prompt to get better answers. Also most of the time engineers (use AI to) modify existing codebases rather than making new code.
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

Re:Zed AI by rty32 on Tuesday August 20, 2024 @03:33PM (#41303212)
Google's systematic, quantitative evaluation of AI coding assistance tools disagrees with your personal and anecdotal findings (which agrees with many other similar studies):

https://research.google/blog/ai-in-software-engineering-at-g...

Re:Zed AI by lupire on Tuesday August 20, 2024 @03:42PM (#41303295)
I don't see a comparison to Non-GenAI auto complete there.

Eclipse wrote half my code characters 15 years ago.

Re:Zed AI by simonw on Tuesday August 20, 2024 @03:35PM (#41303225)
What programming languages do you mostly work in?

I've been wondering if the benefits of AI-autocomplete are more material to people who work in languages like Python and JavaScript that are harder to provide IDE-based autocomplete for.

If you're a Java or TypeScript developer maybe the impact is reduced because you already have great autocomplete by default.

Re:Zed AI by cjonas on Tuesday August 20, 2024 @03:41PM (#41303285)
I think typescript benefits even more than JavaScript because the type signatures add so much context. After defining the types and signatures copilot will often complete the body within a few changes of perfect
Re:Zed AI by zackproser on Tuesday August 20, 2024 @07:07PM (#41305000)
Yeah +1, the current top LLMs do pretty well with TypeScript
Re:Zed AI by treesciencebot on Tuesday August 20, 2024 @03:19PM (#41303073)
running a much worse model at a higher latency (since local GPU power is limited) is a worse experience for Zed.