constructor 最近的时间轴更新
constructor

constructor

V2EX 第 301921 号会员,加入于 2018-03-21 00:00:13 +08:00
程序员又在意淫:开发一个类似 replit.com 的在线编程平台
程序员  •  constructor  •  2021-12-24 18:48:25 PM  •  最后回复来自 constructor
19
join-lemmy.org 去中心化论坛是干什么的?
程序员  •  constructor  •  2021-11-29 09:37:49 AM  •  最后回复来自 grazie
1
“科技树”到底是啥东西
科技  •  constructor  •  2020-08-08 16:42:51 PM  •  最后回复来自 yoke123
18
https SSL 握手时间过长,大于 3 秒
程序员  •  constructor  •  2020-05-19 12:38:19 PM  •  最后回复来自 BitCert
14
9.9 元注册阿里云云上公司,很诱人
程序员  •  constructor  •  2020-05-25 15:44:53 PM  •  最后回复来自 devli
97
Redis 也被挖矿攻击!
程序员  •  constructor  •  2019-11-29 08:56:37 AM  •  最后回复来自 dnsaq
27
孙正义 1975 年就挣了 100 万美元!
程序员  •  constructor  •  2019-11-04 20:17:16 PM  •  最后回复来自 snw
49
双拼域名 pinshuang.com 才 3000 元
问与答  •  constructor  •  2019-07-16 21:14:48 PM  •  最后回复来自 PressOne
5
constructor 最近回复了
2022-02-04 10:32:21 +08:00
回复了 drupal 创建的主题 时间 最近几年
看你名字想起了创业期间学习、使用 Drupal 7 、8 的日子。加油挺住!
2022-01-06 13:49:12 +08:00
回复了 ericgui 创建的主题 程序员 leetcode 具体是怎么运行你的代码片段的?
前几天对 replit 运行代码研究过:使用 docker 运行单个代码文件或项目,
https://v2ex.com/t/821487#r_11174090
2021-12-24 18:48:25 +08:00
回复了 constructor 创建的主题 程序员 程序员又在意淫:开发一个类似 replit.com 的在线编程平台
谢谢,我再仔细看看
2021-12-24 09:31:33 +08:00
回复了 constructor 创建的主题 程序员 程序员又在意淫:开发一个类似 replit.com 的在线编程平台
3. replit 使用 docker 运行
如果#11 属实的话,好奇 replit 为什么放弃 LLVM 转 JavaScript 方式,不知#13 提到的 LLVM 转 wasm 效果如何。
@learningman 比如对于 nodejs ,wasm 能实现服务端 js 所有功能吗?
2021-12-20 22:21:38 +08:00
回复了 acainiao 创建的主题 游戏开发 我的游戏《魔旅之塔》将要发售了。
我是外行,发自内心祝福作者
2021-12-14 16:41:14 +08:00
回复了 constructor 创建的主题 程序员 程序员又在意淫:开发一个类似 replit.com 的在线编程平台
研究了下 replit 代码执行过程:
1. 点击“执行”则发送 websocket 消息,然后返回执行结果
2. 代码执行是在服务端而不是浏览器
2021-12-13 15:14:59 +08:00
回复了 everlost 创建的主题 程序员 创业失败,在流浪
快点出书,希望有机会付费读读
2021-12-12 22:09:57 +08:00
回复了 constructor 创建的主题 程序员 程序员又在意淫:开发一个类似 replit.com 的在线编程平台
Go 、Rust 都有 playground ,是否可以参考它们的思路,在服务端编译运行再把结果返回?
2021-12-11 21:57:46 +08:00
回复了 constructor 创建的主题 程序员 程序员又在意淫:开发一个类似 replit.com 的在线编程平台
知乎一个回答说用到 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
```
2021-12-11 15:09:57 +08:00
回复了 constructor 创建的主题 程序员 程序员又在意淫:开发一个类似 replit.com 的在线编程平台
我已经醒了
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   6055 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 22ms · UTC 02:10 · PVG 10:10 · LAX 19:10 · JFK 22:10
Developed with CodeLauncher
♥ Do have faith in what you're doing.