« first day (605 days earlier)      last day (4335 days later) » 

3:00 PM
@RadekSlupik nothing to do with tides
 
I know.
 
@DomagojPandža You can't explain that!
 
@RadekSlupik synergy
 
?
Isn't that a company?
 
3:02 PM
@DomagojPandža That doesn’t account for the (infinitesimally small, but real) chance of quantum tunneling
so, fail :p
 
@RadekSlupik it is both a buzz word, and a most awesome tool if you use more then one machine side by side
 
It could fly over the road.
 
@thecoshman I was never able to get it to work right.
 
@RadekSlupik most chickens have their wings clips, preventing flight
 
3:03 PM
@RMartinhoFernandes Back to GitHub Pages, are you using Octopress or something else?
 
@SamDeHaan really? whilst a bit of an odd way to do so, I found it was always really easy
 
sbi
> Oh shame, you got offended by a post on the internet? You must be new here... idiot. — Debbie Howard
8
 
@thecoshman Yeah. No idea why, but for whatever reason it refused to work between my old laptop and my desktop. That was a few years back, don't remember any specifics.
 
@KonradRudolph What's that?
 
The dude who was clueless yesterday and is still clueless today (be it a little bit less) is back.
 
3:06 PM
@RMartinhoFernandes Ah. So no, then. It’s a “blogging framework for hackers” but as far as I can make it out it’s just a set of default configuration + themes for Jekyll
 
Feels like @sbi spends all his time on Twitter.
 
@SamDeHaan I've used it with fairly old hardware, been a while since I have used it though now, AFAIK the original developer is back on and merged the main fork back into his project
 
sbi
@EtiennedeMartel Only about 60%. The other 40% I spend here.
 
@sbi what about the other 20%
 
@thecoshman I'll have to test it out again when I get my desktop set up in my new apartment. Hasn't made it out of the box(es) yet - I need to find a new desk for it.
 
sbi
3:07 PM
@thecoshman I have to sleep, too!
 
@sbi makes sense
 
@sbi Good.
 
@sbi Gorillas don't sleep--I've seen Congo.
 
@SamDeHaan I need to sort my self out with a proper desk too
 
sbi
@SamDeHaan It's the tourists that don't sleep (in fear of them). Gorillas sleep well at night. In fact, they build a new nest for each to sleep in every night, so important is a good night's sleep for them.
 
3:11 PM
@sbi apparently Gorillas have a really bad memory and forget where they left the nest from last night
 
Speaking of wild animals, a bear trolled a driver yesterday here. Ran in front of a car and rammed it. The driver was injured, the bear fled the crime scene.
 
Moose are worse.
Moose will kill you and walk away unharmed.
 
lol android is upgrading their GCC. On a per device basis.
 
That Amazonian fish that swims up you cock and then embeds it self is the second worse
bot fly are the worse create ever
 
3:14 PM
cause it breaks most kernel builds
 
music on, hacking can begin
 
@Drise No, moose will just stand there and sacrifice themselves by using their huge bodies as walls when you ram them with your cars.
That's right: moose are kamikazes.
 
@EtiennedeMartel are there any mooses in Japan?
 
@EtiennedeMartel lol
 
3:20 PM
@EtiennedeMartel Evolution fail.
 
@DomagojPandža Why not link to the actual xkcd?
 
1
Q: Function size vs execution speed

boboboboI remember hearing somewhere that "large functions might have higher execution times" because of code size, and CPU cache or something like that. How can I tell if function size is imposing a performance hit for my application? How can I optimize against this? I have a CPU intensive computatio...

lol, the comments there.
 
@RMartinhoFernandes Perfect, perverted coders.
 
@Drise Because cookies.
 
I think as a society we get a Win.
 
3:23 PM
O_o linking to a copy of an xkcd. Blasphemy!
and no attribution!
 
well facebook just removed a 30 year old song on copyright ground. i wonder who the bastards are who write them song recognition software
hm, how to work around facebook?
 
@CheersandhthAlf Don't use it.
Facebook even blocks dropbox referral links
that sucks
 
oh, that really sucketh
 
