179,604 research outputs found
A Coq-based synthesis of Scala programs which are correct-by-construction
The present paper introduces Scala-of-Coq, a new compiler that allows a
Coq-based synthesis of Scala programs which are "correct-by-construction". A
typical workflow features a user implementing a Coq functional program, proving
this program's correctness with regards to its specification and making use of
Scala-of-Coq to synthesize a Scala program that can seamlessly be integrated
into an existing industrial Scala or Java application.Comment: 2 pages, accepted version of the paper as submitted to FTfJP 2017
(Formal Techniques for Java-like Programs), June 18-23, 2017, Barcelona ,
Spai
Scala Server Faces
Progress in the Java language has been slow over the last few years. Scala is emerging as one of the probable successors for Java with features such as type inference, higher order functions, closure support and sequence comprehensions. This allows object-oriented yet concise code to be written using Scala. While Java based MVC frameworks are still prevalent, Scala based frameworks along with Ruby on Rails, Django and PHP are emerging as competitors. Scala has a web framework called Lift which has made an attempt to borrow the advantages of other frameworks while keeping code concise. Since Sun’s MVC framework, Java Server Faces 2.0 and its future versions seem to be heading in a reasonably progressive direction; I have developed a framework which attempts to overcome its limitations. I call such a framework ―Scala Server Faces‖. This framework provides a way of writing Java EE applications in Scala yet borrow from the concept of ―convention over configuration‖ followed by rival web frameworks. Again, an Eclipse tool is provided to make the programmer\u27s task of writing code on the popular Eclipse platform. Scala Server Faces, the framework and the tool allows the programmer to write enterprise web applications in Scala by providing features such as templating support, CRUD screen generation for database model objects, an Ant script to help deployment and integration with the Glassfish Application Server
Verified Subtyping with Traits and Mixins
Traits allow decomposing programs into smaller parts and mixins are a form of
composition that resemble multiple inheritance. Unfortunately, in the presence
of traits, programming languages like Scala give up on subtyping relation
between objects. In this paper, we present a method to check subtyping between
objects based on entailment in separation logic. We implement our method as a
domain specific language in Scala and apply it on the Scala standard library.
We have verified that 67% of mixins used in the Scala standard library do
indeed conform to subtyping between the traits that are used to build them.Comment: In Proceedings FSFMA 2014, arXiv:1407.195
Data Snapshot: “Trump Towns” Swung Democratic in New Hampshire Midterms
New Hampshire municipalities with fewer college-educated residents, which generally offered strong support for Donald Trump two years ago, swung toward the opposing party in the 2018 midterms
Cohomology of the Hilbert scheme of points on a surface with values in representations of tautological bundles
Let a smooth quasi-projective algebraic surface, a line bundle on
. Let the Hilbert scheme of points on and the
tautological bundle on naturally associated to the line bundle on
. We explicitely compute the image \bkrh(L^{[n]}) of the tautological
bundle for the Bridgeland-King-Reid equivalence \bkrh :
\B{D}^b(X^{[n]}) \ra \B{D}^b_{\perm_n}(X^n) in terms of a complex
\comp{\mc{C}}_L of \perm_n-equivariant sheaves in \B{D}^b_{\perm_n}(X^n).
We give, moreover, a characterization of the image \bkrh(L^{[n]} \tens ...
\tens L^{[n]}) in terms of of the hyperderived spectral sequence
associated to the derived -fold tensor power of the complex
\comp{\mc{C}}_L. The study of the \perm_n-invariants of this spectral
sequence allows to get the derived direct images of the double tensor power and
of the general -fold exterior power of the tautological bundle for the
Hilbert-Chow morphism, providing Danila-Brion-type formulas in these two cases.
This yields easily the computation of the cohomology of with values
in L^{[n]} \tens L^{[n]} and .Comment: 41 pages; revised version, exposition improve
Annotated imports
Presented simple extensions to scala language related to import statements:
exported imports, which provide ability to reuse sequence of import clauses in
composable form and default rewriters, which provide mechanism for pluggable
macro-based AST transformation of overall compilation unit, activated by import
of library object. Using these facilities not only allows more compact code, it
prevents application programmer from producing certain type of errors too and
allows to implement local language extension as libraries on top of standard
compiler. Part of discussed extensions is submitted to scala language committee
as pre-sip \cite{ai-presip} and can be used as first step for refining imports
semantics in the future version of scala language
A horizontally-scalable multiprocessing platform based on Node.js
This paper presents a scalable web-based platform called Node Scala which
allows to split and handle requests on a parallel distributed system according
to pre-defined use cases. We applied this platform to a client application that
visualizes climate data stored in a NoSQL database MongoDB. The design of Node
Scala leads to efficient usage of available computing resources in addition to
allowing the system to scale simply by adding new workers. Performance
evaluation of Node Scala demonstrated a gain of up to 74 % compared to the
state-of-the-art techniques.Comment: 8 pages, 7 figures. Accepted for publication as a conference paper
for the 13th IEEE International Symposium on Parallel and Distributed
Processing with Applications (IEEE ISPA-15
- …