modularml / mojo

The Mojo Programming Language
https://docs.modular.com/mojo
Other
21.59k stars 2.52k forks source link

Will mojo run in the browser? #58

Closed AlefAlfa closed 1 year ago

AlefAlfa commented 1 year ago

Motivation

I recently came across a new programming language called Mojo. It combines Python-like indentation and Swift-like syntax, such as type hints and structs. Notably, Mojo is reported to be 500x faster than Python by compiling the code. It can also use existing Python code and libraries, making it similar to the relationship between TypeScript and JavaScript.

Given these features, I am curious if Mojo will work in the browser, as it could potentially provide significant performance improvements for web applications that rely on Python libraries.

Description and Requirements

I would like to know if Jango:

  1. Can work with browsers.
  2. Make existing libraries like Jango or
  3. Supports interoperability with python, allowing seamless integration with existing web technologies and frameworks.
  4. Has any browser-specific limitations or performance concerns that developers should be aware of.
  5. Offers tools or resources for compiling mojo code to a format that can be executed in the browser, if it is not natively supported.

Any insights or resources on this topic would be much appreciated. Thank you!

goldiegadde commented 1 year ago

Hey @AlefAlfa , thanks for the question! This seems like a good question for the Discussion forum, do you mind reposting there ? Discussions

goldiegadde commented 1 year ago

Thanks @AlefAlfa for posting in Discussions, closing this issue now.