@CheersandhthAlf I wonder if you can thwart the detection with some sounds less than 10Hz so they'd be inaudible but break the algorithm
 
hm, good idea
 
3:25 PM
Anyone don't have dropbox yet?
 
@Drise sorry, I'd gone to work
@rubenvb I don't
 
@MooingDuck You want to do me a favor?
 
clearly > 20KHz isn't going to work if it's compresssed but there might be scope at the low end
 
@rubenvb sure
 
Worrying about the instruction cache, yay.
 
3:26 PM
@MooingDuck sign up and install the desktop/mobile application through this link: db.tt/RfN307CK
I get 500MB free extra space :)
 
@MooingDuck Its k. I don't remember off the top of my head what it was anyway.
 
I just hacked a dutch dictionary into CM7.2pre's Android keyboard
 
@rubenvb bam. oh wait, you said install too
 
y must install dorpbox exe
 
dorkbox
 
3:29 PM
derpbox
 
@MooingDuck yeah, otherwise I'd just make email accounts and stuff ;-) myself
@CheersandhthAlf thanks for yours as well :)
 
@rubenvb uninstall/reinstall?
 
@rubenvb VMs?
 
@MooingDuck coupled to machine/IP
@RMartinhoFernandes linux livecd VM's suck ass these days. I always get damn freezes
@MooingDuck I don't have you in my referral list, only alf :/
VM's was my first thought.
 
no the installation requires elevation
i think not
 
3:31 PM
To make it "legit" I'd have to do it on Uni campus
 
@CheersandhthAlf it adds a service and icon that autosyncs you files to a "Dropbox" local folder
It's pretty cool for stuff not under version control
 
"It's not really about function size, but about what you do in it. Depending on what you do, there is possibly some way to optimize it."
 
i don't want no more service running
 
This answer is just beautiful
 
3:32 PM
¡
 
@CheersandhthAlf just install and uninstall :-)
 
@rubenvb just started installing
 
Funky stuff: DispatcherObject.CheckAccess does not show up in the autocompletion list, but it's a perfectly valid public method.
 
Anyone knows about Classic C++?
 
3:34 PM
@RMartinhoFernandes if it's just pre-standard C++, yes?
at the end it was defined by the ARM
before that by TCPPPL
before that just informal
 
Classic C++ as in Cish C++?
 
0
Q: Does the GCC compiler support classic C++?

JustinThis question is related to the process of porting over an HP-UX executable. On HP-UX, the executable was compiled and linked using the HP-UX ACC Compiler. Given that the compiler was from way back in 1996, it doesn't appear that it supports standard C++ (the standard for C++ that is used today...

 
about my Integer class thing and endianness: would it make sense to reverse my uint8_t's and follow endianness internally (for possible vectorized operations and stuff?)
 
@rubenvb how about now
 
