andreabergia
Yep, I've had that working in some earlier version of the tooling.
> I'd suggest rethinking this; people usually expect the tab key to auto-complete.
That's a fair point.
> At any rate, thanks for writing the description yourself.
I might let an LLM write the code, and even the user's manual, but I write my own blog post and comments. :-)
Show HN: A live Python REPL with an agentic LLM that edits and evaluates code
I built PyChat.ai, an open-source Python REPL written in Rust that embeds an LLM agent capable of inspecting and modifying the live Python runtime state.A sample interaction: py> def succ(n): py> n + 1 py> succ(42) None ai> why is succ not working? Thinking... -> Listing globals <- Found 1 globals -> Inspecting:...
Untapped Way to Learn a Codebase: Build a Visualizer
A field guide to sandboxes for AI
from gremllm import Gremllm
# Be sure to tell your gremllm what sort of thing it is
counter = Gremllm('counter')
counter.value = 5
counter.increment()
print(counter.value) # 6?
print(counter.to_roman_numerals()) # VI?
I love this!Gremllm
And anyway, it was not a particularly serious (or, for that matter, well written or argued) discussion. As I mentioned in literally the first line, it's just a rant :-)
PS: I am unsure what you mean with "relying on LLM for configuring things says it all". In my experience, this is one area where LLMs _really_ do help a lot - it has been much faster than going through the documentation (which I also did quite a bit of, in particular for conan).
Emjay – implementing function calls in my JIT compiler
Emjay – a simple JIT that does math
Crazy Debugging Stories – Recursion
How is this blog built?
Playing with Nom and Parser Combinators
A JVM in Rust part 8 – Retrospective
A JVM in Rust part 6 – Methods and exceptions
Vacations, health insurance, parental leave are all given by law here (Italy). But, if they weren't, I guess they'd be pretty important.
I might actually fix this one :-)
I am not sure I am going to try it though - it probably is a bit too much code to change for something that I consider "done" and I am not working on. :)
pub struct Class<'a> {
pub superclass: Option<ClassRef<'a>>,
}
pub type ClassRef<'a> = &'a Class<'a>;
Given that classes are managed by the arena, I know the reference will not be dangling thanks to the 'a lifetime.Initially I had implemented this with raw pointers, without lifetimes, but then I switched to the reference because it felt more "idiomatic" and I had to put the lifetimes just about everywhere to make the compiler happy.
If there are better ways to do this, I would be really happy to learn, though!
> Important note: this is a hobby project, built for fun and for learning purposes.
I am not going to repeat that in every part of the series. :-)