Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
814380f
init gearhash package
coyotte508 May 28, 2025
68b32be
fix build command
coyotte508 May 28, 2025
14a9ef4
Create gearhash function from rust source
coyotte508 May 30, 2025
a2cb917
switch to gearhash-wasm package
coyotte508 May 30, 2025
97f3e0b
v 1.0
coyotte508 May 30, 2025
512801f
remove extra file
coyotte508 May 30, 2025
07a384d
bigger mask
coyotte508 May 30, 2025
3306f2c
add nextMatches function
coyotte508 May 30, 2025
12f9e97
(wip) xet chunk code generated by cursor to fix
coyotte508 Jun 4, 2025
36348fe
add blake3-wasm and xetchunk-wasm
coyotte508 Jun 4, 2025
07b115d
fix TS refs
coyotte508 Jun 4, 2025
2664cba
use builtins
coyotte508 Jun 4, 2025
031dc0d
package org
coyotte508 Jun 4, 2025
01d7472
also provide direct wasm exports
coyotte508 Jun 4, 2025
2b9b57a
proper build outputs
coyotte508 Jun 4, 2025
af2ccc1
add exports for JS
coyotte508 Jun 4, 2025
f1a31cb
add test for blake3 + simple function
coyotte508 Jun 13, 2025
fef8423
add rust reference implementation in package
coyotte508 Jun 13, 2025
48996e1
fix mixing function
coyotte508 Jun 13, 2025
eff0eeb
Blake 3 workspnpm --filter blake3-wasm build && pnpm --filter blake3-…
coyotte508 Jun 13, 2025
d87e9b0
improvements
coyotte508 Jun 18, 2025
f47f07d
only output length
coyotte508 Jun 18, 2025
aa44db2
add vendor test for gearhash
coyotte508 Jun 18, 2025
e3d8cdc
comment on mask param
coyotte508 Jun 18, 2025
13c607a
wip try to match rust & assembly
coyotte508 Jun 18, 2025
ea05ede
fix gearhash test
coyotte508 Jun 18, 2025
4270e20
Merge remote-tracking branch 'origin/main' into gearhash-experiment
coyotte508 Jul 7, 2025
fb8e5aa
add splitmix64-wasm module
coyotte508 Jul 7, 2025
3ec13eb
const data test passes
coyotte508 Jul 7, 2025
265c26e
fully test random data
coyotte508 Jul 7, 2025
275eb60
fix mask in wasm xet chunking
coyotte508 Jul 7, 2025
dd1bd54
fix test
coyotte508 Jul 8, 2025
3be827a
change gearhash tests to wasm
coyotte508 Jul 8, 2025
c4f4053
small opt
coyotte508 Jul 8, 2025
3228194
publish wasm packages
coyotte508 Jul 8, 2025
6386e73
add test for chunk hashes
coyotte508 Jul 8, 2025
a02c55c
support for blake3 keyed
coyotte508 Jul 8, 2025
d6a8609
add tests with xet data key
coyotte508 Jul 8, 2025
d8f4348
fix hash => datahash conversion
coyotte508 Jul 8, 2025
1fa349e
add xorb hash, my bad, thought it was already done
coyotte508 Jul 9, 2025
d0ba0b2
add bench command
coyotte508 Jul 9, 2025
698582d
add benchmark
coyotte508 Jul 9, 2025
21c82cc
remove useless class in WASM
coyotte508 Jul 9, 2025
e62c9c2
add benchmark file
coyotte508 Jul 10, 2025
d566e96
fix benchmark values
coyotte508 Jul 10, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove useless class in WASM
  • Loading branch information
coyotte508 committed Jul 9, 2025
commit 21c82cc57b51c634283324e80091298dc4130039
15 changes: 8 additions & 7 deletions packages/xetchunk-wasm/assembly/xet-chunker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@ export class Chunk {
class NextResult {
chunk: Chunk | null;
bytesConsumed: i32;

constructor(chunk: Chunk | null, bytesConsumed: i32) {
this.chunk = chunk;
this.bytesConsumed = bytesConsumed;
}
}

class XetChunker {
Expand Down Expand Up @@ -110,10 +105,16 @@ class XetChunker {
};
this.curChunkLen = 0;
this.hash = 0;
return new NextResult(chunk, consumeLen);
return {
chunk,
bytesConsumed: consumeLen,
};
}

return new NextResult(null, consumeLen);
return {
chunk: null,
bytesConsumed: consumeLen,
};
}

nextBlock(data: Uint8Array, isFinal: boolean): Chunk[] {
Expand Down
Loading