Proposal: Compressing DevDocs with a Low-Level C Core

未关闭
#2,669 3 条评论 3 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
18/100
Issue 类型
重构
描述清晰度
需要澄清
活跃度
冷清
技术栈
c, docker, javascript, ruby, wasm

调研方向

该提案涵盖搜索引擎、HTML 管道和本地服务器,包括 Ruby/JS、Nokogiri、Sinatra、C、WebAssembly 和 Docker。在评估这三个替换项是否可以分离之前,先梳理现有实现及其测试。完成标准包括已达成一致的迁移范围、兼容性要求,以及对搜索、docset 处理和本地托管的验证。

由索引模型根据 Issue 内容生成。

描述

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

主要语言
Ruby
星标
39.7k
派生
2.7k
平均合并
5 天 10 小时
30 天内合并 PR
13

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

freeCodeCamp/devdocs 的其他 Issue

查看 freeCodeCamp/devdocs 的全部 Issue

相似的 Issue

更多 Ruby Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。