-
Tweets11K
-
Followers553
-
Following650
-
Likes6K
@steren Faced something similar this week and the fix was pip install -U packaging
To summarize: •2’s complement is used to represent negative numbers in binary. •MSB = sign bit. •Range: -2^(N-1) to 2^(N-1) - 1. •Simple: invert + add 1 for negatives. •Arithmetic is seamless! It’s elegant and foundational to computing!
Why is 2’s complement so powerful? Arithmetic just works. E.g., 5 + (-3) in 4 bits: •5 = 0101 •-3 = 1101 (2’s complement of 3) •Add: 0101 + 1101 = 10010. Drop the carry bit: 0010 → 2. No special logic needed!
It also solves the +0 and -0 problem found in 1’s complement by having a single representation for 0: 0000.
Let’s talk about 2’s complement, one of the most important concepts in binary arithmetic and computer science! It’s how computers represent negative numbers and perform seamless arithmetic. 🧵
In 4-bit 2’s complement, negative numbers wrap around the circle starting at 2^4 = 16. •-1 → 1111 (decimal: 15 in unsigned). •-8 → 1000. Range: -8 to 7. This allows seamless addition/subtraction without extra rules!
How do we convert a 2’s complement binary back to decimal? E.g., 1011 in 4 bits: 1️⃣ Check MSB: 1 → Negative. 2️⃣ Take 2’s complement: •Invert: 1011 → 0100. •Add 1: 0100 + 1 = 0101. 3️⃣ Result: -5. For positives, MSB is 0—no conversion needed!
Why is it called 2’s complement? Because subtracting a number is like adding its complement relative to 2^N. E.g., for 5 in 4 bits, 2^4 = 16: •Complement = 16 - 5 = 11 (binary: 1011). This clever trick simplifies arithmetic in binary!
To find the 2’s complement (binary representation of a negative number): 1️⃣ Write the positive number in binary. 2️⃣ Invert all bits (1’s complement). 3️⃣ Add 1 to the result. E.g., for -5 in 4 bits: 1.5 = 0101 2.Invert: 1010 3.Add 1: 1010 + 1 = 1011.
In N-bit 2’s complement, the MSB (most significant bit) acts as the sign bit: •0 → Positive •1 → Negative. Range: -2^(N-1) to 2^(N-1) - 1. E.g., in 4 bits: •Min: -8 (1000) •Max: 7 (0111). Let’s break this down further!
Why do we need 2’s complement? Computers work with binary (0s and 1s). To handle negative numbers in binary, we need a system that: 1️⃣ Represents negatives uniquely. 2️⃣ Simplifies addition/subtraction. 2’s complement solves both efficiently.
reminder that the bcrypt hash function ignores input above a certain length! so if you do bcrypt(username || password) for some reason, a sufficiently long username will make it accept any password. to fix this you can sha256 the input first.
Okta allowing login bypass for any usernames with 52+ characters is insane Official Security Advisory: trust.okta.com/security-advis…
the biggest trick the devil ever played was convincing management that MBAs should determine how software planning works
@ThePrimeagen I locked myself out of a new ssh only device once by enabling ufw and not allowing port 22.
solving problems using LLMs that can be solved by fine-tuning BERT is a skill issue
I was just watching a video about algorithm performance by the @ThePrimeagen . It reminded that Big-O complexity is not always the final story. When choosing a data structure, it's useful to consider the 'composition hierarchy'. You can implement an algorithm using a Hash Table. In theory, it provides O(1) insert & lookups. But don't forget that a hash table is just implemented using a dynamic array. With small amounts of data, a linear scan through an array is faster than hash lookups. And if you have a fixed amount of data, why not just use a static array? (prob because you use a fake language like JS or Python) Take it one step further. If your data can be binary encoded, you can get further performance gains. Possibly at the cost of readability. Stepping back, you realize that this is the same principal that Protocol Buffers are built on. Anyways, I love thinking about this stuff and thought it was worth sharing.
dude... you struggled with recursion..?
Another one of the strawberry fixes?
hank white @HankWhank1555
142 Followers 2K Following
Tirmpith @TirmpithM6kZD4
8 Followers 178 Following
Sid Nexus @TheSidNexus
20 Followers 152 Following A tech tinkerer who loves to explore new technologies from #AI to #Blockchain, #Web2 to #Web3, VR/MR to Games. #SidLabs #TechSolutions
jack😎 @MR_jack013
0 Followers 207 Following .≛ Sūccɘss ıs ʬĦƏη Ɣ❍ūɽ SıgηāԵūɽ³ B³c❍mƏs Λη ΛūԵ❍gɽāpĦ ❛͢
Titusme @Titusme337702
22 Followers 1K Following
Tara @Tara46985698689
39 Followers 1K Following
No Code Tutorials @NoCodeTutorials
503 Followers 5K Following A collection of the most useful #nocode tool tutorials.
Adv. Abinash Tiwari @AbinashTiwari20
116 Followers 91 Following Strong and Confident Lawyer waiting for New challenges to Come 😎
Manticore Search @manticoresearch
12K Followers 12K Following Easy to use open source fast database for search
José Luis @JosLuis52143059
119 Followers 661 Following Crypto research at State Capital. Views my own. Buy, hold, and pray. 🇺🇸
Shubhi Srivastava @shubhi1011
1K Followers 3K Following Cinephile | Views expressed are my own | Always be Kind to people around you!
Shailesh Pandey @theshailesh_
85 Followers 381 Following Building software📝 @neogcamp alumni 👨💻 @quolam
Julian Bilcke @flngr
8K Followers 5K Following 🪐 - working at https://t.co/s7UZAGGVxr - come join our fight against skin cancer! (previously at Hugging Face).
AI Content Tools @Mitsue88809244
2K Followers 4K Following The Best AI Content & AI Copywriting Tools Gathered And Reviewed In One Place (Have Your Own Software? Get Listed On Our Site Today)
Ramsri Goutham Golla @ramsri_goutham
16K Followers 3K Following Founder bootstrapping 3 AI SaaS Apps to $100k ARR with no employees: https://t.co/GKUAYB1rB9 https://t.co/fU8yoiYVDc https://t.co/DTyILliHVm
. @ceobitfarms_io
34 Followers 62 Following CEO, investiment manager company forex/multi asset trader portfolio manager earning in a unique style weekly earning is hundred %Guaranteed
Bob van Luijt @bobvanluijt
4K Followers 3K Following Co-Founder and CEO of @weaviate_io. I 😍 all things related to tech, machine learning, digital business, open-source, fashion, and music
Charly Wargnier ♨�... @DataChaz
183K Followers 49K Following Deep in Agents, LLMs and automation · Open source at ♥ · Sharing AI gems daily to help you work smarter · Ex-data scientist @Snowflake | @Streamlit ·
Weaviate AI Database @weaviate_io
19K Followers 3K Following The easiest way to build and scale AI applications. 🐙 https://t.co/1rZk8H0hpf 📰 https://t.co/OE3jP2OB87
Raghav Srivastava @Raghav_11001_ai
545 Followers 5K Following Quant | Mentor @WallStreetOasis | Athlete
Shristi Sharma @shristi_sharmaa
1 Followers 11 Following
chetan kapse @chetan_kapse_
133 Followers 2K Following Reader | writer | For what to suffer, imp question|
C𝖍𝖎𝖗𝖆g @CodeWithChirag
173 Followers 3K Following Developer | Python | Data Science | Competitive Coding | Team Xbox @Microsoft
Jeewan singh @Jeewan26564672
218 Followers 1K Following 🛬🛬8-8-1996-Mp-मेरे पसन्द के कुछ ख़ास लोग १ श्री नरेंद्र मोदी विराट कोहली हुस्नबोल्ट लोईनमेशि चित्रात्रिपाठी हनीसिंग ऐश्वर्या राय बच्चन
Maruthi Pothuganti @the_maruthi
367 Followers 530 Following
Aravind R Krishnan @AravindRKrish09
9 Followers 45 Following
Sanket Patil @Sankyy_22
23 Followers 32 Following
Mahmoud Aburas @mahdars02
9 Followers 207 Following Aspiring .NET developer. Computer Engineering graduate! Learning https://t.co/6pKtO4fy4i & C# #DotNet #ASPNET #CSharp #VS #VSCode
Garima Valecha @garima_valecha
0 Followers 11 Following
Roja Patnaik @patnaik_roja
909 Followers 365 Following Product designer @Zeptonow Ex-@Wintwealth Obsessively grateful about things 🌻
Sandeep Kumar @Sandeep68890247
3 Followers 267 Following
inigo quilez @iquilezles
54K Followers 43 Following Created Quill, Shadertoy, Pixar's Wondermoss. Math & Art Videos at * https://t.co/ugnT5WuRWq * https://t.co/w20vMC2I7d * https://t.co/SRkBTFQQLP
Ashish Vaswani @ashVaswani
32K Followers 2K Following
itch.io @itchio
219K Followers 11 Following Open indie game marketplace and DIY game jam host Account support? Email [email protected]
Kenney @KenneyNL
130K Followers 1K Following Creating (free) game assets: https://t.co/nAXqEcCbVR MakeRoom: https://t.co/wvsSjpDOzL #gamedev #gameassets
Goodgis @Gooodgis
8K Followers 373 Following 💧 Dewdrop Dynasty wishlist → https://t.co/dfmZxWukT5 🎮 dev • 📺 youtuber 🍂 @FirithStudio
Abhishek🌱 @Abhishekcur
23K Followers 561 Following 22 | C++, Rust systems, perf., Inference, profiling and physics CALISTHENICS
Saankhya Mondal @saankhyaCFC8
1K Followers 439 Following I train deep neural nets for a living. Opinions expressed are solely my own and do not express the views or opinions of anyone else.
メルカリ @mercari_jp
1.7M Followers 424 Following 「メルカリ」の公式アカウントです。📍サービスの利用に関するご質問は【https://t.co/vwBlDrn93k】障害情報は【https://t.co/zQR2RdTMi8】からお願いします。
Databricks @databricks
99K Followers 1K Following Databricks is the Data and AI company, helping organizations build and scale data and AI apps, analytics and agents.
hiroshi @daddynohara
5K Followers 658 Following ml at @amazon, previously led deep learning at $100M+ YC startup. Opinions my own.
MLflow @MLflow
12K Followers 48 Following The open source developer platform to build AI applications and models with confidence.
BentoML @bentomlai
3K Followers 208 Following 🍱 Inference Platform built for speed and control. Acquired by @Modular Join our community 👉 https://t.co/ZrgHxWh8AH
Eric Wastl @ericwastl
29K Followers 0 Following Created https://t.co/Y9jHxpfLdQ, https://t.co/2Cg3Tc4ozv, https://t.co/BSHyKj3GKD, https://t.co/Ru4QENCKrM; Principal Architect @ACVAuctions
Shivam Jindal @ChaoticDeeds
6K Followers 148 Following Tpot. My views don't represent the orgs I have worked for. Engineer @PayPal. Ex @Microsoft.
Vlad @valdgrind
609 Followers 939 Following data systems now @(?), data systems before @harvardDASlab
tetsuo @tetsuoai
252K Followers 628 Following C and Assembly • Grok • @tetsuocorp • @a_g_e_n_c //: 👾 https://t.co/ursRJQWUSA https://t.co/8cR0sQewr9
Ivan Fioravanti @ivanfioravanti
44K Followers 2K Following LLM addicted, Apple MLX, Cloud computing, Kubernetes, Technology Advisor, Investor and Co-Founder & Board Member of CoreView. Local/Personal AI Ambassador.
Manthan Gupta @manthanguptaa
23K Followers 481 Following ai research engineer • designing agent runtimes, memory, evals & retrieval systems for autonomous agents • dms open
DeepSeek @deepseek_ai
1.2M Followers 1 Following Unravel the mystery of AGI with curiosity. Answer the essential question with long-termism.
Peter Kraft @petereliaskraft
6K Followers 107 Following Co-founder @ https://t.co/Tc5E74e83I • Stanford PhD • Database Geek • Building https://t.co/HJhvPqxL2p
Mohit Mishra @chessMan786
36K Followers 413 Following Author of https://t.co/07NIwlZY84 (Order) https://t.co/CJs1Dxg7jN (5.5k) https://t.co/2kmwWcjfa6 (1.8k) https://t.co/D3vaX83t8e Support: https://t.co/jpgpYwWjrH
Japan Dev @jpn_dev
3K Followers 142 Following Hand-picked tech jobs at modern companies in Japan. (The ones you actually want). https://t.co/uiXoo0b442 Created by @_etdev. Japanese account 👉 @japandev_ja
Rohan Pandey @khoomeik
44K Followers 3K Following descending cross-entropy to ascend entropy @PeriodicLabs || prev research @OpenAI @CarnegieMellon '23
Tom Dörr @tom_doerr
222K Followers 3K Following Follow for posts about GitHub repos, DSPy, and agents Subscribe for top posts DM to share your AI project (Due to volume of DMs I'll prioritize subscribers)
Pranav Mehta @i_pranavmehta
31K Followers 12 Following senior software engineer- @mercor_ai | founder @acodedaily | Ex-@microsoft |@iitroorkee CS | CM @Codeforces | Natural athlete | Powerlifter | Educator | 🏔️
Aaron Francis @aarondfrancis
64K Followers 2K Following Sincere poster. No cynicism. Dad to two sets of twins! - VP Marketing & Community @laravel - Creator https://t.co/QG0tWQcm92 - @MostlyTechPod
aizk ✡️ @Aizkmusic
7K Followers 2K Following Follow for legal, medical, and financial advice. Views are my own. @featherlessai
subho ghosh @SubhoGhosh02
4K Followers 628 Following if it fits in registers it fits in my heart ml @NousResearch
xjdr @_xjdr
29K Followers 721 Following building AI that wont embarrass me in front of my own standards
sky @notsky
9K Followers 1K Following
Ivan Velichko @iximiuz
76K Followers 565 Following Software Engineer. Educator. Entrepreneur. Bootstrapping https://t.co/9b6sZ2UVQj - a learning-by-doing platform to master Linux, Containers, and Kubernetes 🚀
John Crickett @johncrickett
15K Followers 1K Following Helping software engineers become better software engineers by building projects. With or without AI.
Vipul Vaibhaw @vaibhaw_vipul
14K Followers 3K Following Founding Engineer @pre6ai. Building Physics Models. Open source ❤️. Math and Systems. Most posts are notes to myself.
merve @mervenoyann
94K Followers 6K Following open-sourceress at @huggingface 🧙🏻♀️ DM me for any feedback about HF 🤗
Vivek Galatage @vivekgalatage
22K Followers 1K Following browser baker • chromium contributor • enjoys compilers, systems, teaching • director of engineering: ai & systems @visteon • prev: founding eng @browsercompany
Nikita Lisitsa @lisyarus
21K Followers 541 Following I teach C++ & computer graphics and make games. Working on a village building game: https://t.co/skTGGgH0Ay Check out my cozy traffic sim: https://t.co/7Dzc83p6uq He/him







































