←back to thread

132 points barddoo | 10 comments | | HN request time: 0.971s | source | bottom

Writing Redis from scratch in Zig.
Show context
johnisgood ◴[] No.45308123[source]
Seems like LLMs are getting good at Zig (with some help, I presume).
replies(2): >>45308193 #>>45308553 #
mtlynch ◴[] No.45308193[source]
Is there anything about this project that seems LLM-generated?

I've found that LLMs are particularly bad at writing Zig because the language evolves quickly, so LLMs that are trained on Zig code from two years ago will write code that no longer compiles on modern Zig.

replies(4): >>45308296 #>>45308429 #>>45308798 #>>45311161 #
1. 5- ◴[] No.45308296[source]
https://github.com/barddoo/zedis/blob/87321b04224b2e2e857b67...

these seem to occur only in college assignment projects, and in the output of text generators trained on those.

replies(2): >>45308389 #>>45308685 #
2. WD-42 ◴[] No.45308389[source]
I will never place emojis in any of my readmes ever again.
replies(2): >>45308404 #>>45308424 #
3. chucky_z ◴[] No.45308404[source]
spell out 'development' with hammer emojis. bring ascii art back as emoji art.

(i actually do this in slack messages and folks find it funny and annoying, but more funny)

4. tayo42 ◴[] No.45308424[source]
People were doing this before llms, otherwise how did they learn it?
replies(2): >>45308486 #>>45308701 #
5. WD-42 ◴[] No.45308486{3}[source]
Sure, but llms absolutely love to do it for some reason.
replies(1): >>45308842 #
6. nine_k ◴[] No.45308685[source]
Has been doing this for years, even before LLMs were a thing. No, not in college assignments; by the time emoji appeared, I had long since walked out of my PhD program and went to the industry.

I put such emojis at the beginning of big headings, because my eyes detect compact shapes and colors faster than entire words and sentences. This helps me (and hopefully others) locate the right section easier.

In Slack, I put large emojis at the beginning of messages that need to stand out. These are few, and emojis work well in this capacity.

(Disclaimer: I may contain a large language model of some kind, but very definitely I cannot be reduced to it in any area of my activity.)

replies(2): >>45308699 #>>45310502 #
7. adastra22 ◴[] No.45308699[source]
FWIW it is really confusing to me and others. What is this emoji supposed to mean? Heck if I know.

But the telltale signs are far more than just that. The whole document is exactly the kind of README produced by Claude.

8. adastra22 ◴[] No.45308701{3}[source]
That's why he said "never again"
9. tayo42 ◴[] No.45308842{4}[source]
I just took a look at a Readme I had cursor write a couple months ago and there's no emojis
10. MangoToupe ◴[] No.45310502[source]
I had assumed they were referring to stuff like "Type-safe operations with compile-time guarantees". What a weird detail to add to a readme. And the whole section is like that. I wonder if that's part of a prompt leaking through.