« first day (641 days earlier)      last day (4306 days later) » 

11:00 PM
time to reboot
 
I have a soft spot for Psyduck. Don't know why.
 
Ell
I wish Firefox could open private tabs, but opera has no hardware acceleration and flash frequently crashes :/
 
sbi
@sehe No, you can't. I posted on meta about this.
 
Yeah, on windows a gravatar change requires reboot.
 
Xeo
@Ell What do you mean?
@keith.layne wat.
 
11:02 PM
@JonathonReinhart No they just want cheap SEO and pagerank. This is also known as link SPAM — sehe 29 secs ago
Thanks
 
@Xeo I kid.
 
I adult
 
sbi
@sehe Yeah, I saw that.
 
Ell
@xeo in opera you can open a private browsing tab alongside regular ones, in Firefox there must at Least be a sepearte Windows
 
I robot.
 
11:02 PM
Dammit, don't steal my jokes!
 
sbi
I ape.
 
Ell
I middle age bafoon
 
I'm leaving now.
 
I unknown
You dispatch
 
IUnknown?
 
11:03 PM
Slow :)
 
sbi
I of the tiger.
 
Not bad
 
drat, I would have gotten away with it if it hadn't been for you meddling kids.
 
I, Leclerc
 
Xeo
@Ell Ah, yeah
 
11:04 PM
@keith.layne You started it, I kid you not
 
I know, I need to execute operation combo breaker.
 
Ell
Jesus motherfucking Christ how has this happened? my headteacher is spying on me, no joke
 
You're hot.
 
sbi
@sehe I adult you not, but I ape you.
 
@Ell Huh. It crashes? Fix your setup. It doesn't ever for me
 
11:05 PM
@MooingDuck fixed, if you could verify that it's actually correct - that'd be great
 
probably enjoying your foul language as well
 
@sbi I don't mind
 
Ell
via facebook. is that legal in the UK?
 
um, yeah
 
@Ell I think facebook is legal in most countries, perhaps excluding Iran, ?-Korea and so
 
11:06 PM
@Ell how can you spy on someone using facebook? o_O
 
maybe like me they only post public access things
 
I mean, I'm no barrister or solicitor or whatever silly word they use there, but I'm pretty sure if you put stuff on a "public forum" it's not "spying" if someone "reads it".
 
"Is it legal for other people to obtain information I make public?"
 
Ell
she can apparently see messages between people
 
11:07 PM
anyway, i get suspicious when pictures advertised as "playboy's natural beauties" or something, don't have the playboy logo!
 
@Ell Nope.
that would violate 999999 laws.
 
Ell
the information was not made public :o
 
@Cheersandhth.-Alf You post raunchy pictures of food, no?
 
sbi
@Ell You stupid child! How can it be called "spying" when facebook is involved? Really! That side's sole business idea is to make your data available as much as possible! What did you think happens to what you post there?
 
@Cheersandhth.-Alf Wut?
 
11:07 PM
no, i was going to post pictures of nice norwegian girls
 
@Ell You know about plugins on FB, no? You know how all of them are implicitely your friends and therefore have access? You should click fewer links, I'm afraid
 
@sbi Remember, if the site is free, you are the product.
 
Ell
yay Norway, my dream country
 
Got your camera yet?
 
but as yet i've only taken 3 photos: one of the user manual, one of a tree + sea, and one of my boss on the festival stuff and she's from minneapolis
 
11:08 PM
@MooingDuck your fibonacci implementation says the 0th fib number is 1597 :p
2
 
i can post that though
 
@JimNorton That's pretty much from this line of reasoning:
https://join.app.net/ lolwut
 
^ that's her
should i also post the alleged playboy picture that probably isn't
?
 
@Cheersandhth.-Alf That's an awesome disparate conjunction in that sentence
 
MooingDuck
 
11:10 PM
oooh
 
Ell
panic over! I'm pretty sire it was a joke. I'm just cautious because students have been expelled for posting video of her doing illegal things :L
she is one corrupt bitch.
 
