Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
erik-kallen
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
erik-kallen
14y ago
Reason to use Node.js on the server without liking Javascript: I like the framework. Framework != language (or at least it should be).
2.
▲
Writing node.js applications in C#
(erik-kallen.se)
31 points
by
erik-kallen
14y ago
|
33 comments
3.
▲
by
erik-kallen
14y ago
I think the tools fill different purposes, so integration with JSIL is absolutely a possibility in the future. I did not do any speed comparisons, I just translate what you write in C# to the equivalent script, so if you write a fast script
4.
▲
by
erik-kallen
14y ago
SharpKit is only free as long as you want to use it for projects that don't need it (the limit is like 2k lines or something). When I last tried it I was not very happy with the code it generated. Additionally, it uses the standard mscorlib
5.
▲
by
erik-kallen
14y ago
Java has been said to be a DSL to convert XML configuration into stack traces. But what does this have to do with compiling C# to Javascript?
6.
▲
by
erik-kallen
14y ago
Why would I want to use the proprietary Roslyn when I have a working solution with the open-source NRefactory and Cecil?
7.
▲
by
erik-kallen
14y ago
for (;;), continue and switch.
8.
▲
by
erik-kallen
14y ago
That's right, it doesn't get horrific until you use goto or yield (which don't exist in Javascript so they have to be emulated).
9.
▲
by
erik-kallen
14y ago
But all those commits are, unfortunately, tiny. Also the compiler is not open-source only the runtime library (which Saltarelle uses a modified copy of).
10.
▲
by
erik-kallen
14y ago
JSIL is also great, but its philosophy is that yo write .net code and run it in the browser, whereas Saltarelle's (and Script#'s) is that you write Javascript but with better tools. Also, the script that JSIL generates is very far from what
11.
▲
by
erik-kallen
14y ago
Saltarelle is way more complete, though.
12.
▲
by
erik-kallen
14y ago
It comes with metadata for jQuery and jQueryUI, so obviously those libs can be used. I know of people using Node as well (and I hope to include that import lib in the distribution at some point). As for porting an existing C# application, i
13.
▲
by
erik-kallen
14y ago
You can use the Chrome debugger just as if you had written the Javascript directly.
14.
▲
by
erik-kallen
14y ago
Actually, debugging is quite simple. The generated script (unless minified) is very similar to the input code. Are you also against other options such as CoffeeScript? And do you think it is very hard to debug higher-level languages such as
15.
▲
New C# to Javascript compiler released
(erik-kallen.se)
109 points
by
erik-kallen
14y ago
|
79 comments