gonzan
We humans (most of us anyways) don't write everything perfectly in one go, AI doesn't either.
AI tooling is improving so the AI can write tests for its own code and do pre-reviews but I don't think it ever hurts to have both an AI and a human review the code of any PR opened, no matter who or what opened it.
I'm also building a tool in the space https://kamaraapp.com/ and I found many times that Kamara's reviews find issues in Kamara's own code. I can say that I also find bugs in my own code when I review it too!
We've also been battling with the same issue greptile has in the example provided where the code suggestion is in the completely wrong line. We got it kind of under control, but I haven't found any tool that gets it right 100% of the time. Still a bit to go for the big AI takeover.
Different cultures allow different things.
Show HN: Locutio, an open source AI-powered translation management tool
Hi!I run a League of Legends stats website which gets users from all over the world, so I wanted an easy way to translate it to many languages.I looked at the alternatives in the market and they are all really expensive. I particularly wanted a LLM-based solution, not straight Machine Translations since context is usually important imo to get higher quality translations.So I went ahead and...
Show HN: LLM Logger – open-source logging for LLM calls
https://github.com/gnardini/llm-logger
Hi HN!While working with LLMs I ran into two problems:- While developing, when running into any unexpected issues I wanted to see the exact input/output but logging it every time made the logs too noisy and useless. - After launch, I wanted to see how my users were using my app.So I built LLM Logger. It's a simple open source tool that has a comfy UI from which you can see the list of logs from...
Show HN: Phinxer, open source Web Analytics
I built Phinxer for my own use a year or so ago because existing alternatives felt bad to use (Google Analytics) becasue of excessive tracking or were really expensive. I was running an app that had ~350k pageviews at the time but was only making $80 from ads so paying $50 a month for analytics sounded silly.The actual cost of running this is only a fraction of that, so I'm now releasing the...
Building an AI-Agent Tool for Writing Code
Making Money from a Stats Website
I guess it goes to the point of the author that hard deployments on mobile makes mobile development harder
How I Use AI to Code
The way I use AI is to think at a high level how I want to implement something and then instead of writing the code tell the AI to write it by giving it specific instructions. Then proof-read it and fix the 1-2 things that it inevitably gets wrong.
I'm not reading some random code that I don't know what it's supposed to be doing. I'm reading the output of an instruction I gave that include some technical detail on how to implement it. Reading it and doing minor fixes is really fast.
Dealing with Indexing Bots
The method I used to choose which files to feed GPT-4 was embeddings-based. I got an embedding for each file and then an embedding from the instruction + some simple processing to pick the files more likely to be relevant. It isn't perfect but good enough most of the time in medium-sized codebases (not very large ones).
The one thing I started doing because of how I implemented this is make files shorter and move stuff into different files. Having a 1k+ LOC file is prohibitive because it eats up all the context window (although with 100k context window maybe less so). I think it's a good idea to keep files short anyways.
There's other smarter things that can be done (like embed and pass individual functions/classes instead of entire files) so I have no doubt someone will build something smarter soon. You'll likely not have to change your coding patterns at all to make use of AI.
I also don’t mind writing this sort of code and I’m actually quite fast at writing it but AI is just on another level. Simple stuff like this it gets right almost every time and even does well on slightly more complicated stuff.
I’m building a VS Code extension that makes this easier by having context on the code and building features on top of it with no copy-pasting required.
The extension is called Kamara: https://kamaraapp.com/ If you’re interested in trying it out for building an MVP of one of your ideas I’m happy to send over some free credits
We do pass the whole files, not just headers although that’s a possibility we considered and may try in the future. Looking at other code helps the LLM a lot in maintaining similar style and making sure the code is being used correctly. Sad reality is that interfaces are rarely descriptive and robust enough to code against them without looking at details.
We don’t pass the entire codebase because even small projects don’t fit, we use embeddings and some GPT assistance to decide which files are more likely to be relevant to complete the task and pass those. It doesn’t get it right 100% of the time, (we’re working on it) but it does most of the time.
Our approach allows us to write and edit several files with a single user provided prompt. It can build entire features in existing codebases as long as they’re not huge. A lot of the time it looks like magic honestly.
The link is https://kamaraapp.com if someone is interested in trying it and providing feedback I’m happy to send over some free credits :)
Show HN: Kamara, an AI-powered context-aware coding assistant
Kamara is a VS Code extension that has access to all of your code. When you ask Kamara to write a feature, Kamara will go through your code, decide where is the best place to write the feature and implement it, including editing existing files and writing new ones.
I found that most stats websites don't show stats for ARAM or show very limited ones, so I created ARAM Zone, a website focused on ARAM.
It's similar to other stats-based websites but I've tried to add my own extra twist to it. Specifically, for champion details and the champion tierlist screens I've divided champions by the main rune and first item bought. AP Malphite is VERY different than tank Malphite so I thought it was silly to group them as one. In Malphite's case, AP builds have 45-49% win rate and tank builds 55-60% win rate, which is very relevant info when deciding what to build!
You can also search for your Summoner name and see your personal stats on ARAM :)
Anyways, if there are any League fans here and you give it a shot let me know what you think!