Discuss Scratch
- Discussion Forums
- » Questions about Scratch
- » is scratch prepared for 2,147,483,648
- The_Insane_Creator
-
500+ posts
is scratch prepared for 2,147,483,648
if a user id or project id reaches 2,147,483,648, what will happen?
- LukasDoesCode
-
59 posts
is scratch prepared for 2,147,483,648
Most software at this point is 64 bit, so I'm pretty sure scratch would be fine if something hit a 32-bit limit.
- The_Insane_Creator
-
500+ posts
is scratch prepared for 2,147,483,648
javascript is 32 bit Most software at this point is 64 bit, so I'm pretty sure scratch would be fine if something hit a 32-bit limit.
- CST1229
-
1000+ posts
is scratch prepared for 2,147,483,648
(#3)no. javascript numbers are 64-bit floating-point numbers, which can reliably handle integers up to 9007199254740991 (and bigints can handle any integer)
javascript is 32 bit
and i'm pretty sure most integer types in databases should be 64-bit as well
Last edited by CST1229 (Nov. 12, 2024 20:13:38)
- The_Insane_Creator
-
500+ posts
is scratch prepared for 2,147,483,648
so what happens when a user id or project id reaches 900719925474099 (that will never happen lol)(#3)no. javascript numbers are 64-bit floating-point numbers, which can reliably handle integers up to 9007199254740991 (and bigints can handle any integer)
javascript is 32 bit
and i'm pretty sure most integer types in databases should be 64-bit as well
- han614698
-
1000+ posts
is scratch prepared for 2,147,483,648
probably nothing honestlyso what happens when a user id or project id reaches 900719925474099 (that will never happen lol)(#3)no. javascript numbers are 64-bit floating-point numbers, which can reliably handle integers up to 9007199254740991 (and bigints can handle any integer)
javascript is 32 bit
and i'm pretty sure most integer types in databases should be 64-bit as well
- CST1229
-
1000+ posts
is scratch prepared for 2,147,483,648
(#5)floating-point numbers round to even numbers after 9007199254740991, so i'd assume parts of the website would just start breaking because every odd project id would round to the previous (even) project id in some places.
so what happens when a user id or project id reaches 900719925474099 (that will never happen lol)
like, you create a project, the server gives it the id 9007199254740993, but then the editor tries grabbing it from id 9007199254740992 (which is not the project you just created).
(this is all speculation though)
Last edited by CST1229 (Nov. 12, 2024 20:45:42)
- The_Insane_Creator
-
500+ posts
is scratch prepared for 2,147,483,648
lets talk about different thingy(#5)floating-point numbers round to even numbers after 9007199254740991, so i'd assume parts of the website would just start breaking because every odd project id would round to the previous (even) project id in some places.
so what happens when a user id or project id reaches 900719925474099 (that will never happen lol)
like, you create a project, the server gives it the id 9007199254740993, but then the editor tries grabbing it from id 9007199254740992 (which is not the project you just created).
(this is all speculation though)
what happens when unix time reach 2^31, will scratchy scratch scratch time systems brek?
- blubby4
-
100+ posts
is scratch prepared for 2,147,483,648
lets talk about different thingy(#5)floating-point numbers round to even numbers after 9007199254740991, so i'd assume parts of the website would just start breaking because every odd project id would round to the previous (even) project id in some places.
so what happens when a user id or project id reaches 900719925474099 (that will never happen lol)
like, you create a project, the server gives it the id 9007199254740993, but then the editor tries grabbing it from id 9007199254740992 (which is not the project you just created).
(this is all speculation though)
what happens when unix time reach 2^31, will scratchy scratch scratch time systems brek?
Probably nothing Most software at this point is 64 bit, so I'm pretty sure scratch would be fine if something hit a 32-bit limit.
- Discussion Forums
- » Questions about Scratch
-
» is scratch prepared for 2,147,483,648