@JimNorton The sound is missing
 
Now that would be illegal
 
@sehe Haha
 
No, seriously, I can't hear it. Is it too soft?
 
11:11 PM
@sehe Yeah, too soft of a moo.
 
film done
was cool :)
 
Ice Age 3?
 
nope
Unknown
 
Titanic?
 
I recommend it
the film is called "Unknown"
 
11:12 PM
@TonyTheLion You don't know what movie you watched?
 
@TonyTheLion You don't know what movie... oh dammit, they beat me to it again.
 
Unknown is a 2011 psychological thriller film directed by Jaume Collet-Serra, starring Liam Neeson, Diane Kruger, January Jones, Aidan Quinn, Bruno Ganz, and Frank Langella. The film is based on the 2003 French novel published in English as Out of My Head, by Didier Van Cauwelaert. Plot Dr. Martin Harris and his wife Liz arrive in Berlin for a biotechnology summit. However, upon arriving at Hotel Adlon, Martin realizes his briefcase was left at the airport. He takes a taxicab driven by Gina, but on the way to the airport, the cab crashes off a bridge into the river. Martin is knocked ...
this one ^
 
@R.MartinhoFernandes And I posted 2 more suggestions in that same timeframe
 
@sehe is that supposed to replace a TVTropes link?
the movie plays in Berlin /cc @sbi
 
11:14 PM
@TonyTheLion Why, I dunno. Perhaps TvTropes have an index on Alice in Wonderland too
 
@sehe I'm sure it has, doesn't it @R.MartinhoFernandes?
 
@TonyTheLion @sbi unrelated: my wife will be closer to Berlin sooner than me. Can I send her over to pick up that beer?
 
@refp I only noticed because RMartinho has pointed out at least 4 bits of code where I forgot it
@melak47 didn't I special case that?
 
you special cased 1 :p
 
11:18 PM
that's nearly half a character
 
1597 is actually the 17th fib number, but your code doesn't agree.
 
@melak47 oh, depends on how you count the index.
 
at about 16, the numbers grow HUGE
 
@melak47 are 1, 1, the 0th and 1st indexes, or 1st and 2nd
@melak47 yeah, I did another with bigints somehwere. It's even online. somewhere
 
maybe I should go for the Copy Editor badge this evening.. only 409 edits left
 
sbi
11:19 PM
@TonyTheLion You did a movie playing in Berlin?? I thought you had a job as a programmer??
@sehe Is she attractive? Evil grin.
 
@melak47 the fib series is roughly an exponential with the golden ratio as base, IIRC. it has no specific point where it starts getting huge. it's getting huge everywhere.
 
Aren't you old and grumpy?
 
@sbi lol. I'm not falling for your unfunny jokes anymore
 
@MooingDuck these look wrong though.
 
@R.MartinhoFernandes Yeah, I'll bet she won't have time :)
 
11:21 PM
@R.MartinhoFernandes he likes to pretend he's young among us lot :P
 
@TonyTheLion we can tell
 
