oplaTech Oplatek Teaching Archive
Oplatek's external memory

Javascript start settings

I decided to learn JavaScripts. In fact, after years of refusing doing anything with the web presenting technologies, I admit it, they are pretty cool now.
The reasons for not learning JavaScripts(JavaScripts, Css, Html,...) were:

  • Laziness:) 
  • The huge effort of making something look nice
  • I wanted to practice programming not to match colors
  • It was not as interesting as bash, algorithms, c#, nlp, python, ...
The new reasons are:
  • I am trying to do "go" publicly (Just this blog and my thesis so far:))
  • Html, Css, JavaScript are imho the best multi platform tools for presenting content
  • The only library for GUI which I liked was WPF with combination with C# (on Linux now)
  • WebGL, HTML5, WebRTC, ... pretty cool stuff (almost) working
  • V8, fast, open source .... can give it try AND it has a shell:)
So, I set up V8 and V8 shell using this tutorials(15minutes):
  1. Get V8 engine: http://code.google.com/p/v8/wiki/UsingGit
  2. Build it: http://code.google.com/p/v8/wiki/BuildingWithGYP
    • For my settings  
      $ make x64.debug console=readline  # needs readline-dev package on ubuntu
  3. Running the V8 shell (http://www.sandeepdatta.com/2011/10/using-v8-javascript-shell-d8.html):
    • $ v8/out/x64.debug/d8
  4. In .vimrc I added a line for using omnicompletition (Ctrl+X+O)
    • autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS

Lets start!