Avatar

JiaWeisi’s Blog Full-stack · AI · Indie dev notes

Short-form development notes: Next.js, React, Python, AI and large-language-model practice, plus indie-dev and engineering lessons.

About

Profile

Developer / Designer

Short-form development notes: Next.js, React, Python, AI and large-language-model practice, plus indie-dev and engineering lessons.

I am a senior student at Nanjing University of Aeronautics and Astronautics, majoring in AI. My interests span artificial intelligence, machine learning, with a keen emphasis on computer vision and natural language processing.

Contact

GitHub · Bilibili · Email — see the nav bar and footer links above.

More about me

Latest Posts

View all
·7869 words·16 min read

TLDR: After 2023, the narrative around AI online has taken on a peculiar binary structure. On one side, there's the AGI frenzy. Every new model release triggers a wave of posts counting down to the "extinction of human professions." OpenAI's launch events now carry the ritualistic weight of Apple's keynote back in the day, with onlookers holding their breath for those few benchmark numbers—as if the moment the curve bends toward the upper right, the AGI singularity arrives tomorrow. On the other side, there are reflections worth paying attention to. Andrej Karpathy recently mentioned on a podcast that he now uses AI-generated articles for initial screening—not to gather information, but to find the things that "haven't been written by AI yet." Gary Marcus has repeatedly discussed in public how "the average quality of AI-generated content is converging toward the mean."...

·591 words·2 min read

TLDR: 1. The world has already entered an era of oversupply, where distribution and marketing may matter far more than production. Driving traffic is what truly determines survival. 2. SEO is something where experience outweighs technique. The SEO tips written in books, spanning dozens of pages—internal links, DR, authority, long-...

·4963 words·11 min read

TLDR: This article delves into the technical differences between Flutter and React Native in terms of rendering mechanisms. It begins by outlining the similarities between the two in market presence and ecosystem, then provides a detailed analysis of their respective rendering principles. By comparing core concepts such as JSX/TSX, fiber nodes versus widgets and elements, it reveals the fundamental differences between React's reliance on Chrome for DOM operations and Flutter's self-built rendering engine. Additionally, it introduces optimization techniques to reduce the complexity of diff calculations for improved performance, and summarizes the scenarios best suited for each framework....

FlutterReact Native渲染原理JSX/tsxfiber nodewidgetelementrenderObjectdiff算法memoization技术(memo/useCallback/useMemo)自研渲染引擎
·1771 words·4 min read

TLDR: This article shares the author's new insights and lessons learned from independent product development, including an evaluation of Gemini's coding capabilities, the limitations of the web ecosystem, and the challenges of reusing ecosystems from interpreted languages. The article delves into how to reuse the ecosystem of interpreted languages in applications, and proposes three solutions: running on the backend, integrating with a web frontend, and building as a desktop or mobile application....

独立产品开发Gemini写代码web生态局限性解释型语言生态复用后端跑web前端集成桌面端或移动端开发
·4175 words·9 min read

TLDR: This article systematically elaborates on the full-chain practical strategies for independent developers, from product selection to launch, covering differentiated product selection principles (blowout strategies, 3-point product teardown), geographic arbitrage market selection, minimalist MVP development principles (core features first, code freeze), ROI-driven marketing channels (Reddit/Hacker News priority), algorithm countermeasures (golden time windows, stealth verification), trust engineering construction (visual trust verification, lowering experience barriers), passive traffic layout (Programmatic SEO/AIEO optimization), and asset-oriented operational thinking. It emphasizes that developers need to break through a technology-centric mindset and establish a resource allocation model of "70% marketing + 30% development."...

降维打击策略地理套利极简MVP原则代码冻结ROI驱动营销算法对抗机制隐身验证检测Trust EngineeringProgrammatic SEOAIEO优化
·4069 words·9 min read

TLDR: This article introduces four common methods for independent developers to select products. The first method is to search the Chrome extension store for plugins with many negative reviews and develop an improved version. The second method is to use SEO traffic interception, targeting specific audiences by developing simplified versions of products from major companies. The third method is to observe outsourcing needs on Upwork or Fiverr and turn these needs into SaaS products. The fourth method is to check sold SaaS projects on Acquire.com to validate market demand and choose a category for development....

Chrome插件差评截流法替代品SEO截流法Upwork/Fiverr人肉自动化法Acquire.com抄作业法
·2327 words·5 min read

TLDR: This article explores whether mixed precision training (AMP) truly reduces GPU memory usage. By analyzing the storage requirements of model parameters, gradients, optimizer states, and activations under FP32 and FP16, it points out that although forward inference halves memory usage, backpropagation requires converting back to FP32 due to numerical range limitations and retaining a copy of the original FP32 model, resulting in total memory usage becoming 1.5 times the original. However, in actual training, gradients and activations are the primary overhead, and comprehensive calculations show that mixed precision can still reduce overall memory consumption (e.g., a 7B model dropping from 112G to 84G) while also improving computational speed....

