Skip to content

Conversation

@recursion-ninja
Copy link
Collaborator

Description

A small refactoring addressing the TODO task of converting the FilePointer representation to Word, while exposing a Word64 API.

The implementation in the PR replicates the definition of Data.Primitive.PrimVar.fetchAddInt, adapted for the unsigned Word type.

@recursion-ninja recursion-ninja force-pushed the recursion-ninja/FilePointer-conversion branch 2 times, most recently from 75bbbc9 to d416bcd Compare December 22, 2024 21:55
dcoutts
dcoutts previously requested changes Jan 7, 2025
Copy link
Collaborator

@dcoutts dcoutts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it's worth making this change. It does not fix the theoretical problem (of 31bit max file size for the WBB blob file on 32bit systems), which itself is hardly a practical limitation.

It doesn't solve it because it just switches from Int to Word, which is the same size. It'd need Word64 atomic support on 32bit systems (which ghc does not support, and which may not be available on all 32bit arches that ghc does support).

So I propose we just close this.

@jorisdral
Copy link
Collaborator

I repurposed this PR to replace the TODO with a general comment about word size limits

@jorisdral jorisdral force-pushed the recursion-ninja/FilePointer-conversion branch from d416bcd to 5494b66 Compare January 9, 2025 21:28
Co-authored-by: Recursion Ninja <github@recursion.ninja>
@jorisdral jorisdral force-pushed the recursion-ninja/FilePointer-conversion branch from 5494b66 to f0e00a8 Compare January 9, 2025 21:29
@jorisdral jorisdral added this pull request to the merge queue Jan 14, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 14, 2025
@jorisdral jorisdral added this pull request to the merge queue Jan 14, 2025
Merged via the queue into main with commit 4cfbf9b Jan 14, 2025
27 checks passed
@jorisdral jorisdral deleted the recursion-ninja/FilePointer-conversion branch January 14, 2025 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants