Already being adopted for traditional enterprise computing tasks,Java technology is also making its way into manufacturing ***, the programming language is still missing a few capabilitiesthat must somehow be added if...
详细信息
Already being adopted for traditional enterprise computing tasks,Java technology is also making its way into manufacturing ***, the programming language is still missing a few capabilitiesthat must somehow be added if it is to handle real-time operations inindustrial control without a hitch
We propose a modest collection of primitives for synchronization and control in parallel numerical algorithms. These are phrased in a syntax that is compatible with FORTRAN, creating a publication language for paralle...
详细信息
We propose a modest collection of primitives for synchronization and control in parallel numerical algorithms. These are phrased in a syntax that is compatible with FORTRAN, creating a publication language for parallel software. A preprocessor may be used to map code written in this extended FORTRAN into standard FORTRAN with calls to the run-time libraries of the various parallel systems now in use. We solicit the reader's comments on the clarity, as well as the adequacy, of the primitives we have proposed.
The main reason for the invention of computer programming languages is for these languages to express a command-to-control machine behavior. Some of these programming languages have specific advantages that are used i...
详细信息
The main reason for the invention of computer programming languages is for these languages to express a command-to-control machine behavior. Some of these programming languages have specific advantages that are used in specific environments such as structured query language (SQL), hypertext markup language (HTML), and spreadsheet. The common definitions of these languages are domain-specific languages (DSLs). Although DSLs are the best way to deal with specific systems, it is hard to use with other environments or platforms. Groovy is a dynamic programming language that runs on the Java virtual machine. Groovy has some features that allow programmers to manage DSLs within its unique style. Groovy has some disadvantages because it does not support all Java features and syntax while also producing unnecessary byte code during compilation. This paper proposes an extended-architecture technique to implement a computer programming language and compiler through extending Java with Groovy language. The extensible language is called JGroovy'. And JGroovy is supported both by Java and Groovy language. We implement the compiler for JGroovy and call it the JGroovy compiler' (JGC). By its extended architecture, JGC is more compatible for Java source code than Javac can claim to be. And it also produces a better and more compact byte code than the Groovy compiler, with an approximate improvement of 8-12%. (c) 2013 Institute of Electrical Engineers of Japan. Published by John Wiley & Sons, Inc.
Two software tools are described that are designed to facilitate software development for microcontrollers. One is a mid-level programming language called Pascal/48 and the other is a circuit simulation system. Pascal...
详细信息
Two software tools are described that are designed to facilitate software development for microcontrollers. One is a mid-level programming language called Pascal/48 and the other is a circuit simulation system. Pascal/48 is designed to give the programmer many of the advantages of a high-level language, but also provide access to all of the hardware of the Intel MCS-48 series of microcontrollers. The circuit simulation system combines many of the advantages of simulation and emulation. It provides a software testing environment in which many more software functions can be tested than with conventional simulators. The system integrates an instruction-set simulator with simulators for other devices. They operate in parallel and are synchronized by a clock that records simulated time. I/O lines of the microcontroller can be linked to other components so that complete circuits can be simulated. Displays are provided of the internal and external state of the simulated circuit, and of the Pascal/48 program being executed. They are updated as simulated execution proceeds using the screen updating facilities of ASCII terminals. Simulation can be continuous, single step, or execution can be reversed (i.e. instructions are ‘unexecuted’).
A code snippet is a small region of reusable source code that is common to many functions. Skilled management and reuse of snippets can improve programming efficiency in practice. However, we find that most snippets a...
详细信息
A code snippet is a small region of reusable source code that is common to many functions. Skilled management and reuse of snippets can improve programming efficiency in practice. However, we find that most snippets are posted to online blogs or snippet management systems with little description and tagging, which leads to an embarrassing situation in which existing snippets are difficult to reuse. This occurs because snippets are usually hastilypushed to online services or saved in text files by programmers and also because existing management systems do not provide efficient labeling and reusing frameworks. In this paper, we propose to annotate snippets with a well-formed domain-specific ontology-programming ontology. With a thorough investigation of real world snippets, we designed a programming ontology to annotate and recommend snippets. We show how to annotate a snippet with ontology terms based on text classification models. In addition, we built a snippet management system that stores user snippets in the cloud and automatically recommends snippets, so that the retrieval of snippets becomes trivial in popular integrated developing environments, such as Eclipse and Visual Studio. Our evaluation results demonstrate that theontology annotation algorithm is able to automatically annotate a snippet with a high degree of accuracy. The shared domain knowledge also makes it possible to share snippets among programmers and systems. As the number of labeled snippets increases, deep learning models can be trained and used to annotate code snippets with high accuracy.
Cellular automata might be implemented as programmable special-purpose processors controoled by universal computer systems. This configuration is appropriate, because in general only special tasks of complex problems ...
详细信息
Cellular automata might be implemented as programmable special-purpose processors controoled by universal computer systems. This configuration is appropriate, because in general only special tasks of complex problems are efficiently parallelizable. Many task for image processing like window operators for filtering, smoothing or edge detection may be presented in a way particularly suitable for cellular automata. In this paper we present CELIP, a CEllular language for Image Processing. It has been developed for prototyping cellular algorithms for image processing.
Le langage de programmation Prolog III est une extension de Prolog au niveau de ce qu’il a de plus fondamental, le mécanisme d’unification. Il intègre dans ce mécanisme un traitement fin des arbres et...
详细信息
Le langage de programmation Prolog III est une extension de Prolog au niveau de ce qu’il a de plus fondamental, le mécanisme d’unification. Il intègre dans ce mécanisme un traitement fin des arbres et des listes, un traitement numérique et un traitement du calcul propositionnel complet. L’auteur présente ici les spécifications et le modèle logico-mathématique de ce nouveau langage. A cette occasion, il remplace la notion même d’unification par celle plus appropriée de résolution de contraintes. Puis il illustre les possibilités accrues du langage à travers des exemples variés.
It is possible, by appropriate programming language extensions, to use the assignment statement as the sole means of changing the value of a variable, thereby eliminating the need to modify routine arguments by output...
详细信息
It is possible, by appropriate programming language extensions, to use the assignment statement as the sole means of changing the value of a variable, thereby eliminating the need to modify routine arguments by output parameters. Several suggestions are made to enhance the syntax and semantics of routine definition and assignment to maintain notational convenience and efficient execution normally associated with output parameters. Finally, an almost complete implementation of the ideas is presented in C.
Although Newton-Cotes integration formulas in engineering have been the subject of the study for a long time, the improvement in formulations is still object of interest. In this sense, design of calculators based on ...
详细信息
Although Newton-Cotes integration formulas in engineering have been the subject of the study for a long time, the improvement in formulations is still object of interest. In this sense, design of calculators based on these formulations becomes significant. The purpose of this paper is to design an integral calculator for any engineering problems. Since the integral calculator, easy-to-understand and use, is aimed to be employed by any kind of users. Visual Basic for Applications (VBA) is the programming language of Excel. Excel spreadsheet with VBA is preferred for this purpose. In this study, a user interface input form is introduced. This form is composed of the embedded algorithm. This algorithm includes not only rules and formulations of each Newton-Cotes such as Composite Trapezoidal rule, Simpson's rules, Boole's rules, and Gauss Legendre formulations with 2, 6, 10, 16, and 24 points and exact result of any integral (if it exists) with computed true percent relative error for comparison purposes. This calculator is tested for civil, mechanical, and chemical engineering applications. The results and screenshots for each application obtained from calculator are presented. The present study allows design of an integral spreadsheet calculator for any integral given. If exact result of the integral cannot be obtainable, the calculator can perform only integral calculations numerically without exact solution and computed true percent relative error. Otherwise, user can solve the integrals completely with this tool easily and accurately again but this time by both numerically and analytically with true percent relative error calculations.
We develop a new trust - region (TR)- based algorithm to construct complete three - phase envelopes for reservoir fluid mixtures. The new algorithm is developed based on a basic algorithm for two-phase envelope constr...
详细信息
We develop a new trust - region (TR)- based algorithm to construct complete three - phase envelopes for reservoir fluid mixtures. The new algorithm is developed based on a basic algorithm for two-phase envelope constructions (Xu and Li 2023). A state - of - the - art TR method with a realistic exact subproblem solver is implemented in the algorithm, and an integrated strategy is adopted to construct complete phase envelopes with two-phase and three - phase branches. We test the performance of the TR- based algorithm by constructing multiphase envelopes for a total of 15 fluid mixtures that include hydrocarbons- CO2, hydrocarbons- asphaltene, and hydrocarbons - water mixtures. Comparison against the conventional Newton - based algorithm indicates that the TR- based algorithm leads to a much higher computational efficiency and an enhanced robustness.
暂无评论