Better HN
topnewbestaskshowjobs
Log inSign up

never_inline

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

Submissions

comment 1y ago · link · parent

Because why do you anti-compress your thoughts using LLM at all? It makes things harder to read.

comment 1y ago · link · parent

They may be overrepresented in the RLHF

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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

comment 1y ago · link · parent

It actually bothers me it took so long to be discovered.

comment 1y ago · link · parent

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

comment 1y ago · link · parent

Stupid question: Why not provide a threadpool-like construct which may not necessarily keep threads around but limits their number?

comment 1y ago · link · parent

They are all compatible with existing stuff, which makes it kinda better than js.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

Even cline documentation seems to be slop generated.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

You literally wrote it can be more powerful than Google search.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

Having wide shoulders is cool but how does it help with software engineering?

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

Google Docs spellcheck has been really good for few years even before LLMs

comment 1y ago · link · parent

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

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

JS developer use tooling older than 3 years challenge. Level: impossible.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

Aider has a --copy-paste mode which can pass in relevant context to web chat UI and you can paste back the LLM answer.

comment 1y ago · link · parent

Well technically Aider let's you use a web chat UI by generating some context and letting you paste back and forth.

comment 1y ago · link · parent

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)

comment 1y ago · link · parent

Can someone recreate it in Go?

comment 1y ago · link · parent

To be honest I don't think they have any plans either.
1
91011
19