| Age | Commit message (Collapse) | Author |
|
dist/gipfel/ was committed with the web promotion purely for
pull-and-serve convenience, but nothing depends on it: the droid and
desktop builds both invoke the wasm build themselves, and the README
already documents build-then-serve. Deployment now means running
crates/gipfel/build-release.sh on the host (or serving a CI artifact).
The blobs stay in history; a filter-repo pass could reclaim them but
is not worth the coordination cost for ~3 MB.
|
|
The flpsed.org site is generated statically; keeping the deployable
bundle in the tree lets the site pipeline pick it up directly.
Regenerate with crates/wipfel/build-release.sh.
|
|
build-release.sh assembles dist/wipfel/ with the loader page, style,
wasm bundle and the gzipped hill database. All runtime fetches are
relative to the page URL, so the directory works under any path on
any static server (verified from a subdirectory).
|
|
First milestone of wasm-plan.md:
- new crate gipfel-web: Yew 0.21 (csr), canvas 2D viewport
- file input + drag-and-drop; browser-native decode via createImageBitmap
(faster than image-crate decode in wasm, GPU-backed blitting)
- pan (pointer drag with capture, touch-ready) and cursor-anchored
wheel zoom, DPR-aware canvas sizing, fit-to-window
- dark sidebar shell: open/fit buttons, status line
- Trunk.toml + www/ (index.html, style.css); README with dev setup
Verified: cargo check clean (native and wasm32-unknown-unknown),
release wasm builds (5.3 MB pre-wasm-opt), all 38 native tests pass.
Runtime behavior to be confirmed with trunk serve on a desktop browser.
|
|
Proves the gipfel core can run in the browser via WASM. Enabled by the
earlier GSL removal: the core is now pure Rust.
gipfel-core gains byte-oriented entry points (no filesystem) alongside
the existing path-based ones:
- hill::load_from_bytes, Panorama::load_data_from_bytes
- metadata: load_image_from_bytes, read_jpeg_comment_from_bytes,
write_jpeg_comment_to_bytes, save_image_to_bytes (EXIF via Cursor)
New crate gipfel-wasm (experimental, not shipped with the app):
- wasm-bindgen surface: version() + fit_demo(db_bytes, jpg_bytes)
which runs the whole pipeline in memory: parse hill DB, read gipfel
JPEG comment / EXIF, synthesize 5 observations from visible hills,
perturb, refit (pure-Rust LM), report JSON with reprojection error
- demo/index.html: file pickers + result pane (wasm-pack --target web)
- build.sh: adds the wasm target, builds with wasm-pack, prints serve cmd
- native test runs the same pipeline against gipfel.dat + test.jpg and
asserts sub-pixel reprojection error (passes here)
To try on a machine with rustup:
cd crates/gipfel-wasm && ./build.sh
|
|
The .gitignore pattern 'harness/build' was anchored to the repo root and
did not match tests/harness/build, so the compiled C++ harness binaries
leaked into the tree and the source tarball. Fix the pattern and untrack
them (they are regenerated by tests/gen_golden.sh).
|
|
The Rust port (formerly gipfel-rs) is now the official successor to the
FLTK/GSL C++ code base. This squashes the port into a single commit and
removes the C++ sources (they remain in the git history below).
Layout:
crates/gipfel-core headless core: hills, panorama geometry, projections
(maxima-generated derivatives), pure-Rust LM fit,
gipfel: JPEG comment + EXIF I/O, profiles, stitching
crates/gipfel-cli command-line tools (export, info, stitch, profiles)
crates/gipfel-app Cosmic DE (libcosmic) GUI, binary name `gipfel`
codegen/ maxima scripts + regen.sh for the projection code
tests/ golden files + C++ reference harnesses (historical)
The original README is kept for now; it will be updated to describe the
Rust build. gipfel.dat, AUTHORS, ChangeLog and NEWS are unchanged.
|