News for hackers. Stuff that matters.

leroman

At the base there is a conflict of interests- what we pay for

Show HN: TUI wrapper for cargo-nextest, Clap-powered xtasks, and more

https://github.com/romansky/nextdeck

Hi Everyone! While working on big Rust projects I'm experiencing these pains:- having to hand-roll CLI test commands- remembering custom project commands & arguments- adding test time only logs (timings, cache invalidations or other useful markers)What I wanted:- UI experience navigating and running the tests tree- easy and fast access to custom task commands (xtask)- test time only events...

( Read More... | no comments | on HN )

Show HN: TUI wrapper for cargo-nextest, Clap-powered xtasks, and more

https://github.com/romansky/nextdeck

Hi Everyone!While working on big Rust projects I'm experiencing these pains: - having to hand-roll CLI test commands - remembering custom project commands & arguments - adding test time only logs (timings, cache invalidations or other useful markers)What I wanted: - UI experience navigating and running the tests tree - easy and fast access to custom task commands (xtask) - test time only...

( Read More... | no comments | on HN )
Re:The Unbearable Cheapness of Open Weight Models on Thursday June 25, 2026 @05:44AM (#48671177)
The token-economics for closed source models are different, they are optimizing for 200 USD tokens worth of software engineer monthly usage, they will increase per token price as models or harnesses are more optimized.

Show HN: Sandbox AI-app lifecycle, from build to run

https://capakit.com/

Hi HN,This is a project I've been working on since the beginning of 2025 full time, without funding.Coding agents have fundamentally changed the way we write software. When you let an agent write code, pull dependencies, and run scripts, you are delegating trust while still keeping the responsibility. You shouldn't have to choose between moving fast with agents and maintaining basic control...

( Read More... | 1 comment | 4 points | on HN )
Interesting, thanks!
What model are you working with where you still get good results at 25k?

To your q, I make huge effort in making my prompts as small as possible (to get the best quality output), I go as far as removing imports from source files, writing interfaces and types to use in context instead of fat impl code, write task specific project / feature documentation.. (I automate some of these with a library I use to generate prompts from code and other files - think templating language with extra flags). And still for some tasks my prompt size reaches 10k tokens, where I find the output quality not good enough

The biggest challenge an agent will face with tasks like these is the diminishing quality in relation to the size of the input, specifically I find input of above say 10k tokens dramatically reduced quality of generated output.

This specific case worked well, I suspect, since LLMs have a LOT of previous knowledge with HTML, and saw multiple impl and parsing of HTML in the training.

Thus I suspect that in real world attempts of similar projects and any non well domain will fail miserably.

Cool idea! but kind of wasteful.. I just feel wrong if I waste energy.. At least you could first turn it into markdown with a library that preserves semantic web structures (I authored this- https://github.com/romansky/dom-to-semantic-markdown) saving many tokens = much less energy used..
Re:Show HN: I made an SSH tunnel manager to learn Go on Wednesday October 09, 2024 @07:24AM (#41786647)
The title was so confusing to me, the reason I opened the link was to understand how you made the SSH tunnel manager learn the GO programming language
Re:Grok-2 Beta Release on Wednesday August 14, 2024 @04:15AM (#41243792)
It's hilarious they put Claude 3.5 Sonnet in the far right corner while it scores the highest and beats most of Grok's numbers.
Re:Show HN: DOM to Semantic Markdown – For LLMs on Thursday July 25, 2024 @03:25PM (#41072392)
Thanks for sharing!!

Would be really helpful if you opened an issue in Github with a specific example, happy to look into that!

Re:Show HN: DOM to Semantic Markdown – For LLMs on Tuesday July 23, 2024 @04:09PM (#41050260)
Bumped this together with the side-by-side comparison task.. so will look into it :)
Re:Show HN: DOM to Semantic Markdown – For LLMs on Tuesday July 23, 2024 @03:59PM (#41050157)
This is some great feedback, thanks!

1. there some crazy links with lots of arguments and tracking stuff in them, so it gets very long, the refification turns them into a numbered "ref[n]" scheme, where you also get a map of ref[n]->url to do reverse translation.. it really saves a lot, in my experience. It's also optional, so you can be mindful when you want to use this feature..

2. I tried to keep it domain specific (not to reinvent HTML...) so mostly Markdown components and some flexibility to add HTML elements (img, footer etc).

3. Not sure I'm sold with replacing the switch, it's very useful there because of the many fall through cases.. I find it maintainable but if you point me to some specific issue there it would help

4. There are some built in functions to traverse and modify the AST. It is just JSON in the end of the day so you could leverage the types and write your own logic to parse it, as long as it conforms to the format you can always serialize it, as you mentioned..

5. The AST is recursive so not flat.. sounds like you want to either write your own AST->Semantic-Markdown implementation or plug into the existing one so I'll this in mind in the future

6. Sounds cool but out of scope at the moment :)

7. This feature would serve to help with scraping and kind of point the LLM to some element? Then the part I'm missing is how you would code this in advance.. There could be some meta-data tag you could add and it would be taken through the pipeline and added on the other side to the generated elements in some way..

Re:Show HN: DOM to Semantic Markdown – For LLMs on Tuesday July 23, 2024 @03:44PM (#41049995)
Ah, I suppose you mean a web page one could visit to see a demo :) Added to the backlog!
Re:Show HN: DOM to Semantic Markdown – For LLMs on Tuesday July 23, 2024 @03:38PM (#41049921)
This totally makes sense, I will look into adding support for additional ways to detect the main content, super interesting!
Re:Show HN: DOM to Semantic Markdown – For LLMs on Tuesday July 23, 2024 @12:30PM (#41047924)
By all means, you can be the first contributor :) You are welcome to either open an issue and brain storm together on possible approaches or send me a pull request with what you came up with and we start there
Re:Show HN: DOM to Semantic Markdown – For LLMs on Tuesday July 23, 2024 @12:17PM (#41047717)
After removing the noise you can distill the semantic stuff where ever possible, like meta-deta from images, buttons, etc, and see some structures emerge like footers and nav and body.. And many times for the sake of SEO and accessibility, websites do adopt quite a bit of semantic HTML elements and annotations in respective tags..
Re:Show HN: DOM to Semantic Markdown – For LLMs on Tuesday July 23, 2024 @12:08PM (#41047591)
Afraid to say that other than bumping into a talk about Deno, I haven’t played around with it yet.. So thanks for the heads up, will look into it.

Thanks for the bug report !

Re:Show HN: DOM to Semantic Markdown – For LLMs on Tuesday July 23, 2024 @11:03AM (#41046706)
Thank you! this is exactly why there's support for this specific use case- https://github.com/romansky/dom-to-semantic-markdown/blob/ma... (see `findContentByScoring`)

And if you pass an optional flag `extractMainContent` it will use some heuristics to find the main content container if there is no such tag..

Older »