混合精度训练AMPFP32/FP16转换显存优化梯度溢出优化器动量激活值存储反向传播精度损失双份模型参数保存
·1922 words·4 min read

TLDR: This article provides an in-depth analysis of Vercel's Fluid computing technology, which addresses the cold start problem in traditional Serverless architectures through a mechanism similar to an operating system's thread pool. Its core lies in reusing already-created Node.js instances rather than frequently creating new ones, enabling features such as real-time scaling, resource pre-allocation, and pay-per-actual-usage billing, while also supporting advanced capabilities like streaming and post-response processing. The article points out that this design pattern closely resembles the resource scheduling strategies of computer operating systems, reflecting the innovative application of underlying systems engineering principles in the cloud-native domain....

VercelFluid ComputeServerless冷启动线程池类比Node.js实例复用实时扩展性预热机制按需计费模型流式传输处理
·3616 words·8 min read

TLDR: This article provides a detailed explanation of how to implement search functionality in Next.js, covering both frontend debounce design and backend database query strategies. On the frontend, a custom hook `useDebounce` is used to delay triggering search requests based on input, preventing excessive requests. On the backend, Prisma is initially used to perform fuzzy matching queries directly against the database, with a note that this can be extended to Elasticsearch in the future to handle high-concurrency scenarios....

Next.js实时搜索防抖函数useEffectsetTimeoutPrisma ORMLIKE模糊查询case-insensitive模式Elasticsearch迁移策略
·2738 words·6 min read

TLDR: This article provides a detailed introduction to the caching mechanisms supported by Next.js at different levels, including response header control at the API level, caching strategies for the Fetch function, function-level caching implemented via the Cache function, page-level ISR caching, and cross-instance KV distributed caching. It focuses on analyzing the technical implementation methods and applicable scenarios of each layer, such as setting browser/CDN cache freshness through the Cache-Control header, the force-cache forced edge caching feature, and key technical points like the react.cache higher-order function for optimizing repeated computation logic....

Next.js服务端渲染(SSR)边缘计算(Edge Computing)ISR静态生成Cache-Control标头stale-while-revalidate双缓策略fetch请求级缓存react.cache高阶组件Vercel平台架构Serverless冷启动优化KV存储系统
·5643 words·12 min read

TLDR: This article uses the Mario game as an example to provide an accessible introduction to the foundational theories of reinforcement learning (RL), including core concepts such as policy functions, value functions, and advantage functions. It elaborates in detail on the application of Monte Carlo methods and temporal difference methods in policy optimization, and explores how the PPO algorithm addresses the issue of unstable training....

策略函数价值函数优势函数蒙特卡洛方法时间差分方法PPO算法
·6978 words·15 min read

TLDR: This article explores the practical integration of the Rust language with AI-assisted programming, analyzing AI's performance at different stages of development through the creation of a Bilibili downloader project. In the early stages, AI efficiently resolved syntax and basic logic issues, but as code complexity increased, problems emerged such as insufficient context understanding, reinventing the wheel, and patch-style coding. The article evaluates Rust's learning curve, the value of AI tools, and the evolving role of software engineers, noting that current AI is better suited for handling well-defined and limited task scopes....

Rust所有权系统异步操作错误处理AI上下文窗口限制补丁式代码生成设计模式可扩展性并发下载优化策略B站API逆向工程

Essays

View all

第一,有明确的路径可以做世界第一;第二,天花板足够高,它可以现在市场规模不大;第三,需要一定门槛。 ----拓竹科技

7 months ago

肚子又开始涨了,还是不能吃多,管住嘴!

7 months ago

如果从商业的角度上来说,创业是高风险,九死一生,成功率极低,打工就是低风险偏好,足够温饱的概率极高。 那么从技术的角度上来说,自研是高风险,暴死/不被用户接受/落后扫进垃圾堆的概率极高,那么套壳,换皮,组装已有方案当个组装厂就是成功率更高,风险更低,更保险,更快速上线,打正ROI的策略。

7 months ago

肚子胀痛了很久,感觉现在胃口变小了,不能一次性吃完一整碗兰州牛肉炒饭,甚至米村拌饭都能肚子涨好久,应该袁记饺子刚刚好不至于胃胀

7 months ago

又被fumadocs浪费半天时间,由于fumadocs的问题,导致本地编译成功,但是vercel死活报错。最后终于检测到应该是vercel上面的mdx编译器存在问题,需要在实验性功能区禁止,非常隐蔽的bug。这也是当时ant cover项目和bili cover项目部署时候遇到的问题

7 months ago