News for hackers. Stuff that matters.

threeducks

Re:Claude Opus 4.6 on Thursday February 05, 2026 @01:44PM (#46903237)
It is too easy to jailbreak the models with prefill, which was probably the reason why it was removed. But I like that this pushes people towards open source models. llama.cpp supports prefill and even GBNF grammars [1], which is useful if you are working with a custom programming language for example.

[1] https://github.com/ggml-org/llama.cpp/blob/master/grammars/R...

Re:Writing an eigenvalue solver in Rust for WebAssembly on Tuesday January 06, 2026 @07:21PM (#46520873)
A while ago, I also implemented a dense eigenvalue solver in Python following a similar approach, but found that it did not converge in O(n^3) as sometimes claimed in literature. I then read about the Divide-and-conquer eigenvalue algorithm, which did the trick. It seems to have a reasonable Wikipedia page these days: https://en.wikipedia.org/wiki/Divide-and-conquer_eigenvalue_...
Re:Web development is fun again on Monday January 05, 2026 @03:23AM (#46496462)
Could you explain how? I can't seem to figure it out.

DeepSeek-V3.2-Exp has 37B active parameters, GLM-4.7 and Kimi K2 have 32B active parameters.

Lets say we are dealing with Q4_K_S quantization for roughly half the size, we still need to move 16 GB 30 times per second, which requires a memory bandwidth of 480 GB/s, or maybe half that if speculative decoding works really well.

Anything GPU-based won't work for that speed, because PCIe 5 provides only 64 GB/s and $2000 can not afford enough VRAM (~256GB) for a full model.

That leaves CPU-based systems with high memory bandwidth. DDR5 would work (somewhere around 300 GB/s with 8x 4800MHz modules), but that would cost about twice as much for just the RAM alone, disregarding the rest of the system.

Can you get enough memory bandwidth out of DDR4 somehow?

Re:NSFW Acronyms for Programmers (Free eBook) on Sunday January 04, 2026 @05:47PM (#46493198)
I have tried a few Qwen-2.5 and 3.0 models (<=30B), even abliterated ones, but it seems that some words have been completely wiped from their pretraining dataset. No amount of prompting can bring back what has never been there.

For comparison, I have also tried the smaller Mistral models, which have a much more complete vocabulary, but their writing sometimes lacks continuity.

I have not tried the larger models due to lack of VRAM.

Re:NSFW Acronyms for Programmers (Free eBook) on Sunday January 04, 2026 @05:27PM (#46492987)
> Are .pdfs and .epub safe these days?

Depends on the viewer. Acrobat Reader? Probably not. PDF.js in some browser? Probably safe enough unless you are extremely rich.

Re:NSFW Acronyms for Programmers (Free eBook) on Sunday January 04, 2026 @05:22PM (#46492942)
That was my experience as well. Sometimes, LLMs were a big help, but other times, my efforts would have been better spent writing things myself. I always tell myself that experience will make me choose correctly next time, but then a new model is released and things are different yet again.
Re:NSFW Acronyms for Programmers (Free eBook) on Sunday January 04, 2026 @05:04PM (#46492767)
> But if you are insinuating AI made all this up on it's own, I have to disappoint you.

No worries, I am not a native English speaker myself. I was genuinely interested in whether commercial LLMs would use "bad" words without some convincing.

Re:NSFW Acronyms for Programmers (Free eBook) on Sunday January 04, 2026 @04:37PM (#46492549)
Did you have to use any special prompts when using LLMs for writing assistance, or did it just work?
Re:Total monthly number of StackOverflow questions over time on Sunday January 04, 2026 @04:07AM (#46486301)
The last data point is from January 2026, which has just begun. If you extrapolate the 321 questions by multiplying by 10 to account for the remaining 90 % of the month, you get to within the same order of magnitude as December 2025 (3862). The small difference is probably due to the turn of the year.
Re:Total monthly number of StackOverflow questions over time on Sunday January 04, 2026 @03:56AM (#46486239)
Those popups were a big contributor for me to stop using SO. I stopped updating my uBlock origin rules when LLMs became good enough. I am now using the free Kimi K2 model via Groq over CLI, which is much faster.
Re:Karpathy on Programming on Monday December 29, 2025 @05:43PM (#46426794)
> This is from the man who has no finished open source projects

To be fair, which open source project can really claim that it is "finished", and what does "finished" even mean?

The only projects that I can truly call "finished" are those that I have laid to rest because they have been superseded by newer technologies, not because they have achieved completeness, because there is always more to do.

> it always work[s]

That was not my experience, at least for very large files (100+ GB). There was a workaround (that has since been patched) where you could link files into your own Google drive and circumvent the bandwidth restriction that way. The current workaround is to link the files into a directory and then download the directory containing the link as an archive, which does not count against the bandwidth limit.

Re:Show HN: Turn raw HTML into production-ready images for free on Wednesday December 24, 2025 @02:47AM (#46373395)
HTML to PNG:

    chromium --headless --disable-gpu --screenshot=output.png --window-size=1920,1080 --hide-scrollbars index.html
Also works great for HTML to PDF:

    chromium --headless --disable-gpu --no-pdf-header-footer --run-all-compositor-stages-before-draw --print-to-pdf=output.pdf index.html
Re:What Does a Database for SSDs Look Like? on Saturday December 20, 2025 @07:20AM (#46335659)
Lets take the Samsung 9100 Pro M.2 as an example. It has a sequential read rate of ~6700 MB/s and a 4k random read rate of ~80 MB/s:

https://i.imgur.com/t5scCa3.png

https://ssd.userbenchmark.com/ (click on the orange double arrow to view additional columns)

That is a latency of about 50 µs for a random read, compared to 4-5 ms latency for HDDs.

It is true that big-O notation does not necessarily tell you anything about the actual runtime, but if the hidden constant appears suspiciously large, one should double-check whether something else is going on.
Without looking at the code, O(N * k) with N = 9000 points and k = 50 dimensions should take in the order of milliseconds, not seconds. Did you profile your code to see whether there is perhaps something that takes an unexpected amount of time?
Re:Show HN: Tacopy – Tail Call Optimization for Python on Friday December 05, 2025 @07:44AM (#46160526)
Tail calls can be used for parsing very efficiently: https://news.ycombinator.com/item?id=41289114
Re:OpenAI declares 'code red' as Google catches up in AI race on Wednesday December 03, 2025 @08:52AM (#46134458)
I can not say how big ML companies do it, but from personal experience of training vision models, you can absolutely reuse the weights of barely related architectures (add more layers, switch between different normalization layers, switch between separable/full convolution, change activation functions, etc.). Even if the shapes of the weights do not match, just do what you have to do to make them fit (repeat or crop). Of course the models will not work right away, but training will go much faster. I usually get over 10 times faster convergence that way.
Re:OpenAI declares 'code red' as Google catches up in AI race on Wednesday December 03, 2025 @06:18AM (#46133175)
Why would the open weights providers need their own tools for agentic workflows when you can just plug their OpenAI-compatible API URL into existing tools?

Also, there are many providers of open source models with caching (Moonshot AI, Groq, DeepSeek, FireWorks AI, MiniMax): https://openrouter.ai/docs/guides/best-practices/prompt-cach...

Re:OpenAI declares 'code red' as Google catches up in AI race on Wednesday December 03, 2025 @06:02AM (#46133046)
You need a certain level of batch parallelism to make inference efficient, but you also need enough capacity to handle request floods. Being a small provider is not easy.
Re:OpenAI declares 'code red' as Google catches up in AI race on Wednesday December 03, 2025 @05:40AM (#46132904)
I just tried it with GPT-5.1-Codex. The compression ratio is not amazing, so not sure if it really worked, but at least it ran without errors.

A few ideas how to make it work for you:

1. You gave a link to a PDF, but you did not describe how you provided the content of the PDF to the model. It might only have read the text with something like pdftotext, which for this PDF results in a garbled mess. It is safer to convert the pages to PNG (e.g. with pdftoppm) and let the model read it from the pages. A prompt like "Transcribe these pages as markdown." should be sufficient. If you can not see what the model did, there is a chance it made things up.

2. You used C++, but Python is much easier to write. You can tell the model to translate the code to C++ once it works in Python.

3. Tell the model to write unit tests to verify that the individual components work as intended.

4. Use Agent Mode and tell the model to print something and to judge whether the output is sensible, so it can debug the code.

Re:Google *Unkills* JPEG XL? on Monday December 01, 2025 @12:40PM (#46110359)
> I do wonder if there are any DOS vectors that need to be considered if such a large image can be defined in relatively small byte space.

You can already DOS with SVG images. Usually, the browser tab crashes before worse things happen. Most sites therefore do not allow SVG uploads, except GitHub for some reason.

Here is an even older comment chain about it from 2020: https://news.ycombinator.com/item?id=23895706

Apparently, comparing low-background steel to pre-LLM text is a rather obvious analogy.

Re:Show HN: Fixing Google Nano Banana Pixel Art with Rust on Sunday November 30, 2025 @12:00PM (#46098328)
Could you explain a bit how the code works? For example, how does it detect the correct pixel size and how does it find out how to color the (potentially misaligned) pixels?
I found the attempt to promote his website as an "Ask HN" thread amusing, after his previous four "Show HN" threads were closed.
That's a lot of em-dashes in your ad.

And a heads up: I get "This video is not rated. Join vimeo to watch." when trying to watch the video.

> all projects with over 100 GitHub stars or some similar metric.

I think it would be difficult to come up with a good metric. For example, it should not be based on some easily faked number governed by a foreign company.

Re:Seagate achieves 6.9TB storage capacity per platter on Thursday November 27, 2025 @01:30PM (#46071939)
The article in question: "Unpowered SSDs slowly lose data" https://news.ycombinator.com/item?id=46038099
Re:Penpot: The Open-Source Figma on Thursday November 27, 2025 @05:49AM (#46067982)
It might have become socially acceptable to lie when everyone else is, but it is still a lie. Back in my days, you at least had to put an asterisk behind such outrageous claims.
Re:Penpot: The Open-Source Figma on Thursday November 27, 2025 @05:41AM (#46067929)
> It's not a lie if no one is abusing it.

It absolutely is a lie, but you might live in a society where constant lying has been normalized. Personally, I believe that society would be better off if companies were held to the letter of their words.

Older »