« first day (1130 days earlier)      last day (2362 days later) » 

12:02 AM
Chiming in late; when you actually want to find large primes, there are way better techniques than ye olde Sieve ;-)
 
That is indeed true.
 
AKA, run a bitcoin miner :)
 
Or invent gray death.
... Or maybe not many will get this one.
 
@Shepmaster Uh, no, not that one.
 
12:18 AM
@E_net4 ah. I played through that a while back, but more familiar with the newer 2
 
 
1 hour later…
1:32 AM
@trentcl I read you "invalidated" link
and got really worried
Cause I saw "All read only operations,"
And went "how does that invalidate the iterator"
then realized it was a table
 
oh haha
 
@BernardoMeurer Are you measuring mental or physical age?
 
@trentcl it really does let you shoot yourself. "If the vector changed capacity, all of them. If not, only end()."
like, i can get that there are times to do that, but still
 
@Shepmaster yeah I noticed that too. "it's technically safe to use this with an outstanding iterator, if the iterator is before this element and the size is less than the capacity..."
/me shudders
darn this isn't irc
 
Also "This section is incomplete"
 
1:39 AM
I have actually never used C++ but when the OP said "this would be cleaner in C++" I had to go looking for all the ways it could go wrong
was not disappointed
 
1:52 AM
> doesnt work as expected
ARAGHRLKJHGWIHBSGW
3
 
2:36 AM
@набиячлэвэли Both
I'm 4 and 19 respectively
 
 
10 hours later…
12:28 PM
@BernardoMeurer Can't relate, I'm 50 and 16 :v
 
 
2 hours later…
2:26 PM
@MatthieuM. "Any problem in computer science can be solved by adding another layer of indirection; " getting milage out of that, eh
 
2:42 PM
:D
Seems like my Quote Of The Week
To be honest, I fail to see how the OP could not wrangle something out. Without knowing associated types, for example, I would have settled for the S trait just having two methods: .len() and .at(index).
Not pretty, for sure, but it gets the job done.
 
@MatthieuM. I really want it to use composition
 
 
5 hours later…
7:49 PM
@loganfsmyth so it can be reused, silly
 
hahah, of course
 
Man, those Boxes are driving me crazy
like, why are they there
 
 
1 hour later…
9:19 PM
@loganfsmyth have some basic decency
iter.map(i64::to_owned)
 
haha, I'm still learning sorry
 
^_^
You want mind-blowing, you could also do
iter.map(|x| *x)
iter.map(|&x| x)
 
I thought about it :P
 
@E_net4 with the speeeeeed
 
Pff, it was cheap.
But valid.
I didn't know carp about rusty-cheddar.
On the plus side, now I do. :)
Who said only the askers get to learn stuph.
 
9:29 PM
@E_net4 uhh, that's the entire reason I answer questions
 
Sweet.
 
definitely. figuring out the answers to early Node questions is 100% of the reason I learned JS really well
 
@loganfsmyth I noticed you didn't answer my webpack/TypeScript question. How rude :-p
Don't you wanna learn about those two some more?
 
x)
 
I've really trimmed down the tags I watch these days, not sure I could bring myself to answer webpack or typescript stuff, I bet the webpack tag is super repetitive
 
10:18 PM
> No need to grammar-smith every post.
Oh, people don't even
 
:[
 
I'll just wait for a few days and then edit it
They never see that coming
This is a minor one, at least.
I dislike the EDIT markers — if you come upon a question months later, you don't care that edits were made
and that's what the revision history is for anyway
If I'm not mistaken cloned() will actually copy the contents, correct? That would introduce an O(n) memory and time overhead. — dimo414 13 mins ago
@loganfsmyth ^ OP liked your example but thinks poorly of cloned
So I guess you got that going for you
 
10:39 PM
Wait, so if I clone the integer 10, cloned() is as expensive as making 10 copies of the integer?
:>
 
@E_net4 You are thinking of cloned_repeat
 
x)
 
fn cloned_repeat<T: Clone>(x: T) -> T { for _ in 0..10 {x.clone();} x}
 
So trait objects are inflexible now?
 
@E_net4 wha?
 
10:53 PM
> However, as it is right now, the design is inflexible: both functions are fixed to accept only Path.
 
@E_net4 Path isn't a trait
 
@Shepmaster Oops, right. It's a dst.
 
but... can you actually have a generic fn pointer?
 
Pronounced "deast", because it's fun.
 
OH NO EDIT 2
 
10:58 PM
My guess is that the OP just wants F: FnX(_) -> _
 

« first day (1130 days earlier)      last day (2362 days later) »