Better HN
topnewbestaskshowjobs
Log inSign up

never_inline

897 karma · joined Aug 26, 2022 (4y ago) · 561 submissions

Submissions

comment 1y ago · link · parent

Poe's law hits again.

comment 1y ago · link · parent

My thought exactly. My word would be "Gun" or "Artillery". easily defeats his logic.

But that should also explain us why pure embeddings search is not sufficient for RAG.

comment 1y ago · link · parent

Indian government's websites (eg: IRCTC train booking, exam registration portals) are worse IME.

comment 1y ago · link · parent

There's a certain Indian public sector banking app which won't run at all unless you give it camera, full filesystem and some other crucial permissions.

I have not received any spam similar to the OP from my bank. But it seems (at least the popular belief) the lower level employees regularly leak your account details to scam callers.

comment 1y ago · link · parent

People did absolutely live without all this therapy thing for thousands of years. They had communities, faith and (vague) purposes in life.

Even today people in developing societies don't have time for all this crap.

comment 1y ago · link · parent

1. Ars Technica's (OP website) audience includes tech enthusiast people who don't necessarily have a mental model of LLMs, instruction tuning or RLHF.

2. why would this "study" exist? - for the reason computer science academics conduct study on whether LLMs are empirically helpful in software engineering. (The therapy industrial complex would also have some reasons to sponsor this kind of a research, unlike SWE productivity studies where the incentive is usually the opposite.)

comment 1y ago · link · parent

Irony is that jane street hires from prestigious Indian schools too, for pretty obscene salaries. These salaries get hyped and celebrated over newspapers.

comment 1y ago · link · parent

Irony is jane street hires from prestigious Indian schools too, for pretty obscene salaries. These salaries get hyped and celebrated over newspapers.

comment 1y ago · link · parent

What's exactly looksmaxing and why is the above comment a suspect? It seemed normal to me.

comment 1y ago · link · parent

How many microorganisms and pests have you deprived of livelihood? Why stop at animals?

comment 1y ago · link · parent

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)

comment 1y ago · link · parent

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?

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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

comment 1y ago · link · parent

Doesnt work recursively?

comment 1y ago · link · parent

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

comment 1y ago · link · parent

I mean, LLMs you can run on ollama are usually pretty bad ones.

comment 1y ago · link · parent

You can annotate `json:"-"` which is equivalent of @JsonIgnore

comment 1y ago · link · parent

They can be used in conjunction. You can drop into debugger from REPL and vice versa.

comment 1y ago · link · parent

IDEs tend to have a "just my code" option.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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

comment 1y ago · link · parent

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?

comment 1y ago · link · parent

I run aider in VSCode terminal so that I can fix smaller lint errors myself without another AI back-and-forth.

comment 1y ago · link · parent

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.
1
8910
19