HNHacker News
TopNewBestAskShowJobs

never_inline

897 karma · joined August 26, 2022

submissionscomments
never_inline··on Show HN: HNRelevant – Add a "related" section to Hacker News
Cosine similarity alone can't give you good results. For example, if you want to search specific names or acronyms, cosine similarity won't help much.

People act like embeddings are all you need for search.

Curse of dimensionality also means what you think is the most similar is not necessarily the most similar thing in vector space. See the last Hn discussion on word embeddings for some examples.

never_inline··on Ask HN: Go deep into AI/LLMs or just use them as tools?
Having wide shoulders is cool but how does it help with software engineering?
never_inline··on An upgraded dev experience in Google AI Studio
It's just a copy of all other models in terms of functionality. I didn't find anything controversial nor extra-ordinary in it. Image generation sucked.

Some Indian twitterers found a way to get it to utter Hindi profane words, that's probably the most controversial thing I know about it.

never_inline··on Gemini Diffusion
Google Docs spellcheck has been really good for few years even before LLMs
never_inline··on LLM function calls don't scale; code orchestration is simpler, more effective
> 1. This is using a lot of input context in formating as JSON and escaping a Json inside already a JSON.

Isn't it a model problem that they don't respect complex json schemas?

never_inline··on Lessons from Mixing Rust and Java: Fast, Safe, and Practical
Me neither. But only because uv is compatible with pip. I am not going to use bun / dinosaur whatever instead of node at this point.
never_inline··on What do wealthy people buy, that ordinary people know nothing about? (2015)
If I were rich, I would have a personal data center, an aeronautics lab, a tropical farm, mediaeval fort, things like that. Not this yatches and crap.
never_inline··on Lessons from Mixing Rust and Java: Fast, Safe, and Practical
JS developer use tooling older than 3 years challenge. Level: impossible.
never_inline··on Lessons from Mixing Rust and Java: Fast, Safe, and Practical
Thanks for the clarifications. Good if you mention the background in the medium post. Otherwise it reads like a PoC demo.

5. How did you handle java local and global ref lifetimes in rust callee? Was it assumed that java caller owns all the refs and freed after the rust computation returns? Or did your calls mostly involve byte buffers and primitive types? That latter is a sweet spot but not always feasible.

never_inline··on Lessons from Mixing Rust and Java: Fast, Safe, and Practical
1. The article seems kind-of shallow. I didn't see any concrete (qualitative or quantitative) remarks about the "fast" part. I don't doubt you have reasons to do this - but I expected some information on what component are you writing using Rust + JNI, and how it helped? Or is it just a demo?

At some point, repeated calls into the JNI are counter-productive to performance, since the JIT can not optimize them. Pinning affecting garbage collection is another potential drawback if any of your rust calls are long lived. If we don't measure and just conclude "we are fast because rust is faster than Java, and we took average of both speeds", it's a disservice.

2. Also, I see unsafe for each call? I'd rather isolate this into a class / different file, since in JNI only few types of calls are possible. (method returning one of the primtive types, an object or `void`). This is the approach I took in dart jnigen. (Though there, the call is Dart -> Java, not Java -> Native language).

    unsafe {
      env.call_method_unchecked(
                java_logger,
                logger_method,
                ReturnType::Primitive(Primitive::Void),
                &[JValue::from(format_msg(record)).as_jni()]
      );
    }
3. I believe some details are missing here. What's native_add_one mapped to? And how is tokio futures awaited from Java? I believe that's the important part you should be presenting.

    public CompletableFuture<Integer> add_one(int x) {
        long futureId = native_add_one(x); // Call Rust
        return AsyncRegistry.take(futureId); // Get CompletableFuture
    }
4. Also please don't use ChatGPT for writing anything. It totally derails the reader by mentioning irrelevant details and long winded corporate conclusion at the end of every sentence.
never_inline··on The unreasonable effectiveness of an LLM agent loop with tool use
Aider has a --copy-paste mode which can pass in relevant context to web chat UI and you can paste back the LLM answer.
never_inline··on The unreasonable effectiveness of an LLM agent loop with tool use
Well technically Aider let's you use a web chat UI by generating some context and letting you paste back and forth.
never_inline··on Show HN: CLI that spots fake GitHub stars, risky dependencies and licence traps
The social-ification of tech is indeed a worrying trend.

This is exacerbated by low-quality / promotional medium articles, linkedin etc.. which promote Nth copycat HTML GPT wrapper app or kubernetes dashboard as the best thing after sliced bread, and not-so-technical programmers falling for it.

This applies to some areas more than others (eg, generative AI, cloud observability)

never_inline··on Lazarus Release 4.0
Can someone recreate it in Go?
never_inline··on A critical look at MCP
To be honest I don't think they have any plans either.
never_inline··on A critical look at MCP
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".
never_inline··on Rust’s dependencies are starting to worry me
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.

never_inline··on Ty: A fast Python type checker and language server
They might pivot to some enterprise value added services. Probably around SAST - think sonarqube.
never_inline··on Open WebUI changed license from BSD-3 to Open WebUI license with CLA
It's RAG never worked for me tbh. I thought it was simply because I didn't have Gpu.
never_inline··on Open WebUI changed license from BSD-3 to Open WebUI license with CLA
What really is the moat of openwebui? I have seen at least 4 - 5 react UIs with similar functionality (chat, RAG, document library).
never_inline··on Show HN: Kubetail – Real-time log search for Kubernetes
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).
never_inline··on Claude Integrations
Can find tuning produce results as grounded as RAG?

How many epochs do you run?

never_inline··on Claude Integrations
Why would you love on-call though?
never_inline··on Sycophancy in GPT-4o
?? What happens to old code which sends messages with a system role?
never_inline··on Business co-founders in tech startups are less valuable than they think
> 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.

never_inline··on AI Coding assistants provide little value because a programmer's job is to think
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.

never_inline··on TmuxAI: AI-Powered, Non-Intrusive Terminal Assistant
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

never_inline··on How I use Kate editor
There was also coteditor, which is based on swift ui.
never_inline··on Why is OpenAI buying Windsurf?
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.
never_inline··on OpenAI looked at buying Cursor creator before turning to Windsurf
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.

← PreviousPage 9 of 16Next →