Better HN
topnewbestaskshowjobs
Log inSign up

never_inline

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

Submissions

comment 1y ago · link · parent

I don't write perfect English. Far from it. But I'd prefer broken English any day over default LLM verbiage. It seems so unnatural and facetitious. I always have this in my prompts: "Be succinct and use simple English sentences".

comment 1y ago · link · parent

Size issues and bloat can be solved by tree shaking which is orthogonal to granularity of the package ecosystem. It doesn't matter for server side (at least people don't care). On client side, most ecosystems have a way to do it. Dart does it. Android does it with proguard.

The more pressing issue with dependencies is supply chain risks including security. That's why larger organizations have approval processes for using anything open source. Unfortunately the new crop of open source projects in JS and even Go seem to suffer from "IDGAF about what shit code from internet I am pulling" syndrome.

Unfortunately granularity does not solve that as long as your 1000 functions come from 1000 authors on NPM.

comment 1y ago · link · parent

They might pivot to some enterprise value added services. Probably around SAST - think sonarqube.

comment 1y ago · link · parent

It's RAG never worked for me tbh. I thought it was simply because I didn't have Gpu.

comment 1y ago · link · parent

What really is the moat of openwebui? I have seen at least 4 - 5 react UIs with similar functionality (chat, RAG, document library).

comment 1y ago · link · parent

I have hacked together a shell script using tail -f with multiple inputs (from kubectl log), and fzf (to select namespace/deployment if there are many).

comment 1y ago · link · parent

Can find tuning produce results as grounded as RAG?

How many epochs do you run?

comment 1y ago · link · parent

Why would you love on-call though?

comment 1y ago · link · parent

?? What happens to old code which sends messages with a system role?

comment 1y ago · link · parent

> It's true that many engineer-designed products are terrible

Selection bias from there being too many avg UI open source tools?

Engineer-designed = low budget = no expertise on UX etc.. but product fulfills their purpose.

comment 1y ago · link · parent

I am very sceptical and cautious user of AI tools, but this sounds like someone who didn't figure out a workflow which works for himself:

> Nothing indicates how this should be run.

That's why I usually ask it to write a well defined function or class, with type annotations and all that. I already know how to call it.

Also you can ask for calling examples.

> ... are not functions whose definitions are available within the script. Without external context, we don't know what they do.

Are already solved by having proper IDE or LSP.

> run in E environments with V versions

Fair enough, stick to "standard" libraries which don't change often. Use boring technology.

> The handler implicitly ignores arguments

Because you probably didn't specify how arguments are to be handled.

In general, AI is very helpful to reduce tedium in writing common pieces of logic.

In ideal world, programming languages and libraries are as expressive as natural language, and we don't need AI. We can marshal our thoughts into code as fast as we marshal it into english, and as succinctly.

But until that happens "AI" helps with tedious logic and looking up information. You will still have to confirm the code, so being at least a bit familiar with the stack is a good thing.

comment 1y ago · link · parent

Given ollama has a openai compatible API[0], quick searching in repo returns this

https://github.com/alvinunreal/tmuxai/issues/6#issuecomment-...

1: https://ollama.com/blog/openai-compatibility

comment 1y ago · link · parent

There was also coteditor, which is based on swift ui.

comment 1y ago · link · parent

I wouldn't use LLM for serious refactors. It's actually the common "recipes" using popular libraries where LLM is most useful for me now.

comment 1y ago · link · parent

1. You literally can't build something like Android studio emulator on the web.

2. Even if it's thinkable in last 4-5 years due to raising Popularity of web IDE, Android studio was built before that and they chose the IntelliJ platform.

3. Google also has flutter and go.

comment 1y ago · link · parent

Amazon has such design, no?

comment 1y ago · link · parent

> Using ChatGPT doesn't dumb down your students. Not knowing how it works and where to use it does.

LLMs can't produce intellectual rigour. They get fine details wrong every time. So indeed using ChatGPT for doing your reasoning for you produces inferior results. By normalising non-rigorous yet correct sounding answers, we drive down the expectations.

To take a concrete example, if you tell a student to implement memcpy with chatgpt, and it will just give an answer which uses uint64 copying. The student has not thought from first principles (copy byte by byte? Improve performance? How to handle alignment?). This lack of insight in return to immediate gratification will bite later.

It's maybe not problem for non-STEM fields where this kind of rigor and insight is not required to excel. But in STEM fields, we write programs and prove theorems for insight. And that insight and the process of obtaining it is gone with AI.

comment 1y ago · link · parent

> What did you get from it?

Beside the obvious "deep work", its the ability to be bored, and shut down time.

> I read it, but like most self-help books - I felt like it could've been 1/4 the size. The book could've been 10-20 pages.

Have to agree. It can be summarized.

comment 1y ago · link · parent

Deep work by cal newport.

comment 1y ago · link · parent

A. Implement guardrails (like already done against prompt injection).

Invariant blog post mentions this:

> Conclusion: Agents require extensive, highly-contextual guardrailing and security solutions

> As one of our core missions at Invariant, we absolutely cannot stress enough how important it is to rely on extensive guardrailing with AI models and their actions. We come to this conclusion repeatedly, as part of our research and engineering work on agentic systems. The MCP ecosystem is no exception to this rule. Security must be implemented end-to-end, including not only the tool descriptions but also the data that is being passed to and from the AI model.

B. Version the tool descriptions so that they can be pinned and do not change (same way we do for libraries and APIs).

C. Maybe in future, LLMs can implement some sort of "instruction namespacing" - where the developer would be able to say any instruction in this prompt is only applicable when doing X, Y, Z.

comment 1y ago · link · parent

Because it's not an encryption problem. It's a "you can override instructions from other servers" problem.

comment 1y ago · link · parent

This still does not seem to fix the OP vulnerability? All tool call specs will be at same privilege level.

comment 1y ago · link · parent

IIRC it work when you disable Js

comment 1y ago · link · parent

My complaints with Deep Research LLMs is they don't go deeper than 2 pages of SERPs. I want them to dig down obscure stuff, not list cursorily relevant peripheral directions. they just seem to do breadth first than depth first search.

comment 1y ago · link · parent

JQ is the most feature-rich of the bunch. It's defacto standard and I usually just default to it because it offers so much - assignment, various builtins such as base64 encoding.

The disadvantage is that it's not easily embeddable in your own programs - so programs use JSONPath / Go templates often.

comment 1y ago · link · parent

I have used it when using scraping some data from web pages using scrapy framework. It's reliable way to extract something from web pages compared to regex.
1
101112
19