@melak47 oh, so you're right, I just didn't special case 0, and I have 1,1 as indexes 0 and 1. (What's wrong with those numbers?)
 
they grow larger and then smaller again!
 
@melak47 oh, integer rollover.
 
sbi
@TonyTheLion Erm. What? You write "film done, plays in Berlin, sbi!", and when I ask whether you done a film playing in Berlin you get snappish?
 
11:22 PM
by the way, how many here have ever programmer the game of nim?
+1
 
@sbi if you had read a few lines before in the transcript...
 
@MooingDuck seems kind of early for the rollover with unsigned long long though
 
@melak47 ah the one I did with bigints was factorial not fibb, and I didn't end up using that algorithm, and it has my real name. oh well
 
@R.MartinhoFernandes I'm probably grumpier these days then he is
but I'm not as old
 
@melak47 I saw that, I'm looking at it now
 
11:23 PM
You're angsty. You're not allowed to be grumpy before 40.
(I am making stuff up, btw)
 
@R.MartinhoFernandes angsty is a word defined in Urban Dictionary :P
 
@sbi Mmm. Trying to think of Coulomb's law now and how it pans out on ... macro scale (god, that will lead to a host of funny interpretations). Yeah, I guess her very own gravitational field cannot be denied. I hear your gravitational field should be greater though :)
@Cheersandhth.-Alf "did a nim programming" - FTFY
 
You're calling him fat, right?
 
@melak47 fascinating
 
@TonyTheLion For a long time now
 
11:26 PM
@MooingDuck ?
 
May 21 at 6:37, by sehe
Oh boy, the lion's grumpier than the ape today
 
@MooingDuck do you maybe need to use an L or UL (ULL?) to make the literals you use for % and what not unsigned long longs?
 
but that is all about to change, since:
2 days ago, by Tony The Lion
@ManofOneWay Yes I got the job :)
 
@melak47 no, the loops variable/logic is wrong
 
@sehe oh god :(
 
11:28 PM
@R.MartinhoFernandes sssh
 
hm, i'm reading that israel is blaming iran and will attack iran for their (alleged) terror. when the only facts on the table are of israeli executing iranian scientists and their families, inside iran. i could get a nervous stomach of less
 
@sehe I fucking hope that job is good, or I might turn out to become even grumpier :P
 
Ok, @EtiennedeMartel tomorrow I'll start tackling this fucker: unicode.org/reports/tr29.
Also, good night everyone.
 
Night
 
Ell
11:30 PM
nighty night
 
mighty nite kite
 
"Israeli Prime Minister Benjamin Netanyahu issued a sharply worded statement just hours after the explosion Wednesday declaring that "this is an Iranian terror attack that is spreading throughout the entire world," and adding: "Israel will respond with force."
very ungood
 
obligatory you ruined it comment
 
maybe we should gift them some more nuclear weapon equippable submarines to calm them down
 
Ell
in what sectors of programming does integer overflow occur? one doesnt generally need to count above 3.2 billion or whatever
 
11:32 PM
finance?
physics?
chemistry?
 
Arithmetic. FTFH
 
Plenty of places I could think where it may occur.
 
fun?
 
ction?
 
Encryption arithmetic
 
11:32 PM
@Ell the most infamous is the ariane rocket incident. it was coded in ada, but it was management error
 
@TonyTheLion That's called modulo arithmetic, usually, and is not technically related to overflowing, the way I see it
 
lol, yea that
 
sbi
@TonyTheLion I don't have the slightest idea what you're talking about.
 
Ell
it happened on a space rocket? :o ouchie
 
I'd call it an ocean rocket.
2
 
11:33 PM
so...torpedo
 
@melak47 got it ideone.com/WOeM7 had to subtract 2 from solve since I special cased 0 and 1.
 
?
 
Ell
oh.
 
sbi
yesterday, by sbi
Well, since only a few here know this: I have a BMI above 30, and I believe I am therefore considered obese. I frequently joke about my potbelly, though. It's mine, it's my fault I have it, and I think others have the right to joke about it. Now bring them on... :)
 
@sbi I"m talking about the fact that the movie I just watched (Titled "Unknown") played in Berlin.
 
11:34 PM
@MooingDuck indeed! now they are correct :D
and don't go bonkers after a few iterations.
 
sbi
@TonyTheLion Oh. Well, I thought there'd be a great difference between "movie done" and "movie watched", you know?
 
Cluster was a constellation of four European Space Agency spacecraft which were launched on the maiden flight of the Ariane 5 rocket, Flight 501, and subsequently lost when that rocket failed to achieve orbit. The launch, which took place on Tuesday, 4 June 1996, ended in failure due to an error in the software design caused by inadequate protection from integer overflow. This resulted in the rocket veering off its flight path 37 seconds after launch, beginning to disintegrate under high aerodynamic forces, and finally self-destructing by its automated flight termination system. The fail...
 
