constructor's recent timeline updates
constructor

constructor

V2EX member #301921, joined on 2018-03-21 00:00:13 +08:00
Today's activity rank 27163
join-lemmy.org 去中心化论坛是干什么的?
程序员  •  constructor  •  Nov 29, 2021  •  Lastly replied by grazie
1
“科技树”到底是啥东西
科技  •  constructor  •  Aug 8, 2020  •  Lastly replied by yoke123
18
https SSL 握手时间过长,大于 3 秒
程序员  •  constructor  •  May 19, 2020  •  Lastly replied by BitCert
14
9.9 元注册阿里云云上公司,很诱人
程序员  •  constructor  •  May 25, 2020  •  Lastly replied by devli
97
Redis 也被挖矿攻击!
程序员  •  constructor  •  Nov 29, 2019  •  Lastly replied by dnsaq
27
孙正义 1975 年就挣了 100 万美元!
程序员  •  constructor  •  Nov 4, 2019  •  Lastly replied by snw
49
双拼域名 pinshuang.com 才 3000 元
问与答  •  constructor  •  Jul 16, 2019  •  Lastly replied by PressOne
5
constructor's recent replies
Feb 4, 2022
Replied to a topic by drupal 时间 最近几年
看你名字想起了创业期间学习、使用 Drupal 7 、8 的日子。加油挺住!
前几天对 replit 运行代码研究过:使用 docker 运行单个代码文件或项目,
https://v2ex.com/t/821487#r_11174090
谢谢,我再仔细看看
3. replit 使用 docker 运行
如果#11 属实的话,好奇 replit 为什么放弃 LLVM 转 JavaScript 方式,不知#13 提到的 LLVM 转 wasm 效果如何。
@learningman 比如对于 nodejs ,wasm 能实现服务端 js 所有功能吗?
Dec 20, 2021
Replied to a topic by acainiao 游戏开发 我的游戏《魔旅之塔》将要发售了。
我是外行,发自内心祝福作者
研究了下 replit 代码执行过程:
1. 点击“执行”则发送 websocket 消息,然后返回执行结果
2. 代码执行是在服务端而不是浏览器
Dec 13, 2021
Replied to a topic by everlost 程序员 创业失败,在流浪
快点出书,希望有机会付费读读
Go 、Rust 都有 playground ,是否可以参考它们的思路,在服务端编译运行再把结果返回?
知乎一个回答说用到 LLVM
https://www.zhihu.com/question/20686820/answer/15891597


```
网页中运行代码是如何实现的?
楼主可以看看一个更强大的网站:repl.it

你会发现网页不仅仅可以运行 js ,还有 Python 、Ruby 、Basic 、Lua 、Scheme 等超过 15 种程序语言。其主要的机理是用到神器:LLVM 。 将目标语言转为 LLVM 的实现,再由 LLVM 转为 JavaScript 由浏览器执行。

LLVM (formerly Low Level Virtual Machine) is a compiler infrastructure written in C++; it is designed for compile-time, link-time, run-time, and "idle-time" optimization of programs written in arbitrary programming languages. Originally implemented for C and C++, the language-agnostic design (and the success) of LLVM has since spawned a wide variety of front ends: languages with compilers which use LLVM include Objective-C, Fortran, Ada, Haskell, Java bytecode, Python, Ruby, ActionScript, GLSL, D, and Rust.

直接摘录英文了,中文翻译没办法看。

LLVM 维基: http://en.wikipedia.org/wiki/LLVM

LLVM 官网: http://llvm.org/

Repl.it 中各语言的实现源码: https://github.com/replit
```
我已经醒了
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1007 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 23ms · UTC 19:18 · PVG 03:18 · LAX 12:18 · JFK 15:18
♥ Do have faith in what you're doing.