Thursday, January 29, 2015

Quick how-to for installing nodejs and npm on Debian GNU/Linux 8.0 (jessie)

Here is quick how-to for installing nodejs and npm on Debian GNU/Linux 8.0 (jessie)

* # -> means that you should run command as root (use sudo command)
* $ -> means that you should run command as usual user (not root)

  1. Add source to apt (as root user) (nodejs.org)
        # apt-get install curl
        # curl -sL https://deb.nodesource.com/setup | bash -
        
  2. Then install nodejs package(as root use sudo command):
        # apt-get install -y nodejs
        
  3. In order to be able to compile and install native addons from npm you may also need to install build tools:
        # apt-get install -y build-essential
        
  4. Install npm (node package manager)
        # curl https://www.npmjs.com/install.sh | sudo sh
        
  5. To test your installation run the following commands as usual user (not root):
        $ node -v
        $ npm -v
        
  6. Done, enjoy .

Wednesday, January 28, 2015

First C# 7 Design Meeting Notes (github.com)

1. Agenda

This is the first design meeting for the version of C# coming after C# 6. We shall colloquially refer to it as C# 7. The meeting focused on setting the stage for the design process and homing in on major themes and features.

  • Design process
  • Themes
  • Features

2. Themes

    Working with data
    • pattern matching
    • tuples
    • "denotable" anonymous types
    • "records" - compact ways of describing shapes
    • working with common data structures (List/Dictionary)
    • extension members
    • slicing
    • immutability
    • structural typing/shapes?
  • Performance and reliability (and interop)
  • Componentization
  • Distribution
  • Metaprogramming
  • Null

3. Features

  • Pattern matching
  • Records
  • Array Slices
  • ref locals and ref returns
  • readonly parameters and locals
  • Lambda capture lists
  • Method contracts

Read more.