Live data from Hacker News

C Gibberish to English

cdecl.org

11–20 of 54 posts

Re: C Gibberish to English

#11
post #7

Why is it that the first thing I try tends to uncover shortcomings? typedef uint64_t qbb_t __attribute__((vector_size(sizeof(uint64_t) * 4))) Syntax error OK, its an extension, meh.

Looking at the project issues, it seems it supports only 1989-era C, and some Apple stuff, before you even get to attributes.

Re: C Gibberish to English

#13
post #8

Is this largely supplanted by LLMs?

Probably.

Output for the example I got on opening the website:

  char (*(*x())[5])()
cdecl.org: declare x as function returning pointer to array 5 of pointer to function returning char

ChatGPT: x is a function that, when called, gives us access to 5 functions that each return a character. (TL;DR, it gave a full explanation too)

Like mentioned before the error rate of LLMs is probably much higher on complex expressions.

Re: C Gibberish to English

#17
post #8

Is this largely supplanted by LLMs?

LLMs are mostly correct with regards to this stuff. cdecl is always correct with regards to this stuff. I don't know why you'd choose the former.

Because if you don't do things exactly the way cdecl wants you get a Syntax Error

Re: C Gibberish to English

#18

Is there a language that's substantially free of gibberish?

Those of Algol/Wirth linage, or influenced by then.

Then again people complain that they are too verbose, and they rather write in hieroglyph friendly languages.

Re: C Gibberish to English

#19
I can read that.

I don't think it is gibberish. It's code and in order to read that code you need to understand the language, and to understand language you need learning and experience.

Maybe it can be useful for learning, but if you have to use such tool, I suspect you won't understand it anyway - so in a way it is more a gibberish-to-gibberish translator.

Post reply on HN