2023.03.13 - TypeScript's Migration to Modules
Ping Xia
Title: 2023.03.13 – TypeScript’s Migration to Modules
Rspack & Google I/O 2023 & TypeScript features & Clever Code & 读毛主席 & 上止正
This Week’s Highlights
TypeScript’s Migration to Modules https://devblogs.microsoft.com/typescript/typescripts-migration-to-modules/
One of the most impactful things we’ve worked on in TypeScript 5.0 isn’t a feature, a bug fix, or a data‑structure optimization. Instead, it’s an infrastructure change. In TypeScript 5.0 we restructured our entire codebase to use ECMAScript modules and switched to a newer emit target.
React Is Holding Me Hostage https://emnudge.dev/blog/react-hostage
A love‑and‑hate relationship. My current job is React. My next job will be React. The one after that might as well be. tant pis. Related: Were React Hooks a Mistake?.
Rspack正式发布了! https://zhuanlan.zhihu.com/p/612776782
Rspack is a web‑build tool incubated by ByteDance’s Web Infra team, written in Rust. It offers high performance, Webpack‑compatible ecosystem support, strong customizability, and solves many problems we encountered in production, dramatically improving developers’ experience. To let more people join this fun project, we’ve open‑sourced Rspack—welcome to contribute.
Introducing ChatGPT and Whisper APIs https://openai.com/blog/introducing-chatgpt-and-whisper-apis
Developers can now integrate ChatGPT and Whisper models into their apps and products through our API. Related:
- Google: PaLM‑E: An embodied multimodal language model
- Google: OpenXLA is available now to accelerate and simplify machine learning
- Thoughts about the ethics of Large Language Models
- AI is making it easier to create more noise, when all I want is good search
Let’s go. It’s Google I/O 2023 https://developers.googleblog.com/2023/03/lets-go-its-google-io-2023.html
Google I/O is back and you’re invited to join us online May 10! Related: How we created this year’s I/O save‑the‑date puzzle.
Deep Dives
All JavaScript and TypeScript features of the last 3 years https://medium.com/@LinusSchlumberger/all-javascript-and-typescript-features-of-the-last-3-years-629c57e73e42
Not all of the following features will be relevant to you or even practical, but they should serve to show what’s possible and deepen your understanding of these languages.
How GitHub Docs’ new search works https://github.blog/2023-03-09-how-github-docs-new-search-works/
GitHub Docs recently switched its site‑search to Elasticsearch. Here’s how it was implemented.
Trigonometric functions in CSS https://web.dev/css-trig-functions/
Calculate sine, cosine, tangent, and more directly in CSS.
An end to typographic widows on the web https://clagnut.com/blog/2424/
Currently shipping in Chrome Canary and soon in other Blink‑based browsers (including Edge), a relatively new CSS declaration promises to virtually eliminate typographic widows.
Why You Should Consider Graphs For Your Next GraphQL Project https://www.smashingmagazine.com/2023/03/consider-graphs-graphql-project/
Let’s explore a solution for complex, highly connected datasets or future‑proofing against complicated database migrations and refactoring. Adam Cowley examines the “graph” behind GraphQL and shows why Neo4j could be the best fit for your next project.
Why Turborepo is Migrating From Go to Rust https://vercel.com/blog/turborepo-migration-go-rust
Turborepo is a high‑performance build system for JavaScript and TypeScript codebases. Inspired by tools like Buck and Bazel, we’re reimagining build systems to be accessible to everyone. As usage has grown and product needs have shifted, we’re beginning an incremental migration from Go to Rust in version 1.7. This article explains our motivations and the problems Rust solves for the team. Related: Nannou: A Creative Coding Framework for Rust.
Clever Code Considered Harmful https://www.joshwcomeau.com/career/clever-code-considered-harmful/
There’s something undeniably satisfying about devising clever solutions to hard problems—whether it’s using recursion instead of iteration or building elegant, cascading layers of abstraction that avoid duplication.
Fresh Finds
2023 Web Framework Performance Report Feathers 5: The API and Real‑Time App Framework Full‑Stack TypeScript with tRPC and React Ink 4.0: React for interactive command‑line apps
curl 25‑year online celebration Microsoft Designer – Stunning designs in a flash
Products & Others
The words you choose within an app are an essential part of its user experience https://developer.apple.com/design/human-interface-guidelines/foundations/writing/
The wording inside your app is a crucial component of its UX. Whether you’re crafting onboarding flows, alerts, or accessibility descriptions, designing with language in mind helps users get the most out of your app or game.
Reflecting on Software Development: Knowledge Flow https://ourai.ws/posts/the-effect-of-knowledge-on-efficiency-part-3/
A modern enterprise includes not only human employees but also “digital employees” that view all digital tools holistically. The most advanced of these are intelligent assistants; the smart workbench fulfills this role. Intelligent assistants effectively handle repetitive tasks, freeing humans to focus on creative work—shifting from physically intensive to mentally intensive labor. They act like a “thoughtful” personal secretary, so they should be seen as partners, not servants. Because of their nature, a requirement or idea can be quickly validated the moment it’s entered; after collective discussion and refinement, the final conclusion is stored as knowledge in the assistant and directly reflected in the final digital product.
Why Are Young People Falling in Love with the “Eight‑Section Brocade”? https://mp.weixin.qq.com/s/qRI63VdmCf946dzT5rOdyA https://www.zhihu.com/question/587875712
You might think the Eight‑Section Brocade, Five‑Animal Qigong, Tai Chi… are just exercises for seniors in parks. Yet on video platforms popular with youth, a State Sports Administration version of the Eight‑Section Brocade has amassed over 10 million views.
Reading Mao Zedong Healed Me https://mp.weixin.qq.com/s/N2tJX-23aYzACdCbbhh3sQ
Chairman Mao led his team to create Mao Zedong Thought amid hardship and brilliance, leaving a timeless arsenal of methodology and spiritual inspiration that still resonates with countless young people today. Recently a reader mentioned a spiritual‑distress issue, with suggestions ranging from brain‑science control to “master”‑level mysticism. My advice: read Mao Zedong’s quotations. Also see: My evolving understanding of Chairman Mao.
Three Characters from the I Ching Capture a Whole Life! https://mp.weixin.qq.com/s/eL3jK3ZUE_XRCMb7cT4Wdw
Living with hope, enthusiasm, and vigor is “上” (up). Knowing when to advance or retreat, being willing to let go, is “止” (stop). Maintaining an unshakable moral baseline in any circumstance—living with a clear conscience and integrity—is “正” (correct).
Originally written by Ping Xia (平侠) and published in Chinese on Web技术周刊 (Web Tech Weekly). Translated and adapted for DriftSeas with permission.
Sources & References
- [1]https://devblogs.microsoft.com/typescript/typescripts-migration-to-modules/
- [2]https://emnudge.dev/blog/react-hostage
- [3]Were React Hooks a Mistake?
- [4]https://zhuanlan.zhihu.com/p/612776782
- [5]https://openai.com/blog/introducing-chatgpt-and-whisper-apis
- [6]Google: PaLM‑E: An embodied multimodal language model
- [7]Google: OpenXLA is available now to accelerate and simplify machine learning
- [8]Thoughts about the ethics of Large Language Models
- [9]AI is making it easier to create more noise, when all I want is good search
- [10]https://developers.googleblog.com/2023/03/lets-go-its-google-io-2023.html
- [11]How we created this year’s I/O save‑the‑date puzzle
- [12]https://medium.com/@LinusSchlumberger/all-javascript-and-typescript-features-of-the-last-3-years-629c57e73e42