The author learned to write Python code with strict type hints and clear interfaces after using Rust, which prevents many errors at compile time. They suggest using classes, type hints, and construction methods to make Python code safer and easier to maintain. The post also highlights how Rust features like algebraic data types and safe mutexes inspire better Python programming patterns.
To Be Read
Vol. in fieri Tuesday, 17 November 2026Continuations represent the control flow of a program at any point in time. They allow you to "jump" to different parts of your code. Understanding continuations can help you grasp how control flow works in programming.
Solaris uses turnstiles to manage blocking locks efficiently and handle priority inversion problems. Turnstiles track waiting threads and help boost priorities along chains of lock owners. This system improves latency for high-priority tasks without making locks too large or complex.
The article explains how to build a test case generator that creates valid WebAssembly instructions and modules. It uses pairs of functions to check instruction validity and generate instructions in context. This approach helps find hidden bugs by testing beyond the parser stage.
Using unwrap() in Rust is okay for quick scripts or tests but not for real error handling in libraries or applications. Panics signal bugs and are not meant for regular error management. Good Rust code treats errors as values and avoids panicking except for unrecoverable bugs.
This guide compares fertility clinics in London using success rates, prices, and research activity. The best clinics, like King’s and CRGH, have above-average success and more experience. Overall, London clinics perform similarly to top clinics in Europe, offering good options for patients.
China became rich because it invested heavily in its people's health, education, and social modernization. India did not transform its society as deeply, leaving many workers less prepared for industrial growth. This human development gap helped China grow faster and become wealthier over time.
Kubernetes uses feedback loops to match the real state of a system to the desired state by continuously checking and fixing problems. Controllers run reconcile loops that read the current state, compare it to the desired state, and take steps to correct any differences. This design allows independent components to work together reliably, even if parts fail or restart.
Harvard and other schools are teaching OCaml to more students, inspired in part by popular culture. The article shares programming tips to write safer and clearer OCaml code. Jane Street helped popularize OCaml in the industry starting in 2002.
The author shares their journey of learning programming, starting from basic web tutorials to more advanced concepts in software engineering. They gained valuable experience through various courses and jobs, where they learned to debug code, work with open source software, and improve their programming skills. Mentorship and hands-on projects played a significant role in their development as a programmer.
Japanese companies do many different things and do them very well because of their unique structure and long-term relationships. They focus on employee stability, cooperation, and gradual improvement rather than quick profits or individual performance. This approach helps them excel in certain areas but makes sharp changes and profit-driven methods difficult.
Memory safety helps prevent serious software bugs like buffer overflows and improves security. Rust is a popular language that offers memory safety by default, encouraging safer coding practices. While governments are not banning unsafe languages like C or C++, moving to memory-safe languages is a smart and cost-effective way to make software more secure.
Mammography gives clear pictures but often misses dangerous tumors or finds slow-growing ones that may never cause harm. Radiologists frequently disagree on what they see, so many results fall into a gray area. Despite limits and controversy, mammograms still catch some cancers earlier than we otherwise would.
Oil refineries turn crude oil into useful products like gasoline and diesel by separating and changing its chemical parts. They use processes like distillation and cracking to make valuable fuels from heavy oil. Refineries are huge, expensive, and work nonstop to meet the world's huge demand for petroleum.
The article elaborates on the concept of living in a dream mashup of current situations and past emotional meanings, likening it to dreaming of being at school on a boat. It discusses emotional flashbacks, transformational vs. counteractive approaches, and ways to navigate emotional responses in oneself and others. The importance of understanding emotional cognition and trust-building is highlighted.
Typestate is a compile-time technique that checks if a program uses data in a meaningful way, preventing errors before running. It helps compilers manage resources safely and improve program speed by avoiding bad execution paths. This method makes programs more reliable and easier to test by enforcing correct usage of data states.
The book *Made in India* tells the story of Desh Bandhu Gupta, founder of Lupin, and his role in building India’s global pharmaceutical industry. It shows both his personal struggles and the company’s growth into a billion-dollar firm making important medicines like anti-TB drugs. The book also highlights the challenges and successes of Indian pharma, while noting the support from family and the government’s role.
The author built pi, a minimal, opinionated coding agent ecosystem (pi-ai, pi-agent-core, pi-tui, pi-coding-agent) that focuses on simple, controllable tooling and session formats. It supports multi-provider LLMs, tool execution, session management, cost/token tracking, and a lightweight terminal UI. The goal is a practical, transparent agent workflow that lets the user stay in control.
A standout engineer named Sam succeeds by breaking down tasks clearly and communicating well with stakeholders. They build strong relationships, learn from others, and focus on quality work beyond their expertise. Sam also understands office politics and uses referrals instead of typical job applications to advance their career.
Your work shapes who you become, often in ways you don’t notice. Choose a career and community that build the values and habits you want to grow. Remember, your job is just one part of a meaningful life.
The text discusses using 'index-handles' instead of raw or smart pointers for memory management in C and C++. It suggests centralizing memory management into systems, grouping items into arrays, and converting handles to pointers only when necessary. By following specific rules, such as not storing pointers and using handle-to-pointer conversion, memory safety and efficient memory usage can be maintained.
This paper presents a clear framework to understand and compare different build systems using Haskell code. It explains key design choices like task order and when to rebuild tasks. The authors model many real-world build systems and discuss how they handle dependencies and correctness.
Android 17’s MessageQueue was redesigned to remove locks and improve performance using a new data structure called DeliQueue. DeliQueue uses a lock-free stack and a single-threaded min-heap to handle messages efficiently without contention. This design reduces lock contention, speeding up message insertion and improving app responsiveness.
The chapter introduces phantom types as a way to embed a programming language in Haskell. Phantom types are used to parameterize the Term data type so that it only contains terms of the appropriate type. This representation meets the typing requirement and allows for tag-free interpretation. The chapter also explores the usefulness and beauty of phantom types in generic functions, such as compression and comparison functions. The chapter concludes with an example of representing simply typed lambda terms using higher-order abstract syntax.
-
Capital in the 22nd Century
, 2 highlightsIn his 2013 Capital in the Twenty-first Century, the socialist economist Thomas Piketty argued that, absent strong redistribution, economic inequality tends to increase indefinitely through the generations—at least until shocks, like large wars or prodigal sons, reset the clock. This is because the rich tend to save more than the poor and because they can get higher returns on their investments.
As many noted at the time, this is probably an incorrect account of the past. Labor and capital complement each other. Wealthy people can keep accumulating capital, but hammers grow less valuable when there aren’t enough hands to use all of them, and hands grow more valuable when hammers are plentiful. Capital accumulation thus lowers interest rates (aka income per unit of capital) and raises wages (income per unit of labor). This effect has tended to be strong enough that, though inequality may have grown for other reasons, inequality from capital accumulation alone has been self-correcting.
it would not directly produce a lot of income inequality unless the “capital share”—the share of national income coming in the form of interest on investments, as opposed to wages—were high.
?t=1776176956077