Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bhelx
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
31.
▲
by
bhelx
2y ago
Chicory has some partial wasip1 support. https://github.com/dylibso/chicory/tree/main/wasi . We use jimfs to keep things simple and secure (and not worry about exposing the real filesystem): https:/
32.
▲
by
bhelx
2y ago
I used the wasm build of sqlite and the Chicory runtime to create a pure JVM executed sqlite library: https://github.com/dylibso/sqlite-zero It's more of an experiment than an attempt to make something production
33.
▲
by
bhelx
2y ago
Yes, I understand that you can do anything with imports. But that's not part of the Wasm spec. That's a capability the host has decided to give the module. Of course the person with the most privilege can always open holes up, but
34.
▲
by
bhelx
2y ago
I agree that it's a problem and I definitely agree with the concern about component model. But maybe Wasm doesn't need 1-1 replacement of all capabilities in the native world. At least not right now. As someone who mostly uses it
35.
▲
by
bhelx
2y ago
The statement is correct. Wasm cannot mark memory as executable. It's effectively a Harvard Architecture. The code and memory are split. Furthermore you cannot jump to arbitrary points in code. There isn't even a jump instruction.
36.
▲
by
bhelx
3y ago
I can't speak for rustpython, but you can partially evaluate dynamic languages in wasm with something like wizer https://github.com/bytecodealliance/wizer . So you can let the runtime do all the parsing and compili
37.
▲
Back of the Napkin WASM Performance: How Does Extism Work?
(dylibso.com)
9 points
by
bhelx
3y ago
|
2 comments
38.
▲
by
bhelx
3y ago
really enjoyed the talk btw!
39.
▲
by
bhelx
3y ago
Come join our Discord if you get the chance and find me there in the ruby-sdk channel. I've been doing some experiments with Wasm and ruby (particularly around rails and higher level application abstractions) and would love to have ano
40.
▲
by
bhelx
3y ago
I think I referenced one of your blog post in that article too. So thank you!
41.
▲
by
bhelx
3y ago
Hey Simon, I've done some similar experimentation using Extism to sandbox LLM generated code. This uses our JavaScript PDK (which uses quickjs) and can be embedded in any host language we support https://extism.org/blog
42.
▲
by
bhelx
3y ago
This is great so far btw! Going to watch this whole talk today.
43.
▲
by
bhelx
3y ago
I've been working on a new Ruby SDK for Extism 1.0 if you want to check it out: https://github.com/extism/ruby-sdk I added host function support and cleaned up the API a bit.
44.
▲
by
bhelx
3y ago
I work on a project for building such plug-in systems. We have a wide variety of languages supported https://extism.org/ > and I’ll want to bundle a bunch of stuff into a standard ZIP file layout (so that documentation,
45.
▲
by
bhelx
3y ago
Yep, should be really soon. Also, we will check out signoz too. Could you see a reason to have an official adapter at some point? The adapter can tie things together for you that the platform expects, like set extra metadata, set trace ids,
46.
▲
by
bhelx
3y ago
Thanks Ben! Really looking forward to your WasmCon talk.
47.
▲
by
bhelx
3y ago
I have an instrumented version of QuickJS that can be used in the javy toolchain: https://github.com/bytecodealliance/javy There are two primary goals: 1. Emit metrics directly about the QuickJS runtime similar to node
48.
▲
by
bhelx
3y ago
One caveat that Datadog (specifically traces) probably won't work on the edge just yet. But if this is something you're interested in kbknapp feel free to post your questions or requests here https://github.com/dyl
49.
▲
by
bhelx
3y ago
I do have some experimental code working with QuickJS that does this. Feel free to reach out of if you're interested in trying it out or start a discussion https://github.com/dylibso/observe-sdk/discussions
50.
▲
Sandboxing LLM Generated Code with Extism
(extism.org)
8 points
by
bhelx
3y ago
|
1 comments
51.
▲
by
bhelx
3y ago
Hey HN, we wanted to explore the idea of using Wasm to run untrusted code from an LLM. Would be great if anyone with experience prompt-engineering and LLM tools could improve the code generation model or make a more interactive experience.
52.
▲
by
bhelx
3y ago
Not really. We've talked about a next step being some kind of development environment for this. Our plug-in playground environment comes close to this, but you can't currently set or use plug-in variables in this tool: https:
53.
▲
by
bhelx
3y ago
Check out the games directory here: https://github.com/extism/game_box/tree/main/games There aren't yet high quality docs. But if you want to give it a shot I'd try forking one of those and ask
54.
▲
by
bhelx
3y ago
I've done this with Extism before. You can now write JavaScript plug-ins that run both on the server and the browser: https://github.com/extism/js-pdk This uses QuickJS compiled to Wasm. You can also embed these i
55.
▲
by
bhelx
4y ago
Extism does not yet support writing the plugins (our term for Wasm guests) in python. I have been working on javascript support[1] and I think I could use a similar strategy to support python. If you are at all interested in following along
56.
▲
by
bhelx
4y ago
Yeah, that's a good idea. C is supported on the SDK and PDK side. We are wondering if Zig can utilize the c libraries for it.
57.
▲
by
bhelx
4y ago
If you need C# support we can work on it! I've done some experimenting with it already. Please come join the discord or file an issue.
58.
▲
by
bhelx
4y ago
You can bring your own serialization format. It's just bytes in and bytes out.
59.
▲
by
bhelx
4y ago
In many ways yes. We need to re-invent many things for this new world. But I'd encourage you to read a bit more about how Wasm is different. It's true it is a stack based virtual machine but that's about where the comparisons
60.
▲
by
bhelx
4y ago
Yes I think that's a good way of putting it. Extism's primary goal is universality. I think the idea of having a plug-in system that is truly universal is exciting. Now we can share and maybe even sell plugins into different ecosy
More ›