@MooingDuck :( no. Only alf that's not installing :/
 
3:39 PM
@RMartinhoFernandes "Classic C++"? What is this shit?
 
@MooingDuck But thanks for trying anyways...
 
"Oh, yes, I want to return to the good old times, when templates made any compiler crash"
Oh, it's for legacy purposes.
 
Anyone heard of The Haskell Platform ?
 
@TonyTheLion Is it a jump’n’run game?
 
don't think so
 
3:44 PM
@TonyTheLion Looks slick.
 
If I ever want to start doing Haskell like all the hipsters out there, I'll definitely check this out.
 
Haskell is the awesomes
 
@TonyTheLion I'm guessing everyone that tried Haskell in the past couple of years heard of it.
 
Is haksell the c++ of 201*?
 
no
Haskell is functional programming in a very pure form
nothing like C++
@RMartinhoFernandes I hadn't heard from it, and I tried Haskell
 
3:48 PM
Haskell is one of the few things that @Cat finds awesome. That says a lot.
 
yea, @Cat isn't known to easily find things awesome
 
there's a lot of Haskell love in the room
but I personally find classes to be a ridiculously good abstraction for many modules, and I'm not really up for changing that
 
Classes win.
 
guys a noob question but

 class Foo{
   std::vector<unsigned char> food;
   public:
    func(size_t buffer_size){
      /* How to make the unsigned char buffer of wanted size here */
    }
  }
 
@DeadMG Well, I've seen you gradually start embracing some of its tenets. Sure, not to such an extreme, but you do like some of it, admit it. ;)
 
3:51 PM
@RMartinhoFernandes Yeah, I do admit it.
I'd be a lot more willing to make use of it if it was more flexible
 
I swear it's not what it looks like.
I'm just retarded.
 
@DomagojPandža Nice aim.
 
thermal paste?
 
@Abhishek food.resize(15);
 
So, you're left handed?
 
really O_O
 
Yogurt with a hull breach
4
 
 func(size_t buffer_size) {
     food.resize(buffer_size);
 
thank you very much :-|
 
@DomagojPandža I've seen it called many things, but this is a new one.
 
3:53 PM
i wonder why my IDE is not even showing the function
 
@DomagojPandža suuuure
@Abhishek MSVC9?
 
I wasn't thinking of yoghurt per se
 
Ell
is doing &myvector.front() all fine and dandy?
 
Eclipse CDT
 
but then I'm not known to think about innocent things such as yoghurt :P
 
3:53 PM
@Ell yes, but it's unusual. Most people use &myvector[0]
 
Ell
kk, ta :)
I don't like the literal :P
 
@Ell you'd rather confuse everyone who looks at your code in the future?
 
Or &*myvector.begin() if you're into crazy.
 
Craaaaazy.
 
3:55 PM
I've never seen a "vector instead of delete[]" answer so downvoted.
 
@Ell I’m 100% with you, .front() is the better alternative
 
-4
A: Why does C++ still have a delete[] AND a delete operator?

user315052It's because STL vector is so easy to use, no one needs to do delete[] anymore. The STL containers in general remove the need to call new since it is trivial to resize them. The tendency in C++ is to provide features that do not require any call to delete, and shown in the introduction of auto_p...

 
myvector.begin()::operator->() might give you a pointer (IB), and won't be UB if the vector is empty. Right?
 
Oh, dear lord... Such misunderstanding of delete :(
 
@MooingDuck Yes, it doesn't necessarily give a pointer, and no, it's UB.
 
3:56 PM
@RMartinhoFernandes Oh, a rant disguised as an answer.
 
/me loves a good ol' rant
 
A good rant is a good rant. This is just...
A yogurt with a hull breach.
 
@RMartinhoFernandes It's UB? I can't think of why?
 
@MooingDuck Because you can't dereference end iterators.
 
3:59 PM
More accurately, this is a legacy problem. It would be trivial to do delete(1, ptr) and delete(expression, ptr); Everybody knows how many elements they have. — DeadMG 1 min ago
not sure if sarcasm or not
 
@TonyTheLion That's like saying "A good X is good". Of course it's good, "being good" is one of its properties!
 
@RMartinhoFernandes does operator->() count as a dereference?
 
@awoodland He's saying they could force you to give the size on using delete.
 
@EtiennedeMartel you pedants!
 
@awoodland It's @DeadMG, so assume sarcasm until proven otherwise.
 
4:00 PM
WHY U NO ACCEPT WHAT I SAY???
 
In fact, a very very long time ago, that was the case.
You had to delete[size_goes_here] ptr;.
 
it's not sarcasm
 
@DeadMG but that would rule out the case where you allocate bigger than you need and ignore the rest
 
@MooingDuck operator-> is necessarily a dereference, me thinks.
 
@awoodland ... why?
 
4:01 PM
0
A: efficient integer compare function

FredOverflowOkay, I managed to get it down to four instructions :) The basic idea is as follows: Half the time, the difference is small enough to fit into an integer. In that case, just return the difference. Otherwise, shift the number one to the right. The crucial question is what bit to shift into the MS...

 
@awoodland You don't allocate bigger than you need with new[].
 
if anything, it would give you more flexibility
 
@RMartinhoFernandes I found it, operator-> requires that the iterator be dereferencable.
 
@DeadMG it's slightly from the "thinking like a C programmer" mentality, but if you know an upper bound on the number of objects you're going to need then it's not inconceivable to allocate for that and then pretend to some other code that you allocated exactly the amount you needed
so you forget how many there really were
 
no, that's just stupid
 
4:03 PM
@RMartinhoFernandes standard does guarantee that it returns pointer though
 
you can't use an array without knowing it's size
 
@DeadMG but you can claim it's smaller than it is to someone else
 
@MooingDuck Erm, really? Where?
I though the standard only required it->x to work.
 
@awoodland The fuck does that have to do with anything?
 
@RMartinhoFernandes 24.5.1.3.5
 
4:04 PM
look at std::vector.
it has size(), but that doesn't mean it doesn't have to know how big the array is
 
@RMartinhoFernandes wait, nevermind, that's just a particular iterator
 
@DeadMG because when you get to the point where you delete it you don't know what the size is then
 
@awoodland No, that's just violating ownership.
 
@DeadMG Well, you can... But it's a game of C++ russian roulette :Đ
@RMartinhoFernandes This is not the case?
 
4:06 PM
@MooingDuck It's on table 107. It doesn't mention operator-> because pointers don't have one.
@DomagojPandža It is.
The duck was confused.
2
 
@DeadMG hence the "thinking like a C programmer" comment - I'd just use std::vector and call reserve, but that doesn't mean it doesn't exist as a technically legitimate usage scenario
 
@DeadMG classes in the Haskell sense or classes in the C++ sense?
 
@awoodland Yes, it does.
@FredOverflow C++ sense.
 
Sweet lemonade, mmm, sweet lemonade...
 
user457812
Look at my horse!
 
4:09 PM
oh, not again
 
@RadekSlupik what the
 
Slowduck!
 
pwned by Raymond Chen
feels ok man
 
@nil My horse is amazing.
 
4:13 PM
a pink Mooing duck?
 
user457812
@EtiennedeMartel I will not be the lady in this, pretty as I am.
 
cannot unsee
 
@TonyTheLion F5
 
Man. It's ugly, look at the white artifacts.
 
Jan 4 at 22:30, by R. Martinho Fernandes
struct Horse : Amazing { Taste lick() { return raisins; } };
 
4:23 PM
*** glibc detected *** node: free(): invalid next size (normal): 0x00000000012c77f0 ***
what are the normal reasons for those errors ? or is this a very vague question
 
@Abhishek double free, buffer overflow, any other undefined behaviour
@Abhishek it's fairly generic, but you can use valgrind to maybe find the cause
 
Undefined behaviour somewhere. Messing around with pointers, new, delete, malloc, etc.
 
hmm thats what i thought
 
You've overwritten the malloc bookkeeping information, which is stored in the heap next to the memory it hands out. Probably buffer overflow.
 
@ecatmur thank you very much :-)
fixxed it :-)
 
