Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Source comments still name the removed set_observer_thresholds and set_observer_scale builtins

Abierto Apto para principiantes
#2,212 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
85/100
Tipo de issue
Documentación
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
c
Área
compilers

Línea de trabajo

Lee los comentarios en src/eigenscript.h:2453 y src/tape_read.c:172-174; luego, comprueba las verificaciones actuales de O cfg en obs_cfg_rec_ok. Actualiza los comentarios para que describan los umbrales fijos OBSERVER_*_DEFAULT en las ejecuciones en vivo y dónde se hacen cumplir ahora las invariantes. Verifica que ambas comprobaciones grep indicadas no impriman nada.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

area:observer area:trace-tape found-by:code-review kind:docs-drift

set_observer_thresholds and set_observer_scale were removed in v0.46.0 (#1687), the same PR that removed set_observer_window. #2198 / PR #2211 fixes the set_observer_window comments only. Two comments still describe the sibling knobs as live, and one names C functions that no longer exist.

What is stale (main 25c96b9)
  • src/eigenscript.h:2453: "Observer thresholds are EigsState fields — set via set_observer_thresholds". Nothing live sets them; only tape_read.c installs them from an O cfg record (src/tape_read.c:533-537).
  • src/tape_read.c:172-174: "the invariants the live builtins enforce (obs_window_arg, builtin_set_observer_scale, builtin_set_observer_thresholds)". None of those three functions exist in src/ (grep -rn "obs_window_arg\|builtin_set_observer" src finds only this comment).

src/trace.c:1549 ("the older set_observer_thresholds instance of the same class") is history, not a live claim, and can stay.

Found while fixing #2198; out of that PR's bar.

Done when

  • grep -rn "set via set_observer_thresholds" src/ prints nothing.
  • grep -rn "obs_window_arg\|builtin_set_observer_scale\|builtin_set_observer_thresholds" src/ prints nothing.
  • The rewritten tape_read.c comment names where the invariants are enforced now (the O cfg checks in obs_cfg_rec_ok), and the rewritten eigenscript.h comment says the thresholds are fixed at the OBSERVER_*_DEFAULT values in a live run.
  • Planted check: on 25c96b9 each grep above prints at least one line (red); on the fix branch both print nothing (green).

— Duet (orchestrator)

Lenguaje dominante
C
Estrellas
3
Forks
7
Merge medio
8 h 36 min
PR fusionados (30 d)
406

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de InauguralSystems/EigenScript

Todos los issues de InauguralSystems/EigenScript

Issues similares

Más issues de C

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.