HNHacker News
TopNewBestAskShowJobs

never_inline

897 karma · joined August 26, 2022

submissionscomments
never_inline··on Problems the AI industry is not addressing adequately
How many microorganisms and pests have you deprived of livelihood? Why stop at animals?
never_inline··on Developing with GitHub Copilot Agent Mode and MCP
Can someone elucidate how using a full blown browser is improvisation over using say markitdown / pandoc / whatever? Given that most useful coding docs sites are static (made with sphinx or mkdocs or whatever)
never_inline··on Tools: Code Is All You Need
The problem I see with MCP is very simple. It's using JSON as the format and that's nowhere as expressive as a programming language.

Consider a python function signature

list_containers(show_stopped: bool = False, name_pattern: Optional[str] = None, sort: Literal["size", "name", "started_at"] = "name"). It doesn't even need docs

Now convert this to JSON schema which is 4x larger input already.

And when generating output, the LLM will generate almost 2x more tokens too, because JSON. Easier to get confused.

And consider that the flow of calling python functions and using their output to call other tools etc... is seen 1000x more times in their fine tuning data, whereas JSON tool calling flows are rare and practically only exist in instruction tuning phase. Then I am sure instruction tuning also contains even more complex code examples where model has to execute complex logic.

Then theres the whole issue of composition. To my knowledge there's no way LLM can do this in one response.

    vehicle = call_func_1()
    if vehicle.type == "car":
      details = lookup_car(vehicle.reg_no)
    else if vehicle.type == "motorcycle":
      details = lookup_motorcycle(vehicle.reg_ni)
How is JSON tool calling going to solve this?
never_inline··on Tools: Code Is All You Need
Wasn't there a tool calling benchmark by docker guys which concluded qwen models are nearly as good as GPT? What is your experience about it?

Personally I am convinced JSON is a bad format for LLMs and code orchestration in python-ish DSL is the future. But local models are pretty bad at code gen too.

never_inline··on Rust CLI with Clap
People are used to the `click` way, where you can define args as function parameters. It's little more verbose but it helps click is a very established library which also provides many other things needed by CLI tools.

There's also `typer` from the creator of `fastapi` which relies on type annotations. I have not had the opportunity to use it.

never_inline··on Rust CLI with Clap
At this point you're just flexing that you have 96GiB machine. (Average developer machines are more like 16GiB)

But that's not the point. If every dependency follows same philosophy, costs (compiler time, binary size, dependency supply chain) will add up very quickly.

Not to mention, in big organizations, you have to track each 3rd party and transitive dependency you add to the codebase (for very good reasons).

never_inline··on Use keyword-only arguments in Python dataclasses
Doesnt work recursively?
never_inline··on Why is the Rust compiler so slow?
> Breaking up long expressions into smaller ones

If it improves compile time, that sounds like a bug in the compiler or the design of the language itself.

never_inline··on MCP is eating the world
I mean, LLMs you can run on ollama are usually pretty bad ones.
never_inline··on Unexpected security footguns in Go's parsers
You can annotate `json:"-"` which is equivalent of @JsonIgnore
never_inline··on The Grug Brained Developer (2022)
They can be used in conjunction. You can drop into debugger from REPL and vice versa.
never_inline··on The Grug Brained Developer (2022)
IDEs tend to have a "just my code" option.
never_inline··on The Grug Brained Developer (2022)
I use single-stepping very rarely in practice when using a debugger, except when following through a "value of a variable or two". Yet it's more convenient than pprint.pprint() for that because structured display of values, eval expression, and ability to inspect callers up the stack.
never_inline··on The Grug Brained Developer (2022)
I am young grug who didn't use debuggers much until last year or so.

What sold me on debugger is the things you can do with it

    * See values and eval expressions in calling frames.
    * Modify the course of execution by eval'ing a mutating expression.
    * Set exception breakpoints which stop deep where the exception is raised.
One other such tool is REPL. I see REPL and debugger as complementary to each other, and have some success using both together in VSCode, which is pretty convenient with autoreload set. (https://mahesh-hegde.github.io/posts/vscode-ipython-debuggin...)
never_inline··on Snorting the AGI with Claude Code
Why would I?

The only argument is that it improves the style of writing.

But I am in an ESL environment and no one cares about that.

Even otherwise why would anyone want to read a decompressed version instead of the "prompt" itself?

never_inline··on Snorting the AGI with Claude Code
I run aider in VSCode terminal so that I can fix smaller lint errors myself without another AI back-and-forth.
never_inline··on Snorting the AGI with Claude Code
Here's a system prompt I tend to use

    ## Instructions
    * Be concise
    * Use simple sentences. But feel free to use technical jargon.
    * Do NOT overexplain basic concepts. Assume the user is technically proficient.
    * AVOID flattering, corporate-ish or marketing language. Maintain a neutral viewpoint.
    * AVOID vague and / or generic claims which may seem correct but are not substantiated by the the context.
Cannot completely avoid hallucinations and it's good to avoid AI for text that's used for human-to-human communication. But this makes AI answers to coding and technical questions easier to read.
never_inline··on Field Notes from Shipping Real Code with Claude
Because why do you anti-compress your thoughts using LLM at all? It makes things harder to read.
never_inline··on I read all of Cloudflare's Claude-generated commits
They may be overrepresented in the RLHF
never_inline··on I read all of Cloudflare's Claude-generated commits
Apart from obvious non-reproducibility, the other problem is lack of navigable structure. I can't command+click or "show usages" or "show definition" any more.
never_inline··on I Read All of Cloudflare's Claude-Generated Commits
> Don't be afraid to get your hands dirty. Some bugs and styling issues are faster to fix manually than to prompt through. Knowing when to intervene is part of the craft.

This has been my experience as well. to always run the cli tool in the bottom pane of an IDE and not in a standalone terminal.

never_inline··on Covert web-to-app tracking via localhost on Android
It actually bothers me it took so long to be discovered.
never_inline··on (On | No) Syntactic Support for Error Handling
> When debugging error handling code, being able to quickly add a println or have a dedicated line or source location for setting a breakpoint in a debugger is helpful.

On the flip side, you can't have exception breakpoints in Go.

never_inline··on Java Virtual Threads Ate My Memory: A Web Crawler's Tale of Speed vs. Memory
Stupid question: Why not provide a threadpool-like construct which may not necessarily keep threads around but limits their number?
never_inline··on Show HN: My LLM CLI tool can run tools now, from Python code or plugins
They are all compatible with existing stuff, which makes it kinda better than js.
never_inline··on Show HN: My LLM CLI tool can run tools now, from Python code or plugins
Thanks for writing the LLM CLI.

It's been a very useful tool to test out and prototype using various LLM features like multimodal, schema output and now tools as well! I specifically like that I can just write a python function with type annotations and plug it to the LLM.

never_inline··on Why Cline Doesn't Index Your Codebase (and Why That's a Good Thing)
Even cline documentation seems to be slop generated.
never_inline··on Ask HN: Anyone struggling to get value out of coding LLMs?
Give it context and copy paste the code yourself.

They're good at coming up with new code.

Give it function signature with types and it will give pretty good implementation.

Tell it to edit something, and it will lose track.

The write-lint-fix workflow with LLMs doesn't work for me - LLM is monkey brain edits unrelated parts of code.

never_inline··on At Amazon, some coders say their jobs have begun to resemble warehouse work
And yet people here keep arguing proper cs education is not important.

Without proper understanding of CS, this is what we get. Lack of rigour.

never_inline··on Show HN: HNRelevant – Add a "related" section to Hacker News
You literally wrote it can be more powerful than Google search.
← PreviousPage 8 of 16Next →