Git Product home page Git Product logo

terminal's Introduction

Terminal

Tech Stack


Architecture

<body>
    <script src="https://google.github.io/typograms/typograms.js"></script>
    <script type="text/typogram">
            +-----------------+
            |       API       |
            | .-------------. |
            | |  WebSocket  | |
            | '------+------' |
            +--------+--------+
                     |
                   Stream
                     |
                     v
    +-----------------------------------+
    |             Browser               |
    | +--------+            +---------+ |
    | |  WASM  +--Process-->|  WebGL  | |
    | +--------+            +---------+ |
    +-----------------------------------+
    </script>
</body>

pros and cons

advantages

  1. Real-time communication
  2. Efficient data processing
  3. High-performance rendering
  4. Scalability
  5. Browser compatibility
read more...
  1. Real-time communication: WebSocket allows for bidirectional communication between the server (API) and the client (Browser), making it suitable for real-time applications and reducing latency.
  2. Efficient data processing: WASM is a binary instruction format designed for secure and fast execution, enabling efficient processing of the data received from the WebSocket.
  3. High-performance rendering: WebGL is a JavaScript API for rendering interactive 2D and 3D graphics in the browser, allowing for high-performance graphics without the need for plugins.
  4. Scalability: This architecture allows the server to handle multiple WebSocket connections concurrently, enabling the system to scale effectively.
  5. Browser compatibility: Since both WebAssembly and WebGL are supported by modern web browsers, the architecture is compatible across different platforms and devices.

disadvantages

  1. Limited browser support
  2. Complexity
  3. Security concerns
  4. Potential performance bottlenecks
  5. Dependency on JavaScript
read more...
  1. Limited browser support: Older browsers may not support WebSocket, WebAssembly, or WebGL, which could limit the reach of the application.
  2. Complexity: The architecture might be more complex compared to a traditional RESTful API, increasing the learning curve for developers.
  3. Security concerns: WebSocket connections might be vulnerable to security threats like cross-site WebSocket hijacking. Also, WebAssembly code execution can expose vulnerabilities that need to be mitigated.
  4. Potential performance bottlenecks: While WASM and WebGL are designed for high-performance, some devices might still struggle with the processing and rendering tasks, particularly in resource-intensive applications.
  5. Dependency on JavaScript: While WASM is intended to be a low-level virtual machine that runs code at near-native speed, it still relies on JavaScript for various functionalities, such as interacting with the DOM or handling events, which can be a potential bottleneck in some cases.

Code

WebAssembly

hello world

WebSocket

simple server-client

WebGL


Ref

terminal's People

Contributors

rurumimic avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ukaserge

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.