jonericcook
Does anyone think it would be possible to put the bun JS runtime (written in Zig) in a NIF via Zigler?
I have a crazy question - does anyone think it would be possible to put the bun JS runtime (written in Zig) in a NIF via Zigler.
If that’s possible could you run JS files without needing Node on the machine?
Marked As Solved
Also Liked
joey_the_snake
My motto is: you never know until you try it in production. So my advice is to put it in your company’s most critical application as a test.
ityonemo
Before you get too deep into it: I’m also not kidding when I say that zigler 0.10 will be different =D
https://github.com/ityonemo/zigler/blob/0.10.0/test/integration/types/optional_test.exs
But especially, resources, which this depends on are going to look something like this. I’m still hashing out the API on this so even this is likely to change.
https://github.com/ityonemo/zigler/blob/0.10.0/test/integration/resource/basic_test.exs
woutdp
Yes 40ms in dev, but about 8ms in production which is ok. In dev I think it’s because the cache gets reset every time, on production there’s caching going on and it’s way better.
And indeed I was interested in the port to Node solution instead of using elixir-nodejs. Maybe it’s faster I’m not sure. But also if Bun worked with Zigler that would be amazing. Seems it should be possible
Last Post!
ityonemo
Before you get too deep into it: I’m also not kidding when I say that zigler 0.10 will be different =D
https://github.com/ityonemo/zigler/blob/0.10.0/test/integration/types/optional_test.exs
But especially, resources, which this depends on are going to look something like this. I’m still hashing out the API on this so even this is likely to change.
https://github.com/ityonemo/zigler/blob/0.10.0/test/integration/resource/basic_test.exs
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #hex









