pursuer 最近的时间轴更新
pursuer's repos on GitHub
C · 20 人关注
pwart
A lightweight WebAssembly JIT compiler and runtime , powered by sljit. PR and issue are welcome.
C · 4 人关注
tinycc-min
A branch fork from TinyCC(https://repo.or.cz/tinycc.git) and remove unnecessary feature.
C++ · 1 人关注
avian
Avian is a lightweight virtual machine and class library designed to provide a useful subset of Java's (JVM) features, suitable for building self-contained applications.
C · 1 人关注
libffi
libffi with cmake build system ,fork from https://github.com/am11/libffi/tree/feature/cmake-build-configs
C++ · 1 人关注
PxpRpc
a very tiny rpc library aim to intercommunicate and interchange data cross platforms and languages(c,java,python,typescript(javascript),c#) with high performance and little load.
GLSL · 0 人关注
GLSLSample
Note the glsl usage
Java · 0 人关注
jgit
Pure java implementation of Git used by EGit(fork of https://git.eclipse.org/r/jgit/jgit.git, but no history commit,)
JavaScript · 0 人关注
Js2Py
JavaScript to Python Translator & JavaScript interpreter written in 100% pure Python🚀 Try it online:
0 人关注
libffi-forked
A portable foreign-function interface library.
C · 0 人关注
libuv-patched
libuv patched to support for android API 21 , and other old os for compatibility.
0 人关注
node4android-patch
patch node.js to compile android release
TypeScript · 0 人关注
partic2-iamdee
Small and extensible AMD loader. Branch of https://github.com/grassator/iamdee
TypeScript · 0 人关注
protask
Generator based task library.
Python · 0 人关注
PursuerJavaBridgeGen
This is a code generator to generate C jni glue code according to the java files.
TypeScript · 0 人关注
pxprpc4vscode-server
TypeScript · 0 人关注
pxseed-CorePackages
"pxseed" is a package manager manage javascript/typescript code and assets for browser ,node(server) and txiki.js by using AMD loader.
JavaScript · 0 人关注
pxseed-sample-1
Python · 0 人关注
python-mingw-patch
patch the python on windows to let the python support compile native c/c++ code with MinGW
Python · 0 人关注
remotepyexecutor
"remotepyexecutor" is a python module to execute python source code on remote host with TCP connection.
C · 0 人关注
simple-memory-allocator
Implement memory allocator function(like malloc realloc free etc.) on a flat memory space
C · 0 人关注
sljit
Platform independent low-level JIT compiler
C · 0 人关注
tbox-build-tools
Some tbox build tools(extract from xmake) can help you build tbox where xmake is not installed
C · 0 人关注
tinycc
Unofficial mirror of mob development branch
C · 0 人关注
tinyjit
[deprecated]A jit libraryextract and enhance from the tinycc compiler backend.
C++ · 0 人关注
VideoCaptureLibrary
Cross-platform library for video capture device
Java · 0 人关注
xplatj1
a trial project aim to make a cross-platform layer (deprecated, see xplatj2)
C · 0 人关注
xplatj2
a trial project aim to make a cross-platform layer
pursuer

pursuer

V2EX 第 358584 号会员,加入于 2018-10-25 15:17:15 +08:00
pursuer 最近回复了
@Seanfuck service worker 不能跨域
从 LLVM 出现之后,大部分语言中间语言都用 LLVM IR 了,先编译成另一个语言再编译要解析代码两次浪费时间,以前还没有 LLVM ,没有标准的中间表示所以会选 C/C++,这样支持的平台比较多。
最重要的是生态,造轮子大部分都是浪费时间,综合来看现在是 JS/TS(前端 Web 生态唯一选择,强大的动态和调试能力) 和 C++(Linux 和 Windows 等平台的 API 原生支持以及跨平台库支持(libuv)),然后 Android 上需要补充一个 Java ,基本只做 binding 。

本来想看看 Zig 来代替 C++的,毕竟 c++不用协程,写异步以及内存管理真的很麻烦。但转念一想用的不多还是算了

@w568w
c++生态还不错,但包管理就不行,当然这也没办法,毕竟要面对的相当广泛的平台。要是以后 WASM 成为 C++的"JVM"说不定能有新突破?
另外 C 互交互里 ABI 不兼容是个巨大的坑,所以我现在跨语言交互尽可能优选 RPC 了
@RedNax 走 wasm 是会有序列化性能损耗的。而且 wasm 生态还有个 assemblyscrip 更是和 TS 十分接近的写法,移植不是更容易?话说回来这些写惯 TS 的这些开发者能忍得了 Go 的拉胯的类型系统和类型推断能力也是神人了。
把 typescript 里的 sync 调用改成 async 的 issue( https://github.com/microsoft/TypeScript/issues/1857) 挂着没改,整了个 Go 的,给我气笑了。真要把这个作为 TS 后继版本,那些使用了 typescript 的 API/transformer 的 JS/TS 代码怎么办。我需要性能的时候我直接 transpile 忽略类型检查不就行了,真的是没活可以咬打火机。
39 天前
回复了 mizuki9 创建的主题 程序员 个人猜想 WebAssembly 的未来
之前写过一个 WebAssembly 的 JIT 编译运行时
https://github.com/partic2/pwart
但是有点懒得继续跟进新特性了,后面接着加复杂度那我不如拿 TCC 来改个 C 的运行时,可能还简单一点。
43 天前
回复了 fyxtc 创建的主题 Android [安卓开发] 你们的 minSdkVersion 都设置为多少?
21 ,有一些 PDA 设备版本比较早。有的机顶盒设备甚至 4.4 的都有。。对我来说 21 最大问题是 libuv 需要 24 ,所以我 patch 了一个支持到 21 的版本。其他的直接 webview 糊,webview 如果用 X5 的话,能到 Chromium89 ,基本够用,不知道 geckoview 能到哪个版本。反正不管哪个 SDK 版本都觉得原生 API 既碎片化而且太难用了,不怎么想在上面写复杂逻辑。
c/c++的 ABI 和版本问题一直存在,所以微软搞了 COM 。同时依赖不同版本对于很多语言/平台都是比较麻烦的问题,只能指望开发人员做好兼容处理。

“拓展一下,如果我要写一个 C++程序也用到这个 otherlib 库,但同时又有一个依赖需要高版本 libcrypto.so ,那我是不是就没办法编译了?”
静态链接并做符号隔离(RTLD_LOCAL)可能可以解决,但如果可能,我觉得还是做成 RPC 的调用方式会简单一点。
50 天前
回复了 llej 创建的主题 程序员 对于依赖注入的思考-二
关于 CLS ,之前我做过一个尝试 https://github.com/partic2/protask

如果是通过 babel 或者 typescript 将 await 降级为生成器的话是可以实现一部分,但原生 Promise 会有影响。原生 await 则完全不行,相关讨论在这里
https://v2ex.com/t/1081474#reply29
我没看过 zone.js 的实现不确定是否有类似的地方。

随后我把上面的 protask 库改回了生成器的模式。但通过代码编译自动添加 await hook 还是可以实现类似 CLS 效果的。并且不会影响原生创建的 Promise.
55 天前
回复了 pureGirl 创建的主题 程序员 Python 中线程和协程的区别是什么
协程的切出点是可以确认的,所以考虑 data race 这类问题时会简单很多,协程的栈(当然我是指把闭包变量当做等价的栈)通常比线程小而且更加灵活
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3585 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 20ms · UTC 00:06 · PVG 08:06 · LAX 17:06 · JFK 20:06
Developed with CodeLauncher
♥ Do have faith in what you're doing.