Skip to content

jax_intro: restore English changes a hand-merged sync dropped (#527, #530) - #155

Open
quantecon-services wants to merge 1 commit into
mainfrom
claude/jax-intro-resync
Open

quantecon-services wants to merge 1 commit into
mainfrom
claude/jax-intro-resync

Conversation

@quantecon-services

Copy link
Copy Markdown
Collaborator

What

Restores English changes to jax_intro.md that a hand-merged sync in April 2026 dropped. The state file already records English d08a73d (#533), so translate status shows this lecture as in sync; the content shows it is not.

Found in the translation audit of 2026-12-01 (silent-drift task list, P2).

Changes

  • NumPy-replacement intro (Improve jax_intro lecture lecture-python-programming#527): the "Above we import jax.numpy as jnp" framing moves under 相似之处, matching English; the stray sentence after the imports is removed
  • 速度!: adds the "JAX is faster — sometimes much faster" lead-in, and the # NumPy array comment on x
  • Timing cells (#530): four cells use y.block_until_ready() instead of jax.block_until_ready(y);; the note is the shorter English version (the "remove this line for non-timing code" sentence is gone in English)
  • 不可变性: the two-item reason list and its {ref} to 函数式编程, plus the (jax_func)= label it targets
  • 变通方法: drops "我们注意到", as English dropped "We note that"
  • Heading map: adds Automatic differentiation: a preview: 自动微分:预览 for the section restored in Review: jax_intro.md #134

Checks

  • Code cells: 66 of 67 identical to English; the one difference is the localized figure title in the PRNG tree (PRNG 密钥拆分树)
  • Labels and {ref} targets match English; 7 top-level sections on both sides
  • No state-file change: source-sha already points at the latest English commit for this lecture

A Chinese-speaking reviewer should check the new and changed sentences.


Generated by Claude Code

The state file records English d08a73d (#533), but parts of #527 and
#530 never reached the translation:

- NumPy-replacement intro: the "Above we import jax.numpy as jnp"
  framing moves into Similarities (#527)
- Speed!: the "JAX is faster" lead-in and the NumPy-array comment
- Timing cells use y.block_until_ready(), and the note is the shorter
  English version (#530)
- Immutability: the two-item list and its {ref} to Functional
  Programming, with the (jax_func)= label it points at
- A Workaround: drop the "we note that" opener, as English did
- heading map: add "Automatic differentiation: a preview" for the
  section zh-cn#134 restores

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HvzxXkVSwin4bbMYyxt4B9

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants