Danilo Bargen activity https://gitlab.com/dbrgn 2026-03-13T13:47:07Z tag:gitlab.com,2026-02-25:5143593327 Danilo Bargen commented on issue #3 at Seth Hillbrand / stepreduce 2026-02-25T21:43:13Z dbrgn Danilo Bargen

Congrats, that was a big speedup 🙂 (Benchmark 2 is the updated version.)

danilo@c3po:stepreduce$ hyperfine --warmup 3 'stepreduce-cpp/StepReduce bench/00010546_919044145dd24288a1945b5c_step_008.step /dev/null' 'stepreduce-cpp/stepreduce bench/00010546_919044145dd24288a1945b5c_step_008.step /dev/null'

Benchmark 1: stepreduce-cpp/StepReduce bench/00010546_919044145dd24288a1945b5c_step_008.step /dev/null
  Time (mean ± σ):     486.9 ms ±  23.2 ms    [User: 479.7 ms, System: 5.3 ms]
  Range (min … max):   448.6 ms … 507.3 ms    10 runs

Benchmark 2: stepreduce-cpp/stepreduce bench/00010546_919044145dd24288a1945b5c_step_008.step /dev/null
  Time (mean ± σ):      93.7 ms ±   1.0 ms    [User: 85.5 ms, System: 7.7 ms]
  Range (min … max):    91.1 ms …  96.1 ms    31 runs

Summary
  stepreduce-cpp/stepreduce bench/00010546_919044145dd24288a1945b5c_step_008.step /dev/null ran
    5.20 ± 0.25 times faster than stepreduce-cpp/StepReduce bench/00010546_919044145dd24288a1945b5c_step_008.step /dev/null
tag:gitlab.com,2026-02-14:5105021057 Danilo Bargen opened issue #3: Performance optimization potential / Rust port at Seth Hillbrand / stepreduce 2026-02-14T22:57:29Z dbrgn Danilo Bargen tag:gitlab.com,2025-10-23:4741635395 Danilo Bargen commented on merge request !28428 at F-Droid / Data 2025-10-23T20:04:43Z dbrgn Danilo Bargen

Unfortunately we can't do that. But it's good to see that the issue report already has a lot of upvotes, and that it was upgraded to P1 priority.

tag:gitlab.com,2025-09-08:4598636324 Danilo Bargen commented on issue #388829 at GitLab.org / GitLab 2025-09-08T20:23:19Z dbrgn Danilo Bargen

Hello! I'm responsible for a GitLab Premium self-hosted instance with >30 users, and we would be highly interested in either this or #464591. The use case is that we are using a CI integration that needs to be able to post comments in MRs, but we don't want to give it full api permission. Is there any way to advance this feature request?

tag:gitlab.com,2025-09-08:4598635603 Danilo Bargen commented on issue #464591 at GitLab.org / GitLab 2025-09-08T20:22:57Z dbrgn Danilo Bargen

Hello! I'm responsible for a GitLab Premium self-hosted instance with >30 users, and we would be highly interested in either this or #388829. The use case is that we are using a CI integration that needs to be able to post comments in MRs, but we don't want to give it full api permission. Is there any way to advance this feature request?

tag:gitlab.com,2025-02-24:4051666634 Danilo Bargen commented on merge request !18354 at F-Droid / Data 2025-02-24T13:44:41Z dbrgn Danilo Bargen

The cargo home path is embeded in the rust libs. It's /rust/cargo in your environment. Can you remove it with --remap-path-prefix?

I'll check, but that approach seems a bit brittle. In the long run, https://rust-lang.github.io/rfcs/3127-trim-paths.html would probably be the best solution. Tracking issue: https://github.com/rust-lang/rust/issues/111540

Note: Even if we'd remove the prefix, you'd still need to remap it to the same prefix in your build pipeline. Right now, /rust/cargo can be considered a stable prefix in our build pipeline.

tag:gitlab.com,2025-02-15:4031193450 Danilo Bargen commented on merge request !18354 at F-Droid / Data 2025-02-15T20:08:12Z dbrgn Danilo Bargen

By the way, regarding libjnidispatch.so, if you have ideas how to handle this better (e.g. by fetching and extracting it from the maven package through gradle somehow?) we're open for suggestions! Right now this seems required by JNA. (Of course the .so file is unmodified from upstream.)

tag:gitlab.com,2025-02-15:4031086125 Danilo Bargen commented on merge request !18354 at F-Droid / Data 2025-02-15T16:50:20Z dbrgn Danilo Bargen

I'm not sure what the issue is. We tried again and successfully reproduced the build for 5.8.0 using this process.

export VERSION=5.8.0 VARIANT=libre
export APP_ID=ch.threema.app.libre
adb pull $(adb shell pm path $APP_ID | grep "/base.apk" | sed 's/^package://') threema-extracted.apk
curl -LO https://oss.threema.ch/android/docker/docker-image-android-$VERSION.tar.gz
gunzip --stdout docker-image-android-$VERSION.tar.gz | docker image load
git clone https://github.com/threema-ch/threema-android
cd threema-android/
git checkout $VERSION
./scripts/build-release.sh -v $VARIANT -n $VERSION --no-image-export --i-accept-the-android-sdk-license
./scripts/verify-build.sh -n $VERSION -v $VARIANT -p ../threema-extracted.apk
tag:gitlab.com,2025-02-01:3996374096 Danilo Bargen pushed to project branch sort-authors-icase at Danilo Bargen / docscan 2025-02-01T21:14:23Z dbrgn Danilo Bargen

