Commit Graph

531 Commits

Author SHA1 Message Date
s1idewhist1e c58ce6c53b Refactor: use rust for native mastodon id conversion (#9786)
This uses [napi-rs](https://napi.rs/) to allow for automatic generation of node bindings for the native code.

I also changed the `isolatedModules` TS flag to false to allow for `static enum` to be shared across modules. It doesn't seem to be necessary for the build system that CK uses.

Currently this method does not work with ID generators with longer IDs. Likely the best solution is to add another key in the database.

Some benchmarks for 1 million conversions:

```
	node, x1_000_000: 2.847s
	rust, x1_000_000: 1.265s
```

There are still optimizations that can be made, but I think this is a good starting point and a good way to bring rust into the CK stack.

Co-authored-by: s1idewhist1e <trombonedude05@gmail.com>
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9786
Co-authored-by: s1idewhist1e <s1idewhist1e@noreply.codeberg.org>
Co-committed-by: s1idewhist1e <s1idewhist1e@noreply.codeberg.org>
2023-03-31 01:58:28 +00:00
ThatOneCalculator 1bd70ae19f
docs: 📝 sonic 2023-03-19 01:32:57 -07:00
ThatOneCalculator d3d9c4830b
docs: 📝 sonic instructions 2023-03-19 01:32:17 -07:00
ThatOneCalculator c438d2bcb0
docs: changes 2023-03-16 18:17:53 -07:00
ThatOneCalculator ef509b5138
docs: 📝 accurate update instructions
Closes #9709
2023-03-15 18:28:53 -07:00
ThatOneCalculator 184ea6aa82
docs: 📝 migration from mk 2023-02-20 12:13:55 -08:00
ThatOneCalculator 254a9e8716
docs: 📝 custom assets 2023-02-11 13:16:45 -08:00
ThatOneCalculator ba18da314f
docs: 📝 branches 2023-02-09 14:53:32 -08:00
Kainoa Kanter 86b4d74f46 Update 'README.md' 2023-02-01 22:18:54 +00:00
ThatOneCalculator 7b51c56169
docs: 📝 clone depth 1
closes #9501
2023-01-21 11:25:31 -08:00
ThatOneCalculator dc168cd3bc
docs: no tensorflow 2023-01-19 16:56:07 -08:00
ThatOneCalculator 81cd7600f7
lavaforge --> codeberg until lavaforge is ready 2023-01-19 16:18:17 -08:00
Kainoa Kanter 7a9c13c112 docs: 🌋 Lavaforge 2023-01-15 21:07:11 +00:00
janderedev db865499c0 Fix typo in readme 2023-01-14 21:18:29 +00:00
ThatOneCalculator 7c2dabd047
no more eslint 2023-01-12 20:54:33 -08:00
Kainoa Kanter f47832b1b4 refactor: 🔨 Use pnpm instead of yarn (#9461)
Reasons:

1. `pnpm` is now an industry standard, being faster and less buggy than `yarn`.
2. Faster build time as builds are concurrent: 63 seconds down to 35 seconds!!
3. Resolves #9412

Co-authored-by: ThatOneCalculator <kainoa@t1c.dev>
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9461
2023-01-13 04:18:16 +00:00
Sly-Little-Fox c600a1637d Improve port finding script, add a note 2023-01-10 09:31:11 +00:00
Kainoa Kanter 55eabae923 docs: 📝 aur badge 2023-01-09 00:23:48 +00:00
Kainoa Kanter 1227e5b2e7 docs: 📝 aur 2023-01-09 00:09:16 +00:00
Kainoa Kanter 684d8b477a docs: 📝 easy installer images 2023-01-08 23:52:10 +00:00
Kainoa Kanter ab1bd40c30 docs: 📝 easy installers 2023-01-08 23:49:23 +00:00
ThatOneCalculator 3654e33eea
docs: YunoHost 2023-01-04 20:11:34 -08:00
ThatOneCalculator ebc8ac76de
release version system 2023-01-03 17:38:07 -08:00
ThatOneCalculator 302b34fc48
docs: node 19 2023-01-03 15:56:32 -08:00
ThatOneCalculator a6a4015858
even more fixes 2023-01-03 10:42:26 -08:00
Kainoa Kanter 389785e165 Update 'README.md' 2023-01-02 15:59:31 +00:00
ThatOneCalculator 944eadca8f
refactor: new repo link 2022-12-18 10:12:24 -08:00
ThatOneCalculator 386d137066
docs: 📝 weblate 2022-12-17 10:21:17 -08:00
ThatOneCalculator 8d368ac954
feat: weblate! 2022-12-17 10:17:39 -08:00
ThatOneCalculator eb0f42e53a
docs: 📝 badges [CI Skip] 2022-12-16 13:36:50 -08:00
ThatOneCalculator 6b4425e309
docs: 📝 more badges 2022-12-16 13:30:58 -08:00
ThatOneCalculator af2f878990
refactor: rm .github folder 2022-12-16 10:44:09 -08:00
Kainoa Kanter 114e1fa371 docs: 📝 fix badge position 2022-12-16 17:35:54 +00:00
cutestnekoaqua 8ba9380743
Add CI Link to Docs 2022-12-16 01:06:30 +01:00
chimiana a226995589 Moved 'docker for development' stanza from root README.md to docker-README.md 2022-12-15 23:19:04 +00:00
chimiana 5aeda4635f Update to docker-compose for development section of README 2022-12-15 23:19:04 +00:00
chimiana b7477a26fb Attempting to fix link in docs 2022-12-15 23:19:04 +00:00
chimiana f8736ebfe0 Updated README.md with link to docker-README.md instead of link to Docker Hub 2022-12-15 23:19:04 +00:00
chimiana b851ed48ad Corrections to README.md
A spelling mistake and remove a docker command that does not work
2022-12-15 23:19:03 +00:00
cutestnekoaqua 785ace95a4
Add Rebuild Option [CI Skip] 2022-12-14 18:09:58 +01:00
ThatOneCalculator 3374f5946a
docs: 📝 account migration 2022-12-11 17:53:09 -08:00
Kainoa Kanter 45c585e5d8 Nvm, dragonfly needs more work... 2022-12-07 04:42:48 +00:00
Kainoa Kanter b12227efbf Update 'README.md' 2022-12-07 04:38:21 +00:00
Kainoa Kanter 4a32e407a9 Redis v6 is minimum 2022-12-07 04:37:43 +00:00
Kainoa Kanter 0a81b34584 Update 'README.md' 2022-12-07 04:37:05 +00:00
Kainoa Kanter b25c904fc3 DragonflyDB 2022-12-07 04:28:56 +00:00
ThatOneCalculator f71e481806 docs: deps 2022-12-06 15:27:59 -08:00
Kainoa Kanter aa9ef65768 Feature: Custom locales (#9157) 2022-11-30 19:50:24 +00:00
CherryKitten 20dc59c342
docs: reflect last change in readme 2022-11-30 19:51:12 +01:00
ThatOneCalculator 6e18d753a6 docs: a11y 2022-11-29 18:15:57 -08:00