Better HN
topnewbestaskshowjobs
Log inSign up

david_allison

2,159 karma · joined Jun 21, 2020 (6y ago) · 760 submissions

maintainer @ AnkiDroid

https://github.com/david-allison

gmail: davidallisongithub

Sponsors: https://github.com/sponsors/david-allison/

https://opencollective.com/ankidroid

Submissions

comment 1d ago · link · parent

`pull_request_target` is being disabled by default on Dec 2:

> On December 2, 2026, GitHub will enforce the default policy for affected repositories that were using the default pull_request_target policy before general availability.

https://docs.github.com/en/actions/reference/security/secure...

comment 5d ago · link · parent

I've encountered bugs with U+FB03 (Latin Small Ligature FFI) which expands to three characters when uppercased.

comment 1w ago · link · parent

> Some apps that ask for full disk access: Anki, a flashcard app

Could you report this: https://github.com/ankitects/anki

----

For historical reasons, the Android app requests "All files access", if not using the Play Store variant. I'm working to fix this.

We don't need it. The replacement API is 300x slower on some phones[1] and is infeasible to use.[0] It should be possible to use AnkiDroid in a "public" folder, but it no longer needs to be the norm. Times have changed

[0] https://news.ycombinator.com/item?id=43987745

[1] just tested: 966ms for a file delete on my Pixel 9 Pro vs 3ms

comment 1w ago · link · parent

Oh, thank you!

comment 1w ago · link · parent

I regret posting on the 'Who wants to be hired?' thread due to this.

It's half burned my primary dev email

comment 1w ago · link · parent

Yep, via ACTION_PROCESS_TEXT - this also allows you to show a UI and modify/replace the selected text.

Source: I wrote that AnkiDroid code ~6 years ago.

https://developer.android.com/reference/android/content/Inte...

PS: the menu can be disabled in the "General" settings of AnkiDroid... I need to get around to better onboarding for it.

comment 1mo ago · link · parent

> Google still (years later) hasn't made good on their announcement that idle accounts would be deleted.

They should be after 2 years, I occasionally get emails, linking: https://support.google.com/accounts/answer/12418290

comment 2mo ago · link · parent

They're not indexed if they're publicly editable

comment 2mo ago · link · parent

Thank you!!

E-waste is awful, as is cutting off old devices. We still backport security fixes to minSdk 21.

To Google's credit, post-21 is a much more pleasant experience and requires very little developer time. API desugaring[0] has worked perfectly, their compatibility classes[1] handle most of the common cases, and there's often very little to actually code[2].

[0] https://developer.android.com/studio/write/java8-support-tab...

[1] https://developer.android.com/jetpack/androidx/releases/appc...

[2] https://github.com/ankidroid/Anki-Android/blob/main/compat/s...

comment 2mo ago · link · parent

Google Play rejected our 2.24.1 release (Aug 31). F-Droid is typically slower, but we don't have to worry about distribution issues.

This is regarding 2.25.0alpha4.

comment 2mo ago · link · parent

We use Roborazzi[0], which is an excellent screenshot library, but:

* We target minSdk 24

* We're still using XML views

* We target a large variety of form factors

* We have a lot of screens, and these have a lot of configuration options.

I really wish it was "point an agent at it, and walk away", but many screens ended up being hours of iteration with Fable driving my phone/an emulator to produce an acceptable outcome.

Given that my Pixel 9 Pro has system screens which are still broken under edge to edge, it's not an easy change, and takes up time which could have been going towards feature development.

[0] https://github.com/takahirom/roborazzi/

comment 2mo ago · link · parent

Team effort, but thank you!! I've just taken the next month and a half off to work on things full time. I'm excited!

The next update won't be huge, (Google required us to make all screens 'edge to edge'[0], which took up most of my time last month). I'm hoping for some solid improvements now that's out the way, once the release pipeline has returned to normal.

Feel free to get in touch if you fancy contributing.

[0] https://developer.android.com/develop/ui/views/layout/edge-t...

comment 2mo ago · link · parent

AnkiDroid (~17 years old) submitted our latest alpha on Sept 03, 2026, 4:40 am. Still pending review.

