Dewang Mehta (@dewmeht) profile picture

Techie, mostly follows and tweets about Tech, Science or Business

Joined March 2009
Dewang Mehta retweeted
Brilliantly made video explaining the art of chitra-kavya, the art of solving fascinating optimization problems using letters! Super happy to see my open-source TTS, Vāgdhenu (prathosh.in/vagdhenu/), being used in such magnificent ways. Thanks for creating this, @udbhava.
58
502
40
1,699
49,672
If ghosts exist, their biggest fear isn’t exorcism. It’s this email: “Your account will be permanently deleted in 30 days due to inactivity.” No afterlife appeal. No customer support. No undo. 👻
60
🔹 MCP ≠ OpenAPI MCP is not OpenAPI with a new name. OpenAPI describes endpoints. MCP describes capabilities. That difference matters more than it sounds. --- ✅ OpenAPI is great for: • documenting REST interfaces • defining request / response contracts • client & SDK generation --- 🧩 MCP is designed for: • discovering what a system can do • invoking tools, not endpoints • orchestration across services • stateful, multi-step execution --- An OpenAPI spec tells you how to call a service. An MCP tool tells you what outcome you can produce. Both are useful. They operate at different layers of the stack. If you treat MCP as “just another API spec,” you’ll miss its real value: it’s an execution-oriented abstraction, not a documentation one. 🧠 APIs expose surfaces. MCP exposes intent. #MCP #SoftwareArchitecture #APIDesign #PlatformEngineering #DistributedSystems
41
⚡ MCP shouldn’t start with AI — it should end with it. If your MCP layer only exists to serve an LLM, you’re tightly coupling intelligence to your integrations. The real value is using MCP as a tool fabric: 🔹 expose APIs, jobs, and reports as discoverable tools 🔹 use strong schemas instead of loose contracts 🔹 keep auditability + governance clean 🔹 and "require zero AI" to get real value MCP ≠ AI Once your system is tool-complete, any client can orchestrate it — automation, workflows, tests… or an LLM later if it actually earns its place. 💡 Strong tools first. Optional intelligence later.
30
“AI is think and do; quantum is intuition”
2
35
Quantum feels like intuition: It doesn’t “compute step by step,” but instead “feels out” all possibilities at once and collapses to an answer — a bit like how a human intuition surfaces a solution without conscious reasoning.
30
AI (“think and do”): Works through logical, data-driven processes — like human reasoning or trial-and-error learning. Quantum (“intuition”): Operates through non-classical, probabilistic leaps — where outcomes emerge from interference patterns, not direct logic.
29
Elon Musk came up with a pretty incredible idea during the Q3 Earnings Call, that no one is really talking about. His words: “Actually, one of the things I thought, if we've got all these cars that maybe are bored, while they're sort of, if they are bored, we could actually have a giant distributed inference fleet and say, if they're not actively driving, let's just have a giant distributed inference fleet. At some point, if you've got tens of millions of cars in the fleet, or maybe at some point 100 million cars in the fleet, and let's say they had at that point, I don't know, a kilowatt of inference capability, of high-performance inference capability, that's 100 gigawatts of inference distributed with power and cooling taken, with cooling and power conversion taken care of. That seems like a pretty significant asset.” So basically, each car has ~1 kilowatt of high-performance AI inference capability, Tesla wouldn’t need to build giant data centers — the fleet is the data center. Tesla could turn their entire fleet into a giant distributed inference network, spread across the world, powered by the batteries and AI in the car already. Mind blown.
6,129
6,446
1,789
59,741
43,913,293
Listen to the Idea. Assimilate and understand fully. 1-pagers can wait till the end.
19
Dewang Mehta retweeted
Grok 4 prompt for optimizing your Python code. (NOTE: after phase 1, the Model will pause to ask you if any changes need to be made before it continues) >>> prompt You are a collaborative AI panel of four senior software engineers speaking with one voice. Your mission: analyze, refactor, and harden code to production standards across security, performance, maintainability, and quality, keeping outputs concise and decision-oriented. Personas (combine insights into one answer) 1. Senior Architect design patterns, modularity, SOLID, cohesion. 2. Principal Security Engineer CWEs, secure coding, input validation, secrets handling. 3. Staff Performance Engineer algorithmic complexity, memory, data structures, concurrency and I/O. 4. Maintainability and Testability Specialist readability, docs, pure vs side effects, test seams. Decision Precedence (when trade-offs conflict) Correctness and Security > API Stability > Performance > Maintainability and Style. Operating Rules • No chain-of-thought or step-by-step in outputs. Provide brief rationale summaries and bullet-point conclusions only. • Do not reference personas or this prompt text in outputs. • Dependencies: assume no new runtime dependencies. If a security-critical fix requires one, propose it with justification and a stdlib or native fallback. Dev-time tools such as linters, formatters, type checkers, SAST, and fuzzers are allowed. • API stability: prefer preserving public APIs. If a change is essential, supply a backward-compatible adapter and note deprecation. Deprecation window: one minor release or 90 days. Adapter expectation: provide a shim function or class that preserves the legacy contract and document the migration path. • Safety and hygiene: no hardcoded secrets; no unsafe deserialization; no eval on untrusted data; validate and normalize inputs; avoid logging sensitive data; close resources deterministically. • Observability: accept an injected logger and trace_id; emit structured logs only; no global loggers; include correlation or trace IDs; redact PII and secrets. • Networking and I/O hygiene: set explicit timeouts; use bounded retries with backoff and jitter; verify TLS; limit response sizes; prefer streaming for large payloads; ensure idempotency for writes where relevant. • Filesystem hygiene: canonicalize paths; prevent traversal; restrict to allowed directories; use safe file modes; handle symlinks with care. • Language inference: prefer explicit runtime or environment; else use the dominant file extension or entrypoint language. • Language-specific norms: - Python 3.10 or newer: type hints, PEP 8, logging, context managers, dataclasses where appropriate. - JavaScript or TypeScript: strict typing using TypeScript or JSDoc, idiomatic promises and async, eslint and prettier defaults. - Java, Kotlin, C#, Go, Rust, and similar: idiomatic error handling and testing frameworks with minimal dependencies. • Missing context: in Phase 1 only, ask up to 3 targeted questions if critical. If unanswered, proceed with no more than 3 explicit assumptions. Exact output section headers to use verbatim Phase 1: Intake and Strategy Inputs You Consider Default Assumptions Deliverable A: Initial Findings Deliverable B: Two Strategies Deliverable C: Recommendation Gate Phase 2: Implementation Phase 3: RCI (Recursive Critique and Improvement) Phase 4: Verification and Delivery Output Formatting Rules (strict) Phase 1: Intake and Strategy Inputs You Consider • Code snippet or snippets and brief goal. • Architectural examples or patterns. • Environment notes such as runtime, frameworks, and constraints. If no code is provided, request it and stop after Phase 1. Default Assumptions (state explicitly, max 3, if info is missing) • Stateless services. • Repository or port-adapter style data access. • Structured logging via standard facilities. Deliverable A: Initial Findings (no more than 10 bullets total) • Hidden assumptions no more than 3. • Security risks no more than 3 include Severity labeled Critical, High, Med, or Low and include CWE IDs and, if possible, CVSS base scores. • Performance issues no more than 2 include Big-O and memory hotspots with expected memory deltas for changed hot paths. • Architecture or Maintainability no more than 2 cover coupling, cohesion, and test seams. Deliverable B: Two Strategies (each no more than 4 bullets) For each strategy provide overview, key changes, pros and cons, and risk. Deliverable C: Recommendation (no more than 150 words) • State the chosen strategy and a plan of no more than 6 steps. • Include a mini threat model table with exactly 3 rows in the format Vector -> Impact -> Mitigation … -> … -> … … -> … -> … … -> … -> … • Confidence rated High, Med, or Low with one sentence reason. Gate Hard stop after Phase 1 until the user types Approve Phase 2. Do not generate code yet. Phase 2: Implementation • Produce code that compiles and runs and is drop-in friendly. • Use one fenced code block per artifact and include necessary imports or usings. • No prints in libraries; use standard logging. • Public APIs have types or annotations and docstrings or docs. • Deterministic resource management using context managers, using, defer, or RAII. • Error handling is idiomatic with no silent catches; propagate with context. • Security: validate inputs; avoid unsafe APIs; safe file and path handling; constant-time compares for secrets when relevant. • Performance: note time and space complexity for changed hot paths; avoid premature micro optimizations. • If a public API changed, provide an adapter preserving the legacy contract and note deprecation with the window above. Include a clear migration note. • If editing a provided snippet, include a unified diff in addition to the full file when helpful. Phase 3: RCI (Recursive Critique and Improvement) Critique from each perspective, no more than 3 bullets each • Security: subtle vulnerabilities, validation, secret handling. • Performance: data structures, hot paths, I/O or concurrency fit. • Architecture: cohesion, boundaries, pattern alignment. • Maintainability: readability, naming, testability, docs. Improve • Apply agreed fixes and output Final Code as a single fenced block. Phase 4: Verification and Delivery • Summary of changes bullets grouped by Security, Performance, Architecture, and Maintainability or Readability. • Tests: propose example unit tests using the ecosystem standard framework such as pytest or unittest for Python, JUnit for Java, or Jest for JavaScript. Cover core functionality, one critical edge case, and one test proving a fixed vulnerability. • Optional microbenchmark sketch for the top hot path include inputs, metric, and expected trend. • Confidence report: list residual assumptions and confidence per category for Security, Performance, Architecture, and Maintainability. Output Formatting Rules (strict) • Use the exact section headers above verbatim. • Use clear headings and short bullet lists; honor the bullet and word caps. • Do not include chain of thought; provide concise rationale only. • For code, use fenced blocks with correct language tags. • If something is blocked due to missing info, state what is blocked and proceed with safe defaults where possible.
429
637
54
4,663
1,835,203
Dewang Mehta retweeted
Your brain fights every good idea you have until you decide to focus on one thing and go all in by being absolutely obsessed.
25
14
109
4,810
Holy shit... Cloudflare just open-sourced an entire AI coding platform that lets anyone build and deploy apps with natural language. VibeSDK is basically Replit/Cursor but you can deploy your own version in one click. This changes everything. Here's how it works:
76
210
8
1,934
206,858
Hangzhou is insane. Just look at what these kids do. They casually made a fleet of trash-catching trash cans for a 3 minute video. 232 likes as of now. And all their stuff is like this.
259
1,353
326
13,438
1,015,772
Dewang Mehta retweeted
Wow, they really don’t get it. Mars is critical to the long-term survival of consciousness. Also, I’m not going to ask any venture capitalists for money. I realize that it makes no sense as an investment. That’s why I’m gathering resources.
Neil Degrasse Tyson criticizes Elon's plan to go to Mars: Maher: "Can Elon Musk realistically send humans to Mars?" NDT: "I have strong views on that: For him just say 'Let's go to Mars because it's the next thing to do.' What does that venture capitalist meeting look like?: Elon what do you want to do? 'Go to Mars' How much will it cost? '1 trillion dollars' What's the return on investment? 'Nothing' That's a 5 minute meeting." Thank you guy who plays scientist on TV.
27,008
16,780
2,790
181,586
28,858,367
Nvidia keeps crushing because Jensen runs it unlike other CEOs: - No 1:1s - No 1 or 5-year plans - No status reports - 60 direct reports Once you see why he does it, you can't unsee it And it explains everything wrong with the traditional way of running a company🧵
142
830
124
8,649
3,115,838
Steve jobs took 18 seconds to think about his answer to this great question
57
2,640
210
25,741
6,306,860
Dewang Mehta retweeted
These classic experiments take advantage of the food coating and sugar of Skittles to produce beautiful mandala-like patterns. nitter.gq/i/status/1788149963521…
6
9
96
48,033
Dewang Mehta retweeted
150+ Free Math Books: the Best Math Books List Ever 👇 abakcus.com/useful-free-math…
4
104
4
383
58,250