学生姓名(Name) :
实习过程及内容Internship process and content
Download 44.18 Kb.
|
attachment N1
- Bu sahifa navigatsiya:
- Methodology
实习过程及内容Internship process and content
Introduction: In the last 10 years there has been emergence of new languages and frameworks for implementing web-services. Of course there are still a lot of projects done using PHP or Java. But for the new projects programmers are looking to more modern technologies as the basis for their project. One reason programmers are looking for these new languages is stricter memory requirements when running multiple Docker images. These stricter requirements are especially true in cloud services where price is often dictated on physical resources consumed. Process: In this thesis I will describe and compare three web-service programming languages. Namely Go, Elixir and JavaScript (in Node.js run-time). My plan was to find out how each of the languages and their run-times deal with concurrency. Concurrency is important for web-services as it enables serving multiple clients from a single server. In the tests I found that all of the languages perform reasonably well and most of the tests results were similar. Go and Elixir both were best in some of the tests and JavaScript was a bit slower than the other two with failure to perform in some of the CPU intensive tests. From this we can conclude that the lightweight threading approach used in Go and Elixir performs better than Event based concurrency used in JavaScript. Modern concurrency research is a wide field inside of Computer Science. In Computer Science concurrency means that events, programs, processes and so on seemingly execute at the same time. What this same time means is then implementation specific. For example, in single processor this means that processor executes two or more items in smaller interleaved chunks. This definition of executing smaller interleaved chunks is important as it is the basis on which all of the languages explored reach seemingly concurrent processing of multiple requests. Methodology: In this section I will look into three programming languages used in modern webservice back-ends. These languages were selected for their different characteristics which will be described in this chapter. One selection criteria was that they are modern or in case of JavaScript modern in web-service use, but still used widely enough. Another criteria was that each of the languages used new paradigms to implement concurrency instead of the traditional way of implementing concurrency with threads and processes. These languages present different programming paradigms from functional to procedural and from dynamic typing to static typing. Each of the selected languages also has its own strengths and drawbacks. I will discuss these in detail when talking about the specific languages. For each language I will briefly talk about their history. I will also introduce the language syntax. Then I will give the overview of the run-time system and how the concurrency is implemented in each of the languages. In conclusion I will look into the non concurrency related differences of these languages. Download 44.18 Kb. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling