Varun Srinivasan
@v
Should Farcaster count string lengths as bytes or characters? https://hackmd.io/@farcasterxyz/BJeFoxdy3
16 replies
0 recast
0 reaction
blingblingđ
@16
B: Regardless of the tool, it is humans who ultimately using them. Therefore, it's important choose a more user-friendly approach, one that is more attuned to our human nature.
1 reply
0 recast
0 reaction
Varun Srinivasan
@v
B has some significant user downsides: youâll be able to publish only half as many messages. The question really is would you be willing to cut 50% of messages you can store for having a few long messages being slightly easier to compose
3 replies
0 recast
0 reaction
Alberto Ornaghi
@alor
Does a message containing only âgmâ count as a full message length? Otherwise I donât get why you can publish only half as many messages.
1 reply
0 recast
0 reaction
Varun Srinivasan
@v
If messages are 320 bytes max, message size can be 1-320 bytes. If messages are 320 chars max, message size can be 1-1280 bytes. Limits are calculated by number of messages, but we want to place an upper bound of how many bytes a user can add to the network.
3 replies
0 recast
0 reaction
Varun Srinivasan
@v
If we let you store 10,000 320 byte messages then we must limit you to "N" 320 char messages, where N < 10,000.
1 reply
0 recast
0 reaction
Alberto Ornaghi
@alor
I see. So the limits are calculated on number of messages, not the actual bytes written by an user.
0 reply
0 recast
0 reaction
ea
@ea
2 issues getting conflated? Can you limit users to 320 bytes but UI max is characters? Most messages is ASCII, 1 byte same as character count. Yes, if user posts multibyte characters, the UI could prevent writing past 320th byte with a "tooltip" explaining the reason.
0 reply
0 recast
0 reaction