News for hackers. Stuff that matters.

andreabergia

> So you could presumably also set it up to implement its suggestions (i.e. if it "executes" its proposed definition for `succ` that would actually just update it in the global namespace). Fun stuff.

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:...

( Read More... | 4 comments | 3 points | on HN )
Re:Ask HN: Could you share your personal website here? on Thursday January 15, 2026 @05:33AM (#46630646)
https://andreabergia.com/ - my personal website and blog, which I'm currently redesigning!
Re:Turning 40 on Friday December 05, 2025 @02:27PM (#46166093)
Thanks! That's really reassuring and will definitely help my nights! :-D
Re:The Value of Hitting the HN Front Page on Wednesday August 20, 2025 @04:11AM (#44959812)
I work at ServiceNow, which sells an enterprise platform and a ton of products built on top of it. Internal teams and customers can extend the platform by writing JavaScript, hence we have a JS runtime in the platform (the venerable https://github.com/mozilla/rhino/), which our team works on.
Re:The Value of Hitting the HN Front Page on Wednesday August 20, 2025 @02:26AM (#44959202)
Same here! I am now actually working in compilers, which is one thing I'm really passionate about, but not something I was doing professionaly. I managed to turn a toy project and some blog posts into an actual job at almost 40, so, thank you HN!
Re:Gremllm on Friday July 04, 2025 @12:42PM (#44465981)

  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!
Re:Writing C++ in 2025 on Wednesday May 21, 2025 @03:37AM (#44049205)
Of course I didn't assume to be 100% productive immediately, and I did spend a few weeks on this experiment, not just some days. My point was more about how even modern C++ felt (to me) dated and annoying to use compared to more modern language, because of the strong (but very valid!) focus on backward compatibility that C++ has. Furthermore, the long history and baggage means that for any thing, there are _many_ different ways of doing it, which doesn't help.

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).

Re:Emjay – a simple JIT that does math on Saturday February 15, 2025 @11:04AM (#43059507)
Thanks!
Remote is a requirement, due to family reasons. Salary.

Vacations, health insurance, parental leave are all given by law here (Italy). But, if they weren't, I guess they'd be pretty important.

Re:A JVM in Rust part 5 – Executing instructions on Tuesday August 29, 2023 @02:07AM (#37304022)
Good point. Someone (probably you) opened a GitHub issue about this too.

I might actually fix this one :-)

Re:A JVM in Rust part 5 – Executing instructions on Tuesday August 29, 2023 @02:06AM (#37304017)
That sounds reasonable (and way better than what I have implemented).

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. :)

Re:A JVM in Rust part 5 – Executing instructions on Tuesday August 29, 2023 @02:04AM (#37304005)
Agreed, it _is_ annoying. It bubbles up everywhere and it feels like "something to silence the compiler" more than "something to express the safety of the code", as other people have pointed out.
Re:A JVM in Rust part 5 – Executing instructions on Monday August 28, 2023 @05:04PM (#37300368)
The problem arises by the fact that `Class` needs to refer to other classes:

    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!

Re:A JVM in Rust part 5 – Executing instructions on Monday August 28, 2023 @05:00PM (#37300335)
Thanks, fixed!
Re:A JVM in Rust part 5 – Executing instructions on Monday August 28, 2023 @05:00PM (#37300330)
Well, I think it is written rather clearly in the first blog post of the series and in the github readme, whose second line is:

> 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. :-)

Re:VS Code as a dependency for an npm module on Monday August 28, 2023 @10:54AM (#37295033)
It is Visual Studio 2019, _not_ VS Code.

Older »