Live data from Hacker News

Replit's in-browser coding AI

replit.com

21–30 of 87 posts

Re: Replit's in-browser coding AI

#21

Does this differ from GitHub's CoPilot in any user-noticeable way? (outside of the platform it's available on)

One thing I noticed is it seems to have an "Explain code" feature, giving you a textual explanation of a block of code you select, which I'm not aware of GitHub having.

GitHub Copilot Labs (a VSCode extension meant to be installed with GitHub Copilot) seems to have an explain code feature.

ref: https://github.blog/2022-09-14-8-things-you-didnt-know-you-c...

Re: Replit's in-browser coding AI

#23
post #19

replit employee here. the team who built this is very small (less than a dozen, including non-eng roles for the go to market), and went from idea to general availability in 8 weeks

That's very impressive. Hats off to them! I dont think this is too out of the ordinary either though. I'd guess they started off with a LLM from hugging face, set up some pipeline to ingest code from replit repos to finetune the LLM. The ML aspect of this is not terribly hard given that they probably dont need to train a LLM from scratch. Figuring out how store and serve from replit repos (or publicly available code…

yep, true! however, the devil is in the details. from what i've been told, the big challenge was latency: they worked a lot to bring the latency down to acceptable levels - essentially to be usable in a cloud IDE

iirc the team managed to bring it to a lever an order of magnitude lower than off-the-shelf models

Re: Replit's in-browser coding AI

#24

Does this differ from GitHub's CoPilot in any user-noticeable way? (outside of the platform it's available on)

One thing I noticed is it seems to have an "Explain code" feature, giving you a textual explanation of a block of code you select, which I'm not aware of GitHub having.

You can just use the prompt "The above code does the following explained in English" in a comment to prompt CoPilot to explain its code. You could probably also engineer a prompt to translate code between languages.

Re: Replit's in-browser coding AI

#25

replit employee here. the team who built this is very small (less than a dozen, including non-eng roles for the go to market), and went from idea to general availability in 8 weeks

That's really neat to hear. Can you comment on how replit has managed to foster a culture of fast delivery? Are there any interesting trade offs?

Re: Replit's in-browser coding AI

#26
If this tool was trained on open source code, what license does the generated code have? At least with Codepilot people were able to generate verbatim GPL code with typos and everything. More importantly, I wonder if companies behind these type of tools offer legal or financial protections in case GPL code sneaks in and leads to expensive law suits.

Re: Replit's in-browser coding AI

#27
post #19

replit employee here. the team who built this is very small (less than a dozen, including non-eng roles for the go to market), and went from idea to general availability in 8 weeks

That's very impressive. Hats off to them! I dont think this is too out of the ordinary either though. I'd guess they started off with a LLM from hugging face, set up some pipeline to ingest code from replit repos to finetune the LLM. The ML aspect of this is not terribly hard given that they probably dont need to train a LLM from scratch. Figuring out how store and serve from replit repos (or publicly available code…

8 weeks is impressive for something like that, and it goes to show just how powerful our off-the-shelf tools have become.

I think it's also a bit scary, because 8 weeks is very little time for testing, tuning, and validation of something as opaque as a machine learning model. If it worked right the first time, that's great. But there is still a lot of inherent uncertainty in ML projects. Decision makers need to take that uncertainty into account when planning.

That, or, the 8 weeks only covers the final training runs and the implementation/deployment, and doesn't include time spent developing and tuning proof-of-concept prototype models.

Re: Replit's in-browser coding AI

#29
post #15

> trained on publicly available code Fully respecting the licenses this code was published under, one would hope?

What do source code licenses say about using source code as training data? IANAL, I would imagine it's only relevant if the model spits out already existing licensed code, and that using the code as training data is largely irrelevant.

For a simpler example than code-generating ML, if I write a program to recognize a directory of source code vs non-source code, and my logic is if (unbalanced parenthesis count in all files > X) { return "not source code"; } else { return "source code"}.

And then I compute X by scanning over the linux kernel source and counting the amount of unbalanced parens, have I just committed a GPL violation if I don't GPL my source code recognizer?

Re: Replit's in-browser coding AI

#30

replit employee here. the team who built this is very small (less than a dozen, including non-eng roles for the go to market), and went from idea to general availability in 8 weeks

any interns on that team who are going to get bullied by replits lawyers in the near future?

Interesting, sithlord is an anagram for shitlord. While the behavior of the CEO wasn't cool, the issue seems to have been resolved between all involved parties and everyone has moved on - we don't need to bring it up every time repl.it is mentioned.
Post reply on HN