4 ms·
It's true for me. I type in what I want and then the AI system (compiler) generates the code. Doesn't everyone work that way?
by 9rx 11mo ago
It's true for me. I type in what I want and then the AI system (compiler) generates the code.
Doesn't everyone work that way?
- zahlman 11mo agoDescribing a compiler as "AI" is certainly a take.
- agumonkey 11mo agoit's something that crossed my mind too honestly. natural-language-to-code translation.
- skydhash 11mo agoYou can also do search query to code translation by using GitHub or StackOverflow.
- deleted 11mo ago[deleted]
- parliament32 11mo agoCompilers are probably closer to "intelligence" than LLMs.
- conradev 11mo agoI used to hand roll the assembly, but now I delegate that work to my agent, clang. I occasionally override clang or give it hints, but it usually gets it right most of the time. clang doesn't "understand" the hints because it doesn't "understand" anything, but it knows what to do with them! Just like codex.
- lm28469 11mo agoGiven an input clang will always give the same output, not quite the same for llms. Also nobody ever claimed compilers were intelligent or that they "understood" things
- bewo001 11mo agoHm, some things compilers do during optimization would have been labelled AI during the last AI bubble.
- 9rx 11mo agoAn LLM will also give the same output for the same input when the temperature is zero[1]. It only becomes non-deterministic if you choose for it to be. Which is the same for a C compiler. You can choose to add as many random conditionals as you so please. But there is nothing about a compiler that implies determinism. A compiler is defined by function (taking input on how you want something to work and outputting code), not design. Implementation details are irrelevant. If you use a neural network to compile C source into machine code instead of more traditional approaches, it most definitely remains a compiler. The function is unchanged. [1] "Faulty" hardware found in the real world can sometimes break this assumption. But a C compiler running on faulty hardware can change the assumption too.
- lm28469 11mo agoYou can test that yourself in 5 seconds and see that even at a temp of 0 you never get the same output
- 9rx 11mo agoWorks perfectly fine for me. Did you do that stupid HN thing where you failed to read the entire comment and then went off to try it on faulty hardware?
- lm28469 11mo agoNo I did that HN thing where I went to an LLM, set temp to 0, pasted your comments in and got widely different outputs every single time I did so
- deleted 11mo ago[deleted]
- rfrey 11mo agoI understand what you're getting at, but compilers are deterministic. AI isn't just another tool, or just a higher level of program specification.
- 9rx 11mo ago[flagged]
- rfrey 11mo ago> Nobody was ever talking about AI. If you want to participate in the discussions actually taking place, not just the one you imagined in your head Wow. No, I actually don't want to participate in a discussion where the default is random hostility and immediate personal attack. Sheesh.
- 9rx 11mo ago[flagged]
- tomhow 11mo agoWhat the hell? You can't comment like this on HN, not matter how right you are or feel you are. The guidelines make it clear we're trying for something better here. These guidelines are particularly relevant: Be kind. Don't be snarky. Converse curiously; don't cross-examine. Edit out swipes. When disagreeing, please reply to the argument instead of calling names. "That is idiotic; 1 + 1 is 2, not 3" can be shortened to "1 + 1 is 2, not 3." Please don't fulminate. Please don't sneer, including at the rest of the community. Please respond to the strongest plausible interpretation of what someone says, not a weaker one that's easier to criticize. Assume good faith. Please don't post shallow dismissals... Please don't comment on whether someone read an article. "Did you even read the article? It mentions that" can be shortened to "The article mentions that". HN is only a place where people want to participate because others make the effort to keep the standards up. Please do your part to make this a welcoming place rather than a mean one. https://news.ycombinator.com/newsguidelines.html https://news.ycombinator.com/newsguidelines.html