4 ms·
.NET now needs a solid compile-to-browser story - which is presumably coming with some future version of web assembly (initial version doesn't support GC or thr
by moonchrome 11y ago
.NET now needs a solid compile-to-browser story - which is presumably coming with some future version of web assembly (initial version doesn't support GC or threads)
I'm looking forward to the day where I can ditch C++ for portability - .NET really is an ideal replacement for most apps - you can write apps that don't stress the GC by using value types and can control memory layouts relatively well (unlike Java) and at the same time you can use reflection, GC and all the niceties of modern programming platforms - unlike C++.
- qntmfred 11y agosilverlight ^_^
- mixedCase 11y agoThat's akin to saying suicide is a solution to any of life's problems.
- profquail 11y agoWhat about WebSharper? It's solid, open source (Apache 2.0) and they're working on adding C# support for the next major version: http://www.websharper.com/ http://www.websharper.com/
- ZenoArrow 11y ago> ".NET now needs a solid compile-to-browser story" You can compile .NET code to JavaScript using JSIL: http://jsil.org/ http://jsil.org/
- moonchrome 11y agoI've seen that but the showcase doesn't look very convincing compared to say emscripten. Do you know about any bigger projects using JSIL ?
- ZenoArrow 11y agoI've not used JSIL myself, but the performance of the demos seems fairly decent. Do you have any bigger .NET projects of your own you could try out? If you're looking for asm.js/wasm support in particular, you may be interested in LLILC, which appears to be a .NET Core to LLVM IR compiler, meaning you could make use of Emscripten to convert the code to asm.js: https://github.com/dotnet/llilc https://github.com/dotnet/llilc
- moonchrome 11y agoI don't, I've written a prototype for my lib a year ago in C# and probably have that lying around somewhere but since then we've ported it to C++ and done heavy refactoring/development - I could probably spend some time and try to get that prototype working on JSIL but I need to see how the xamarin story plays out before I invest significant time into this. IIRC LLILC is ways off from actually being usable as a static compiler and you'll still have to figure out how to ship a runtime and do GC in asm.js (realistically can't) and not to mention it's single threaded so it's a question if you can even get CoreCLR to run in such enviroment without heavy modifications. It would be huge if we could just write everything in C# (frontend/lib and backend) but I don't see this realistically being possible for at least two years given the development pace of webasm.
- j_s 11y agoSee Bridge.NET, where Saltarelle has gained commercial support under the Apache 2 license. http://bridge.net/ http://bridge.net/ Or pay for DuoCode http://duoco.de/buy http://duoco.de/buy or SharpKit http://sharpkit.net/Licensing.aspx http://sharpkit.net/Licensing.aspx (both also available under copyleft-ish licensing).