News for hackers. Stuff that matters.
Re:Show HN: I wrote a .NET to JS compiler. Here's an XNA dem... by kevingadd on Tuesday May 31, 2011 @08:58AM (#2602354)
If my Linode falls over while hosting this, or you want to download all the files and host them locally to play with it, I've put a ZIP file of the demo up on my dropbox here: http://dl.dropbox.com/u/1643240/Platformer.zip

Please 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 dem... by hugh4life on Tuesday May 31, 2011 @09:33AM (#2602483)
Really 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 dem... by kevingadd on Tuesday May 31, 2011 @09:38AM (#2602505)
Yeah, Azakai's brilliant. The paper he published was useful when figuring out how to translate goto statements to JS (C# supports them, though thankfully, they aren't used much.)
Re:Show HN: I wrote a .NET to JS compiler. Here's an XNA dem... by Alxandr on Tuesday May 31, 2011 @02:43PM (#2603881)
Holy crap, that was awesome!
Re:Show HN: I wrote a .NET to JS compiler. Here's an XNA dem... by jwatte on Tuesday May 31, 2011 @01:51PM (#2603641)
Nice! I've always thought emscripten is a bit annoying, as it doesn't integrate with the LLVM infrastructure, but instead re-parses everything in Python...
Re:Show HN: I wrote a .NET to JS compiler. Here's an XNA dem... by nl on Wednesday June 01, 2011 @12:15AM (#2605932)
This is pretty impressive. Are the any details on the C#->Javascript compiler?

Any comments about Ray Cromwell's comments on the lack of suitable sound APIs for games in HTML? http://cromwellian.blogspot.com/2011/05/ive-been-having-twit...

Re:Show HN: I wrote a .NET to JS compiler. Here's an XNA dem... by cyanbane on Tuesday May 31, 2011 @09:46AM (#2602533)
Very, very cool. Interested to see how System.Threading is implemented/converted.
Re:Show HN: I wrote a .NET to JS compiler. Here's an XNA dem... by kevingadd on Tuesday May 31, 2011 @09:55AM (#2602579)
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... :(

Re:Show HN: I wrote a .NET to JS compiler. Here's an XNA dem... by cyanbane on Tuesday May 31, 2011 @10:09AM (#2602645)
Gotcha, looking at the JS. Still very impressive. Been interested in the Script# project for awhile, this looks along same lines. Good stuff.
Re:Show HN: I wrote a .NET to JS compiler. Here's an XNA dem... by dtzWill on Tuesday May 31, 2011 @02:33PM (#2603838)
I created an account just to upvote this, very cool and keep up the good work! :)
Re:Show HN: I wrote a .NET to JS compiler. Here's an XNA dem... by diegoponciano on Thursday June 02, 2011 @02:17AM (#2610938)
Me too haha =)
Re:Show HN: I wrote a .NET to JS compiler. Here's an XNA dem... by Alg0r1thm on Tuesday May 31, 2011 @10:32PM (#2605673)
Worked on OSX just fine w/ FF4. Great job so far! Can't wait to checkout and play with it on a Windows box later.
Re:Show HN: I wrote a .NET to JS compiler. Here's an XNA dem... by peregrine on Tuesday May 31, 2011 @09:28AM (#2602462)
This worked surprisingly well. Nice work!
Re:Show HN: I wrote a .NET to JS compiler. Here's an XNA dem... by diegoponciano on Thursday June 02, 2011 @02:16AM (#2610936)
Awesome, the demo is pretty slick! (unlike some other demos, it runs pretty fast on chrome, very impressive).
Re:Show HN: I wrote a .NET to JS compiler. Here's an XNA dem... by greendot on Tuesday May 31, 2011 @09:38AM (#2602503)
I'm impressed. Definitely an upvote.
Re:Show HN: I wrote a .NET to JS compiler. Here's an XNA dem... by cheez on Tuesday May 31, 2011 @09:35AM (#2602496)
Really good.
Re:Show HN: I wrote a .NET to JS compiler. Here's an XNA dem... by tknv on Wednesday June 01, 2011 @12:12PM (#2607928)
Wow
Re:Show HN: I wrote a .NET to JS compiler. Here's an XNA dem... by HardyLeung on Tuesday May 31, 2011 @12:21PM (#2603187)
Amazing!