« first day (1011 days earlier)      last day (3940 days later) » 

6:00 PM
so what will detect it ._.
 
Arrrgh first Telkitty then Lion then Bartek q_q
 
@Fanael well yeah, it's not silent if you explicitly tell it to not be silent >.<
 
speaking of which what space does arithmetic happen in?
 
@EiyrioüvonKauyf ...what?
 
like if i did (10000000000*5)
 
6:00 PM
Wait. 395 lines of code in Polish. Yep. Makes sense — sehe 3 secs ago
 
without storing it ; where is it doing that op
 
@EiyrioüvonKauyf I would be a little surprised if valgrind detected it.
 
@EiyrioüvonKauyf How could it
 
idk
lol the magic of C++
 
@EiyrioüvonKauyf types smaller than int are promoted to int, then the smaller type is converted to the larger type, then the arthmetic is done with that larger type.
 
6:01 PM
no i mean
 
@EiyrioüvonKauyf Your brain must prevent it.
 
user784668
@sehe using an if? It could, it just doesn't.
 
user142019
They say it's going to rain tomorrow in my area.
 
lets say i did (10000000000000000000000000 * 10) can it do that and then just throw it away
 
user142019
I hope they're right.
 
6:01 PM
@rightfold Good. Keep it there. i'mma be heading for a beach
 
user142019
I'll go lay outside.
 
@sehe should I translate it?
 
@EiyrioüvonKauyf I don't see why not, other than no built in type can hold that value on most systems
 
@BartekBanachewicz Aren't you done yet?
 
@sehe I was busy, just noticed. I am pretty sure this is a homework.
 
6:03 PM
@EiyrioüvonKauyf Apparently GCC has -ftrapv. Never tried this though.
 
@BartekBanachewicz "pretty sure". On a scale of 1 - 10? 1e12
 
what is a homework o-o
 
user784668
4 mins ago, by Fanael
@MooingDuck -ftrapv
 
@sehe s/1e12/gramm's number/
 
@StackedCrooked doesn't apply to long
 
user784668
6:04 PM
@sehe On a scale of 1-10 it's 10 → 10 → 10 → 10 → 10 → 10 → 10.
 
.
this is not homework
sorry to disappoint all of you in a row
 
user784668
@MooingDuck it does
 
Well, time to listen to The Lion King's soundtrack. That ought to make me more productive.
 
@EtiennedeMartel what do you listen to music wise
 
@Fanael say what? Really?
 
6:06 PM
You could use a wrapper class around your builtin types and implement operator+ etc with overflow checks. (And have the checks optionally disabled for optimized builds.)
 
@Fanael whoa! neat!
 
@Borgleader you mean graham's #? aka the number from hell
 
user784668
long foo(long a, long b) { return a + b; } generates a call to __addvsi3 on my machine
 
@EiyrioüvonKauyf Uh yes, that undiscribably huge number
 
user784668
@MooingDuck the difference between int and long is long lost when -ftrapv transformation runs anyway.
 
6:07 PM
@Borgleader unfortunately it has uses
 
@Borgleader googol
 
@EiyrioüvonKauyf Jazz, funk, reggae, progressive rock, art rock, post rock, hip hop, trip hop, house, dub, downtempo, anything experimental, and some classical and world music stuff.
 
@Fanael I always thought ftrapv caught floating point "exceptions"
 
@EiyrioüvonKauyf I'm not surprised
 
user784668
@sehe 10 → 10 → 10 → 10 → 10 → 10 → 10
 
6:08 PM
@sehe lol why would you post homework here
 
@sehe googolplex!
 
the only homework I've ever posted on a thread was math; if any of you would like to play with zeta functions and maxwell's relations and the boltzmann distribution, hmm what else shit that happens when you screw around with Poincare expansions.. though I missed that -_-
 
user142019
Googleplex.
 
@EiyrioüvonKauyf why would I?
 
user784668
@sehe generic "you", I guess
 
6:09 PM
@EiyrioüvonKauyf post it on a packaged_task, let the scheduler figure it out
@EiyrioüvonKauyf *equations
 
@EiyrioüvonKauyf Really, I usually just link my Last.FM library when people ask em that.
 
ugh god main is so badly structured it's not even funny
 
user784668
> Your musical compatibility with edemartel is Very Low
 
@Fanael same here
 
@EtiennedeMartel uhhh german hip hop / house / dub/ electro pls?
 
@EtiennedeMartel Hahaha, I've not used last.fm since a very long time
 
@EiyrioüvonKauyf Try Jazzanova.
 
user784668
@JerryCoffin well, "This option generates traps for signed overflow on addition, subtraction, multiplication operations."
 
Or Modeselektor.
 
