Re:Stackoverflow's WISC (Windows, IIS, SQL Server, C#) Archi...
by billjings on Tuesday February 01, 2011 @08:48PM
(#2168485)
Writing C# is pretty darned pleasant. In fact, some things - like sequence filtering and aggregations (which a lot of plumbing code boils down to) - are much more pleasant in C# than they are in Python. Lots of sugar in C# keep you from missing things like language integrated dicts and lists, too. C# brings home a lot of concepts from the world of static functional languages that give me the warm fuzzies, and drops a lot of concepts from the world of Java that made me feel icky and gross.
Due to the easy, abundant libs, I would still go to Python for hacking something together. I would probably seriously consider C#, though, for something more substantial.
Re:Stackoverflow's WISC (Windows, IIS, SQL Server, C#) Archi...
by StavrosK on Tuesday February 01, 2011 @07:34PM
(#2168245)
C# is faster than Python, no question, however how much time do you really spend in your Python code? I don't think I've ever written a view that took more than a few ms to execute, with database queries being the slowest part by far.
If you're executing jobs that calculate things or other batch processes, you can compile them to C/C++ pretty trivially and have a 50x speedup, depending on your loads. Plus, PyPy is getting really, really good.
However, I am as biased as it gets, so take this with a grain of salt.
Re:Stackoverflow's WISC (Windows, IIS, SQL Server, C#) Archi...
by sofuture on Tuesday February 01, 2011 @09:02PM
(#2168531)
C# is a crazy good language, and with Visual Studio (and Resharper) productivity easily matches Python or Ruby.
Re:Stackoverflow's WISC (Windows, IIS, SQL Server, C#) Archi...
by antihero on Tuesday February 01, 2011 @09:38PM
(#2168650)
It'd be great if someone could explain to me why python with WSGI is "slower" than C# - I know C# is compiled to bytecode, but from what I've seen, websites are slow because of their I/O and database access, as opposed to the actual language processing things. Especially when some WSGI servers have insane performance in raw request handling (and can be proxied to via nginx). Where is it that C# can actually draw the advantages?
Re:Stackoverflow's WISC (Windows, IIS, SQL Server, C#) Archi...
by noblethrasher on Tuesday February 01, 2011 @07:40PM
(#2168273)
Python and Ruby code would likely win more beauty contest (which is actually kind of important to me) but, with the advent of C# 3 and 4, I don't think that there is much difference in expressive power. Not having a REPL still sucks though.
Re:Stackoverflow's WISC (Windows, IIS, SQL Server, C#) Archi...
by notJim on Wednesday February 02, 2011 @01:19AM
(#2169289)
LinqPad[1] seems like a decent alternative to having a REPL. It can run anything from a C# expression to a full program. This is in addition to it's better-advertised use in debugging LINQ queries.
Re:Stackoverflow's WISC (Windows, IIS, SQL Server, C#) Archi...
by kenjackson on Tuesday February 01, 2011 @08:08PM
(#2168340)
You get a poor man's REPL with the Immediate Window in the debugger. You can't create classes (or statements in general). but you can evaluate expressions.
But it does appear C# REPL is coming in C# 5.0.
Re:Stackoverflow's WISC (Windows, IIS, SQL Server, C#) Archi...
by contextfree on Tuesday February 01, 2011 @08:28PM
(#2168404)
The compiler rewrite that's meant to enable REPL (along with some cool metaprogramming features, I hope) isn't targeted at 5.0, but a still later release. Though you can get a C# REPL in Mono today.
Re:Stackoverflow's WISC (Windows, IIS, SQL Server, C#) Archi...
by kenjackson on Tuesday February 01, 2011 @08:43PM
(#2168455)
Really? That sucks. (The post 5.0 thing sucks, not Mono). With REPL and Async (and the other metaprogramming stuff) I was thinking 5.0 was going to be their biggest release yet.
Re:Stackoverflow's WISC (Windows, IIS, SQL Server, C#) Archi...
by balakk on Tuesday February 01, 2011 @11:55PM
(#2169045)
F# does have a full REPL - and its imperative/OO behavior is fairly close to C#.
More people(on .NET & otherwise) should look at F#.
Re:Stackoverflow's WISC (Windows, IIS, SQL Server, C#) Archi...
by kenjackson on Wednesday February 02, 2011 @12:21AM
(#2169117)
I'd use it if it had better tools support. Great language though.
Re:Stackoverflow's WISC (Windows, IIS, SQL Server, C#) Archi...
by noblethrasher on Tuesday February 01, 2011 @08:15PM
(#2168360)
Mono also has a REPL (http://www.mono-project.com/CsharpRepl).
C# is certainly faster than a Python or Ruby but you pay a price in development speed (or perhaps Joel would argue not - if you're a C# expert but Ruby newb you'll probably go faster with what you know).
But you could use Clojure or Java if that's a concern.