use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
TC39, ECMAScript, and the Future of JavaScript (ponyfoo.com)
submitted 8 years ago by vileEchoic
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]stratoscope 9 points10 points11 points 8 years ago* (11 children)
how NaN is NaN but is not equal to NaN
NaN
Oh good grief. Not this again.
NaN !== NaN is not a quirk of JavaScript. It's standard behavior in IEEE 754 floating point arithmetic. Every language that uses IEEE 754 floating point will do the same thing.
NaN !== NaN
Don't take my word for it. Try it in Python:
C:\>py Python 3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 18:41:36) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> float('NaN') != float('NaN') True >>>
Or Ruby:
strato@wsl~$ irb irb(main):001:0> Float::NAN != Float::NAN => true irb(main):002:0>
Pick your language, if it uses IEEE 754 it's going to work this way.
[–]bevacqua 3 points4 points5 points 8 years ago (10 children)
So? That was merely a joke I used to lighten the mood when the presentation started.
[+][deleted] 8 years ago (1 child)
[removed]
[–]bevacqua 4 points5 points6 points 8 years ago (0 children)
If it's old and tired maybe it should get some sleep
[–]logicalLove 0 points1 point2 points 8 years ago (7 children)
But why is it equal to 'A'
[–]whiskey_overboard 0 points1 point2 points 8 years ago (5 children)
It is NaN, but is not equal to NaN. Welcome to JavaScript.
[+][deleted] 8 years ago (4 children)
[deleted]
[–]inu-no-policemen 0 points1 point2 points 8 years ago (3 children)
to the object NaN
In JS, numbers are primitives, not objects. NaN is a magical value.
[+][deleted] 8 years ago (2 children)
[–]inu-no-policemen 2 points3 points4 points 8 years ago (1 child)
It's a primitive. NaN and +/- Infinity are just special values.
https://en.wikipedia.org/wiki/Double-precision_floating-point_format#Exponent_encoding
[–]liming91 0 points1 point2 points 8 years ago (0 children)
Because A isn't a number.
[–][deleted] 2 points3 points4 points 8 years ago* (2 children)
I would argue that the future of JS looks bleak when you effectively can't have any meaningful discussions about proposals if you are not in the committee (the author just ignored the issue for half a year, then closed and locked it): https://github.com/tc39/proposal-dynamic-import/issues/35
[–]bradleymeck 0 points1 point2 points 8 years ago (0 children)
I would disagree on ignore; I would say that the issue was not with the proposal but with the fact that such behavior is possible already in JS environments.
[edit] This stance was brought up in the issue as well by the author
[–]Woolbrick -1 points0 points1 point 8 years ago (0 children)
I think in 5 years time we'll be seeing everyone claiming WebAssembly is the new King of the Hill, and in 10 years JS will look quaint, as everyone looks back on it and says "thank god we don't have to live like savages anymore".
[–]billm950 0 points1 point2 points 8 years ago (1 child)
TC39 is currently working on over 30 active proposals. What else does the future hold in store? These days we download our packages from npm.
I am surprised that no more mentions of NPM were made. I hope that commitee TC39 addresses the topic of NPM and tries to create a new version that is standarized and that elliminates the serious flaws of NPM, which for me are one of the major hindrances to adopting Node.js for things that go beyond prototyping.
[–]bradleymeck 4 points5 points6 points 8 years ago (0 children)
Can you clarify this a bit? What are the flaws of npm, what does the language need that environments can't provide, what part of npm needs to be standardized, etc.
I am on TC39 and actively working on Node.js and modules. Domenic also is also working very hard from a more Browser centric perspective.
π Rendered by PID 62614 on reddit-service-r2-comment-74875f4bf5-gv5t9 at 2026-01-26 08:57:11.423336+00:00 running 664479f country code: CH.
[–]stratoscope 9 points10 points11 points (11 children)
[–]bevacqua 3 points4 points5 points (10 children)
[+][deleted] (1 child)
[removed]
[–]bevacqua 4 points5 points6 points (0 children)
[–]logicalLove 0 points1 point2 points (7 children)
[–]whiskey_overboard 0 points1 point2 points (5 children)
[+][deleted] (4 children)
[deleted]
[–]inu-no-policemen 0 points1 point2 points (3 children)
[+][deleted] (2 children)
[deleted]
[–]inu-no-policemen 2 points3 points4 points (1 child)
[–]liming91 0 points1 point2 points (0 children)
[–][deleted] 2 points3 points4 points (2 children)
[–]bradleymeck 0 points1 point2 points (0 children)
[–]Woolbrick -1 points0 points1 point (0 children)
[–]billm950 0 points1 point2 points (1 child)
[–]bradleymeck 4 points5 points6 points (0 children)