Giter Site home page Giter Site logo

thi-ng / ws-ldn-5 Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 1.73 MB

Hi-performace Clojurescript w/ thi.ng, WebGL, Web Workers, WebSockets & asm.js

Home Page: http://workshop.thi.ng

Clojure 96.50% CSS 0.27% HTML 3.23%
clojurescript webgl web-worker websocket asmjs

ws-ldn-5's Introduction

WS-LDN-5

Hi-performace Clojurescript w/ thi.ng, WebGL, Web Workers, WebSockets & asm.js

Repository

git clone [email protected]:postspectacular/ws-ldn-5.git

Will be moved to GitHub later…

Day 1

Overview

  • CLJS requires different optimization strategies than Clojure
  • Focus on CPU-bound issues
  • Hard time limits due to human perception & UI usability
  • Graphics, especially if animated, often high computational demands

ex01 - Game of Life

  • basic demo of idiomatic CLJS code performance
  • various ways of optimizing
  • benefit from constrained mutability
  • intro to typed arrays, benefits

Also:

  • use thi.ng/domus for easy (non-React) DOM creation/manipulation
  • use thi.ng/strf for string formatting / parsing

Source

ex02 - SVG visualizations & animation

  • SVG is powerful, easy to generate, but highly inefficient for realtime
  • Most geometry data only passed via strings (DOM attributes)
  • Requires 2x work, 3x memory (lots of string concat, then parsing + rendering + compositing)
  • Usually 2D only, but can use thi.ng/geom to render as 3D (w/ customizable shading)

Source

ex03 - WebGL basics

Source

WebGL & GLSL specs

Day 2

Day 3

ws-ldn-5's People

Contributors

postspectacular avatar

Watchers

 avatar  avatar  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.