cib
skybison
cib | skybison | |
---|---|---|
5 | 6 | |
825 | 31 | |
- | - | |
0.0 | 6.4 | |
over 1 year ago | 2 months ago | |
C++ | C++ | |
- | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
cib
-
Compile and execute C++ in browser
[2]: https://tbfleming.github.io/cib/
-
Using Firecracker and Go to run short-lived, untrusted code execution jobs
Here are some more ports of LLVM and clang to the browser:
* https://github.com/kripken/llvm-js
* https://github.com/tbfleming/cib
* https://github.com/jprendes/emception
LLVM just does pure computation, really, so it's not hard to port to wasm - much simple than say Python (which has also been ported several times). The only challenges with LLVM are the build system (which has self-execution), working around some issues like clang wanting to open a subprocess, and adding some ifdefs.
-
Show HN: How to compile C/C++ for WASM, pure Clang, no libs, no framework
That is half of what I would need for a project, the other half being Clang itself running in the browser (to use for teaching), in theory there is [1] since many years, but in practice it never worked for me (even now I get "Runtime error: memory access out of bounds")
[1] https://tbfleming.github.io/cib/
-
Do any Browser Based C Static Code Analysis Tools Exist?
It seems that there's a project doing exactly that: https://github.com/tbfleming/cib
-
Rust programming concepts for JavaScript developers
It takes some work (mostly due to LLVM building code to run later in its build system as it goes), but it's very feasible. LLVM has been ported to Wasm (and before that to JS) many times, for example:
https://github.com/jprendes/emception (2021)
https://github.com/tbfleming/cib (2017)
https://github.com/kripken/llvm.js (2012)
I agree it would be great to see this repl running 100% in the browser!
skybison
-
Python cruising on back of c++
The parent comment is referring to the primary Python interpreter and runtime, CPython, not to libraries. There are of course other Python implementations, but [the only C++ one](https://github.com/tekknolagi/skybison appears to be unsupported.
-
Faster CPython at PyCon, part one
Kind of! In my fork I run microbenchmarks on each PR. So you can see on, for example, https://github.com/tekknolagi/skybison/pull/456, that the change had a 3.6% improvement on the compilation benchmark. If you expand further, you can see a comparison with CPython 3.8. Unfortunately Skybison is still on 3.8.
-
Another NaN-based tagging strategy for dynamic programming languages
This is also the pointer tagging scheme from the Ghuloum paper. I did not design it. Another tagging scheme I did not design is the Skybison scheme, which uses 0bXXX...XX0 to tag integers and 0bXXX...001 to tag heap pointers. This makes heap reads very easy (bias by -1 in addressing mode).
-
wrench (tiny, fast, c-like interpreter): created a webpage and now looking for benchmark code
Skybison is a Python interpreter and I'm curious what the results look like. We also have some benchmarks in benchmarks/benchmarks.
-
Using Firecracker and Go to run short-lived, untrusted code execution jobs
If you take a look at the Skybison Python runtime, I would be happy to chat and help you poke around integrating it: https://github.com/tekknolagi/skybison
-
November 2021 monthly "What are you working on?" thread
I am, in fits and starts, writing a bytecode optimizer for Skybison that takes advantage of type information.
What are some alternatives?
clang-wasm - How to build webassembly files with nothing other than standard Clang/llvm.
RustScript2 - RustScript is a functional scripting language with as much relation to Rust as Javascript has to Java.
wefx - Basic WASM graphics package to draw to an HTML Canvas using C. In the style of the gfx library
lockdown - Lockdown is a general-purpose programming language that combines the positive characteristics of both "strongly-typed" and "dynamic" languages, giving the developer the choice about when and how these should be used.
chip8-book - An introduction to Chip-8 emulation using Rust
aussieplusplus - Programming language from down under
howto-wasm-minimal - How to create minimal wasm module with plain C/C++
Generic-C-DataStructures - A repository for code I wrote while learning to implement generic data structures in C
wajic - WebAssembly JavaScript Interface Creator
tonic - An elegant language for script-kiddies and terminal squatters.
emception - Run Emscripten in the browser
gvisor - Application Kernel for Containers