« first day (700 days earlier)      last day (4474 days later) » 

20:00
What kind of Unicode support? They usually come in two flavors:
1. Shitty Unicode support.
2. Shittier Unicode support.
@sehe boost vs c++11 as far as the random number stuff
i tried that sehe
@Mysticial What about Shittiest Unicode support? Why do we leave that poor guy out?
for some reason this isn't working
@sehe that link is amazing btw
20:00
Yeah, Mysticial knows, right. His number crunching outputs Katakana :) (joking)
frustrating
@Mysticial Preferably, "Useful"
@JohnSmith Hmm. I have never seen a compiler emit that message.
lol
I think it depends on how to seed
20:01
@Rapptz No, that implies that there is no "shittier Unicode support" than "shittiest Unicode support".
i am getting a lot of repeat values
@JohnSmith you need to seed it
i am seeding
@JohnSmith I prefer leeching, myself.
@pyCthon duh. repeat values...
@JohnSmith too often, it seems :)
Seed once and exactly once only
20:03
@Rapptz @JohnSmith now get this guy his medal (Stack Overflow). I'll upvote
nvm figured it out, only had to seed once in the start
Yeah don't seed more than once.
@JohnSmith "you" - so why do you bother asking anyways? Read above, perhaps
@Rapptz At least not unless you want to restart at a known seed
20:05
"you"?
true
2 mins ago, by sehe
Seed once and exactly once only
i do not understand "you"
- Do X.
- Doesn't work.... oh, wait, figured it out. Had to do X.
- No shit, Sherlock.
4 hours ago, by sehe
I just don't want to. Understand "u"
@EtiennedeMartel thanks for clarifying /cc @JohnSmith
20:07
@sehe If you ever need my Trollhammer, feel free to ask.
i still do not understand what "you" is
I'm so tempted to quote some historic messages by this person
@JohnSmith you = the pronoun of the second person singular or plural, used of the person or persons being addressed, in the nominative or objective case: You are the highest bidder. It is you who are to blame. We can't help you. This package came for you. Did she give you the book?
@sehe I know what you means in English, I am asking why you have "you" - in your response.
["you" - so why do you bother asking anyways? Read above, perhaps]
20:11
Etienne spelled it out for me. Here it goes, again:
I thought it was rather strange that you complain "it somehow doesn't work"/"frustrating"/blabla/"duplicate values" --
We all respond with the obvious solution, even with FULLY working sample code, and you state "you figured it out" - wut? "you"??
oh i understand now; not sure why you quoted "you" since that explicit context was omitted in my response
i tried the suggestion for the uniform thing but it was C++11 so I went to google instead
/me returns.
Ohai
@JohnSmith Good thinking. A bit silly of us to keep helping you in the mean time, of course
Google: The root of all <insert random word here>
Alright, time to check if my local convenience store is open. I need beer.
20:13
@EtiennedeMartel Sounds a bit light for today.
@JonathanSeng Can I call "crippling stomach pain" a <random word>?
@TonyTheLion @TonyTheLion i'm still trying to figure that part out as well
@DeadMG Madlib: Google: The root of all <random anything here>.
@DeadMG Yeah... My bad. Hope thats better now.
would there be a significance perfomance hit if one were to use embedded java rather than embedded c++?
has anyone tried both and can provide feedback?
20:16
Google: The root of all andridickblic
@JohnMerlino Embedded Java sounds like an oxymoron.
andridickblic? that sounds questionable
avdridickblic
@pyCthon as far as I understand, it takes that float and converts it to an int, by adjusting some bits. The real work is done in the next line of that function
typo xD
20:17
@Mysticial why is it an oxymoron if it exists and has been tried?
@JohnMerlino Because the very idea of Java being used where efficiency is preferred is hilarious, and stupid
@JohnMerlino "sounds like" - I didn't say that it is.
@JohnMerlino you will LOSE performance based on the garbage collection in Java
@JohnMerlino unless you can figure out how to "pin the buffers" you will obviously have a performance hit
we have experience with that ^
@TonyTheLion Assume everyone stupid until proven otherwise
:P
20:19
@TonyTheLion That is an extremely powerful statement.
@NikiC A rule I ascribe to
@JonathanSeng Yes.
large group = java devs?
xD
I'm a Java dev... :)
20:20
@JonathanSeng Else, you wouldn't end up with nations like the United States.
@Mysticial BURN IN THE FIRES OF HELL
Java requires one to be an idiot to write it, else you'd move away from it pretty immediatly
@DeadMG I know the United States too well to take offense to that.
@JonathanSeng Fortunate. We had some guy in here a while ago who just couldn't stand it if you insinuated that the US and every American, ever, was less than an angel sent from Heaven.
There, I went for an oatmeal stout.
20:22
I have a const int n. If I make an array int array1[n][n] it compiles fine, but if I do double array1[n][n] I get seg fault. Why is that?
he didn't last long
@DeadMG I'd like to think some of us do better than average for humanity -- just like anywhere....
@DeadMG Who?
@JonathanSeng Of that I don't disagree. But I do generally believe that the nation as whole is... debatable.
@Rapptz Y U NO USE std::vector<std::vector<double>> ?
20:23
@EtiennedeMartel Wasn't it jimnorton?
@JonathanSeng I'm in the US, and I don't take offense to that. The US is indeed full of a bunch of idiots. There are non-idiots in the US. But you usually don't hear about them.
@Rapptz Likely because n is too large, so int array[n][n] can hardly fit in the stack, and n * n doubles is too big.
@Mysticial Where's the news in someone doing something smart?
n is 4 though.
the hell.. :(
20:24
@DeadMG You mean @Chimera?
might still be significant if you have a large amount of recursion in that function
post it there.
@EtiennedeMartel Dunnoes.
@Rapptz "The hell..." Perhaps the most common words in programming.
20:25
@DeadMG If it's him, then, saying "a while ago" is not exactly accurate.
@TonyTheLion It's a small question. No point in getting rep/downvotes/close votes/all that garbage involved.
And he did last long, considering he's still here.
I like the picture of the cat operating the computer.
@EtiennedeMartel Since I was completely unaware of any name change, then I accept all responsibility for any factual inaccuracies.
@TonyTheLion Is not reliably up right now.
@Rapptz I see
20:26
Yeah.. Chimera still talks here often.
@DeadMG that's true. But I have troll occasionally. Seemed like the perfect moment. Mwuahahahahah
lol
I generally suck at trolling. Though occasionally I pull off a good one.
I didn't even click the link.. Does that count as a successful troll?
I could have gone on about it
and made you feel really bad about it
and then made you feel worse than bad
20:27
I'll give you the troll out of the kindness of my heart.
then made you rage quit
RAEEGGGGE QUIIIT
and then I would have laughed
Trolls: They're what are eating the fun for dinner.
they do it for the lulz
20:30
That was sweet. The system just replied there are 0 newest c++ questions.
Prolly a db disconnected in the maintenance or something.
@TonyTheLion What a neat 403 page.
here it is again
died
@Rapptz Yeah, I thought the exact same thing.
STOP AGREEING WITH ME.
20:32
grr fuck seg faults.
and fuck 2D arrays/vectors
2D arrays are error prone
are you writing C or C++?
C++
why are you using raw 2D arrays?
at first I did it with 2D arrays
then I switched to vectors
and then?
20:34
still got the same problem.
something else must be wrong?
@Rapptz Then your problem isn't likely the memory, but the usage.
care to post your code to liveworkspace.org and post link here?
lemme try something else.
@TonyTheLion what cool tools we have now. Last I heard, it was dust off the dot matrix, print it out, fan-fold it back up, and drop it in the post office with at least enough stamps to not get rejected.... What happened to this world?
20:37
The thing I dislike with my Amazon bock is that it cannot fully contain a pint.
@EtiennedeMartel That's a tragedy!
Yeah. I have to it in two shots.
@StackedCrooked that DJ goes to a local night club in NYC all the time
You know that.. Does that make you Otto?
Ok, that was a super-lame pun.
20:53
@StackedCrooked no but you can go to pacha for free every friday night before 12 too!
@pyCthon Thanks for the tip. I'll visit the club next time I'm n NYC.
However, I've never been in US, and currently not planning to make a visit yet. Japan comes first :)
@StackedCrooked its not worth the trip
@StackedCrooked if your into that stuff there are much better European and south american alternatives depending where you are
lol
douchebag cop
21:08
I wouldn't call him a douchebag. It's obvious they're all having fun.
He's even smiling.
@Rapptz Some men just want to watch the world burn.
The Kalamazoo Promise is a pledge by a group of anonymous donors to pay up to 100 percent of tuition at any of Michigan's state colleges or universities for graduates of the public high schools of Kalamazoo, Michigan. To receive the minimum 65% benefit, students must have lived within the Kalamazoo School District, attended public high school there for four years, and graduated. To receive a full scholarship, students must have attended Kalamazoo public schools since kindergarten. The program, unveiled at a November 10, 2005, Kalamazoo Board of Education meeting, is also viewed as an econo...
SO seems to be rather unstable at the moment
"We really hope this works." Unfortunately not.
21:21
fail
If you want to pass member functions to functions pointers you have to do void (foo::*func)() right?
@TonyTheLion If you want to pass member functions as a function pointer, then cry in a hole because you're fucked.
No
I want to pass member functions to a function pointer?
@DeadMG Stephano vs Lucifron right now.
More importantly, you tried to declare a pointer to member function. Not pointer to function.
@EtiennedeMartel I know. My brother's watching it but I declined. Sick and all that. He can't stand the noise of my stomach gas incessantly.
@TonyTheLion Wait, wut?
member functions don't to anything
21:27
func(void (*ptr)(int)) Now I want to pass a member function to func?
right
You can't, assuming a non-static member function.
that is the scenario I initially thought you meant
and my initial response is 100% accurate- cry in a hole because you're fucked.
21:28
I misunderstood you
assuming non-static, of course
@LucDanton I noted that it works with a static member function
@DeadMG I'm crying already
:'(
@TonyTheLion Those behave like non-member functions.
@TonyTheLion Strictly, you could hook up LLVM and JIT a thunk.
makes snes
21:29
or if you have SUPER MASSIVE BALLS you could write your own thunk-jitting routine.
@DeadMG yea, I could do that, but fuck that
@DeadMG lol no
I don't have that much balls
but without a JIT it's not le possible.
oh, you could use that exception throw up hack :P
Might as well use TLS instead.
@LucDanton Don't think TLS stacks like exception vomiting.
but that could also work
21:31
thread local storage
It's more explicit than abusing exceptions as your TLS.
don't see how that works with TLS?
how do I delete the github wiki
I accidentally made it
@TonyTheLion You create a local std::stack of pointers to this.
then you push on this, call the function, function uses thread-local storage to find stack, use this, then pop off.
Think function-local static, but thread-safe.
21:34
of course, neither works cross-thread.
the only real solution to the problem is to get a JIT
@LucDanton The difference between exception abuse and TLS is that TLS is much more of a bitch to use and platform-specific.
thread_local isn't platform specific.
but there are zero compilers currently implementing it
the only TLS you can get is the POD-only TLS supported by actual compilers implementation-dependently, or catch some of your own from platform API
That one is portable inasmuch as Boost is though.
21:37
oh yeah, I forgot that Boost has some TLS helpers.
@DeadMG Stephano 1-0.
SO is so unstable.
@Rapptz yeah, the redirects are fucking up my AF
AF?
auto-refresher
AR, not AF
why do I keep calling it AF
21:47
[f]resher
dunno... I've been calling it AF for quite a while now.
0
Q: Project Euler 138

MarlonProblem 138 Basically, its asking for isosceles triangles where the height of the triangle is equal to base +- 1. After doing some math on paper, I use either of the following two equations to calculate the length L given b: L = sqrt(1.25b2 + 2b + 1), substituted h with b + 1 or L = sqrt(1.25...

I went to check if I did it, and I did.
It doesn't fit in an int
It's 14516824220
I should have kept a repo with my solutions.
Are the real-time updates working for anyone?
Not like I'd actually expect that to work right now since the whole site is shaky.
no.
21:57
Oh I was looking at 128. Derp
what's that project Euler about?
Triangles.
@Rapptz what about the triangles?
22:14
Ok, if you're allocated int* arr = new int[10]; let's say, and now you want to resize this array, is the only way to copy the existing elements to a temporary, delete the old and recreate a larger and then copy old elems back in?
@Rapptz You get the new problem yet?
I stopped doing Project Euler when I hit level 12.
@JohnSmith Perhaps label NSFW
lol what a weird question
@Rapptz go for 14
22:17
Some of the questions in Project Euler are really really stupid.
Off the top of my head 344
@Rapptz which ones?
xD
mind reader
that one is fun though
it's very long and involved
22:18
Gonna go eat, brb.
not stupid
same can be said for 361
i'm teaching my self haskell thru means of project euler
so far i've solved 1 , 3 4,5 and 345 lol
394 is preety stupid as well
that is the new one
22:22
@TonyTheLion I presume yes, there is no other way, but then you don't do this in C++ (anymore), but use std::vector
Yes I know you don't do this, but I was just curious
Oh, hey, Stephano won.
Won what?
who's that?
Best zerg foreigner.
He's French. Which is weird.
22:28
This is code language, no?
^ pretty cute
Very youtubian in the comments section. These days, you'll really have to be strong to put up a video like that
22:50
test
RIP StackOverflow.
lol
^ Story of today on SO chat
@TonyTheLion Yes.

« first day (700 days earlier)      last day (4474 days later) »