4:30 PM
@awoodland I like how MSVC usually has certain errors for double free vs buffer overflow so I can tell them apart in people's questions.
 
This kid is really trying.
-5
A: Why does C++ still have a delete[] AND a delete operator?

user315052 It's because STL vector is so easy to use, no one needs to do delete[] anymore. Edit: The snarky remark above seems to have touched a nerve. I of course realize there is a need for dynamic allocation. The reason delete and delete[] still do what they do is the same as for many things that c...

 
@Drise I don't think the downvotes are fair.
 
@RMartinhoFernandes Are they ever fair?
 
@MooingDuck you can sort of do that here, but there's no real guarantee and it's easy to get side tracked by false assumptions
 
4:33 PM
Was it @DeadMG that found @Nawaz hard to deal with in the past?
 
@RMartinhoFernandes I still think he's wrong:
The reason delete and delete[] still do what they do is the same as for many things that could be better that are not:

Inertia: don't fix what isn't broke
Interest: it's more fun to add new features than fix old ones
Fame and Fortune: the upside to fixing it versus the churn on compiler developers
What does that even mean?
 
Guess what, he is. He is now trying to convince me that what I say in my answer that could be done, can be done.
 
You could change it so delete and delete[] were synonyms without breaking existing code
 
@RMartinhoFernandes From memory, he had a habit of posting bad or plain wrong answers to get the early upvotes, then editing them with other people's answers/comments and getting rep from them
 
