this post was submitted on 05 Dec 2025
222 points (99.6% liked)

Technology

4795 readers
620 users here now

Which posts fit here?

Anything that is at least tangentially connected to the technology, social media platforms, informational technologies and tech policy.


Post guidelines

[Opinion] prefixOpinion (op-ed) articles must use [Opinion] prefix before the title.


Rules

1. English onlyTitle and associated content has to be in English.
2. Use original linkPost URL should be the original link to the article (even if paywalled) and archived copies left in the body. It allows avoiding duplicate posts when cross-posting.
3. Respectful communicationAll communication has to be respectful of differing opinions, viewpoints, and experiences.
4. InclusivityEveryone is welcome here regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation.
5. Ad hominem attacksAny kind of personal attacks are expressly forbidden. If you can't argue your position without attacking a person's character, you already lost the argument.
6. Off-topic tangentsStay on topic. Keep it relevant.
7. Instance rules may applyIf something is not covered by community rules, but are against lemmy.zip instance rules, they will be enforced.


Companion communities

!globalnews@lemmy.zip
!interestingshare@lemmy.zip


Icon attribution | Banner attribution


If someone is interested in moderating this community, message @brikox@lemmy.zip.

founded 2 years ago
MODERATORS
 

Thirty years later, JavaScript is the glue that holds the interactive web together, warts and all.

you are viewing a single comment's thread
view the rest of the comments
[–] hperrin@lemmy.ca 43 points 3 days ago (2 children)

I mean, sure, but the JS we write today is quite a bit different than the JS he designed.

It was also heavily influenced by a number of other languages, and borrowed tons of libraries from them. The entire number and math system is just a straightforward implementation of IEEE 754.

[–] MacNCheezus@lemmy.today 19 points 3 days ago (1 children)

Yes, but all of the quirks it had back then are still there, for backwards compatibility

[–] hperrin@lemmy.ca 8 points 3 days ago* (last edited 3 days ago)

Yeah, but only kind of. It depends if you’re using the new syntax. Within new language constructs (like classes and modules), code runs in strict mode without having to use "use strict". It gets rid of some of the annoying quirks.

[–] The_Decryptor@aussie.zone 2 points 3 days ago (1 children)

The entire number and math system is just a straightforward implementation of IEEE 754.

Yeah, but using doubles for everything is its own downsides e.g. it's why JSON "can't" store 64bit integers for starters.

They did add the BigInt class recently, which annoyingly you can't use with JSON because it requires specialized handling (Because of the aforementioned issue with JSON).

(So you "can" store 64bit integers in JSON, the spec just says not to, so people just ignore the spec. You just then run into silent truncation issues with clients that do follow it, like browsers.)

[–] hperrin@lemmy.ca 3 points 2 days ago

Yeah, I completely agree. It’s straightforward, but it’s got a lot of downsides. Everything always takes eight bytes. Even if you’re just storing 0 or 1.

It makes handling numbers a lot simpler in most cases, though, and simplicity was the goal of JavaScript. I just wish there was a better solution than typed arrays.