Glenn Block @gblock
Justin Rushbatch @jrusbatch
- C# on a diet
- node.js + npm
- nuget
TODO: Get slides
Links:
- No IDE
- Any editor will do
- No project
- Package manager
- No namespace, class
#r "System.Data"
using System.Data;
using System.Foobar; // Roselyn error thrown
#load 'Greeter.csx'
scriptcs .\Greeter.csx
scriptcs -- custom parameters here
scriptcs --install MongoDb
scriptcs -install // restores everything from packages.config
If packages.config exists, the REPL will autoload all the packages automatically.
Frameworks like Web API and Nancy look for assemblies in the file system, instead of looking in memory.
Everything runs in a single thread by default.
- Add reference assemblies
- Add using statements
- Make libraries easier to consume
Script Packs can be loaded from NuGet. Samples:
- ScriptCs.Contracts
- ScriptCs.WebApi
Takes care of some of the boiler plate code and friction.
var webApi = Require<WebApi>();
var server = webApi.CreateServer("http://localhost:8080");
Repo Link: https://github.com/scriptcs/scriptcs-samples/tree/master/webapihost
Steps to coding in VS
- Open VS
- Open a new project from EXE
- Add existing csx files
- Right click EXE -> Properties -> set args, path
code name: feather
Product roadmap. What's next:
- Pluggable CLI commands
- Pluggable REPL commands
- Hosting for popular frameworks
- Mono support
- Script packs as scripts
- More langauges (F#)
- VS integration?