arielelkin.github.io
JavaScript fags BTFO!
arielelkin.github.io
JavaScript fags BTFO!
Other urls found in this thread:
gnu.org
twitter.com
I mean, why even bother with this shit langauge?
tl;dr, but I saved pic related for future use.
Who ever decided that javascript would be useful outside of the browser should be blood-eagled.
>this circle doesn't fit in this square hole
>lets just keep pushing until it does
It's because they are too retarded to learn more than one language. The use meme words like "powerful" to justify their bullshit.
almost every language has that...
you don't understand the beauty
node is the language of the future
>Using floating point for small fractional numbers
I don't believe you exist.
I don't have enough palms to do do a facepalm that would do this justice.
It's been some time since I've met a person who doesn't understand IEEE-754.
people like me are the majority
before i used to program in various languages ranging from C to lisp but when i first seen JavaScript i quickly realized that all other languages are pure shit, while javascript is absolutely beautiful
he's meme'ing, m8
fuck you, js isn't a meme
JS is objectively shit with more shit stacked on top of it, but that's not how floating point numbers work.
I'm actually impressed that out of all the retarded behaviours of the language, you chose to be TRIGGERED by the one that actually is supposed to act that way.
This being said, I can't fucking wait for web assembly.
This is my personal favorite "bug" in JavaScript
It is kind a nice to be able to write both front and back end with same language, but it's pretty much strictly for web stuff. I wouldn't use javascript anywhere else.
Now that I think about it, I probably wouldn't be using nodejs anymore. It was nice at the time though.
Man, the type convertions, the rest are also funny
>> [] + []
< ""
>> {} + {}
< NaN
Why would I want javascript to use fp64? Heck I don't even want it to use fp32.
does javascript really need 64 types?
Array
ArrayBuffer
Atomics
Boolean
DataView
Date
Error
EvalError
Float32Array
Float64Array
Function
Generator
GeneratorFunction
Infinity
Int16Array
Int32Array
Int8Array
InternalError
Intl
Intl.Collator
Intl.DateTimeFormat
Intl.NumberFormat
Iterator
JSON
Map
Math
NaN
Number
Object
ParallelArray
Promise
Proxy
RangeError
ReferenceError
Reflect
RegExp
SIMD
SIMD.Bool16x8
SIMD.Bool32x4
SIMD.Bool64x2
SIMD.Bool8x16
SIMD.Float32x4
SIMD.Float64x2
SIMD.Int16x8
SIMD.Int32x4
SIMD.Int8x16
SIMD.Uint16x8
SIMD.Uint32x4
SIMD.Uint8x16
Set
SharedArrayBuffer
StopIteration
String
Symbol
SyntaxError
TypeError
TypedArray
URIError
Uint16Array
Uint32Array
Uint8Array
Uint8ClampedArray
WeakMap
WeakSet
Even fp64 won't save you here. It's impossible to precisely represent 0.1 in a binary format in a finite amount of memory. It's the same case as 1/3 in decimal.
>It's impossible to precisely represent 0.1 in a binary format in a finite amount of memory
MIT Nigger detected. Its easy, you represent it as a fraction (two integers) instead of a decimal.
This.
Seriously, do you even know, how floating-point numbers are stored in modern machines? Read about fast inverse square root and educate yourselves.
what does fast inverse square root got to do with this? are you just trying to sound smart?
How are you supposed to test for equality with floating-point numbers? Check if it's within a margin of error?
>equality operator
>floats
Found the pajeet retard.
Yes. NEVER EVER use the equality operator on floats.
Python 3.5.2 (default, Jun 28 2016, 08:46:01)
[GCC 6.1.1 20160602] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 0.1 + 0.2 == 0.3
False
This is a floating point problem not a language problem.
Use tolerances / approx equals
what do those arrows on the left denote?
returns
whoa
document.write(Array(8).join('wat' - 1) + ' Batman!')
you guys have the entirety of javascript to make fun of and you choose its inheritance methods and fraction precision
i don't get it
JavaScript sucks and I hate I get paid so much money to write in it.
>subtracting 1 from string
What's the prototype?
You don't understand its beauty
> console.log(0.1 + 0.2)
> 0.30000000000000004
bruh