6:13 PM
@Fanael Strange, considering I listen to kinda almost anything.
 
so what happens when i cast a double to an int ....
or long
truncate or round?
 
user784668
@EtiennedeMartel Only Loreena McKennitt, Radiohead and Tool ring any bells to me
 
@Fanael Strange. What's your profile?
 
yeah @Fanael let me compare myself to you
 
6:16 PM
> let me compare myself to you
> I'm better
 
user784668
@JerryCoffin funny, seems to be optimized out before -ftrapv has a chance to work
 
@kbok shush. I'm refactoring.
 
@EiyrioüvonKauyf If the magnitude fits, you get the truncated value. If the magnitude doesn't fit, you get UB. ideone.com/M0Khrv
 
Man, train is expensive. 60e for festival ticket, 100e for train
 
6:17 PM
@EtiennedeMartel my last.fm charts haven't been updated in a while I'll install the scrobbler again. (I'm surprised but also happy to see of Montreal on the top of that list. :D)
 
user784668
;; Function int main() (main, funcdef_no=1265, decl_uid=23160, cgraph_uid=439) (executed once)

int main() ()
{
<bb 2>:
std::basic_ostream<char>::operator<< (&cout, -2147483648);
return 0;

}
 
user784668
That's GIMPLE after optimizations.
 
@EiyrioüvonKauyf truncation
 
k
well fuck it they can have their numbers off by a few
 
Now I need a tent, a hat, and lots of alcohol
 
6:20 PM
@Fanael So the short answer is that it's supposed to, but you can't (at least currently) depend on it?
 
user784668
@BartekBanachewicz no
 
user784668
@JerryCoffin yeah, but I'd say because bugs
 
@Fanael undefined behavior in code != compiler bug
 
user784668
6:22 PM
@MooingDuck the option's supposed to catch this kind of UB, so it is a bug, I'd say.
 
@Fanael fair enough
@kbok seems conclusive
 
user784668
Wait.
 
@EtiennedeMartel uhhh more like german party
 
user784668
@MooingDuck works here
 
user784668
6:24 PM
>> ./a

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
 
@Fanael on your local machine but not on coliru? Interesting
@JerryCoffin wait, what if Coliru is dropping the flag somehow?
@StackedCrooked: Is there the possibility that the -ftrapv flag doesn't work on Coliru?
 
user784668
call    _atoi
movl    $2, 4(%esp)
movl    %eax, (%esp)
call    ___mulvsi3
 
coilmoo :3
 
user784668
@MooingDuck broken on AMD64 it seems
 
user784668
Calls __mulvdi3, which is 64-bit multiplication.
 
6:27 PM
@Fanael ah, also possible
"BTW, -ftrapv is broken in gcc-4.2.1. It seems to have worked in
gcc-3.3 ...." http://permalink.gmane.org/gmane.os.freebsd.devel.cvs/493895
 
@MooingDuck Dunno.
 
"But AFAIK, "into" has never been optimized
and has always been slower than the branch, so programmers never used
it, so AMD removed it in 64-bit mode."
@StackedCrooked you aren't like sanitizing the flags or something right? :D
 
nope
I don't sanitize.
 
user784668
@MooingDuck they could jo .overflow and later .overflow: ud2
 
6:31 PM
@Fanael they could do a lot of things.
 
I only put some boundaries on number of processes, running time, file size and size of stdout.
 
Uuugh
An assertion fails in the clang source code
Now I'm stuck again. =/
Fuck it, I'm going to work on D2D stuff now.
 
// That looks a bit verbose
world_shader.attachShader(gldr::VertexShader(istreambuf_range<char>(std::ifstream("../Data/shaders/main_cubes.vert"))));
 
too many words
 
@sehe hey Sehe Thanks!, remember you :) you given a tricky answer that day in C++ — Grijesh Chauhan 8 mins ago
 
6:33 PM
use parens
 
I should probably remember ^
 
@EiyrioüvonKauyf well they are necessary :F
 
@BartekBanachewicz a wee bit
@sehe I never remember those people
 
@sehe You give tricky answers?
 
user784668
@BartekBanachewicz is it?
 
6:34 PM
@MooingDuck I am not sure how to shorten it though
 
On purpose. Just job security, really
 
@Borgleader to tricky questions
 
also @sehe @MooingDuck @Fanael i just realized i wasn't doing anything wrong math wise; I had set default settings that made it so the minimum granularity just happened to be 1e9 nanoseconds ... derp ; after i changed that to 1e9/10 nanoseconds it worked
 
@Fanael at least it makes sense logically
 
So glad to know
 
6:34 PM
@EiyrioüvonKauyf fail
 
massive fail
 