@sbi I said "Movie done" as in "The movie I just watched is done". Jeez, do I really have to explain everything in that much detail?
 
Ell
how are you supposed to protect from integer overflow? besides using arbitrary length integers?
 
@melak47 last accurate number is now fibb(92) = 12200160415121876738
 
11:38 PM
@Ell check if it's smaller than INT_MAX or something
 
@MooingDuck ok, I didn't check that far :p
 
you can check overflow you know
 
@TonyTheLion No. You should just be clear from the get-go. Explaining things is annoying :)
 
@Ell when adding A+B, then if (INT_MAX-A > B) you're about to overflow
 
11:38 PM
@sehe oh shush you :P
 
Ell
but once you have overflowed what can you do?
 
@TonyTheLion Yeah, PHP has something for that in their sources
 
@Ell nothing if it's signed, that's undefined behavior
 
Ell
if you need to add two integers, you need to add two integers
 
11:39 PM
@Ell dream of the world of Undefined Behaviour that has just become a reality
 
@Ell do the check before you add, not after
 
@R.MartinhoFernandes no, not larger than max int size
that's stupid
 
@Ell if they're unsigned, you can check if the result is less than lhs, but it's better to check before overflowing
 
@R.MartinhoFernandes yeah that's the one /cc @TonyTheLion
 
11:40 PM
@R.MartinhoFernandes wait wut?
so how do you check for overflow?
 
Ell
so once you know you are about to overflow, you still can't do anything becaue you still don't have a big enough container
so the only option is an arbitrary sized integer, or 128 bit or whatevers big enough
 
@Ell Weep and retire
 
@Ell You can avoid UB.
That's quite important.
 
Hi guys!
 
template <class T>
void increment_without_wraparound(T& value) {
   if (value < numeric_limits<T>::max())
     value++;
}
 
11:42 PM
hi
 
that's the answer :)
 
@Ell That's a common problem at your age. It'll get better with the years :)
 
Ell
oh yeah avoiding ub I suppose
 
user1174868
John Henry was a steel drivin' man
 
@sehe doesn't help, tried that :p
@DeadMG hai puppy
 
11:43 PM
@TonyTheLion only for increments. That could get rather costly, if you, say, wanted to multiply two numbers
flump
 
@Ell It's the difference between discarding unusable data or terminating gracefully vs acting upon whatever inane data and ending in flames.
 
Ell
@sehe hehe
 
Ell
is it ub as soon as overflow occurs?
 
> Inline assembly lets you check the overflow bit directly
 
11:44 PM
@Ell Yes.
 
use inline assembly and check the overflow bit is set or not
 
@TonyTheLion If the compiler didn't fuck up your code with optimizations.
 
Ell
once ub has happened, is it ub for the remaining time of the program running?
 
@TonyTheLion Which virtually amounts to: write your own extended integer implementation, really
 
Ell
meh of course it is
 
11:45 PM
You can only rely on checking the overflow flag if you do the add yourself in assembly.
 
@R.MartinhoFernandes I think that's what he meant
 
user1174868
Has anyone here made any mods for Skyrim or anything like that?
 
so you're trying to tell me that from C++ you cannot reliable check for overflow?
 
@TonyTheLion correct (for signed)
 
C++ sucks bags of dick
 
11:46 PM
Could I ask for a little advice? I'm approacing to the GUI world, and I'm dealing with a problem: GTK+ or Qt? Which one? And why?
 
WTF is wrong with this shit?
 
@MooingDuck Incorrect. The spelling. It is grammatically incorrect.
 
Ell
is the overflow flag a processor register?
 
@unNaturhal Request permission to land
 
@Ell sometimes (on x86 yes)
 
11:47 PM
@unNaturhal personally Qt, cause I know how to use it. And last time I used GTK+, it sucked
 
@unNaturhal Also, kudos for noticing you have a problem either way: GTK or Qt
 
