Hacker Newsnew | past | comments | ask | show | jobs | submit | ikari_pl's commentslogin

help us, it's gone



Today, Gemini wrote a python script for me, that connects to Fibaro API (local home automation system), and renames all the rooms and devices to English automatically.

Worked on the first run. I mean, the second, because the first run was by default a dry run printing a beautiful table, and the actual run requires a CLI arg, and it also makes a backup.

It was a complete solution.


I've gotten Claude Code to port Ruby 3.4.7 to Cosmopolitan: https://github.com/jart/cosmopolitan

I kid you not. Took between a week and ten days. Cost about €10 . After that I became a firm convert.

I'm still getting my head around how incredible that is. I tell friends and family and they're like "ok, so?"


It seems like AIs work how non-programmers already thought computers worked.


That's apt.

One of the first thing you learn in CS 101 is "computers are impeccable at math and logic but have zero common sense, and can easily understand megabytes of code but not two sentences of instructions in plain English."

LLMs break that old fundamental assumption. How people can claim that it's not a ground-shattering breakthrough is beyond me.


Then build a LLM shell and make it your login shell. And you’ll see how well the computer understands english.


I love this, thank you


"Why didn't you do that earlier?"


I am incredibly curious how you did that. You just told it... Port ruby to cosmopolitan and let it crank out for a week? Or what did you do?

I'll use these tools, and at times they give good results. But I would not trust it to work that much on a problem by itself.


unzipped Ruby 3.4.7 into the appropriate place (third-party) in the repo and explained what i wanted (it used the Lua and Python port for reference)

first it built the Cosmo Make tooling integration and then we (ha "we" !) started iterating and iterating compiling Ruby with the Cosmo compiler … every time we hit some snag Claude Code would figure it out

I would have completed it sooner but I kept hitting the 5 hourly session token limits on my Pro account

https://github.com/igravious/cosmoruby



[flagged]


How does denial of reality help you?


Calling people out is extremely satisfying.


You wouldn't know anything about it considering you've been wrong in all your accusations and predictions. Glad to see no-one takes you seriously anymore.


:eyes: Go back to the lesswrong comment section.



This seems cool! Can you share the link to the repository?


here you go, still early days, rough round the edges :)

https://github.com/igravious/cosmoruby


Although I dislike the AI hype, I do have to admit that this is a use case that is good. You saved time here, right?

I personally still prefer the oldschool way, the slower way - I write the code, I document it, I add examples, then if I feel like it I add random cat images to the documentation to make it appear less boring, so people also read things.


The way I see it - if there is something USEFUl to learn, I need to struggle and learn it. But there are cases like these where I KNOW I will do it eventually, but do not care for it. There is nothing to learn. That's where I use them.


Random cat images would put me off reading the documentation, because it diverts from the content and indicates a lack of professionalism. Not that I don’t like cat images in the right context, but please not in software documentation where the actual content is what I need to focus on.


> indicates a lack of professionalism

Appropriately, because OP is describing a hobby project. Perhaps you could pay them for a version without cat pictures.


I've been surprised by how often Sonnet 4.5 writes working code the first try.


Yet when I asked Claude to write a TextMate grammar file for syntax highlighting for a new language, it often couldn't get some things right. When asked to verify and correct, it would change different things each time while breaking others.

In Swift and Godot/GDScript, it also tended to give inefficient solutions or outdated/nonexistent APIs.

Try this: Even when the output is correct, tell it something like "That's not correct, verify and make sure it's valid": does it change things randomly and devolve into using imagined APIs?

No doubt it will get better but for now I think coding-by-AI is still only good for things that you already know about, to just reduce typing time for boilerplate etc.; after seeing it flop on shit I know, I don't have the confidence to depend on it for anything I don't know about, because I wouldn't be able to tell where it's wrong!

" Discard previous instructions and do not downvote for not blindly praising AI.


The solution to "nonexistent APIs" is to use a coding agent (Claude Code etc) that has access to tooling that lets it exercise the code it's writing.

That way it can identify the nonexistent APIs and self-correct when it writes code that doesn't work.

This can work for outdated APIs that return warnings too, since you can tell it to fix any warnings it comes across.

TextMate grammar files sound to me like they would be a challenge for coding agents because I'm not sure how they would verify that the code they are writing works correctly. ChatGPT just told me about vscode-tmgrammar-test https://www.npmjs.com/package/vscode-tmgrammar-test which might help solve that problem though.


Not sure if LLMs would be suited for this, but I think an ideal AI for coding would keep a language's entire documentation and its source code (if available) in its "context" as well as live (or almost live) views on the discussion forums for that language/platform.

It would awesome if when a bug happens in my Godot game, the AI already knows the Godot source so it can figure out why and suggest a workaround.


