←back to thread

371 points ulrischa | 3 comments | | HN request time: 0.701s | source
Show context
al2o3cr ◴[] No.43234929[source]

    My cynical side suspects they may have been looking for
    a reason to dismiss the technology and jumped at the first
    one they found.
MY cynical side suggests the author is an LLM fanboi who prefers not to think that hallucinating easy stuff strongly implies hallucinating harder stuff, and therefore jumps at the first reason to dismiss the criticism.
replies(2): >>43235138 #>>43237917 #
williamcotton ◴[] No.43235138[source]
What do you mean by "harder stuff"? What about an experimental DSL written in C with a recursive descent parser and a web server runtime that includes Lua, jq, a Postgres connection pool, mustache templates, request-based memory arena, database migrations and much more? 11,000+ lines of code with ~90% written by Claude in Cursor Composer.

https://github.com/williamcotton/webdsl

Frankly us "fanbois" are just a little sick and tired of being told that we must be terrible developers working on simple toys if we find any value from these tools!

replies(6): >>43235291 #>>43235372 #>>43235757 #>>43235877 #>>43239166 #>>43239764 #
Snuggly73 ◴[] No.43235757[source]
..."request-based memory arena"...

there are some very questionable things going on with the memory handing in this code. just saying.

replies(1): >>43236158 #
williamcotton ◴[] No.43236158[source]
Request-based memory arenas are pretty standard for web servers!
replies(1): >>43236510 #
Snuggly73 ◴[] No.43236510[source]
Maybe be, after all - I dont write web servers (btw, the PQ and JQ libraries doesnt seem to use the arena allocator, which makes the whole proposition a bit dubious, but lets say that its me being picky).

What I meant was, that IMO the code is not very robust when dealing with memory allocations:

1. The "string builder" for example silently ignores allocation failures and just happily returns - https://github.com/williamcotton/webdsl/blob/92762fb724a9035...

2. In what seems most of the places, the code simply doesnt check for allocation failures, which leads to overruns (just couple of examples):

https://github.com/williamcotton/webdsl/blob/92762fb724a9035...

https://github.com/williamcotton/webdsl/blob/92762fb724a9035...

replies(1): >>43236644 #
williamcotton ◴[] No.43236644[source]
Thanks for digging in. Yup, those two libs don’t support custom allocators. I raised an issue in the jq repo to ask if they thought about adding it.

Great points about happy path allocations. If I ever touch the project again I’ll check each location.

Note to self: free code reviews of projects if you mention LLMs!

replies(1): >>43239971 #
1. namaria ◴[] No.43239971[source]
"People took a cursory look at a codebase I published and found glaring mistakes they discussed publicly as examples of how bad it is" is not the flex you think it is.
replies(1): >>43241341 #
2. williamcotton ◴[] No.43241341[source]
"Cursory", get it? I did indeed make it with Cursor! ;)

I hope you find yourself having a better day today than yesterday.

replies(1): >>43243292 #
3. namaria ◴[] No.43243292[source]
I hope you stop peddling AI slop