Doing a test locally on an Intel (i7) processor, I am seeing some sort of interrupt/trap happening with an overflowing value introduced at run-time.
 
@EiyrioüvonKauyf you're fired
 
especially since i built it
euh
do you use ctags?
 
0
Q: Unidentified reference to constructor (c++)

Tee-ManI decided to fix convert my older java code into c++ for practice and have been stomped for almost the whole summer. I've gotten some strange LNK errors with Visual Studio and gave up on using that IDE ever again. So I started using Code::Blocks and found some hope of ever completing this code (w...

 
6:35 PM
i need to use ctags
 
> I've gotten some strange LNK errors with Visual Studio and gave up on using that IDE ever again.
 
user784668
@MooingDuck perhaps Clang handles it better
 
oh guys I made clang segfault; successful coding cough; so i used gcc to fix it and then went back to clang; i had some medium-complicated nested templating things I think killed it
 
I'm causing an assertion in the clang trunk. =[
 
6:38 PM
Maybe I should backtrack to clang 3.3. .... And... rebuild... everything... ;~;
 
german party music anyone?
@ThePhD no; just use gcc to fix the error and then use clang again; they're drop ins
 
Can't really do that.
 
why not?
 
I'm hacking on clang itself.
Like, using its source code to do stuff.
 
6:39 PM
LOL oh ok
then yeah
well no you still can
if you're building it from scratch
 
user142019
> Your mother is so fat, the tail-recursive function calculating her mass causes a stack overflow.
 
olddddddddddddddddd
 
user142019
She's also old, yes.
 
stackoverflow.com/questions/16878502/… /cc @BartekBanachewicz I'm terrible
 
@sehe ...
Why don't you help me refactor Minicraft instead of correcting random shitty code? :P
 
6:44 PM
^
@sehe why you do all that work?; just one liner astyle or gg=G
@BartekBanachewicz what's minicraft
 
@EiyrioüvonKauyf my clone of Minecraft
 
I always read nurses instead of ncurses
2
 
@BartekBanachewicz because this is more fun?
 
@BartekBanachewicz oh that game ...
 
6:45 PM
@kbok much better no?
 
That doesn't make it any better, no
 
@EiyrioüvonKauyf missing the many points, as usual.
Why don't you start getting into the habit of thinking before you speak yap?
 
@sehe . what points?
 
Those points: ....
 
phew
I've cleaned up pretty much everything, I think.
 
6:48 PM
@EiyrioüvonKauyf You'd find out IFF you actually looked at the code
 
Except the setUniform overload
 
@StackedCrooked So much indie stuff.
You would love Osheaga.
 
@EiyrioüvonKauyf Then don't make silly comments
 
that was stupid i admit
 
@EtiennedeMartel Looking at 2013 lineup, I think yes :D
It's like a festival crafted for me.
 
6:51 PM
@StackedCrooked You mean hipsters.
 
@StackedCrooked Nice
 
I think this is the first time someone called me a hipster.
 
Sigh.
FUck trunk clang.
Guess I'm going backwards to clang 3.3
Jesus christ this is gonna suck...
 
What are you doing? A project which requires clang? Otherwise I'd just use GCC.
 
@ThePhD Still doing reflection stuff?
 
6:54 PM
Now, comparing foo[1234] imgur.com/MjQbV5m it will become pretty apparent that you need to match up tasks and mutexes, and be more consistent about locking the correct mutex. I can't make heads or tails of this due to the Polish. But it's clear that it needs to be a single foo(deque<int>&, mutex&, int id) function or very similar. — sehe 29 secs ago
Now I'm done
 
@StackedCrooked Do you liike Mumford & Sons?
 
@DeadMG Yeah. It was working with Clang trunk two weeks ago.
Pulled the latest and got fucked in the mouth.
 
lol
what did I say about updating Clang? :P
 
@EtiennedeMartel I don't know them very well.
 
@StackedCrooked Weird.
 
6:56 PM
@DeadMG But.. but shiny new features ;~;
 
However, now listening to Babel on Youtube and I definitely recognized it. Definitely not bad.
Gets a lot of airplay on stu-bru.
 
What's the design pattern for interface extension?
 
@EtiennedeMartel I usually discover music by only looking at metacritic user ratings x number of ratings.
Regardless of genre.
 
@StackedCrooked I prefer AllMusic, personally.
 
When I want to have a class extending the interface to operate with some library, for example
 
6:57 PM
Never heard of that.
 
I discover music by being exposed to it by my brother, who's quite the music buff.
 
I like it when I can learn new music that is of a totally different genre than I'm used to.
 
last error
dum dum dum
 
@EtiennedeMartel Good job your parents didn't sell him, then :)
 

« first day (1011 days earlier)      last day (3940 days later) »