Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

try costack and linear type #1

Open
xieyuheng opened this issue Jan 6, 2025 · 2 comments
Open

try costack and linear type #1

xieyuheng opened this issue Jan 6, 2025 · 2 comments

Comments

@xieyuheng
Copy link
Member

xieyuheng commented Jan 6, 2025

x-forth -- 尝试实现 costack + linear simple type system

  • costack 可以简化类型检查

    • costack 的启发是,后缀表达式所操作的不一定是简单的 stack。
    • 尤其是 comptime 和 runtime 所操作的东西可以不一样。
  • linear 可以避免 GC

@xieyuheng xieyuheng moved this to In Progress in 蝉语 Jan 6, 2025
@xieyuheng xieyuheng added this to 蝉语 Jan 6, 2025
@xieyuheng
Copy link
Member Author

可以退一步不实现 linear type,并且加上 GC。

@xieyuheng
Copy link
Member Author

应该分出来两个项目:

  • co-forth -- costack + simple type + gc
  • linear-forth -- costack + linear type + no gc

其中 co-forth 我已经知道该如何实现了。
linear-forth 还有待研究。

分出去之后 x-forth 应该如何处理?
可能应该是:

  • x-forth -- untyped + no gc + scalabe-c style programming

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

No branches or pull requests

1 participant