Remix.run Logo
d_silin 2 hours ago

But can it compile "Hello, World" example from its own README.md?

https://github.com/anthropics/claudes-c-compiler/issues/1

vidarh an hour ago | parent | next [-]

Noticed the part where all it requires is to actually have the headers in the right location?

d_silin an hour ago | parent [-]

"The location of Standard C headers do not need to be supplied to a conformant compiler."

From https://news.ycombinator.com/item?id=46920922 discussion.

vidarh an hour ago | parent [-]

And it doesn't for the compiler in question either. As long as the headers exist in the places it looks for them. No compiler magically knows where the headers are if you haven't placed them in the right location

d_silin 30 minutes ago | parent | next [-]

Would you accept the same quality of implementation from a human team?

vidarh 13 minutes ago | parent [-]

A compiler that can't magically know how to find headers that don't exist in the expected directory?

Yes, that is the case for pretty much every compiler. I suppose you could build the headers into the binary, but nobody does that.

Retr0id 35 minutes ago | parent | prev [-]

stddef.h (et al) should be shipped by the compiler itself, and so it should know where it is. But they rely on gcc for it, hence it doesn't always know where to look. Seems totally fine for a prototype.

vidarh 11 minutes ago | parent [-]

Especially given they're not shipping anything. The GCC binaries can't find misplaced or not installed headers either.

Retr0id an hour ago | parent | prev [-]

It's fascinating how few people read past the issue title