« first day (1645 days earlier)      last day (3307 days later) » 

10:16 PM
@RoelvanUden you mean until it's either resolved or rejected, what state is it in?
 
'a'.repeat(2e7) // crashes
From MDN: An integer between 0 and +∞: [0, +∞), indicating the number of times to repeat the string in the newly-created string that is to be returned.
 
if that's your question, what @Catgocat said: "pending"
 
I do 2e10 and gives Range Error :P
 
@FlorianMargaine Yeah.
 
'a'.repeat(2e18)
VM253:2 Uncaught RangeError: Invalid count value(anonymous function) @ VM253:2InjectedScript._evaluateOn @ VM139:883InjectedScript._evaluateAndWrap @ VM139:816InjectedScript.evaluate @ VM139:682
2e18 < Infinity
true
 
10:18 PM
Pending it is :)
 
@RoelvanUden well, according to my source
 
What to do when MDN is wrong?
 
edit the page
it's a wiki... editable by anyone
 
I think .repeat takes at least a 32bit integer
Not sure though
 
that might be related to your computer
2e18 characters is probably higher than the available RAM on your computer
 
10:22 PM
for (var limit = 0; ; limit++) {
	try {
		'a'.repeat(limit);
	} catch (e) {
		break;
	}
}

console.log(limit)
I'm runnit it now
running *
 
crl
seems endless
 
true lol
λ babel-node es.js
2000000000000000000
FATAL ERROR: JS Allocation failed - process out of memory
1073750000 is the maximum I could do
@FlorianMargaine How do you allocate more memory in node? Give node more ram to compute stupid things :p
 
@Catgocat that sounds like an ENOMEM kernel error...
 
Out of memory.. but!!!!! There should be a way to expand this limit
 
buy more RAM
 
10:30 PM
I have 16gb
It's using only 1% of my ram
 
fair enough
dunno then
 
Ops not 16, 8
Haha 99% CPU there
Seems it is using 1,5GB of Ram
2GB now
Maybe it's because I'm printing the result..
2,2GB
 
@Catgocat no, it's because you're not in C, you don't control how the memory is allocated/freed
 
I ended the process, I don't want a blue screen of death :c
I wish I knew C
 
C is easy
 
10:37 PM
And the console.log does increase RAM usage. I've used the code above with and without console.log and the without version runs like in 10 seconds.
for (var limit = 9e8; ; limit += 1e1) {
	try {
		'a'.repeat(limit);
	} catch (e) {
		console.log(limit)
		break;
	}
}
console.log(limit)
(and I mean the console.log outside the try/catch block)
 
10:52 PM
 
11:21 PM
Today has been procrastination central. Yarg!
 
chalk + bunyan is logging colored objects
 
11:46 PM
@SomeKittens str = num + '' // mind blowing
 
why not toString?
 
can anyone help me with vlc?
im trying to use web plugin im not sure what happened but its stopped working
i uninstalled it reset chrome/firefox same issue
 
@NickDugger new String
 
 
@NickDugger added that to the answer
 
11:49 PM
Why the hell are Python functions called def?
 
ah, I see
 
@Catgocat short for "Define"
 
still pretty weird
 
It's Python
 
return Number(num.toString().split('').reverse().join(''))
I have really bad gas today, following a brief stomach bug
 
11:51 PM
function convertANumberToAString(number, convert /* convert can be true */) {
	if (convert) {
		return new String(number + 1 - 1 + 1 - 1 + 1 - 1)
	} else {
		return "Why did you invoke this the first time?"
	}
}
If it is infinity - 1, the function will give an incorrect output
 
you're odd
 
API: assign convert to TRUE if you really want to invoke the function
 
@NickDugger Technically, it accepts even numbers as well
 
Haha true
 

« first day (1645 days earlier)      last day (3307 days later) »