@Drise We'd be better off without those operators IMO.
 
4:37 PM
@StackedCrooked So just remove them from the language? What happens to code bases that have depended on that?
 
@StackedCrooked well they need to exist for unique_ptr to work (everything else can use unique_ptr underneath)
 
@Drise They won't compile anymore :)
 
@MooingDuck Make unique_ptr the magic :P
 
@MooingDuck Nah, unique_ptr can exist fine with malloc and free.
there's no need for new and delete to exist at all with placement new and perfect forwarding
 
I think it's strange that the length of an dynamically allocated array is known at runtime but there is no way to obtain that length.
AFAIK.
 
4:39 PM
there isn't, and it is supremely dodgy
generally tells you that it wasn't designed as a cohesive unit
 
A nice example of when functionality is better provided by a library than a language feature.
 
you mean as opposed to...?
 
@DeadMG lol, of course not, this is C++ we're talking about.
 
That roller coaster is the graph of my C++ code decoding 10 mp3 files and pushing them to node.js in general is that graph alarming ?
 
@Abhishek No, the downtimes are probably waiting on IO
 
4:50 PM
so would you suggest me handling about 50 - 100 decoding instances together ?
 
@Abhishek You'd have to profile and time it, there is some cost to context switching as well
 
@Abhishek CPU usage of 4 threads? Not alarming, but I'd look into why it's different before 0:24 than after. One of those is probably a problem.
 
@RMartinhoFernandes Unlike my glorious Wide.
 
@MooingDuck once the actual decoding starts the cpu usage hikes.
 
4:52 PM
@Abhishek oh wait, is did the program only run from 0:23-0:52?
 
what?
 
yes.
 
@Abhishek It looks like it's only doing one at a time, I'd consider that a problem.
 
@MooingDuck Could be holding an unnecessary lock I suppose
 
@RMartinhoFernandes Trying to suggest I didn't design Wide as a singular cohesive unit? :P
 
4:53 PM
@Collin or harddrive IO takes long enough that there's no reason to try to do more than once
 
oh boy .. sorry its actually just decoding a single file x_x . 10 times together // wait let me give it some more files.
 
@DeadMG No. It was the "glorious" part that well...
 
Can "use your fucking brain" be considered as a valid answer on SO?
 
@RMartinhoFernandes It is glorious! :D
 
@Cicada :(
 
4:54 PM
@Cicada Yes. No. Sandwich.
 
@Cicada Valid.. sure, downvoted? Also yes
 
anyways .I am very new to C++ , so 100% CPU usage on the server is it going to be a bad thing ? // yeah thats a total noob question
 
@Abhishek Didn't you pay for those transistors? Don't you want them used?
Less than 100% usage is waste.
 
I was gonna say that
 
@Abhishek in general you want to keep a server's CPU as low as you can per user
 
4:56 PM
The constraints are to handle 50 - 100 instances.
where each instance is going to be encoding/decoding and broadcasting
 
@Abhishek well, it will take 50-100 times longer, since it's using so much CPU
 
Uh. 50-100 users won't get you nowehere near 100% CPU usage unless you're writing your server in Java
Or what exactly is your context
 
11 mins ago, by Abhishek
user image
4 mins ago, by Abhishek
oh boy .. sorry its actually just decoding a single file x_x . 10 times together // wait let me give it some more files.
 
Als
Is this about keeping server minimally loaded or an experiment to load it fully?
 
@MooingDuck Yeah, but that's a sysadmin task.
 
4:58 PM
@Abhishek Generally speaking, you want to use 100% of the CPU as long as there's work ready to be done.
 
@Als I think he wants to serve 100 users
 
yes i do
atleast 50.
 
@JerryCoffin I'd disagree
 
Als
@MooingDuck 100 users max, so CPU utilization should be 100% for 100 users, or one is wasting the dimes
 

« first day (605 days earlier)      last day (4335 days later) »