RFC: خارطة طريق الاستضافة الذاتيّة لمترجم ص + عزل الفجوات اللغويّة الحاجزة#52
Open
SalehKadah wants to merge 2 commits into
Open
RFC: خارطة طريق الاستضافة الذاتيّة لمترجم ص + عزل الفجوات اللغويّة الحاجزة#52SalehKadah wants to merge 2 commits into
SalehKadah wants to merge 2 commits into
Conversation
…حاجزة مقترح خارطة طريق مرحليّة (م٠–م٥) لإعادة كتابة مترجم ص (~٢٢٣ ألف سطر C++ فوق LLVM) بلغة ص نفسها. يعزل سبعة حواجز، كلٌّ مؤطَّر كوحدة عمل قابلة للإسناد: الخلفيّة (توصية: LLVM-IR نصّيّ لا libLLVM)، الأنواع الجبريّة الموسومة + نمط الباني، FFI بنيويّ، الوحدات على المقياس، إثبات المقياس، الإغلاقات، ومعالجة الأخطاء المسترجَعة. مبنيّ على فحص فعليّ للكود (كلّ ادّعاء بمسار+سطر) ومُراجَع نقديًّا. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…جة (الملحق أ) دمج المواصفة التفصيليّة الجاهزة للتنفيذ للحاجز ٢ (ADT + نمط الباني) في RFC القائم بدل تركه RFC فرعيًّا: صياغة، أثر على كلّ نظام متشابك (SoT/parser/AST/ semantic/مفسّر/مترجم/أخطاء)، تخطيط زمن-تشغيليّ وcodegen، خطّة مرحليّة (أ-م١..أ-م٥)، وأسئلة غير محسومة. مع تصحيح صياغة المطابقة في المثال التوجيهيّ من «=>» إلى «عندما <نمط>:» الفعليّة. مُراجَع بأميليا: تسمية رمز الخطأ بعُرف SEM_ (SEM_NON_EXHAUSTIVE_MATCH) + إعادة استعمال SEM_WRONG_ARG_COUNT القائم، وحسم دلالة «= N» كتثبيت للمُميِّز/الوسم. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ملخّص
RFC خارطة طريق إستراتيجيّ للاستضافة الذاتيّة (Self-Hosting): إعادة كتابة مترجم ص — المكتوب اليوم بـ C++ (~٢٢٣ ألف سطر فوق LLVM) — بلغة ص نفسها. لا يقترح تنفيذًا دفعةً واحدة (جهد سنوات)، بل يُثبّت المسار المرحليّ (م٠–م٥) ويعزل الفجوات اللغويّة الحاجزة كوحدات عمل قابلة للإسناد.
المنهج
مبنيّ على فحص فعليّ للكود (مترجم ص + نواة nahla)، كلّ ادّعاء مقرون بمسار ملفّ ورقم سطر، ومُراجَع نقديًّا مراجعةً صارمة (صُحِّح خطأ واقعيّ في تأطير حاجز الخلفيّة + عيوب دقّة قبل الفتح).
أبرز الاستنتاجات
nahla(~٨٫٧ ألف سطر ص خالصة، تُقلع على QEMU) برهان جاهزيّة ص للبرمجة النظاميّة.نفذ_امرقدرة قائمة مستقرّة).الحالة
مقترَح (PR مفتوح) — يأخذ رقمه الرسميّ عند الدمج.