6,782 research outputs found

    The Meaning of Memory Safety

    Full text link
    We give a rigorous characterization of what it means for a programming language to be memory safe, capturing the intuition that memory safety supports local reasoning about state. We formalize this principle in two ways. First, we show how a small memory-safe language validates a noninterference property: a program can neither affect nor be affected by unreachable parts of the state. Second, we extend separation logic, a proof system for heap-manipulating programs, with a memory-safe variant of its frame rule. The new rule is stronger because it applies even when parts of the program are buggy or malicious, but also weaker because it demands a stricter form of separation between parts of the program state. We also consider a number of pragmatically motivated variations on memory safety and the reasoning principles they support. As an application of our characterization, we evaluate the security of a previously proposed dynamic monitor for memory safety of heap-allocated data.Comment: POST'18 final versio

    General Form of the Color Potential Produced by Color Charges of the Quark

    Full text link
    Constant electric charge ee satisfies the continuity equation μjμ(x)=0\partial_\mu j^{\mu}(x)= 0 where jμ(x)j^\mu(x) is the current density of the electron. However, the Yang-Mills color current density jμa(x)j^{\mu a}(x) of the quark satisfies the equation Dμ[A]jμa(x)=0D_\mu[A] j^{\mu a}(x)= 0 which is not a continuity equation (μjμa(x)0\partial_\mu j^{\mu a}(x)\neq 0) which implies that a color charge qa(t)q^a(t) of the quark is not constant but it is time dependent where a=1,2,...8a=1,2,...8 are color indices. In this paper we derive general form of color potential produced by color charges of the quark. We find that the general form of the color potential produced by the color charges of the quark at rest is given by \Phi^a(x) =A_0^a(t,{\bf x}) =\frac{q^b(t-\frac{r}{c})}{r}\[\frac{{\rm exp}[g\int dr \frac{Q(t-\frac{r}{c})}{r}] -1}{g \int dr \frac{Q(t-\frac{r}{c})}{r}}\]_{ab} where drdr integration is an indefinite integration, ~~ Qab(τ0)=fabdqd(τ0)Q_{ab}(\tau_0)=f^{abd}q^d(\tau_0), ~~r=xX(τ0)r=|{\vec x}-{\vec X}(\tau_0)|, ~~τ0=trc\tau_0=t-\frac{r}{c} is the retarded time, ~~cc is the speed of light, ~~X(τ0){\vec X}(\tau_0) is the position of the quark at the retarded time and the repeated color indices b,db,d(=1,2,...8) are summed. For constant color charge qaq^a we reproduce the Coulomb-like potential Φa(x)=qar\Phi^a(x)=\frac{q^a}{r} which is consistent with the Maxwell theory where constant electric charge ee produces the Coulomb potential Φ(x)=er\Phi(x)=\frac{e}{r}.Comment: Final version, two more sections added, 45 pages latex, accepted for publication in JHE

    Selective Constraints on Amino Acids Estimated by a Mechanistic Codon Substitution Model with Multiple Nucleotide Changes

    Get PDF
    Empirical substitution matrices represent the average tendencies of substitutions over various protein families by sacrificing gene-level resolution. We develop a codon-based model, in which mutational tendencies of codon, a genetic code, and the strength of selective constraints against amino acid replacements can be tailored to a given gene. First, selective constraints averaged over proteins are estimated by maximizing the likelihood of each 1-PAM matrix of empirical amino acid (JTT, WAG, and LG) and codon (KHG) substitution matrices. Then, selective constraints specific to given proteins are approximated as a linear function of those estimated from the empirical substitution matrices. Akaike information criterion (AIC) values indicate that a model allowing multiple nucleotide changes fits the empirical substitution matrices significantly better. Also, the ML estimates of transition-transversion bias obtained from these empirical matrices are not so large as previously estimated. The selective constraints are characteristic of proteins rather than species. However, their relative strengths among amino acid pairs can be approximated not to depend very much on protein families but amino acid pairs, because the present model, in which selective constraints are approximated to be a linear function of those estimated from the JTT/WAG/LG/KHG matrices, can provide a good fit to other empirical substitution matrices including cpREV for chloroplast proteins and mtREV for vertebrate mitochondrial proteins. The present codon-based model with the ML estimates of selective constraints and with adjustable mutation rates of nucleotide would be useful as a simple substitution model in ML and Bayesian inferences of molecular phylogenetic trees, and enables us to obtain biologically meaningful information at both nucleotide and amino acid levels from codon and protein sequences.Comment: Table 9 in this article includes corrections for errata in the Table 9 published in 10.1371/journal.pone.0017244. Supporting information is attached at the end of the article, and a computer-readable dataset of the ML estimates of selective constraints is available from 10.1371/journal.pone.001724

    Light sheet microscopy with acoustic sample confinement

    Get PDF
    Contactless sample confinement would enable a whole host of new studies in developmental biology and neuroscience, in particular, when combined with long-term, wide-field optical imaging. To achieve this goal, we demonstrate a contactless acoustic gradient force trap for sample confinement in light sheet microscopy. Our approach allows the integration of real-time environmentally controlled experiments with wide-field low photo-toxic imaging, which we demonstrate on a variety of marine animal embryos and larvae. To illustrate the key advantages of our approach, we provide quantitative data for the dynamic response of the heartbeat of zebrafish larvae to verapamil and norepinephrine, which are known to affect cardiovascular function. Optical flow analysis allows us to explore the cardiac cycle of the zebrafish and determine the changes in contractile volume within the heart. Overcoming the restrictions of sample immobilisation and mounting can open up a broad range of studies, with real-time drug-based assays and biomechanical analyses

    Spatially-resolved electronic and vibronic properties of single diamondoid molecules

    Full text link
    Diamondoids are a unique form of carbon nanostructure best described as hydrogen-terminated diamond molecules. Their diamond-cage structures and tetrahedral sp3 hybrid bonding create new possibilities for tuning electronic band gaps, optical properties, thermal transport, and mechanical strength at the nanoscale. The recently-discovered higher diamondoids (each containing more than three diamond cells) have thus generated much excitement in regards to their potential versatility as nanoscale devices. Despite this excitement, however, very little is known about the properties of isolated diamondoids on metal surfaces, a very relevant system for molecular electronics. Here we report the first molecular scale study of individual tetramantane diamondoids on Au(111) using scanning tunneling microscopy and spectroscopy. We find that both the diamondoid electronic structure and electron-vibrational coupling exhibit unique spatial distributions characterized by pronounced line nodes across the molecular surfaces. Ab-initio pseudopotential density functional calculations reveal that the observed dominant electronic and vibronic properties of diamondoids are determined by surface hydrogen terminations, a feature having important implications for designing diamondoid-based molecular devices.Comment: 16 pages, 4 figures. to appear in Nature Material
    corecore