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

[RFC] Orthogonality between signed/unsigned and `Fixed`/`Normed`

Abierto
#199 0 comentarios 2 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
45/100
Tipo de issue
Documentación
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
julia

Línea de trabajo

Empieza leyendo README.md y CONTRIBUTING.md junto con src/FixedPointNumbers.jl, fixed.jl y normed.jl para entender las directrices actuales y la división del código. Se considerará terminado cuando se documente la posible relación futura entre el signo y el escalado, y se aclare qué código pertenece a los archivos comunes o específicos de cada tipo.

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

Descripción

doc

As commented in https://github.com/JuliaMath/FixedPointNumbers.jl/pull/143#issuecomment-559182211, Fixed/Normed (i.e. the difference in scaling factor) and signed/unsigned are orthogonal concepts.

Type (scaling) Fixed (2^f) Normed (2^f-1)
signed ✔️ ❌ N/A
unsigned ❌ N/A ✔️

Historically, Fixed is signed and Normed is unsigned, but I think we should separate the two orthogonal concepts as much as possible.

I do not intend to support unsigned Fixed and signed Normed right now. However, I think that it is "safe" to describe in README.md that they may be supported in the future, because we have no systematic way to notify the downstream packages of the breaking changes to the existing Fixed and Normed.
(Whether relaxing is considered "safe" or "unsafe" depends on the point of view.)

At least I think it is worth writing that in CONTRIBUTING.md. It clarifies whether the code should be written in "src/FixedPointNumbers.jl", "fixed.jl" or "normed.jl". I think that the code which is not related to scaling factors should be written in "src/FixedPointNumbers.jl", i.e. should be commonized.

Lenguaje dominante
Julia
Estrellas
95
Forks
38
Merge medio
16 h 31 min
PR fusionados (30 d)
9

Preparar el entorno

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 JuliaMath/FixedPointNumbers.jl

Todos los issues de JuliaMath/FixedPointNumbers.jl

Issues similares

Más issues de Julia

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.