Science Score: 59.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 6 DOI reference(s) in README -
✓Academic publication links
Links to: zenodo.org -
✓Committers with academic emails
1 of 4 committers (25.0%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (17.4%) to scientific vocabulary
Repository
Exact Computations with Reals
Basic Info
- Host: GitHub
- Owner: flatsurf
- License: gpl-3.0
- Language: C++
- Default Branch: master
- Homepage: https://flatsurf.github.io/exact-real/
- Size: 2.33 MB
Statistics
- Stars: 8
- Watchers: 3
- Forks: 4
- Open Issues: 11
- Releases: 30
Metadata Files
README.md
exact-real
Exact Computations with Real Numbers
exact-real is a C++/Python library which provides exact lazy computations in the Real Numbers. In particular it implements arithmetic and comparisons of (random) transcendental numbers.
Source tarballs can be downloaded at https://github.com/flatsurf/exact-real/releases.
This repository contains two related projects:
- libexactreal a C++ library
- pyexactreal a Python wrapper for libexactreal
Build and Develop exact-real with pixi
If you have cloned the source repository, make sure to pull in all the third-party header-only libraries by running:
git submodule update --init
If you are distributing exact-real or you are a purist who only wants to interact with autotools directly, then you should skip to the next section. Otherwise, we strongly recommend that you install pixi and then use the following commands:
pixi run testbuild exact-real and run the libexactreal and pyexactreal test suitespixi run sagebuild exact-real and spawn SageMath with the local libexactreal and pyexactreal installedpixi run docto build and preview the documentationpixi run compile-commandsto generate acompile_commands.jsonthat your IDE might be able to use to make sense of this project
What is pixi?
pixi is a tool based on [conda](https://en.wikipedia.org/wiki/Conda_(package_manager)) & [conda-forge](https://conda-forge.org) for developers so that we can all use the same workflows in the same defined environments. pixi allows us to ship a very opinionated setup to developers of exact-real namely a number of opinionated scripts with corresponding tested (and opinionated) dependencies. This makes the whole development experience much more reliable and reproducible, e.g., the CI on GitHub Pull Requests runs with the exact same setup, so if something fails there, you can just run the CI command to hopefully get exactly the same behavior locally.How do I use pixi?
If you have not used pixi before, the most relevant pixi command is: ```sh pixi run TASK ``` Run `pixi task list` to see the available tasks. All tasks are defined in the `pixi.toml` file and most are used somewhere in our GitHub Continuous Integration setup, see .github/workflows/.Why don't we add all things to the Makefiles but use pixi tasks?
Packagers do prefer a system that is as minimalistic as possible. Any opinionated bit in the build system, such as setting compiler flags, usually needs to be patched out by software distributions. That's why our Makefiles are trying to follow the autoconfiscated standards as closely as possible. And essentially all that pixi does is to call these Makefiles without you having to figure out how everything works in detail.Can I use configure & make with pixi?
More experienced developers may not want to use these tasks. You can also just use the curated list of dependencies that pixi provides and drop into a shell with these dependencies installed. For example, to run the libexactreal test suite directly, you could do: ```sh pixi shell -e dev ./bootstrap cd libexactreal ./configure make check ``` Note that the following section contains more details about this `configure && make` workflow that might be of interest to you.Build from the Source Code Repository or a Tarball
If you have cloned the source directory and you decided not to use pixi, you will need to setup the configure script and Makefile using autotools. That is
git submodule update --init
./bootstrap
If you obtained a tarball of the sources or if the preceding step worked, you can now run
./configure
make
make check # to run our test suite
make install # to install into /usr/local
If you happen to have any of FLINT, Arb, or ANTIC installed in a non standard
directory, you will have to specify the CPPFLAGS and LDFLAGS variables for
the configure script
./configure CPPFLAGS=-I/my/path/include LDFLAGS=-L/my/path/lib
For best performance run CFLAGS="-O3" CXXFLAGS="-O3" ./configure instead of
./configure. You might want to add -g3 to CFLAGS and CXXFLAGS which
does not hurt performance but gives a better debugging experience. For the best
debugging experience, you might want to replace -O3 with -Og or even -O0
but the latter results in poor performance.
If your compiler supports it, you can try to add -fvisibility=hidden
-fvisibility-inlines-hidden to your CXXFLAGS. This hides internal bits in
the resulting library which have lead to crashes in the past due to conflicting
header-only libraries.
If your linker supports it, you should use ./configure --with-version-script
to shrink the resulting shared library to an exact curated list of versioned
symbols.
perf works well to profile when you make sure that CFLAGS and CXXFLAGS
contain -fno-omit-framepointer. You can then for example run our test suite
with perf record --call-graph dwarf make check. Apart from perf itself there
are several ways to analyze the output,
hotspot might be the most convenient one at
the time of this writing.
For more detailed but generic instructions please refer to the INSTALL file.
How to Cite This Project
If you have used this project in the preparation of a publication, please cite it as described on our zenodo page.
Acknowledgements
- Julian Rüth's contributions to this project have been supported by the Simons Foundation Investigator grant of Alex Eskin.
Maintainers
Owner
- Name: flatsurf
- Login: flatsurf
- Kind: organization
- Email: contact@flatsurf.org
- Website: flatsurf.github.io
- Repositories: 21
- Profile: https://github.com/flatsurf
GitHub Events
Total
- Create event: 3
- Release event: 1
- Issues event: 6
- Delete event: 2
- Issue comment event: 7
- Push event: 15
- Pull request event: 14
Last Year
- Create event: 3
- Release event: 1
- Issues event: 6
- Delete event: 2
- Issue comment event: 7
- Push event: 15
- Pull request event: 14
Committers
Last synced: about 3 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| Julian Rüth | j****h@f****g | 600 |
| clang-format bot | b****t@f****g | 6 |
| Isuru Fernando | i****f@g****m | 2 |
| Vincent Delecroix | v****x@u****r | 2 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 10 months ago
All Time
- Total issues: 32
- Total pull requests: 87
- Average time to close issues: 10 months
- Average time to close pull requests: 21 days
- Total issue authors: 2
- Total pull request authors: 3
- Average comments per issue: 0.75
- Average comments per pull request: 0.54
- Merged pull requests: 77
- Bot issues: 0
- Bot pull requests: 4
Past Year
- Issues: 3
- Pull requests: 10
- Average time to close issues: 4 days
- Average time to close pull requests: about 1 month
- Issue authors: 1
- Pull request authors: 2
- Average comments per issue: 0.0
- Average comments per pull request: 0.3
- Merged pull requests: 5
- Bot issues: 0
- Bot pull requests: 4
Top Authors
Issue Authors
- saraedum (27)
- videlec (5)
Pull Request Authors
- saraedum (81)
- dependabot[bot] (4)
- videlec (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 2
- Total downloads: unknown
-
Total dependent packages: 3
(may contain duplicates) -
Total dependent repositories: 11
(may contain duplicates) - Total versions: 8
conda-forge.org: libexactreal
exact-real is a C++/Python library which provides exact lazy computations in the Real Numbers. In particular it provides arithmetic and comparisons of (random) transcendental numbers.
- Homepage: https://github.com/flatsurf/exact-real
- License: GPL-3.0-or-later
-
Latest release: 2.3.0
published almost 4 years ago
Rankings
conda-forge.org: pyexactreal
exact-real is a C++/Python library which provides exact lazy computations in the Real Numbers. In particular it provides arithmetic and comparisons of (random) transcendental numbers.
- Homepage: https://github.com/flatsurf/exact-real
- License: GPL-3.0-or-later
-
Latest release: 2.3.0
published almost 4 years ago
Rankings
Dependencies
- EndBug/add-and-commit v5 composite
- JamesIves/github-pages-deploy-action 3.7.1 composite
- actions/checkout v2 composite
- conda-incubator/setup-miniconda v2 composite
- flatsurf/actions/asv main composite
- actions/checkout v2 composite
- conda-incubator/setup-miniconda v2 composite
- DoozyX/clang-format-lint-action v0.11 composite
- EndBug/add-and-commit v4 composite
- actions/checkout v2 composite
- conda-incubator/setup-miniconda v2 composite
- actions/checkout v2 composite
- conda-incubator/setup-miniconda v2 composite
- flatsurf/actions/show-logs main composite
- mxschmitt/action-tmate v3 composite
- cppyy *
- cppyythonizations *