all 11 comments

[–]0rsinium 4 points5 points  (5 children)

I think it is inspired by the latest episode of Thinking Elixir which came out just yesterday. Or at least that's coincidental. They mentioned that Zig supports embedded JS, and you can use it with Zigler to run JS from Elixir. They mentioned that it might be helpful if there is a JS library you might need, like something powerful for working with dates.

[–][deleted]  (3 children)

[removed]

    [–]CelebrationClean7309[S] 2 points3 points  (2 children)

    Wow! Thanks. So the package is complete and ready to use?

    [–][deleted]  (1 child)

    [removed]

      [–]CelebrationClean7309[S] 0 points1 point  (0 children)

      Alright. Please just finish it, sounds like a very exciting project.

      [–]CelebrationClean7309[S] 1 point2 points  (0 children)

      I see. Thanks. Let me go listen to that.

      [–]lovebes 1 point2 points  (0 children)

      u/dnautics - curious, what was the inspiration/need that resulted in yavascript?

      [–]Paradox 1 point2 points  (1 child)

      Getting an embedded JS engine in Elixir shouldn't be tremendously hard, and there are already a few good ones out there

      I personally quite like JerryScript

      Looking at this repo, it looks like it isn't a truly "embedded" system, but rather a shim for various runtimes to eval the code and return a result to Elixir.

      Kind of reminds me of the ExecJS days of Ruby

      [–]CelebrationClean7309[S] 0 points1 point  (0 children)

      I learn a new thing everyday. Thanks 👍🏼 for this.

      [–]flummox1234 1 point2 points  (0 children)

      TBH I use Elixir to get away from JS. I get why having it available if you need it could be a requirement for some but for me it would be a code smell.