Kunal Nayyar

1.3K posts

Kunal Nayyar banner
Kunal Nayyar

Kunal Nayyar

@Kunal_221

math, ml, code & life | My blogs - https://t.co/GvKQzmfdge

Katılım Eylül 2021
184 Takip Edilen60 Takipçiler
Sabitlenmiş Tweet
Kunal Nayyar
Kunal Nayyar@Kunal_221·
Period
Kunal Nayyar tweet media
CY
0
2
10
1.2K
Kunal Nayyar
Kunal Nayyar@Kunal_221·
Very nicely broken down!
English
0
0
0
2
Ayush Tandon
Ayush Tandon@tandon133·
need to think more about this, slack DMs are not secured. during my intern project, we were switching multiple api keys due to token limits and best solution we found was to use whatsapp (since it's e2e encrypted) as claimed in 2025. Will now use doppler / infisical
kapilansh@kapilansh_twt

how do teams actually share .env variables securely because the options I see are - Slack DM (terrible) - email (worse) - shared Notion doc (somehow even worse) - 1Password or similar - something I'm missing

English
1
0
0
57
Kunal Nayyar retweetledi
Arpit Bhayani
Arpit Bhayani@arpit_bhayani·
Coding agents like Claude Code and others love Git worktrees. So, if you are using one or trying to build one, knowing about them is important, and here is what they are all about. A Git worktree lets you check out multiple branches of the same repository at the same time, each in its own directory. Not multiple clones. So essentially, one repo, many working directories, all sharing the same Git history and objects on disk. The problem they solve is context switching. Normally, if you are midway through work on one branch and need to jump to another, you stash, switch, do the work, switch back, and pop the stash. That context gets destroyed. With worktrees, you just open the other directory. Both branches stay live simultaneously. For coding agents, this is a 'godsend' :) It is how they run tasks in parallel without interfering with each other. An agent can be running tests on one branch in one worktree while writing new code in another. No waiting required, and things can move in parallel. Also, each worktree gets its own working tree and index, but they share the object store. So you are not actually duplicating gigabytes of history every time you spin one up. It is fast to create and cheap to maintain. You create one with `git worktree add ../feature-branch feature-branch`. That is it. The directory is ready, the branch is checked out, and your original workspace is untouched. Coding agents also get isolation guarantees. If one task crashes or corrupts its working tree, the others are unaffected. This makes Git worktrees a pretty natural fit for any system that needs to run concurrent, independent operations on the same codebase - aka coding agents :) Hope this helps.
English
40
79
1.2K
64.4K
Kunal Nayyar
Kunal Nayyar@Kunal_221·
Ferrari racing amongst themselves feels refreshing
English
0
0
0
24
Kunal Nayyar retweetledi
Kaito | 海斗
Kaito | 海斗@_kaitodev·
if you're afraid of posting content, watch this
English
105
982
11.8K
348.9K
Kunal Nayyar
Kunal Nayyar@Kunal_221·
Happy Birthday Newton, this world wouldn't be the same without you!!
English
0
0
2
33
Kunal Nayyar retweetledi
Anthony Bonato
Anthony Bonato@Anthony_Bonato·
In honor of Taylor Swift's 36th birthday today, here are 36 Taylor series
Anthony Bonato tweet media
English
212
1.7K
15.4K
427.7K
Kunal Nayyar retweetledi
RBR Daily
RBR Daily@RBR_Daily·
Max Verstappen on the radio ❤️ "Don't be too disappointed guys, I'm definitely not. We can be proud of our comeback. Thanks everyone. Also Honda for the past years. We ended it in style."
English
140
5.6K
52.3K
899.5K
Kunal Nayyar
Kunal Nayyar@Kunal_221·
Max did everything he could, every damn thing, it's fine, let it be! He knows the beast he is, a mere title doesn't matter, although it would have been soooo much better if he did win it!
English
0
0
2
28
Kunal Nayyar
Kunal Nayyar@Kunal_221·
MAX ON POLE AGAINNNNNN!!! PLEASE, A NORRIS DNF IS ALL I'M ASKING NOW😭😭😭
English
0
0
2
37
Kunal Nayyar retweetledi
IT Unprofessional
IT Unprofessional@it_unprofession·
Last month my intern asked for help with a Kubernetes error. He was stuck on a YAML file. He looked desperate. I make $275,000 a year. I haven't written a line of code since 2017. I don't even know what a "pod" is. But I didn't tell him that. I leaned back in my Herman Miller chair. I said, "Stop trying to code. Start prompting." I told him to paste the error into ChatGPT. He did. The AI told him to delete the cluster. He did. Production went down instantly. The CEO called me screaming. I didn't panic. I told the CEO we were "testing our disaster recovery protocols." He was impressed by my foresight. I got a bonus. The intern got fired. Innovation requires sacrifice. Just not mine.
English
745
4.1K
59.2K
2.8M
Kunal Nayyar
Kunal Nayyar@Kunal_221·
Max's 2nd half season comeback needs to be studied, bro is so fucking close to the top 😭😭
English
0
0
1
21
Kunal Nayyar retweetledi
Dr Milan Milanović
Dr Milan Milanović@milan_milanovic·
𝗔𝗣𝗜 𝗚𝗮𝘁𝗲𝘄𝗮𝘆 𝘃𝘀 𝗟𝗼𝗮𝗱 𝗕𝗮𝗹𝗮𝗻𝗰𝗲𝗿 𝘃𝘀 𝗥𝗲𝘃𝗲𝗿𝘀𝗲 𝗣𝗿𝗼𝘅𝘆 Regarding a system design, we often need clarification about the roles of a Load Balancer and an API Gateway. Most of our resources are about their implementation rather than real-life use cases. 𝗔𝗣𝗜 𝗚𝗮𝘁𝗲𝘄𝗮𝘆 It sits between a client and a group of backend services. It acts as a reverse proxy, accepting all application programming interface (API) calls, aggregating the services needed to fulfill them, and returning the appropriate results. User authentication, rate limits, and statistics are typical duties that API gateways handle on behalf of an API service system. Also, the API gateway can handle faults (circuit breaker) and log and monitor. 𝗟𝗼𝗮𝗱 𝗕𝗮𝗹𝗮𝗻𝗰𝗲𝗿 It is a service that distributes incoming traffic across many servers or resources. Usually, we have two or more web servers on the backend, and it 𝗱𝗶𝘀𝘁𝗿𝗶𝗯𝘂𝘁𝗲𝘀 𝗻𝗲𝘁𝘄𝗼𝗿𝗸 𝘁𝗿𝗮𝗳𝗳𝗶𝗰 𝗯𝗲𝘁𝘄𝗲𝗲𝗻 𝘁𝗵𝗲𝗺. Its primary purpose is to use resources optimally. A more equal task allocation and increased capacity can enhance the system's responsiveness and reliability. There are three load balancers at a high level: hardware-based, cloud-based, and software-based. 𝗥𝗲𝘃𝗲𝗿𝘀𝗲 𝗣𝗿𝗼𝘅𝘆 A server sits in front of backend servers and forwards client requests to them. Reverse proxies are typically used to enhance security, performance, and reliability. A reverse proxy receives a request from a client, forwards it to another server, and returns the response to the client, giving the impression that the first proxy server handled the request. These proxies ensure that users don't access the origin server directly, giving the web server anonymity. They are usually used for Load balancing, where we need to handle incoming traffic so we can distribute it across multiple backend servers, or for caching. So, the main thing that differs these two is that an 𝗔𝗣𝗜 𝗚𝗮𝘁𝗲𝘄𝗮𝘆 𝗶𝘀 𝗳𝗼𝗰𝘂𝘀𝗲𝗱 𝗼𝗻 𝗿𝗼𝘂𝘁𝗶𝗻𝗴 𝗿𝗲𝗾𝘂𝗲𝘀𝘁𝘀 to the appropriate service and it handles requests for APIs, while a 𝗟𝗼𝗮𝗱 𝗯𝗮𝗹𝗮𝗻𝗰𝗲𝗿 𝗶𝘀 𝗳𝗼𝗰𝘂𝘀𝗲𝗱 𝗼𝗻 𝗱𝗶𝘀𝘁𝗿𝗶𝗯𝘂𝘁𝗶𝗻𝗴 𝗿𝗲𝗾𝘂𝗲𝘀𝘁𝘀 𝗲𝘃𝗲𝗻𝗹𝘆 between a group of servers and handles requests that are sent to a single IP address, which works at protocol or socket level (TCP, HTTP). Some 𝗲𝘅𝗮𝗺𝗽𝗹𝗲𝘀 of API Gateways are Amazon API Gateway, Ocelot (.NET-based), Tyk, or Apache APISIX, while Load Balancers are Azure Load Balancer, HAProxy, or Seesaw. An example of reverse proxy services is 𝗔𝗽𝗮𝗰𝗵𝗲 𝗣𝗿𝗼𝘅𝘆, 𝗡𝗴𝗶𝗻𝘅 𝗼𝗿 𝗜𝗜𝗦 with additional modules (Url Rewrite).
Dr Milan Milanović tweet media
English
8
91
513
21.8K
Kunal Nayyar retweetledi
Arpit Bhayani
Arpit Bhayani@arpit_bhayani·
Wrote an essay on what Q, K, and V matrices are and the roles they play in LLMs. I dug deeper into the nuances and put together this distilled yet detailed version. This essay also supplements my write-up on "How LLM Inference Works." I'm no expert, but if you're looking for a starting point with LLMs, this would help. Give it a read.
Arpit Bhayani tweet media
English
27
100
1.2K
67.6K
Kunal Nayyar retweetledi
Andrej Karpathy
Andrej Karpathy@karpathy·
Gemini Nano Banana Pro can solve exam questions *in* the exam page image. With doodles, diagrams, all that. ChatGPT thinks these solutions are all correct except Se_2P_2 should be "diselenium diphosphide" and a spelling mistake (should be "thiocyanic acid" not "thoicyanic") :O
Andrej Karpathy tweet media
English
324
942
8.9K
3M