comment 2mo ago · link · parent

We've been seeking official clarification from Google on this for over a month. That's what we're seeking here.

It's not clear given Google's policy wording and replies. We've removed the links, and can move forward once clarification has been provided.

comment 3mo ago · link · parent

Worse: there's unpatched RCEs for Modern Warfare II: https://nvd.nist.gov/vuln/detail/CVE-2018-10718

comment 4mo ago · link · parent

> Like software, elementary school education is also a pool for adults on the autism spectrum substantially higher than general population average.

Interesting! Do you have a source for this?

comment 4mo ago · link · parent

There's an arena/research report by Ozzie Kirkby and Andy Matuschak at https://memory-machines.com/ which you might find interesting.

I predict that things will be 'good' within the next 5 years, but your intuition is correct (and the SOTA models are often producing worse prompts than older models).

comment 5mo ago · link · parent

I have a large amount, some are occasionally useful when debugging.

comment 5mo ago · link · parent

> Mirrors Edge Catalyst

Are you sure? I played in 2024 on PC and it was playable.

comment 5mo ago · link · parent

We define our API into the Rust via protobufs[0] and some codegen.

The wrapper around these is very lean, FFI-based[1], it's abstracted to a library so Android devs never need to know there's rust/codegen involved.

We then define a light Kotlin-based wrapper around the protobuf-generated API[2]. This is a candidate to move to Kotlin multiplatform in the near future (mostly for test speed improvements).

[0] https://github.com/ankitects/anki/tree/main/proto

[1] https://github.com/ankidroid/Anki-Android-Backend/blob/a0428...

[2] https://github.com/ankidroid/Anki-Android/blob/68192585a7ae4...

comment 6mo ago · link · parent

> I'd happily share if "share" still meant "drop a gist." It doesn't, anymore.

It still does. Feel free to use https://unmaintained.tech/ on your repo.

comment 6mo ago · link · parent

https://www.acm.org/code-of-ethics

1.1 Contribute to society and to human well-being, acknowledging that all people are stakeholders in computing.

1.2 Avoid harm.

1.3 Be honest and trustworthy.

1.4 Be fair and take action not to discriminate.

1.5 Respect the work required to produce new ideas, inventions, creative works, and computing artifacts.

1.6 Respect privacy.

1.7 Honor confidentiality.

2.1 Strive to achieve high quality in both the processes and products of professional work.

2.2 Maintain high standards of professional competence, conduct, and ethical practice.

2.3 Know and respect existing rules pertaining to professional work.

2.4 Accept and provide appropriate professional review.

2.5 Give comprehensive and thorough evaluations of computer systems and their impacts, including analysis of possible risks.

2.6 Perform work only in areas of competence.

2.7 Foster public awareness and understanding of computing, related technologies, and their consequences.

2.8 Access computing and communication resources only when authorized or when compelled by the public good.

2.9 Design and implement systems that are robustly and usably secure.

3.1 Ensure that the public good is the central concern during all professional computing work.

3.2 Articulate, encourage acceptance of, and evaluate fulfillment of social responsibilities by members of the organization or group.

3.3 Manage personnel and resources to enhance the quality of working life.

3.4 Articulate, apply, and support policies and processes that reflect the principles of the Code.

3.5 Create opportunities for members of the organization or group to grow as professionals.

3.6 Use care when modifying or retiring systems.

3.7 Recognize and take special care of systems that become integrated into the infrastructure of society.

4.1 Uphold, promote, and respect the principles of the Code.

4.2 Treat violations of the Code as inconsistent with membership in the ACM.

comment 7mo ago · link · parent

Thank you!

comment 7mo ago · link · parent

> How could Stack Overflow succeed in a post-chatgpt eta?

As a data source for LLMs, and by becoming the place someone goes where ChatGPT can't produce a sufficient answer.

comment 7mo ago · link · parent

It's $50,000 per statement

comment 7mo ago · link · parent

What if it's used for training data? It seems like there's no penalty for training on copyrighted materials.

comment 7mo ago · link · parent

Oh wow, thank you so much!!!!!

comment 7mo ago · link · parent

Is this available online? I'd love documentation of my prompts.
12345
26