top | item 7306734

Show HN: C# Pad – Interactive C# REPL

45 points| sunnya | 12 years ago |csharppad.com | reply

20 comments

order
[+] sandyarmstrong|12 years ago|reply
This isn't really a REPL, though. It's missing the L. :-) Not evaluating each line as it comes makes it less fun to use.

With some obvious caveats, I'm a big fan of the csharp REPL provided by Mono: http://www.mono-project.com/CsharpRepl

[+] sunnya|12 years ago|reply
Yeah, that will be too costly because it would have to make a server call pretty quickly to confirm that the code is complete. (The Roslyn desktop C# Interactive can do this because it's right on the desktop)

You can press Ctrl-Enter to send complete code, if you wish to send submissions faster.

[+] notcub|12 years ago|reply
Not quite REPL (not sure C# is a great fit for REPL) but I've found LINQPad very useful for trying out code snippets locally. https://www.linqpad.net
[+] usea|12 years ago|reply
LINQPad is one of the best tools I've ever used. I can't recommend it enough for anybody who wants a C# or F# scratchpad, or wants to quickly query a database.
[+] neil_s|12 years ago|reply
Wow, I was just looking for this a couple of days back!
[+] ScottWhigham|12 years ago|reply
Seems interesting but I got a 'Server Error: timeout' when trying to run a simple string.Format(). Bookmarked to try later!
[+] sunnya|12 years ago|reply
There's a lot of Traffic on the server at the moment. Do try again later.
[+] gisenberg|12 years ago|reply
Seeing the same for a Hello World.
[+] lukasm|12 years ago|reply
compile roslyn to js. Don't really need server here do you?
[+] sunnya|12 years ago|reply
I didn't know that was possible. Even if you can compile Roslyn to JS to run on the client, you still need to compile most parts of the BCL as well, or else you still need to make a server call.
[+] scottksmith95|12 years ago|reply
Is this using ScriptCS?
[+] sunnya|12 years ago|reply
No, it's using Roslyn directly.
[+] polskibus|12 years ago|reply
Immediate window?
[+] sunnya|12 years ago|reply
It's the web version of the Interactive window bundled with Roslyn.