跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 程序设计语言

arXiv:2509.07551 (cs)
[提交于 2025年9月9日]

标题:Fast and Extensible Hybrid Embeddings with Micros

作者:Sean Bocirnea, William J. Bowman
查看论文《Fast and Extensible Hybrid Embeddings with Micros》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Macro embedding is a popular approach to defining extensible shallow embeddings of object languages in Scheme like host languages. While macro embedding has even been shown to enable implementing extensible typed languages in systems like Racket, it comes at a cost: compile-time performance. In this paper, we revisit micros - syntax to intermediate representation (IR) transformers, rather than source syntax to source syntax transformers (macros). Micro embedding enables stopping at an IR, producing a deep embedding and enabling high performance compile-time functions over an efficient IR, before shallowly embedding the IR back into source syntax. Combining micros with several design patterns to enable the IR and functions over it to be extensible, we achieve extensible hybrid embedding of statically typed languages with significantly improved compile-time compared to macro-embedding approaches. We describe our design patterns and propose new abstractions packaging these patterns.
评论: 13 pages
主题: 程序设计语言 (cs.PL)
引用方式: arXiv:2509.07551 [cs.PL]
  (或者 arXiv:2509.07551v1 [cs.PL] 对于此版本)
  https://doi.org/10.48550/arXiv.2509.07551
相关 DOI: https://doi.org/10.1145/3759537.3762696

提交历史

来自:Sean Bocirnea
[v1] 2025年9月9日 星期二 09:41:20 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.PL
< 上一篇   |   下一篇 >
最新 | 近期 | 2025-09
切换浏览方式为:
cs

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站