ATS3 Xanadu 发布
ATS3 Xanadu Released

原始链接: https://github.com/githwxi/XATSHOME

目前正在开发中的ATS第三版ATS3,可以在XATSHOME上学习和参与贡献。快速体验ATS3的方法是使用XATSHOME中的“contrib”目录,其中包含例如“contrib/githwxi”这样的示例。开始之前,请参考现有示例,在该目录下创建你自己的目录。 ATS3到JS的编译器位于`xassets/JS/xats2js/xats2js_jsemit01_dats_opt0.js`,可以使用Node.js调用。设置环境变量`XATSHOME`为XATSHOME目录的位置。在`contrib/githwxi`示例中,编译命令为:`node --stack-size=8000 ./../../xassets/JS/xats2js/xats2js_jsemit01_dats_opt1.js mycode.dats`。 生成的JavaScript代码需要`xassets/JS/xats2js/runtime/xats2js_js1emit.js`和`xassets/JS/xats2js/runtime/xats2js_prelude.js`的运行时支持才能运行。`contrib/githwxi/pground/proj001@250424/misc001/Makefile`提供了一个完整的编译过程示例。

Hacker News 最新 | 过去 | 评论 | 提问 | 展示 | 招聘 | 提交 登录 ATS3 Xanadu 发布 (github.com/githwxi) 7 分,来自 todsacerdoti,2 天前 | 隐藏 | 过去 | 收藏 | 1 条评论 throwaway81523 1 天前 [–] 很酷,更多信息请访问 ats-lang.org。 回复 加入我们,参加 6 月 16-17 日在旧金山举办的 AI 初创公司学校! 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系我们 搜索:
相关文章
  • 使用 SAT 求解器增强异星工厂 2024-02-15
  • WebAssembly 上的 Fortran 2024-04-07
  • (评论) 2025-03-28
  • (评论) 2025-03-29
  • (评论) 2025-02-21

  • 原文

    For hosting ATS3 and developing CodeDepot

    ATS3 refers to the third edition of ATS, which is currently being developed at ATS-Xanadu. XATSHOME is a place for one to learn ATS3 and also contribute to ATS3.

    A Quick Method for Trying ATS3

    There is a directory of the name 'contrib'. For now, there is 'contrib/githwxi'. You should set up a directory for your own use by following the example or from scratch. There will be other examples in this directory that you can follow in the future.

    The currently released ATS3-to-JS compiler is stored in the following BIG file:

    xassets/JS/xats2js/xats2js_jsemit01_dats_opt0.js
    

    which is bootstrapped from the source of compiler.

    Please set the envionment variable XATSHOME to the directory what XATSHOME is located. For instance, I set it to '~/Research/XATSHOME' on one of my computers (running bash):

    export XATSHOME=${HOME}/Research/XATSHOME
    

    In the directory 'contrib/githwxi', the compiler can be invoked as follows:

    node --stack-size=8000 \
      ./../../xassets/JS/xats2js/xats2js_jsemit01_dats_opt1.js mycode.dats
    

    where mycode.dats contains some ATS3 code to be compiled. The output of the compiler is JS code. However, the generated JS code needs some code in the following directory in order to run:

    ./../../xassets/JS/xats2js/runtime/xats2js_js1emit.js
    ./../../xassets/JS/xats2js/runtime/xats2js_prelude.js
    

    Please see the following Makefile for a complete example of compiling ATS3 to JS:

    contrib/githwxi/pground/proj001@250424/misc001/Makefile
    
    联系我们 contact @ memedata.com