GithubHelp home page GithubHelp logo

devries / cloud-run-pascal Goto Github PK

View Code? Open in Web Editor NEW

This project forked from engelke/cloud-run-pascal

0.0 2.0 0.0 13 KB

Example web service in Pascal, deployed via Google Cloud Run

License: Apache License 2.0

Dockerfile 7.54% Python 26.77% Pascal 19.83% Go 45.87%

cloud-run-pascal's Introduction

cloud-run-pascal

Example web service in Pascal, deployed via Google Cloud Run

Run on Google Cloud

This code demonstrates how to create and deploy a web service written in Pascal, using Google Cloud Run. The Pascal program that provides the service is wrapped in a small Python program that receives the web requests, runs the Pascal program, and then creates a web response containing the output of the Pascal program.

The web service is invoked via an HTTPS GET request with a single path parameter, the number to be converted. It returns the given value, converted to Roman numerals.

The Pascal program is very basic, and was adapted from an example in Kathleen Jensen's and Niklaus Wirth's Pascal User Manual and Report, published in 1974. It does not handle Roman numeral shortcuts, such as IV for 4, instead using the long version in those cases, like IIII.

This is obviously not the way to create a Roman numeral web service today, but there are legacy programs in a variety of languages not supported in today's managed serverless platforms that would be useful to have as web services. This example shows how to make that happen.

cloud-run-pascal's People

Contributors

devries avatar engelke avatar

Watchers

 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.