@TonyTheLion C++ doesn't do anything processor specific. Which limits more than most people pretend.
 
113
Q: Best way to detect integer overflow in C/C++

Chris JohnsonI was writing a program in C++ to find all solutions of ab = c, where a, b and c together use all the digits 0-9 exactly once. The program looped over values of a and b, and ran a digit-counting routine each time on a, b and ab to check if the digits condition was satisfied. However, spurious so...

 
Ell
im confused about what a "register" is. is it physically on the processor? in ram? L1 cache?
 
so wtf is this question then?
@Ell yes, it's a piece of memory, mostly 32 or 64 bits wide
in which you can store values
 
@Ell it's a level of "cache" in the CPU itself, and not addressable (via a pointer)
 
and it's the closest piece of memory directly to the CPU, so it's blazing fast
 
Ell
so not in the cache or anything, directly in the CPU?
 
@Ell it's kinda like it's own level of caceh
 
after registers come the L1 Cache, L2 Cache, L3 Cache then comes the RAM and then the secondary storage
 
Ell
11:49 PM
right okay
 
look up Memory Hierarchy
 
user1174868
I wish there were beer vending machines in the US
 
there's a wikipedia article on it
 
Ell
and each register has specific purposes and limitations?
 
@sehe @TonyTheLion You haven't answered my question :P
 
Ell
11:49 PM
oh kk ill try tomorrow
 
@unNaturhal We don't need to
 
@Ell there's some that have specific purposes on certain architectures and others are free to use for any purpose
like EAX on x86 mostly contains return values from functions if there's any
 
@unNaturhal I'm approaching my bed. Now I have a problem: left side or right side. I hear there are feng shui issues involved
 
Ell
oh yeah general purpose registers
 
user1174868
Opposite the door
 
11:50 PM
@Jordan Yeah you got the basics down :)
 
then you have the IP (Instruction Pointer) which has the address of the next instruction to execute
 
@sehe left side or right side what? approach? sleep position?
 
and then you the BP (EBP) which is the base of your Stack Frame, from which the function local variables and the argument offsets are calculated
 
@melak47 You haven't answered my question :P /cc @unNaturhal
 
@sehe alright, sleep on the floor :)
 
11:52 PM
@melak47 Kthxbai
 
Ell
stack frame? is that the area where local variables and arguments lie?
 
@Ell the cache is magic because the code can address variables in the cache with a 5 bit "pointer" instead of a 32/64 bit pointer, which makes instruction loading much much faster.
@Ell yes
 
Ell
I know you pretty much said something like that but you said about calculating something
 
@Ell UB actually warps space-time, causing your program not only to be UB at all times after the UB occurs but also before the UB occurs.
 
Ell
11:54 PM
@mooingduck is that something to so with long or shirt jumps?
 
Unless you're in your tardis.
 
so UB is like thought crime, or something? :/
 
Shirt jumps? Is that like a wet T-shirt contest? Love those.
 
@Ell long/short jumps have to do with segmented memory.
a short jump is a jump within the same segment, and a long jump is a jump into another memory segment
 
@melak47 I think it's a different argument...yours is more correct, mine is more fun.
 
11:55 PM
segmented memory is no longer used in modern CPU architecture
 
Ell
right okay Nevermind then
 
@Tony I have never seen you serious for this long straight before. Tits!
 
lol
doesn't always have to be sex and porn
that gets boring too after a while
 
After about 12 seconds for me.
But then I get sleepy.
 
11:58 PM
@Cheersandhth.-Alf Gem:
> But he learned something that day. The hardened traveler has a new game plan for airport security.
 
Ell
I ought to learn assembly
I have tried before
 
@Ell No you don't. You ought to learn to accept the limitations of tools, and pickt other tools for other jobs
 
That's like saying, "I ought to learn self-immolation. I hear it's the new hot thing."
 
@Ell Don't try. Do :) If you're interested, just plow through. It'll work
 

« first day (641 days earlier)      last day (4306 days later) »