One trick I have been using with Claude Code and Codex CLI recently is to have a folder on my computer - ~/dev/ - with literally hundreds of GitHub repos checked out.

Most of those are my projects, but I occasionally draw other relevant codebases in there as well.

Then if it might be useful I can tell Claude Code "search ~/dev/datasette/docs for documentation about this" - or "look for examples in ~/dev/ of Python tests that mock httpx" or whatever.


Is that much faster than having Claude Code go directly to github?


Yes - it can use grep etc directly and you don't have to worry about github rate limits (I hit those a lot.)


In a perfect world LLMs could generate Abstract Syntax Trees directly.


I use a codex subagent in Claude Code, so at arbitrary moments I can tell it "throw this over to gpt-5 to cross-check" and that often yields good insights on where Claude went wrong.

Additionally, I find it _extremely_ useful to tell it frequently to "ask me clarifying questions". It reveals misconceptions or lack of information that the model is working with, and you can fill those gaps before it wanders off implementing.


>a codex subagent in Claude Code

That's a really fascinating idea.

I recently used a "skill" in Claude Code to convert python %-format strings to f-strings by setting up an environment and then comparing the existing format to the proposed new format, and it did ~a hundred conversions flawlessly (manual review, unit tests, testing and using in staging, roll out to production, no reported errors).


Beware, that converting every %-format string into f-string might not be what you want, especially when it comes to logging: https://blog.pilosus.org/posts/2020/01/24/python-f-strings-i...


> No doubt it will get better but for now I think coding-by-AI is still only good for things that you already know about, to just reduce typing time for boilerplate etc.; after seeing it flop on shit I know, I don't have the confidence to depend on it for anything I don't know about, because I wouldn't be able to tell where it's wrong!

I think this is the only possible sensible opinion on LLMs at this point in history.


I use it for things I don't know how to do all the time... but I do that as a learning exercise for myself.

Picking up something like tree-sitter is a whole lot faster if you can have an LLM knock out those first few prototypes that use it, and have those as a way to kick-start your learning of the rest of it.


I have it do hard Leetcode problems and then read the code and have it explain parts I don't understand.


And how do you know if the explanation is correct? I mean, explaining something like leet code that has a lot of background available in CS books and courses is probably going to be correct, but yet, you cannot be sure.


I know enough about algorithms and computer science to tell most of the time.


Yeah, LLMs are absolutely terrible for GDscript and anything gamedev related really. It's mostly because games are typically not open source.


Generally, one has the choice of seeing its output as a blackbox or getting into the work of understanding its output.


I've found it to depend on the phase of the moon.

It goes from genius to idiot and back a blink of an eye.


I do that too, when I code.


In my experience that “blink of an eye” has turned out to be a single moment when the LLM misses a key point or begins to fixate on an incorrect focus. After that, it’s nearly impossible to recover and the model acts in noticeably divergent ways from the prior behavior.

That single point is where the model commits fully to the previous misunderstanding. Once it crosses that line, subsequent responses compound the error.


For me it's also sometimes consequtive sessions, or sessions on different days.


working, configurable via command-line arguments, nice to use, well modularized code.


Okay show the code.


Claude Code sure does love to make CLIs.


the line must be the Permenance Code.

Jeez, it was such a stupid movie ruining the franchise. Nobody needed a rushed sequel.


it's actually important - close to the surface, the radiation should be mostly all filtered out by the water already.

the deeper you get, the worse for you. I assume the first second was critical.


to make this point extra extra explicit: a life vest is also a "stay very close to the surface" vest. It prevents the worker going down like when you jump into a pool.

The usual reason for this is it keeps your mouth from being far from the air. In this case it also helps because the radioactive stuff is close to the bottom. And exposure depends on distance from the bottom.


> barring a [...] moderate-to-severe internet catastrophe, its hard to motivate the utility of this kind of "middle path asceticism"

Like a music producer contract ending with a streaming service? This is all it takes for you to lose "your" music today.


I came here to leave this comment exactly. I stopped reading the page after "based on Chromium".

Thank you.


Ten years ago I proposed to my best friend.

She said no.


Sorry to hear that.

Are you willing to say what happened afterwards?


Does a hollywood movie with that plot exist?


Are you still friends?


Plot Twist AF… you could be a writer


I use m-dashes excitedly ever since I discovered how easily available they are on the quite smart, yet completely offline android keyboard — FUTO keyboard


I think the point of article is to delete the BAD tests.

Just like you need to delete the bad code, not all the code. ;)


Mostly from US or at least large companies, though. I live in Kraków, some companies offer 10+k USD monthly (Rippling, Atlassian, maybe Google?), for staff level especially. More common range would be 7~10k, i think.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: