GithubHelp home page GithubHelp logo

ds604 / nospoon Goto Github PK

View Code? Open in Web Editor NEW

This project forked from srikumarks/nospoon

0.0 0.0 0.0 2.61 MB

Talk+workshop series on foundational understanding through implementation.

JavaScript 99.71% Makefile 0.29%

nospoon's Introduction

As introduced in the first talk, this series will take folks through the process of creating programming languages in order to better design flexible layered systems.

Prerequisite: Javascript - the really good parts

Links to content

Check out the file slang.js. This is our starting point for making a language from a very basic idea of what a program is and actually buliding a working interpreter for it.

  1. If you want to browse the code in a readable manner, you can view slang.js.md.

  2. If you like to have a single PDF to read, see slang.js.pdf.

  3. Docco docs for slang are also available in the docs/ folder. To view them online, go to https://imaginea.github.io/nospoon/

FAQ on using Javascript

We'll be using Javascript as the underlying implementation language in this series. Initially this may feel like "cheating" because we're already using a language which has some powerful features in it. However, you'll see how we'll quickly move out of the realm of Javascript and will be dealing with concepts that you wouldn't have heard of in the Javascript world.

Why Javascript as the implementation language?

The reason is simple, really - no installation required (usually).

You probably already have a browser installed in your system. Likely Chrome or Firefox. That's all that will be required to follow through this series. Both these browsers also have great dev and debug environments for Javascript as well, and expose a rich set of UI and networking features.

So now I need to learn a complicated language first?

For this series to be meaningful, you do need to be a programmer with some strong exposure to a main stream programming language like Java or C++ or Javascript. This series is not intended for total newbies to the programming world.

So buckle up and pickup a little Javascript first. We've identified a small, sensible, yet powerful subset of Javascript that you should be able to pick up in an hour or so if you know Java or C++. For those who already know Javascript, we're going to force you to use this kernel subset only in the interest of everyone else.

Resistance is futile. You will be assimilated.

Great .. now I'll never be able to implement a "real" language

Check out Emscripten. It is a compiler that compiles several programming languages that compile to native code into Javascript! Yes, including C/C++. Javascript is a "real" programming language. Get over it.

Seriously, you'll realize how easy it is to "retarget" to any other compilation system if compiled languages are what you're looking into.

Stepping back, this series is not about teaching you to implement a generic programming language. You might at the end, but it is to teach you enough principles so that you can create languages appropriate to various application domains as and when needed and be able to articulate the advantages of a language-centric design strategy.

nospoon's People

Contributors

srikumarks avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.