17,858 research outputs found
Refactoring Legacy JavaScript Code to Use Classes: The Good, The Bad and The Ugly
JavaScript systems are becoming increasingly complex and large. To tackle the
challenges involved in implementing these systems, the language is evolving to
include several constructions for programming- in-the-large. For example,
although the language is prototype-based, the latest JavaScript standard, named
ECMAScript 6 (ES6), provides native support for implementing classes. Even
though most modern web browsers support ES6, only a very few applications use
the class syntax. In this paper, we analyze the process of migrating structures
that emulate classes in legacy JavaScript code to adopt the new syntax for
classes introduced by ES6. We apply a set of migration rules on eight legacy
JavaScript systems. In our study, we document: (a) cases that are
straightforward to migrate (the good parts); (b) cases that require manual and
ad-hoc migration (the bad parts); and (c) cases that cannot be migrated due to
limitations and restrictions of ES6 (the ugly parts). Six out of eight systems
(75%) contain instances of bad and/or ugly cases. We also collect the
perceptions of JavaScript developers about migrating their code to use the new
syntax for classes.Comment: Paper accepted at 16th International Conference on Software Reuse
(ICSR), 2017; 16 page
Extension of four-dimensional atmospheric models
The cloud data bank, the 4-D atmospheric model, and a set of computer programs designed to simulate meteorological conditions for any location above the earth are described in turns of space vehicle design and simulation of vehicle reentry trajectories. Topics discussed include: the relationship between satellite and surface observed cloud cover using LANDSAT 1 photographs and including the effects of cloud shadows; extension of the 4-D model to the altitude of 52 km; and addition of the u and v wind components to the 4-D model of means and variances at 1 km levels from the surface to 25 km. Results of the cloud cover analysis are presented along with the stratospheric model and the tropospheric wind profiles
Cross-level Validation of Topological Quantum Circuits
Quantum computing promises a new approach to solving difficult computational
problems, and the quest of building a quantum computer has started. While the
first attempts on construction were succesful, scalability has never been
achieved, due to the inherent fragile nature of the quantum bits (qubits). From
the multitude of approaches to achieve scalability topological quantum
computing (TQC) is the most promising one, by being based on an flexible
approach to error-correction and making use of the straightforward
measurement-based computing technique. TQC circuits are defined within a large,
uniform, 3-dimensional lattice of physical qubits produced by the hardware and
the physical volume of this lattice directly relates to the resources required
for computation. Circuit optimization may result in non-intuitive mismatches
between circuit specification and implementation. In this paper we introduce
the first method for cross-level validation of TQC circuits. The specification
of the circuit is expressed based on the stabilizer formalism, and the
stabilizer table is checked by mapping the topology on the physical qubit
level, followed by quantum circuit simulation. Simulation results show that
cross-level validation of error-corrected circuits is feasible.Comment: 12 Pages, 5 Figures. Comments Welcome. RC2014, Springer Lecture Notes
on Computer Science (LNCS) 8507, pp. 189-200. Springer International
Publishing, Switzerland (2014), Y. Shigeru and M.Shin-ichi (Eds.
On the Nature of Precursors in the Radio Pulsar Profiles
In the average profiles of several radio pulsars, the main pulse is
accompanied by the preceding component. This so called precursor is known for
its distinctive polarization, spectral, and fluctuation properties. Recent
single-pulse observations hint that the sporadic activity at the extreme
leading edge of the pulse may be prevalent in pulsars. We for the first time
propose a physical mechanism of this phenomenon. It is based on the induced
scattering of the main pulse radiation into the background. We show that the
scattered component is directed approximately along the ambient magnetic field
and, because of rotational aberration in the scattering region, appears in the
pulse profile as a precursor to the main pulse. Our model naturally explains
high linear polarization of the precursor emission, its spectral and
fluctuation peculiarities as well as suggests a specific connection between the
precursor and the main pulse at widely spaced frequencies. This is believed to
stimulate multifrequency single-pulse studies of intensity modulation in
different pulsars.Comment: 5 pages, no figures. Accepted for publication in MNRAS Letter
Experimental characterization of deployable trusses and joints
The structural dynamic properties of trusses are strongly affected by the characteristics of joints connecting the individual beam elements. Joints are particularly significant in that they are often the source of nonlinearities and energy dissipation. While the joints themselves may be physically simple, direct measurement is often necessary to obtain a mathematical description suitable for inclusion in a system model. Force state mapping is a flexible, practical test method for obtaining such a description, particularly when significant nonlinear effects are present. It involves measurement of the relationship, nonlinear or linear, between force transmitted through a joint and the relative displacement and velocity across it. An apparatus and procedure for force state mapping are described. Results are presented from tests of joints used in a lightweight, composite, deployable truss built by the Boeing Aerospace Company. The results from the joint tests are used to develop a model of a full 4-bay truss segment. The truss segment was statically and dynamically tested. The results of the truss tests are presented and compared with the analytical predictions from the model
The Equilibrium Distribution of Gas Molecules Adsorbed on an Active Surface
We evaluate the exact equilibrium distribution of gas molecules adsorbed on
an active surface with an infinite number of attachment sites. Our result is a
Poisson distribution having mean , with the
mean gas density, the sticking probability, the evaporation
probability in a time interval , and Smoluchowski's exit probability
in time interval for the surface in question. We then solve for the case
of a finite number of attachment sites using the mean field approximation,
recovering in this case the Langmuir isotherm.Comment: 14 pages done in late
Logarithmic growth dynamics in software networks
In a recent paper, Krapivsky and Redner (Phys. Rev. E, 71 (2005) 036118)
proposed a new growing network model with new nodes being attached to a
randomly selected node, as well to all ancestors of the target node. The model
leads to a sparse graph with an average degree growing logarithmically with the
system size. Here we present compeling evidence for software networks being the
result of a similar class of growing dynamics. The predicted pattern of network
growth, as well as the stationary in- and out-degree distributions are
consistent with the model. Our results confirm the view of large-scale software
topology being generated through duplication-rewiring mechanisms. Implications
of these findings are outlined.Comment: 7 pages, 3 figures, published in Europhysics Letters (2005
- …