11 2021 档案

摘要:(搬运自个人博客,原文:JIT Compilation:理解与实现) 本文主要介绍了基础编译技术中的 JIT Compilation 技术,以及如何使用 C++ 快速构建一个简单的 JIT Compiler。 大约是在一年以前,“写一篇文章介绍 JIT Compiler 是如何工作的”这个想法就一直 阅读全文
posted @ 2021-11-30 19:09 zJanly 阅读(389) 评论(0) 推荐(0) 编辑
摘要:https://www.jianshu.com/p/c7f7536e95c6 阅读全文
posted @ 2021-11-30 16:59 zJanly 阅读(38) 评论(0) 推荐(0) 编辑
摘要:https://eprint.iacr.org/2016/130.pdf https://eprint.iacr.org/2016/260.pdf https://eprint.iacr.org/2018/691.pdf 阅读全文
posted @ 2021-11-29 14:14 zJanly 阅读(28) 评论(0) 推荐(0) 编辑
摘要:https://tools.ietf.org/id/draft-yonezawa-pairing-friendly-curves-02.html https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-pairing-friendly-curves 阅读全文
posted @ 2021-11-26 16:02 zJanly 阅读(56) 评论(0) 推荐(0) 编辑
摘要:https://zhuanlan.zhihu.com/p/158586853 https://developer.mozilla.org/en-US/docs/WebAssembly/C_to_wasm git clone https://hub.fastgit.org/emscripten-cor 阅读全文
posted @ 2021-11-19 17:48 zJanly 阅读(111) 评论(0) 推荐(0) 编辑
摘要:int main() { printf("\033[0;31m"); printf("Hello, World!\n"); printf("\033[m"); printf("Hello, World2!\n"); return 0;} Pueblo/UE supports a wide range 阅读全文
posted @ 2021-11-19 15:20 zJanly 阅读(100) 评论(0) 推荐(0) 编辑
摘要:1. 概述 C++ 11 中的 Lambda 表达式用于定义并创建匿名的函数对象,以简化编程工作。Lambda 的语法形式如下: [函数对象参数] (操作符重载函数参数) mutable 或 exception 声明 -> 返回值类型 {函数体} 可以看到,Lambda 主要分为五个部分:[函数对象 阅读全文
posted @ 2021-11-18 18:50 zJanly 阅读(359) 评论(0) 推荐(0) 编辑
摘要:以前用过valgrind这个内存泄露检查工具,这个工具相对简单,对于一些复杂的内存泄露可能无法解析出来而且有一个问题就是只有检测的进程退出后才会输出内存泄露信息。 今天介绍的工具sanitize可以在检测到内存泄露第一时间立刻终止进程,并且它可以深入检测(随应用进程一起编译)。下面举例说明: #in 阅读全文
posted @ 2021-11-18 13:59 zJanly 阅读(437) 评论(0) 推荐(0) 编辑
摘要:#include "stdio.h"int main(){ void* k = &&aa; goto *k; aa: printf("ok\n"); return 1;} 阅读全文
posted @ 2021-11-17 15:57 zJanly 阅读(164) 评论(0) 推荐(0) 编辑
摘要:#include <iostream>#define F(a, b, c) f(c)void f(int a){ std::cout << a << std::endl;}int main() { F(9,,4); return 0;} 阅读全文
posted @ 2021-11-17 11:26 zJanly 阅读(420) 评论(0) 推荐(0) 编辑
摘要:https://github.com/japaric/rust-cross https://www.jianshu.com/p/c4d816e1442a 阅读全文
posted @ 2021-11-16 16:37 zJanly 阅读(36) 评论(0) 推荐(0) 编辑
摘要:https://docs.rs/wasi/0.9.0+wasi-snapshot-preview1/wasi/wasi_snapshot_preview1/index.htmlstatic NativeSymbol native_symbols_libc_wasi[] = { REG_NATIVE_ 阅读全文
posted @ 2021-11-15 15:10 zJanly 阅读(172) 评论(0) 推荐(0) 编辑
摘要:#include <iostream>#include "stdint.h"typedef struct { uint16_t param_count; uint16_t result_count; uint16_t param_cell_num; uint16_t ret_cell_num; /* 阅读全文
posted @ 2021-11-15 14:25 zJanly 阅读(86) 评论(0) 推荐(0) 编辑
摘要:github.com/stretchr/testify/assert 阅读全文
posted @ 2021-11-15 10:15 zJanly 阅读(25) 评论(0) 推荐(0) 编辑
摘要:https://hub.fastgit.org/bytecodealliance/wasm-micro-runtime wasmer wasmtime wasm3 阅读全文
posted @ 2021-11-12 15:27 zJanly 阅读(112) 评论(0) 推荐(0) 编辑
摘要:/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)" mac的brew修改国内源 清华源 阿里云 腾讯源 清华源(本人在用) # 替换brew.git cd "$(brew --r 阅读全文
posted @ 2021-11-12 14:16 zJanly 阅读(246) 评论(0) 推荐(0) 编辑
摘要:Mac下面除了用dmg、pkg来安装软件外,比较方便的还有用MacPorts来帮助你安装其他应用程序,跟BSD中的ports道理一样。MacPorts就像apt-get、yum一样,可以快速安装些软件。 1.安装包安装 https://www.macports.org/install.php 官网地 阅读全文
posted @ 2021-11-12 11:44 zJanly 阅读(145) 评论(0) 推荐(0) 编辑
摘要:git submodule update --init --recursive hub.fastgit.org git submodule add git@gitee.com:jalyzha/fp.git cat .gitmodules [submodule "fp"] path = fp url 阅读全文
posted @ 2021-11-12 11:41 zJanly 阅读(26) 评论(0) 推荐(0) 编辑
摘要:nm命令介绍的很多,但大多不介绍其函数符号标志的含义。最近在调试动态库时常用到,其中用的最多的用法:nm -A * |grep “aaa” | c++filt // -A 为了显示文件, c++filt转换为可读风格,好像有个参数也能实现类似功能 其他内容整理如下(原作者未知): nm用于列出目标文 阅读全文
posted @ 2021-11-11 15:52 zJanly 阅读(2467) 评论(0) 推荐(0) 编辑
摘要:cargo设置国内源 cargo的依赖库的默认源用的是https://crates.io/,但国内很多网络访问很慢 像python的pip和php的composer以及go都有国内的代理或镜像 rust国内也有镜像源,中国科大的 设置cargo的国内镜像源 在~/.cargo/目录下,建一个conf 阅读全文
posted @ 2021-11-09 15:24 zJanly 阅读(318) 评论(0) 推荐(0) 编辑
摘要:https://github.com/netty/netty 阅读全文
posted @ 2021-11-09 11:14 zJanly 阅读(18) 评论(0) 推荐(0) 编辑
摘要:https://github.com/WebAssembly/WASI/blob/main/phases/snapshot/docs.md WASM(Web Assembly)尽管是为了提高网页中性能敏感模块表现而提出的字节码标准, 但是WASM却不仅能用在浏览器(broswer)中, 也可以用在其 阅读全文
posted @ 2021-11-07 08:23 zJanly 阅读(490) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/qq_34754747/article/details/104967933 https://blog.csdn.net/fanxingzju/article/details/80488788 https://blog.csdn.net/weixin_308 阅读全文
posted @ 2021-11-07 07:59 zJanly 阅读(590) 评论(0) 推荐(0) 编辑
摘要:原文链接:Replacing a hot path in your app's JavaScript with WebAssembly February 15, 2019. 在之前的文章中我讲述了 WebAssembly 是如何允许我们将 C/C++ 生态中的库应用于 web 应用中的。一个典型的使 阅读全文
posted @ 2021-11-06 08:14 zJanly 阅读(1943) 评论(0) 推荐(0) 编辑
摘要:package mainimport ( "fmt" "runtime")type A struct { a int}func main() { self := new(A) self.a = 99 runtime.SetFinalizer(self, func(self *A) { self.a 阅读全文
posted @ 2021-11-04 17:29 zJanly 阅读(106) 评论(0) 推荐(0) 编辑
摘要:https://gitee.com/mirrors git clone --depth=1 https://gh.api.99988866.xyz/https://github.com/zsh-users/zsh-autosuggestions.git ${ZSH_CUSTOM:-${ZSH:-~/ 阅读全文
posted @ 2021-11-03 16:59 zJanly 阅读(274) 评论(0) 推荐(0) 编辑
摘要:Enarx Enarx provides a platform abstraction for Trusted Execution Environments (TEEs) enabling creating and running “private, fungible, serverless” ap 阅读全文
posted @ 2021-11-02 15:37 zJanly 阅读(44) 评论(0) 推荐(0) 编辑
摘要:http://llever.com/cargo-book-zh/guide/cargo-toml-vs-cargo-lock.zh.html https://rust-by-example.budshome.com/flow_control/match.html https://bellard.or 阅读全文
posted @ 2021-11-01 11:08 zJanly 阅读(57) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示