Skip to content

Latest commit

 

History

History
63 lines (42 loc) · 1.76 KB

README.outline.md

File metadata and controls

63 lines (42 loc) · 1.76 KB

add Announcement, something like Five ways to host your C++ program online

  1. Web service using Common Gateway Interface
  2. Python web service using Swagger/OpenAPI
  3. Python web application using Flask
  4. JavaScript web service using Emscriptem and WebAssembly
  5. JavaScript web application with React

Consider adding a line that helps people decide which section to focus on.

Example algorithm

Introduce the example algorithm, as a CLI.

  • delay introducing the interface if possible
  • one file: algorithm and main
  • Adapt to reading initial guess and tolerance from stdin, e.g. with argc and argv

Web service using Common Gateway Interface

Pros Cons
❤️ pro1 ⛔ con1
❤️ pro2 ⛔ con2
  • Explain that there is no longer command line args, we need to change to JSON
  • Explain what is JSON
  • move JSON schema to swagger section or even to JavaScript form generation
  • JSON flavor of JSON schema can be removed (we still have the OpenAPI YAML)

Python web service

  • pybind11
  • OpenApi, Swagger, JSON schema

Python web application

  • web app v web service difference
  • explanation of what is a web framework using @route decorator
  • long running tasks, celery

JavaScript web service

  • OK to test with curl not browser?

JavaScript web application

  • how to use wasm in webbrowser
  • long running with web worker
  • react, explain react/vue/angular here
  • json schema form
  • vega plot

  • random tidbits:
    • web framework
    • long running tasks (concept, Python toolset, JavaScript toolset): consider splitting off into 1 or 2 separate documents; in the main document describe a what is basically a Promise and point to the relevant other document
  • single page application
  • Optional add pros and cons per section