Posts

Showing posts with the label coding

Why does AI still mimic the human “write code → compile → run”

Image
                                                          generated by gemini ai I observed that what AI Coding tools do is only mimic a human programmer. Same way: write code • convert to machine language • execute on a computer. And it cuts to the heart of a real limitation in most current AI coding agents. My question is simple: Why does AI still mimic the human “write code → compile → run” cycle instead of directly translating human intent into computer actions? Let me break down why this happens, and where real intelligence might eventually break the pattern. --- 1. Current AI coding agents are pattern-matching machines, not understanding machines Large language models (LLMs) are trained on human-generated data — including billions of lines of code, documentation, and discussions.   What they learn is statistical regularities in ...

How Generative AI Generate Code

Image
                                    Python code generated by Bard Generative AI can create programming code for a problem in several ways, leveraging different techniques and tools. Here's a breakdown of some common approaches: 1. Code Generation with Large Language Models (LLMs) : LLMs are trained on massive datasets of text and code, allowing them to predict the next token in a sequence with high accuracy. Given a natural language description of a problem or a program fragment, the LLM can generate the corresponding code by predicting the next tokens in the sequence. Examples of LLMs used for code generation include OpenAI Codex, GitHub Copilot, and GPT-3. 2. Template-based Code Generation: This approach uses pre-defined templates for specific tasks or functionalities. The AI analyzes the problem and selects the appropriate template. It then fills in the template with the s...