3 ms·
Check out the Linux branch :) we are actively working on a port. Disclaimer: Msft employee on chakra
by hiteshk_msft 11y ago
Check out the Linux branch :) we are actively working on a port.
Disclaimer: Msft employee on chakra
- gtaylor 11y agowow, this new Microsoft is something.
- deleted 11y ago[deleted]
- csulok 11y agoIs Mac support planned? Not really familiar with the internals, so I can't tell if the Linux branch is a generic (enough) branch for Unix and alike.
- hiteshk_msft 11y agoIt's not on the short term roadmap because we've scoped it to clang 3.6 x64 Ubuntu while we stand up the branch but we're trying to keep our code changes for the port pretty generic.
- blinkingled 11y agoFrom the Roadmap document - it seems like JIT on Linux is not a priority? That's surprising. Is it due to technical issues or the whole idea is to have NodeJS on Windows use Chakra and let the community do the Linux part with JIT?
- abchatra 11y agoThe first step is to get the runtime and interpreter running. Next step is to bring the jit up. Chakra is the hybrid engine where we have the interpreter, simple jit and full jit. The interpreter is the one which does all the profile data collection. Profile data is required to get the quality jit code. Declaimer: I work for Chakra team.
- blinkingled 11y agoThat sounds better - you may want to consider updating the Roadmap document to clarify this.
- abchatra 11y agoSure I will follow up.
- Matthias247 11y agoHi! Thanks for explanation and another cool product! One question that just came to my mind regarding this: Have you thought about a configurable/modular build where this interpreter/simple jit/full jit can be switched? Or is this perhaps already there? I can think of some use cases where it would be interesting to build a modern and full featured JS engine in interpreter-only mode. E.g. to integrate it into platforms which don't allow JIT (iOS), to reduce the footprint or the attack surface. Or to be able to port it the other platforms without much effort - in the embedded domain there are still other processors than x86 and arm and other OSes than Windows, Linux and OSX floating around.
- abchatra 11y agoGreat question. Yes, we have a way to disable jit. See the merged pull request by our super cool dev here: https://github.com/Microsoft/ChakraCore/pull/4 https://github.com/Microsoft/ChakraCore/pull/4. We have build configuration which produces daily builds without JIT as well: https://github.com/Microsoft/ChakraCore/pull/42 https://github.com/Microsoft/ChakraCore/pull/42.
- deleted 11y ago[deleted]
- hiteshk_msft 11y agoThis is more so that we have something that helps us break the problem into several steps to accomplish the goal. JIT will come after.
- BillinghamJ 11y agoWhy port rather than just writing it to be portable from the start? Seems like a lot of work?
- cwyers 11y agoChakra was originally written for Internet Explorer 9. "Linux compatibility" was not exactly a huge priority at Microsoft at the time.
- jdmichal 11y agoWhy design the engine first released in 2011 under a completely closed culture to be portable for its eventual open-source release five years later? I understand the appeal of the thoughts behind what you said, but you shouldn't burn time on things you don't foresee being an issue.