Ograniczanie wyników
Czasopisma help
Autorzy help
Lata help
Preferencje help
Widoczny [Schowaj] Abstrakt
Liczba wyników

Znaleziono wyników: 88

Liczba wyników na stronie
first rewind previous Strona / 5 next fast forward last
Wyniki wyszukiwania
Wyszukiwano:
w słowach kluczowych:  Java
help Sortuj według:

help Ogranicz wyniki do:
first rewind previous Strona / 5 next fast forward last
EN
The article deals with method of interaction between JavaScript objects of different web pages in hybrid java applications. To solve this problem, the WebView component is used, its functionality to provide an interface for JavaScript objects, as well as the SharedPreferences global settings class, with its ability to store data in local storage. The software implementation is considered and the results of the practical use of the developed methodof interaction between JavaScript WebView objects in the form of a hybrid Java application embedded in the electronic university system –the Timetable SNU electronic timetable module are presented.
PL
Artykuł dotyczy sposobu interakcji między obiektami JavaScript różnych stron internetowych w hybrydowych aplikacjach Java.Do rozwiązania tego problemu wykorzystywany jest komponent WebView, którego funkcjonalność zapewnia interfejs dla obiektów JavaScript, a także klasa ustawień globalnych SharedPreferences z możliwością przechowywania danych w lokalnym magazynie. Rozważono implementację oprogramowania oraz przedstawiono wyniki praktycznego wykorzystania opracowanej metody interakcji między obiektami JavaScript WebView w postaci hybrydowej aplikacji Java osadzonej w elektronicznym systemie uczelni –module elektronicznego planu lekcji Timetable SNU.
2
Content available remote Comparing the understandability of iteration mechanisms over Collections in Java
EN
Source code understandability is a desirable quality factor affecting long-term code maintenance. Understandability of source code can be assessed in a variety of ways, including subjective evaluation of code fragments (perceived understandability), correctness, and response time to tasks performed. It can also be assessed using various source code metrics, such as cyclomatic complexity or cognitive complexity. Programming languages are evolving, giving programmers new ways to do the same things, e.g., iterating over collections. Functional solutions (lambda expressions and streams) are added to typical imperative constructs like iterators or for-each statements. This research aims to check if there is a correlation between perceived understandability, understandability measured by task correctness, and predicted by source code metrics for typical tasks that require iteration over collections implemented in Java. The answer is based on the results of an experiment. The experiment involved 99 participants of varying ages, declared Java knowledge and seniority measured in years. Functional code was perceived as the most understandable, but only in one case, the subjective assessment was confirmed by the correctness of answers. In two examples with the highest perceived understandability, streams received the worst correctness scores. Cognitive complexity and McCabe's complexity had the lowest values in all tasks for the functional approach, but - unfortunately - they did not correlate with answer correctness. The main finding is that the functional approach to collection manipulation is the best choice for the filter-map-reduce idiom and its alternatives (e.g., filter-only). It should not be used in more complex tasks, especially those with higher complexity metrics.
PL
W artykule przedstawiono analizę porównawczą technologii Java i C++ w kontekście wydajności na platformie Andro-id. Celem tej pracy było wskazanie wydajniejszego języka do tworzenia aplikacji mobilnych. Badania przeprowadzono na autorskich aplikacjach. Testy dotyczyły sortowania danych, wyznaczania liczb pierwszych, modyfikacji bitmapy, zapisu do bazy danych i odczytu z pliku tekstowego. Serie powtórzeń każdego testu wykonane zostały na urządzeniach marki Samsung oraz Xiaomi. Kryteria, którymi się posłużono to: czas wykonania testu, obciążenie procesora, wykorzy-stanie pamięci RAM. Wydajność wwiększości przeprowadzonych testów była na korzyść języka C++. Cechą wykazu-jącą największe różnice między badanymi technologiami był czas wykonania, gdzie C++ uzyskał 18punktów, a Java 3 punkty. Dla wykorzystania procesora wynik był taki sam, jednak różnice wartości mniejsze. Parametrem niewskazu-jącym faworyta było wykorzystanie pamięci RAM. Uzyskano 11punktów dla języka C++ i10 punktów dla Javy.
EN
The article presents a comparative analysis of Java and C ++ technologies in terms of performance on the Android plat-form. The purpose of this work was to point to a more efficient language for developing mobile applications. The study was carried out on custom applications. The tests concerned data sorting, prime numbers determination, bitmap modifi-cation, saving to the database and reading from a text file. The series of repetitions of each test were performed on Sam-sung and Xiaomi devices. The following criteria were used: test execution time, CPU load, and RAM usage. The per-formance, in most of the carried out tests, was in favor of the C++ language, and the main difference and with the great-est discrepancy between the technologies tested was the execution time, where C++ scored 18 points, and Java 3 points. For the CPU usage, the result was the same, but value differences were smaller. A nondiscerning parameter that was the use of RAM. C++ received 11 points and Java 10.
PL
Niniejszy artykuł przedstawia analizę porównawczą dwóch języków programowania używanych do wytwarzania aplikacji internetowych. Porównanodwa najbardziej popularne języki programowania Java oraz PHP. Oceniane kryteria to: implementacja oraz wydajność. Sprawdzono czas wykonywania konkretnych operacji na 100, 1000 oraz 10000 rekordach. Została przeprowadzona analiza kodu w celu ustalenia w którym języku łatwiej jest zaimplementować aplikację posiadającą identyczne funkcjonalności. Przed implementacją aplikacji, dokonano przeglądu artykułów, książek oraz stron internetowych poświęconych podobnemu zagadnieniu. W celu zbadania wydajności wykorzystano narzędzie developerskie Postman. Z porównania wynika, że PHP jest wydajniejszym językiem wytwarzania aplikacji internetowych niż Java
EN
This article presents a comparative analysis of two programming languages used to develop web applications. Two most popular programming languages Java and PHP were compared. The evaluated criteria were: implementation and performance, the time of performing specific operations on 100, 1000 and 10000 records was checked. A code analysis was carried out to determine in which language it is easier to implement an application with identical functionalities. Before the implementation of the application, articles, books and websites on a similar topic were reviewed. In order to test the efficiency, the Postman developer tool was used. The comparison shows that PHP is a more efficient language for developing web applications than Java.
PL
Celem niniejszej pracy było porównanie aplikacji internetowych tworzonych przy pomocy podejścia imperatywnego oraz reaktywnego w języku Java. Do tego celu stworzono dwie aplikacje z takimi samymi funkcjonalnościami używa-jąc obu podejść. Badanie dotyczyło wydajności, stabilności oraz czasochłonnościimplementacji każdej z aplikacji. Na podstawie uzyskanych wyników, stwierdzono, że aplikacja reaktywna szybciej przetwarza zapytania, w mniejszym stopniu obciąża procesor oraz jest stabilniejsza w przypadku obsługi wielu jednoczesnych żądań, gdzie czas przetwo-rzenia jest większy niż 10 sekund. W przypadku wykorzystania ilości pamięci RAM przez aplikacje nie zaobserwowa-no znaczących różnic. Ponadto badanie pokazało, że stworzenie aplikacji reaktywnej jest bardziej czasochłonne.
EN
The subject of this study was to compare web applications created using the imperative and reactive approaches in Java. For this purpose, two applications with the same functionalities were developed using both approaches. The study looked at the performance, stability and time-consumption of implementation of each application. Based on the obtained results, it was found that the reactive application processes queries faster, uses less CPU, and is more stable in the case of handling many simultaneous requests, where the processing time is greater than 10 seconds. No significant differences were observed in using the computer's RAM by the applications. In addition, the study showed that reactive application takes more time to create.
PL
W niniejszej pracy przedstawiono wyniki analizy porównawczej języków programowania Java i Dart pod kątem przydatności do tworzenia aplikacji mobilnych. Badania przeprowadzono na dwóch autorskich aplikacjach o identycznych funkcjonalnościach, które zostały zaimplementowane w rozpatrywanych językach. Analiza obejmuje obszary takie jak: obciążenie procesora, zużycie pamięci RAM, zużycie baterii oraz czas wykonania programów. Dodatkowo na podstawie autorskich aplikacji rozpatrzono budowę kodu, liczbę linii kodu i wsparcie społeczności. Rezultaty analizy wskazują, że trudno jednoznacznie określić, który język jest wydajniejszy,dlatego wybór pomiędzy językiem Java, aDart powinien być analityczny i jak najlepiej dopasowany do wymagań danej aplikacji
EN
This paper presents the results of a comparative analysis of Java and Dart programming languages in terms of suitability for creating mobile applications. The research was carried out on two proprietary applications with identical functionalities, which were implemented in the analyzed languages. The analysis covers areas such as: CPU load, RAM consumption, battery consumption and program execution time. Additionally, on the basis of proprietary applications, the code structure, number of lines of code and community support were considered. The results of the analysis indicate that it is difficult to clearly determine which language is more efficient, so the choice between Java and Dart should be analytical and best suited to the requirements of a given application.
EN
The goal of the work described in this paper is to propose a development approach for cyber-physical systems (CPS) which relies on actors as the fundamental modelling blocks. The approach is characterized by its capability to deal with the discrete aspects of the cyber part of a CPS, as well as the continuous behaviour of the physical part. More in particular, the approach is based on the Theatre actor system which fosters determinism in model behaviour, and favours model continuity when switching from system modelling and analysis down to prototype and synthesis phases. A key factor of Theatre is the possibility to combine both discrete-event actors, which operate on a discrete timeline, with continuous-time actors which reproduce, in general by using Ordinary Differential Equations (ODEs), the dynamical evolution of physical components. For formal property assessment, Theatre actors (both discrete and continuous) can be reduced to Timed Automata (TA) in the context of the Uppaal toolbox, where the exhaustive andór the statistical model checkers can be exploited. This paper first describes the proposed approach, then it demonstrates its suitability to CPS modelling and analysis through examples. The paper also discusses how abstract and formal modelling actor concepts can be naturally transitioned to implementation concepts in Java.
PL
Tematem badań niniejszego artykułu była analiza porównawcza wydajności połączeń z bazami danych za pomocą różnych metod komunikacji w oparciu o język programistyczny Java. W skład badanych narzędzi pośredniczących w komunikacji z bazami danych weszły: sterowniki JDBC i szkielety programistyczne ORM (ang. Object–Relational Mapping). Przeprowadzono badania w oparciu o 8 różnych kryteriów, w celu wyłonienia najbardziej efektywnej metody i narzędzia do pracy z relacyjnymi bazami danych, podczas tworzenia aplikacji w języku Java. Poszczególnym kryteriom przyznano wagi, które zostały określone poprzez ankietę przeprowadzoną wśród programistów języka Java i studentów informatyki. Najlepszym narzędziem bez uwzględnienia pozyskanych wag okazał się Hibernate, a z uwzględnieniem wag narzędzie JDBC.
EN
The research topic of this paper was a comparative analysis of the performance of database connections using different communication methods based on the Java programming language. The investigated tools mediating communication with databases included JDBC drivers and Object-Relational Mapping (ORM) programming frameworks. The research was conducted based on 8 different criteria, in order to select the most effective method and tool for working with relational databases, when developing applications in Java. The different criteria were given weights, which were determined through a survey of Java developers and computer science students. Hibernate turned out to be the best tool without taking into account the weights obtained, and with taking into account the weights the JDBC tool.
EN
The Depth of Inheritance Tree (DIT) metric, along with other ones, is used for estimating some quality indicators of software systems, including open-source applications (apps). In cases involving multiple inheritances, at a class level, the DIT metric is the maximum length from the node to the root of the tree. At an application (app) level, this metric defines the corresponding average length per class. It is known, at a class level, a DIT value between 2 and 5 is good. At an app level, similar recommended values for the DIT metric are not known. To find the recommended values for the DIT mean of an app we have proposed to use the confidence and prediction intervals. A DIT mean value of an app from the confidence interval is good since this interval indicates how reliable the estimate is for the DIT mean values of all apps used for estimating the interval. A DIT mean value higher than an upper bound of prediction interval may indicate that some classes have a large number of the inheritance levels from the object hierarchy top. What constitutes greater app design complexity as more classes are involved. We have estimated the confidence and prediction intervals of the DIT mean using normalizing transformations for the data sample from 101 open-source apps developed in Java hosted on GitHub for the 0.05 significance level.
10
Content available remote PRET-ization of uRISC Core
EN
Modern safety-critical embedded systems have to be time-deterministic to guarantee safety. One source of time-nondeterminism are interrupts. This paper shows how to mitigate their influence in the system on a commercially available processor IP (Codasip uRISC) can be modified to exhibit time-determinism in real-time workloads and isolate interrupts. We extend the processor with fine-grained multithreading and isolated interrupt handling to localize time-nondeterminism caused by interrupts. We show a comparison between original and extended processors on a selection of TACleBench benchmarks. For interrupt-driven workloads, ideal interrupt isolation is achieved. The proposed modification can be used on other in-order single-issue processors.
PL
Urządzenia mobilne pozwalają na kreowanie aplikacji opierających się na ciągłej dostępności do Internetu i użytkownika, umożliwiając wprowadzenie na nowy poziom wcześniej istniejących koncepcji. Celem tego badania jest program, który umożliwi zarządzanie najmem mieszkań, automatyzację opłat oraz komunikację wynajmującego z lokatorami, jednocześnie znajdując się w zasięgu ręki. Zostało to zrealizowane przy pomocy aplikacji mobilnej napisanej w środowisku Java, serwera stworzonego przy pomocy środowiska Node.js, oraz bazy danych stworzonej w systemie zarządzania MySQL Workbench. Finalny produkt jest ogromnym ułatwieniem w zarządzaniu mieszkaniami, zarówno dla właściciela jak i lokatora
EN
Mobile devices allow us to create applications based on constant availability of internet and a user, which we can use to improve previously existing ideas. The aim of the study is to create program, capable of helping with rental management, automatic fees and communication between owner and tenant, while safely remaining within reach. Such application was created with a usage of environment Android Studio with help of Java language, while the backend server was made with a JavaScrip runtime environment Node.js, and a database formed in relation database management system MySQL Workbench. Final product is an enormous help with rental management, both for owner and tenant.
PL
W tym artykule omówiono kwestię porównania technologii Java i Kotlin w oparciu o szkielet aplikacji internetowych. Kryteria brane pod uwagę dla celów testowych to: czas wykonania, wykorzystanie pamięci, obciążenie procesora, liczba odpowiedzi z bazy danych w zadanym czasie. Przeprowadzana jest seria testów i ich dogłębna analiza porównawcza. Przeprowadzono testy i analizę kodu. Wydajność pod względem szkieletów aplikacji internetowych, szybkości odpowiedzi bazy danych i szybkości działania testów - we wszystkich Kotlin okazał się mniej wydajny. Nie ma znaczącej różnicy dla obciążenia procesora. Pomiędzy poszczególnymi pomiarami, różnica nie przekracza 2%. Implementacja w języku Kotlin nigdy nie osiągnęła najlepszego wyniku w żadnej grupie pomiarów.
EN
This paper discusses the issue of comparing Java and Kotlin technologies based on the web application framework. The criteria taken into account for testing purposes are: execution time, memory usage, CPU load, database response in set time. A series of tests and their in-depth comparative analysis are carried out. For this case, tests and code analysis were carried out to draw comparative conclusions. The performance in terms of web frameworks, database response speed and tests implementation in different languages - in all these Kotlin proved to be less efficient. There is no significant difference between CPU load between individual easurements, the difference does not exceed 2%. Implementation in the Kotlin language has never achieved the best result in any group of measurements.
EN
Mobile applications for the Android platform can be implemented using Java or C#. The article presents a comparison of the time performance of these languages when sending various text, image and video files in a mobile application. The tests were carried out using two mobile applications with identical functionalities. Based on the collected data, the server application calculated statistics, such as, for example, the time required to send 1 MB of data depending on the file type and size. Based on the results obtained, it was proved that in the case of data transfer via a wireless network, an application written in Java is characterized by greater time efficiency than an analogous application written in C#.
PL
Aplikacje mobilne na platformę Android można implementować z użyciem języków Java lub C#. Artykuł przedstawia porównanie wydajności czasowej tych języków podczas przesyłania różnych plików typu tekstowego, obrazu i wideo w aplikacji mobilnej. Badania zostały przeprowadzone z użyciem dwóch aplikacji mobilnych o identycznych funkcjo-nalnościach. Na podstawie zebranych danych aplikacja serwerowa obliczyła statystyki, takie jak na przykład czas wymagany na przesłanie 1 MB danych w zależności od typu oraz rozmiaru pliku. Na podstawie otrzymanych wyników udowodniono, że w przypadku transferu danych poprzez sieć bezprzewodową aplikacja napisana w języku Java cechuje się większą wydajnością czasową niż analogiczna aplikacja napisana w języku C#.
EN
This article presents the results of a literature study related to the construction and operation of Java Virtual Machine, as well as performance tests of selected languages using the aforementioned runtime environment on the example of Java, Scala and Kotlin. Performance testing was carried out using two applications built using the Apache Maven archetype with the built-in Java Microbenchmark Harness library.
PL
Niniejszy artykuł przedstawia wyniki badania literaturowego związanego z budową oraz działaniem Java Virtual Ma-chine, jak również badania wydajności wybranych języków, wykorzystujących wspomniane środowisko uruchomie-niowe na przykładzie Javy, Scali oraz Kotlina. Badanie wydajności przeprowadzono wykorzystując dwie aplikacje, zbudowane przy użyciu archetypu Apache Maven z wbudowaną biblioteką Java Microbenchmark Harness.
EN
SAWUML is a general-purpose software modeling language that extends UML by unifying component and sequence diagrams for the specifications of software architectures. While component diagram is used for modeling the system structures, sequence diagram is extended with the Design-by-Contract approach for the modeling of system behaviors. In this paper, we aim at enhancing the language usability by providing alternative modeling choices for practitioners. To this end, we extended SAWUML's notation set with UML's activity diagram for the behavior modeling. So, practitioners may now use either sequence or activity diagrams, while the system structures are still modeled with component diagrams. We also extended SAWUML's modeling editor for creating software architecture models together with component and activity diagrams and the code generators for automatically obtaining (i) formal models in SPIN's ProMeLa for formal verification and (ii) Java-based implementation. We illustrate our language extension with the gas station case-study.
PL
Niniejsza artykuł przedstawia analizę narzędzia do tworzenia testów automatycznych o nazwie Cucumber oraz opisuje jak dane narzędzie jest wykorzystywane w praktyce. W ramach artykułu stworzono kilka przypadków testowych, aby zweryfikować działanie obranego podejścia do testowania w programowaniu w językach Java i Kotlin, atakże został porównany czas wykonania testów w obu językachz rodziny języków obiektowych.
EN
The paper presents an analysis of the Cucumber automated test tool and describes how this tool is used in practice.As part of the paper, several test cases were created to fully verify the operation of the chosen approach to testing in programming in Java and Kotlin languages also the time of testing were compared in both languages from the object-oriented language family.
PL
Celem artykułu jest porównanie i analiza wpływu technologii i technik przesyłania danych, pod kątem wyświetlania obrazu przy pomocy ostrosłupa holograficznego. Oceniając użyteczność rozwiązania pod uwagę będą brane parametry: czas przesyłania klatek obrazu, użycie parametrów fizycznych maszyny i parametry pracy Wirtualnej Maszyny Javy.
EN
The aim of the article is to compare and analyze the impact of technologies and data transfer techniques in term of displaying the image using a holographic pyramid. When assessing the usability of the solution, the following parameters will be taken into account: time of image transfer, use of physical parameters of the machine and parameters of the Java Virtual Machine.
PL
Niniejsza publikacja przedstawia rezultaty analizy porównawczej języków programowania Java i Kotlin, wykorzystywanych do tworzenia aplikacji mobilnych przeznaczonych do pracy pod kontrolą systemu Android. Analiza obejmuje aspekty związane z wydajnością, takie jak obciążenie procesora, obciążenie pamięci RAM, a także czasy kompilacji i wykonania programu. Pod uwagę wzięto również strukturę kodu, dostępność bibliotek, obsługiwane bazy danych, popularność oraz wsparcie społeczności.
EN
This publication presents the results of a comparative analysis of Java and Kotlin programming languages used to create mobile applications for system Android. The analysis covers performance aspects such as CPU load, RAM load, as well as the compilation and execution times. Aspects such as code structure, availability of libraries, supported databases, popularity and community support were taken under consolidation.
EN
In high-level object languages, such as Java, a problem of unnecessary duplicates of instances can easily appear. Although there can be a valid reason for maintaining several clones of the same data in the memory, often it indicates that the application can be refactored into a more efficient one. Unnecessary instances consume memory, but in case of Java applications can also have a significant impact on the application performance, as they might prolong the time needed for the garbage collection. In this paper, we are presenting a method and a tool that allows detecting duplicity in the heap dump of a Java application, based on the shallow and deep object comparison. The tool allows to identify the problematic instances in the memory and thus helps programmers to create a better application. On several case studies, we also demonstrate that the duplicates appear not only in the student projects and similar programs that often suffer from poor maintenance but also in commonly available Java tools and frameworks.
20
Content available remote Automatic assessment of narrative answers using information retrieval techniques
EN
This paper presents a system for automatic assessment of narrative answers using information retrieval algorithms. It is designed to help professors to evaluate the answers that they receive from their students. It is a Java application that communicates through a REST API. This REST API has at its core the Lucene library and exposes all the great functionalities that Lucene has. The application has one UI for the students and one UI for the professor. The student will select the professor, select the question, upload the answer and send it. The professor will evaluate the student answer using the algorithms that will be discussed in this paper. Also in this paper a series of experiments will be presented, and their result will give us a better understanding of the algorithms and have a taste of how they work.
first rewind previous Strona / 5 next fast forward last
JavaScript jest wyłączony w Twojej przeglądarce internetowej. Włącz go, a następnie odśwież stronę, aby móc w pełni z niej korzystać.