Danilo Bargen (a82e12bf) at 01 Feb 21:14

Sort authors case-insensitively

... and 5 more commits

tag:gitlab.com,2025-02-01:3996374017 Danilo Bargen opened merge request !13: Sort authors case-insensitively at ubruhin / docscan 2025-02-01T21:14:07Z dbrgn Danilo Bargen

Case insensitive sorting of authors.

tag:gitlab.com,2025-02-01:3996373423 Danilo Bargen pushed new project branch sort-authors-icase at Danilo Bargen / docscan 2025-02-01T21:12:32Z dbrgn Danilo Bargen

Danilo Bargen (67b18086) at 01 Feb 21:12

Sort authors case-insensitively

tag:gitlab.com,2025-01-23:3974926238 Danilo Bargen commented on merge request !18354 at F-Droid / Data 2025-01-23T13:35:17Z dbrgn Danilo Bargen

The APK should be available here: https://releases.threema.ch/fdroid/repo/ch.threema.app.libre-5.8.0l.apk

In case there are build issues, please see discussion above.

tag:gitlab.com,2025-01-23:3974921007 Danilo Bargen commented on merge request !18354 at F-Droid / Data 2025-01-23T13:33:53Z dbrgn Danilo Bargen

@linsui today I tested our process for reproducible builds (using the Docker image) and successfully reproduced version 5.8.0 (which was released recently). If there is an issue in your build pipeline, it must be a difference between your setup and our Docker based flow.

If you find things that we can adjust so that the reproducibility works for you as well, we're happy to help. But for us, the official way to reproduce the builds with identical build tool configuration is the Docker image (which is built from this Dockerfile).

tag:gitlab.com,2025-01-11:3945110376 Danilo Bargen commented on merge request !18354 at F-Droid / Data 2025-01-11T23:27:47Z dbrgn Danilo Bargen

Not really, I'd have to dig in more. (I'm currently on parental leave, so might be a bit slow to respond 🙂)

tag:gitlab.com,2025-01-10:3943390188 Danilo Bargen commented on merge request !18354 at F-Droid / Data 2025-01-10T14:54:45Z dbrgn Danilo Bargen

@linsui Update: We do build from the exported sourcecode, but before committing it. Due to a faulty .gitignore (which you already pointed out), the files were not included.

This is now fixed with an additional commit. We will probably not create a new release just for the reproducible builds, but the next regular release will probably follow within 1-2 weeks.

In the past, we got negative feedbacks for updating a tag after initial publication, so I'm wary of doing that. Would an updated tag help you to push the release, or does the commit ref work as well?

tag:gitlab.com,2025-01-09:3941441406 Danilo Bargen commented on merge request !18354 at F-Droid / Data 2025-01-09T21:36:12Z dbrgn Danilo Bargen

Huh, that is weird... I thought we always build from the exported (published) source, which would mean internal builds would fail as well.

Probably an issue with the build pipeline. I'll check with the team.

tag:gitlab.com,2025-01-08:3938217839 Danilo Bargen opened merge request !12: Upgrade ocrmypdf: 14 → 16 at ubruhin / docscan 2025-01-08T21:47:07Z dbrgn Danilo Bargen

The old version depended on an incompatible version of pikepdf:

>>> import ocrmypdf
Traceback (most recent call last):
  File "<python-input-0>", line 1, in <module>
    import ocrmypdf
  File "/home/danilo/Projects/docscan/venv/lib/python3.13/site-packages/ocrmypdf/__init__.py", line 10, in <module>
    from ocrmypdf import helpers, hocrtransform, pdfa, pdfinfo
  File "/home/danilo/Projects/docscan/venv/lib/python3.13/site-packages/ocrmypdf/pdfinfo/__init__.py", line 9, in <module>
    from ocrmypdf.pdfinfo.info import Colorspace, Encoding, PageInfo, PdfInfo
  File "/home/danilo/Projects/docscan/venv/lib/python3.13/site-packages/ocrmypdf/pdfinfo/info.py", line 23, in <module>
    from pikepdf import (
    ...<9 lines>...
    )
ImportError: cannot import name 'PdfMatrix' from 'pikepdf' (/home/danilo/Projects/docscan/venv/lib/python3.13/site-packages/pikepdf/__init__.py). Did you mean: 'Matrix'?

Newer version also has some OCR improvements, see https://github.com/ocrmypdf/OCRmyPDF/blob/main/docs/release_notes.rst

tag:gitlab.com,2025-01-08:3938215065 Danilo Bargen pushed new project branch bump-ocrmypdf at Danilo Bargen / docscan 2025-01-08T21:45:18Z dbrgn Danilo Bargen

Danilo Bargen (e05c24ab) at 08 Jan 21:45

Upgrade ocrmypdf: 14 → 16