News for hackers. Stuff that matters.
Re:Apparently CodePen 2.0 sends data to their servers as you... by embedding-shape on Monday September 07, 2026 @08:00AM (#49597308)
Well, except for the cases when you happen to have the entire VM for your language running in the same tab where you program lives, and they both are all JS.

Probably harder, and wouldn't work equally well for everyone, but it would be possible to have "guess language and autocomplete" entirely client-side, especially when it comes to JavaScript of all languages.

Re:Apparently CodePen 2.0 sends data to their servers as you... by odo1242 on Monday September 07, 2026 @09:17AM (#49598108)
It seems like the main disadvantage would be that you have to load all the autocomplete data / model weights on the client-side and your webpage might be CPU/memory limited
Re:Apparently CodePen 2.0 sends data to their servers as you... by embedding-shape on Monday September 07, 2026 @09:22AM (#49598159)
> main disadvantage would be that you have to load all the autocomplete data / model weights on the client-side

Not sure what "model weights" you're talking about, but yes, that is the trade-off. Although complete autocomplete data for the entirely of the JavaScript APIs would be what, in an efficient format, easily below 1MB at least.

Re:Apparently CodePen 2.0 sends data to their servers as you... by mkgiga on Monday September 07, 2026 @04:56PM (#49602924)
Code editor autocomplete doesn't use ai — search up LSP