duoco.de
Languages and libraries
c# to javascript compiler
SHOW HN2015
How HN took it
1 positive, 12 neutral or asking, 0 mixed, 6 critical, out of 19 comments about the project. Thread score -0.23.
Execution: 0 for, 4 againstIdea: 1 for, 2 against
The thread, comment by comment
Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.
positive neutral or mixed critical about another commenter or something else the maker
What HN said
What people liked
Looks great and is a cool use of Roslyn
From 2 comments
Well done. I like it but I'm not sure what my use case would be. I mean, if I wanted a cross compile language upgrade how do you decide between something like this and ES6? Also,…
WhitneyLand on HNCool to see the open-sourcing of Microsoft code already being put to use.
elwell on HN
Objections
Debugging and maintaining generated JS is hard; use TypeScript instead
From 2 comments
I would encourage anyone looking at a C# to javascript compiler to check out typescript first. I've seen projects use a compiler similar to this, and while writing C# sounds…
bkjelden on HNI don't find writing JavaScript to be that hard. I don't get all of these compilers like this one, CoffeeScript, and TypeScript. Are people really that lazy that they can't spend…
jtwebman on HN
Script# and similar tools already exist and were not adopted
From 2 comments
Script# has existed for years and heavily used inside Microsoft. Even with that, it was not adopted as a tool for programming JavaScript in Visual Studio. If you need to code…
anprak on HNThis isn't new. Microsoft had an unofficial project for a while called Script# (script sharp) that did the same thing. I think they rightly decided it was a better idea to…
xenadu02 on HN
Generated global scope pollution
From 1 comment
``` // JavaScript code generated by DuoCode GetBestMove = function(board, player, winner) ``` That line will garbage the global scope..
urvader on HN
Requests
Open-source the code
From 1 comment
I love this trend of building compilers for existing languages that target Javascript. Other 2 languages with fully functional Javascript compilers that are worth checking out: -…
bad_user on HN
Support for reflection
From 1 comment
In gwt, reflection isn't supported because it makes it hard for the compiler to do dead code elimination. Supporting reflection might make it difficult to reduce the compile size…
rdwallis on HN
Questions
Is this a Microsoft project?
From 1 comment
So is this a Microsoft project? they don't directly say it, but they try to make it sound as it is: "DuoCode is an alternative compiler, powered by Microsoft® Roslyn, and…
Scarbutt on HN
Can C# classes be called from hand-written JS?
From 1 comment
Can C# classes compiled in this way be exposed to JS, so the main program can be in JS with libraries compiled from C#? Or is it assumed that the main program is in C#?
mwcampbell on HN
How are passed functions and callbacks handled?
From 1 comment
I'm curious how this handles the very common case of passing functions as parameters in JavaScript. I know it's possible in C# but it's much more difficult to do. JavaScript is a…
Osiris on HN
Alternatives named
TypeScript
From 2 comments
I would encourage anyone looking at a C# to javascript compiler to check out typescript first. I've seen projects use a compiler similar to this, and while writing C# sounds…
bkjelden on HNThis isn't new. Microsoft had an unofficial project for a while called Script# (script sharp) that did the same thing. I think they rightly decided it was a better idea to…
xenadu02 on HN
SharpKit
From 1 comment
SharpKit has a 3+ year head-start selling and supporting their solution (available commercially and under GPL3). I have no doubt they have considered transitioning to Roslyn as…
j_s on HN
Saltarelle
From 1 comment
I am a huge fan of Saltarelle [1], which has the save level of support as this project. The only thing it seems to be lacking is proper source mapping abilities, which is…
dested on HN
Script#
From 1 comment
There is also Script# [1] which unfortunately seems to be no longer maintained. Even the domain of the homepage expired at the end of 2014. I used it for a couple of toy projects…
danbruc on HN
ScalaJS and ClojureScript
From 1 comment
I love this trend of building compilers for existing languages that target Javascript. Other 2 languages with fully functional Javascript compilers that are worth checking out: -…
bad_user on HN