# Any interest in a JavaScript to julia translating tool?

**URL:** <https://discourse.julialang.org/t/any-interest-in-a-javascript-to-julia-translating-tool/6011>\
**Category:** Data\
**Tags:** question, proposal\
**Created:** [September 20, 2017, 9:19pm UTC](https://discourse.julialang.org/t/any-interest-in-a-javascript-to-julia-translating-tool/6011 "2017-09-20T21:19:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![TravisA9](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/travisa9/32/357_2.png) [@TravisA9](https://discourse.julialang.org/u/TravisA9)\
**Post date:** [September 20, 2017, 9:19pm UTC](https://discourse.julialang.org/t/any-interest-in-a-javascript-to-julia-translating-tool/6011/1 "2017-09-20T21:19:44Z")

</div>

Just wanted to see how much interest there is in having a tool for translating js to jl? Any old js projects you have been meaning to port to julia?

…in my case I once made a script to make a really rough translation. It served it’s purpose at the time but again recently I needed to do the same and I have no idea what I did with the old script so I started writing one again. If this is not a great need then I probably won’t put too much effort into it since I have other projects that need finished at work (and home). On the other hand, if this ends up being useful to others I can greatly improve the quality by using recursion, properly indenting the code to make it pretty and catch more translation errors.

**DISCLAIMER** : Good code is handwritten and not translated! If you use this tool, you must be prepared to do a lot of polishing and optimizing. Please do not use this tool if you are not going to do so 📝 as I do not want to be responsible for massive dumps of poor julia code 🌪🔥☄

If you want to have an idea of the potential for such a tool [here’s a thrown together example.](https://travisa9.github.io/RoboJStoJL/Robot.html)

Please don’t expect too much yet since it is just a test/example. I focused mostly on aspects of code that were present in my test code so there are most likely many details that still need fixed (for example: switch statements). So far, I’ve tested it out on a very limited number of js files and some translate better than others. The results range from quite good to sloppy.

Please let me know what you think.
