6 research outputs found

    Multithreading technique improvement in processing Client Server communication by utilizing object oriented language

    Get PDF
    A comparison of an application’s performance, when a program is executed through multiple threads and only a thread to complete a specified task by using Java techniques. In this paper will be expounded how a Java programmer can profit by technology facilities. How to create a program that executes in a parallel way, that solves independent tasks not one after the other, but all at the same time. The application that is developed(the environment used is Eclipse) aims to speed up the time needed to download images from a specific website, but it is flexible for downloading images also from different sites. We have generate downloading of 15 images from a website.It will count the time needed in the two cases, will compare them and lead to the conclusion of the increasement of time performance. It will reflect to a faster application for end user. It’s quite obvious that the multithread version of the application is faster. The timing performance is increased nearly by a factor of 6. This means, that building a nearly parallel functional application, is very important and will have a great feedback from the user. Saying all that, must be accepted that programming with threads is necessary, sometimes inevitable, but it needs caution, because complexity increases and new problems should be prevented

    Building Fast and Efficient Database Applications for the Web

    Get PDF

    Web-sovelluskehityksen tehostaminen Scala-ohjelmointikielellä

    Get PDF
    Web-sovellusten kehittämiseen on tarjolla useita vaihtoehtoisia teknologioita. Loppukäyttäjälle valittu toteutusteknologia ei välttämättä ole näkyvissä, mutta asiakkaalle se näkyy projektista aiheutuvina kustannuksina. Lisäksi teknologiavalinnoilla on vaikutusta lopputuloksen laadulle ja projektin kehittäjien työn mielekkyydelle. Pääsääntöisesti vaihtoehdot perustuvat dynaamisiin ohjelmointikieliin, ja staattisesti tyypitetty kieli toisikin mielenkiintoisen vaihtoehdon. Tässä työssä tarkastellaan Scala-ohjelmointikielen soveltuvuutta perinteiseen Web-kehittämiseen ja arvioidaan sen tuomia etuja ja haittoja. Scala-ohjelmointikieli on tavukoodiyhteensopiva yleisesti käytetyn Java-kielen kanssa, mutta sen funktionaalisen paradigman hyödyntäminen ja mahdollisesti hyvinkin erilainen syntaksi tekevät siitä hankalahkon opittavan Java-ohjelmoijalle. Tämän vuoksi työssä esitellään Scala-ohjelmointikielen perusteet sekä työn kannalta oleellisimmat tekniikat. Työ pyrkii tuomaan esiin eroja ja yhtäläisyyksiä Java-kieleen nähden ja luo silmäyksen tämänhetkiseen työkalutukeen. Työssä toteutetaan Scala-kielellä perinteisiä Web-kehityksessä vastaantulevia asioita ja arvioidaan niiden etuja ja haittoja vaihtoehtoisiin tapoihin nähden. Ohjelmakoodiesimerkit tarjoavat samalla konkreettisen näkymän asiaan. Joitakin mielenkiintoisia mahdollisuuksia havaittiin, joilla voi olla merkittäväkin positiivinen vaikutus ohjelmistokehitykseen. Työn yhteydessä toteutettu yksinkertainen esimerkkiprojekti tarkastelee työssä tehtyjä havaintoja käytännössä. Tällä pyritään tuomaan esille asioita, jotka tulisivat vastaan tosielämän projekteissakin. Projekti toteutettiin sekä Javalla että Scalalla, mikä osoittaa että Scala-kieltä voidaan käyttää saumattomasti osassa projektia ilman että se liikaa häiritsee muita osia. Esimerkkiprojektille ajettu yksinkertainen suorituskykytesti osoittaa, ettei Scala-toteutuksella ole suorituskykyongelmia Javatoteutukseen nähden. /Kir10There exists a number of alternative technologies for Web application development. The final product as seen by the end user might not reflect the underlying technologies, but for the customer it is visible in project costs. The chosen technologies have an impact on the overall quality of the product and they also play an important role in making the development pleasant. Most of the available technologies are based on dynamic programming languages and thus a statically typed language would introduce an interesting alternative. This thesis examines the suitability of the Scala programming language for Web development and evaluates its advantages and disadvantages. Scala programming language is bytecode compatible with the well-known Java language but its utilization of the functional paradigm and possibly quite differing syntax make it somewhat hard to learn for an average Java programmer. Therefore the basics and the most relevant techniques of the Scala language are introduced. The similarities as well as differences to Java language are brought up, and the available tool support for Scala is examined and briefly compared to the excellence of Java tools. This thesis implements some common functionality related to web development in Scala. The discovered advantages and disadvantages are evaluated against alternative methods. Program code listings offer a concrete view to the subject. Some interesting possibilities were discovered that could have a significant positive impact on development. A simple example project investigates the observations in practice. This strives to bring out issues that could also be present in real-life projects. The project was implemented in both Java and Scala which shows that Scala can be used in some parts of a project without major interference to other parts. A simple performance test run against the example project shows that Scala does not suffer from performance issues comparing to Java
    corecore