Show HN: I wrote a .NET to JS compiler. Here's an XNA demo compiled to JS.
hildr.luminance.org
Show HN: I wrote a .NET to JS compiler. Here's an XNA demo compiled to JS.
1–10 of 19 posts
Re: Show HN: I wrote a .NET to JS compiler. Here's an XNA demo compiled to JS.
#2Please note that it won't work if loaded from file:// because Firefox and Chrome are really aggressive about cross-origin checks (I think IE9 and IE10 will load it just fine from disk, though).
Questions and comments highly welcomed. :) The compiler is still relatively immature, but I'm very optimistic about where I can take it in the future.
Re: Show HN: I wrote a .NET to JS compiler. Here's an XNA demo compiled to JS.
#3Re: Show HN: I wrote a .NET to JS compiler. Here's an XNA demo compiled to JS.
#4I found it interesting that you are with Mozilla considering the guy behind the llvm-to-javascript compiler works there too...
Re: Show HN: I wrote a .NET to JS compiler. Here's an XNA demo compiled to JS.
#5Re: Show HN: I wrote a .NET to JS compiler. Here's an XNA demo compiled to JS.
#6Re: Show HN: I wrote a .NET to JS compiler. Here's an XNA demo compiled to JS.
#7Really nice... I found it interesting that you are with Mozilla considering the guy behind the llvm-to-javascript compiler works there too... https://github.com/kripken/emscripten
Re: Show HN: I wrote a .NET to JS compiler. Here's an XNA demo compiled to JS.
#8Re: Show HN: I wrote a .NET to JS compiler. Here's an XNA demo compiled to JS.
#9Very, very cool. Interested to see how System.Threading is implemented/converted.
You could certainly run the managed bits of System.Threading through the translator, though; I've done that before. But the shiny bits happen to live on the native side of things, in both MS's CLR and Mono... :(
Re: Show HN: I wrote a .NET to JS compiler. Here's an XNA demo compiled to JS.
#10Very, very cool. Interested to see how System.Threading is implemented/converted.
It's not. It might be possible to implement it in the future with Web Workers, but it'd be a stripped down implementation. You could certainly run the managed bits of System.Threading through the translator, though; I've done that before. But the shiny bits happen to live on the native side of things, in both MS's CLR and Mono... :(