Proposal: Compressing DevDocs with a Low-Level C Core

Abierto
#2,669 3 comentarios 3 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
18/100
Tipo de issue
Refactorización
Claridad
Necesita aclaración
Estado de actividad
Tranquilo
Stack tecnológico
c, docker, javascript, ruby, wasm

Línea de trabajo

La propuesta cubre el motor de búsqueda, la canalización HTML y el servidor local, incluidos Ruby/JS, Nokogiri, Sinatra, C, WebAssembly y Docker. Empieza por mapear las implementaciones existentes y sus pruebas antes de evaluar si los tres reemplazos pueden separarse. La tarea se considerará terminada cuando haya un alcance de migración acordado, requisitos de compatibilidad y validación para la búsqueda, el procesamiento de docsets y el hosting local.

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

Descripción

feature

I’ve been using DevDocs for years—it’s a lifesaver when AI fails on niche cases. I have a lot of respect for the work done so far, but the current Ruby/JS stack feels like it’s holding the project back from being as fast and straight-forward as it could be

What i am asking is if I can rewrite the core server and processing logic in C? Specifically:

  1. The Search Engine: Moving the indexing and fuzzy matching from JS to a C codebase that is compiled to a wasm module to kill the memory lag

  2. The HTML Pipeline: Replacing the Ruby/Nokogiri filters with a fast C-based parser for cleaning docsets

  3. The Local Server: Swapping the Ruby/Sinatra backend for a lightweight C static server to remove the heavy runtime requirements for local hosting

Due to such changes around 30% of the project may be reduced including the definite removal of something as useless as docker, which will be replaced with simple statically-compiled servers for each OS that people can just download (or build themselves since C is available on all platforms) and launch the server without any unnecessary dependencies

I'm happy to handle the heavy lifting and resolve any issues that pop up with this new setup. Are you guys open to adding this C-based paradigm to the official repo? I truly believe this would make the project much leaner and easier to maintain long-term

I truly hope that you will accept this crazy request to rebuild the core of the project in a language that most of your contributors probably dont use and I hope I get the chance to work with you on this

Lenguaje dominante
Ruby
Estrellas
39.7k
Forks
2.7k
Merge medio
5 d 10 h
PR fusionados (30 d)
13

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 freeCodeCamp/devdocs

Todos los issues de freeCodeCamp/devdocs

Issues similares

Más issues de Ruby

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.