News for hackers. Stuff that matters.
Re:Show HN: C# Pad – Interactive C# REPL by sandyarmstrong on Wednesday February 26, 2014 @03:19PM (#7307390)
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

Re:Show HN: C# Pad – Interactive C# REPL by sunnya on Wednesday February 26, 2014 @03:23PM (#7307410)
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.

Re:Show HN: C# Pad – Interactive C# REPL by sandyarmstrong on Wednesday February 26, 2014 @03:27PM (#7307451)
Yeah, I understand. My expectations were just set a bit higher since you called it a REPL. Realistically, something like this fills a different use case anyway. When I want a REPL, I want to run it locally.
Re:Show HN: C# Pad – Interactive C# REPL by notcub on Wednesday February 26, 2014 @06:43PM (#7309131)
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
Re:Show HN: C# Pad – Interactive C# REPL by usea on Wednesday February 26, 2014 @07:37PM (#7309416)
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.
Re:Show HN: C# Pad – Interactive C# REPL by sunnya on Wednesday February 26, 2014 @02:14PM (#7306916)
I've written a blog post on Getting Started at http://www.ahuwanya.net/blog/post/introducing-csharp-pad
Re:Show HN: C# Pad – Interactive C# REPL by neil_s on Wednesday February 26, 2014 @04:37PM (#7308088)
Wow, I was just looking for this a couple of days back!
Re:Show HN: C# Pad – Interactive C# REPL by ScottWhigham on Wednesday February 26, 2014 @02:09PM (#7306880)
Seems interesting but I got a 'Server Error: timeout' when trying to run a simple string.Format(). Bookmarked to try later!
Re:Show HN: C# Pad – Interactive C# REPL by sunnya on Wednesday February 26, 2014 @02:12PM (#7306898)
There's a lot of Traffic on the server at the moment. Do try again later.
Re:Show HN: C# Pad – Interactive C# REPL by gisenberg on Wednesday February 26, 2014 @02:14PM (#7306920)
Seeing the same for a Hello World.
Re:Show HN: C# Pad – Interactive C# REPL by lukasm on Wednesday February 26, 2014 @02:50PM (#7307187)
compile roslyn to js. Don't really need server here do you?
Re:Show HN: C# Pad – Interactive C# REPL by sunnya on Wednesday February 26, 2014 @03:13PM (#7307345)
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.
Re:Show HN: C# Pad – Interactive C# REPL by lukasm on Wednesday February 26, 2014 @04:36PM (#7308084)
Sure. You may try compile IL to js http://jsil.org/
Re:Show HN: C# Pad – Interactive C# REPL by mattmanser on Wednesday February 26, 2014 @07:33PM (#7309395)
Marvel at convoluted error messages! (JSIL is still in development. You will hit bugs)
Re:Show HN: C# Pad – Interactive C# REPL by scottksmith95 on Wednesday February 26, 2014 @02:10PM (#7306886)
Is this using ScriptCS?
Re:Show HN: C# Pad – Interactive C# REPL by sunnya on Wednesday February 26, 2014 @02:11PM (#7306897)
No, it's using Roslyn directly.
Re:Show HN: C# Pad – Interactive C# REPL by Touche on Wednesday February 26, 2014 @02:28PM (#7307029)
Smart, every time I see one of these I worry that someone malicious will attempt to delete the server's Windows folder.
Re:Show HN: C# Pad – Interactive C# REPL by fekberg on Wednesday February 26, 2014 @06:10PM (#7308912)
Roslyn doesn't prevent you from doing that though. You still need to validate, filter and run your code in a sandbox.
Re:Show HN: C# Pad – Interactive C# REPL by polskibus on Wednesday February 26, 2014 @02:54PM (#7307228)
Immediate window?
Re:Show HN: C# Pad – Interactive C# REPL by sunnya on Wednesday February 26, 2014 @03:14PM (#7307348)
It's the web version of the Interactive window bundled with Roslyn.