首页 > 其他分享 >wasmex webassenbly elixir 运行时

wasmex webassenbly elixir 运行时

时间:2024-01-08 18:01:02浏览次数:25  
标签:wasmex github com wasmtime elixir webassenbly rustler rust

wasmex 是基于wasmtime 以及rust nif 开发的方便elixir 运行webassembly 的框架

与rust 的集成

  • 与rust 集成使用的三方包 
    与mjml 工具类似使用了rustler_precompiled 以及rustler
  • rust 使用的三方包 
    前边也说了是基于了wasmtime 包装的,同时使用了wasmtime wasi 一些子模块

说明

rustler_precompiled 与rustler 基本算是一个黄金搭档了,rustler 可以方便与rust 集成,但是对于预编译加速下载以及启动不是很方便
rustler_precompiled 弥补了此缺陷

参考资料

https://github.com/tessi/wasmexhttps://github.com/philss/rustler_precompiled

https://github.com/rusterlium/rustler

https://github.com/bytecodealliance/wasmtime

https://github.com/bytecodealliance/wasmtime/tree/main/crates

https://github.com/tessi/wasmex/blob/main/lib/wasmex/native.ex

https://github.com/tessi/wasmex/releases/tag/v0.8.3

标签:wasmex,github,com,wasmtime,elixir,webassenbly,rustler,rust
From: https://blog.51cto.com/rongfengliang/9148289

相关文章

  • elixir erlang 简单调用学习
    实际上基于elixir的mix进行erlang以及elixir的互调用开发处理是很方便的,mix直接就包含了构建erlang代码同时对于代码的互调用,只要使用符合语言格式要求就行了,以下是一个简单的互调用学习项目准备项目结构 ├──README.md├──lib│├──a.e......
  • rebar3 集成elixir 模块
    社区包含了一个rebar3的elixirmix插件,可以方便rebar使用elixir模块参考使用rebar.config配置{erl_opts,[debug_info]}.{deps,[%添加引用{decimal,"2.0.0"}]}.{shell,[{apps,[basic]}]}.%添加插件{plugins,[rebar_mix]}.{provider_hooks,[{......
  • elixir mjml_nif 试用
    mjml_nif是使用rustler包装的mrml基于了erlang的nif接口实现的elixir模块,同时为了方便预编译nif的使用,使用了rustler_precompiled,以下是一个简单的试用项目试用添加依赖defpdepsdo[{:mjml,"~>3.0"}]end代码集成lib/mail/rong.mail.exdefmoduleRo......
  • elixir mjml_nif 试用
    mjml_nif是使用rustler包装的mrml基于了erlang的nif接口实现的elixir模块,同时为了方便预编译nif的使用,使用了rustler_precompiled,以下是一个简单的试用项目试用添加依赖 defpdepsdo[{:mjml,"~>3.0"}]end代码集......
  • rebar3 引用本地elixir 模块
    前边简单说过基于rebar_mix使用elixir模块,但是使用的模块是三方的,如果时候我们可以需要使用自己的就可以使用本地git项目,或者搭建自己的私服git,以下是一个简单使用项目准备本地elixirmix项目一个基于mixcli创建的项目,同时进行gitinit mixnewlogingit......
  • rebar3 集成elixir 模块
    社区包含了一个rebar3的elixirmix插件,可以方便rebar使用elixir模块参考使用rebar.config配置{erl_opts,[debug_info]}.{deps,[%添加引用{decimal,"2.0.0"}]}. {shell,[{apps,[basic]}]}. %添加插件 {plugins,[......
  • Elixir 中 Liquid 与 Heex
    Liquid:Liquid是一种模板语言,最初由Shopify开发,用于构建动态网页内容。Liquid模板通常用于生成HTML、XML和其他文档类型,可以插入变量、条件语句和循环等控制结构。在Elixir中,你可以使用Liquid来处理模板渲染,通常需要使用库或框架,如Phoenix的Phoenix.View.Liquid模块,来实现Liqu......
  • 使用chatgt(GPT-4)将过程式(的java代码)改成函数式(的elixir代码)
    天啦噜太可怕了,之前我还嘲笑chatgpt不会小众语言来着。chatgt(GPT-4)在接收2次prompt后,把过程式(的java代码)改成了函数式(的elixir代码),给出的Elixir代码可以不经修改直......
  • [C++/Java/Py/C#/Ruby/Swift/Go/Scala/Kotlin/Rust/PHP/TS/Elixir/Dart/Racket/Erlang
    目录题解地址代码cppjavapython3C#rubyswiftgolangscalakotlinrustphptypescriptelixirdartracketerlang题解地址https://leetcode.cn/problems/counting-words-with-a-g......
  • 【LeetCode2180】[Go/C++/C#/Ruby/Swift/Kotlin/Rust/PHP/TS/Racket/Dart/Java/Elixir
    [toc]题解地址https://leetcode.cn/problems/count-integers-with-even-digit-sum/solutions/2047123/by-yhm138_-w8co/lc2180代码//点击指定元素document.querySel......