this post was submitted on 12 May 2026
994 points (98.8% liked)

memes

21287 readers
2016 users here now

Community rules

1. Be civilNo trolling, bigotry or other insulting / annoying behaviour

2. No politicsThis is non-politics community. For political memes please go to !politicalmemes@lemmy.world

3. No recent repostsCheck for reposts when posting a meme, you can only repost after 1 month

4. No botsNo bots without the express approval of the mods or the admins

5. No Spam/Ads/AI SlopNo advertisements or spam. This is an instance rule and the only way to live. We also consider AI slop to be spam in this community and is subject to removal.

A collection of some classic Lemmy memes for your enjoyment

Sister communities

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] lime@feddit.nu 4 points 1 week ago (11 children)

skipped a few steps there i think.

anyway, good question. led me to some cursed code.

the ArrayObject in spidermonkey is an interface to either a TypedArrayObject or a SharedArrayObject. those both have an inner ArrayBuffer object, which is a view into ArrayBufferObjectMaybeShared, which contains a refcounted vector of uint8 pointers, regardless of the datatype. soooo all arrays in javascript are... strings?

[–] FooBarrington@lemmy.world 2 points 1 week ago (5 children)

That's a different kind of array (Float32Array etc.), not the "normal" kind.

[–] lime@feddit.nu 2 points 1 week ago (4 children)

i couldn't actually find any of that in spidermonkey. i was looking in js/vm/arrayobject and its parents, didn't see any others.

[–] FooBarrington@lemmy.world 1 points 1 week ago (1 children)
[–] lime@feddit.nu 1 points 1 week ago* (last edited 1 week ago) (1 children)

i did look at that but i started out here: https://searchfox.org/firefox-main/source/js/src/vm/ArrayObject.h because it inherits from NativeObject.

[–] FooBarrington@lemmy.world 1 points 1 week ago (1 children)

Yes, and since that's the wrong place I kept looking, and found the link I just sent you

[–] lime@feddit.nu 1 points 1 week ago

i edited my thing, i did start at array.cpp but only found references to other places so i went digging down the stack.

load more comments (2 replies)
load more comments (2 replies)
load more comments (7 replies)