• 请不要在回答技术问题时复制粘贴 AI 生成的内容
dai875939260
V2EX  ›  程序员

deno 1.6 可以编译成可执行文件了

  •  1
     
  •   dai875939260 · Dec 10, 2020 · 3808 views
    This topic created in 1981 days ago, the information mentioned may be changed or developed.

    Deno 1.6 Release Notes

    可惜打出来的文件太大了,一个 hello world 48M

    14 replies    2020-12-11 14:18:03 +08:00
    Carseason
        1
    Carseason  
       Dec 10, 2020
    这个可以有。有人试过压缩后体积能小多少吗?
    keepeye
        2
    keepeye  
       Dec 10, 2020
    编译出来的东西自带运行时吧
    dai875939260
        3
    dai875939260  
    OP
       Dec 10, 2020
    @keepeye #2 是的
    dai875939260
        4
    dai875939260  
    OP
       Dec 10, 2020
    @Carseason #1 用 upx 压缩完是 18M,但是发现不能用,不知道要设置什么参数,
    `zsh: killed ./hello.pack`
    anUglyDog
        5
    anUglyDog  
       Dec 10, 2020
    好像这种功能没啥卵用,因为没有 GUI 就用不了。难道最后再做一个 Electron 吗
    dai875939260
        6
    dai875939260  
    OP
       Dec 10, 2020
    @anUglyDog #5 针对你的想法我搜了一下,发现 webview 这个东西 [Making Desktop GUI Applications using Deno Webview
    ]( https://denotutorials.net/making-desktop-gui-applications-using-deno-webview.html#packaging-the-webview-application)
    Carseason
        7
    Carseason  
       Dec 10, 2020
    @dai875939260 解决这些问题我就不用折腾 merlin 的 nodejs 了
    magicdawn
        8
    magicdawn  
       Dec 10, 2020
    有用, 得做一些 node 没有的东西, 否则仅凭现有的一些功能 node 也能做到, 生态更好.
    Rorysky
        9
    Rorysky  
       Dec 10, 2020
    有人科普下 deno 项目的设计目标是什么?
    CodeCodeStudy
        10
    CodeCodeStudy  
       Dec 11, 2020
    @Rorysky 创始人觉得 Node 不好,所以另外搞了个 Deno 。Deno 可以直接运行 TypeScript 。
    chaogg
        11
    chaogg  
       Dec 11, 2020
    @CodeCodeStudy 其实还是转成 js 再运行
    CodeCodeStudy
        12
    CodeCodeStudy  
       Dec 11, 2020
    @chaogg 官网上写的是“A secure runtime for JavaScript and TypeScript.” , “Supports TypeScript out of the box”
    chaogg
        13
    chaogg  
       Dec 11, 2020
    @CodeCodeStudy 开箱即用,它帮你转,不用你动手
    biguokang
        14
    biguokang  
       Dec 11, 2020
    怕不是和 go 一样,把运行时给打包进去了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3357 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 49ms · UTC 12:41 · PVG 20:41 · LAX 05:41 · JFK 08:41
    ♥ Do have faith in what you're doing.