« first day (519 days earlier)      last day (4443 days later) » 

12:01 AM
i r backsies
@MatthiasCalis yes
 
ok, how about the syntax, is it similar or the same as glut?
 
@MatthiasCalis It's a modern C++ library. I believe that GLUT is some C monstrosity that just won't stay dead.
 
okay
ill look into it...ty
 
Classing up St. Patrick's Day: 5 oz Brut Champagne, Shot of Orange Liquor, 3 oz orange juice... ish
 
12:25 AM
I thought something was wrong with that webpage
until I realized the point of the formatting
 
Oh, it seems my old graphics card isn't so bad after all:
On G3D mark benchmark, they are rated as follow :
HD 6450 - 371
7800 GT - 525
X1950 GT - 763
X1950 Pro - 826

So far, the X1950 Pro seems to be the best one.
 
@CollinHockey: The answer was actually quite good, excluding the pointer to pointer thing. That is a common source of confusion, and I (and others) become quite harsh on that because there is enough misconceptions about arrays and pointers being the same, almost the same, just about the same or similar, which increases the misconception...
on the other hand, I feel that in the last few years there is more and more people that are aware that there is a distinction, which is good. :)
 
I feel like I should have known it too (I probably did during college, honestly) but haven't put myself in that situation recently enough to remember. I was going to fix it, but then the wife handed me a drink and I said "meh" :-P
 
user457812
Someone just told me that C++ not limiting you is a limitation O_o
 
@nil: So a language that limits you is not a limitation?
 
user457812
12:36 AM
I have no bloody idea
 
user457812
in Android, 3 mins ago, by Shimmy
yes, because not being limited is a limit
 
user457812
You can read it in context over in yonder Android room
 
does he mean there's too many ways to do something?
 
It's called "drowning in choice".
 
Not sure I want to read it in context. :-P
 
12:38 AM
The dogs are on the couch, and I'm on the floor. What have I done.
 
@CollinHockey: As in lying on the floor? Perhaps you had one drink too many. :-P
 
Sitting on the floor and my laptop is on my computer chair
surprisingly, my scores in typeracer have improved
I'm also better on my laptop keyboard, so that may be it
 
So a desk is not good enough for said laptop?
 
eh, there's crap on the desk
 
I would think that laptop >> crap, no?
 
12:41 AM
maybe only '>'.. it's a 5 year old D820
 
(that's "much greater than", not "left bitshift")
I actually hate laptop keyboards
 
and the crap is Sins of a Solar Empire disk, so hey
except that this one doesn't have a number pad, I like the feel much better than my desktop's keyboard
 
I have the opposite situation
My desktop keyboard is way better for use than my laptop's
 
although I have definitely used better desktop keyboards than my laptop's, the current one isn't that great
 
If it wasn't such a hassle I would bring the keyboard with me with my laptop wherever I go if I need to do a lot of typing
Ah I see
 
12:44 AM
I should get an ergonomic one for work.. it's just a big laptop keyboard
 
user457812
My apartment is starting to get way too hot.
 
I already bring a separate mouse for the laptop since I hate using the trackpad for anything
 
user457812
I've kept the heating off for about a week, but I think my neighbors below me are just running their AC constantly
 
@nil: Why don't you take advantage of the chill effect and get a fan?
 
The trackpad on my personal laptop is great, the one for work (A dell E6500) is terrible
 
user457812
12:45 AM
I've got one, I'm also keeping some windows open because it's about 40°F outside
 
user457812
But it's still really damn hot
 
I'm hoping by the time I'm up for a replacement I can get a mac
 
user457812
Mac trackpads are pretty excellent
 
@nil: You're not running a server cluster in your room, are you? :-P
 
user457812
Not that I know of, though that's not saying much
 
12:46 AM
That has actually happened to me once
I had a bunch of computers crunching numbers for a simulation in the same room
 
my boss's office gets up to like 80 if you close the door for an hour
he had two thermostats, neither did anything
 
@CollinHockey: Perhaps the problem was that the thermostats didn't do anything?
An HVAC kind of doesn't work without working thermostats. :-P
 
The problem was mostly that he had like 500 things that plugged in; Also the building was built in the 50s
 
Ah that would be a problem
 
We just moved into a new building, it's much better
I wish they'd let us sledgehammer the old one
 
12:51 AM
Perhaps you can tell them that getting a newer system would save money?
The newer ones are much more efficient, after all
 
They've been building us a new lab building for the last couple years, the old one is going away
now if they could get the stupid paper towel dispenser to work, it would be awesome
 
@Insilico >> is right, not left :)
 
@FredOverflow: Aw crap. :-)
 
why cannot ask a new question? everytime i click on ask a question, the interface proposes me the oldest question I have already made
 
1:06 AM
@Martin: You don't get this interface? stackoverflow.com/questions/ask
 
i get it, but it's already filled with my previous question, which I already asked and accepted
 
Sounds like your browser's autocomplete is a little overzealous?
 
it's supposed to only be filled with the last question you didn't eventually ask
I think
 
it's firefox
 
So delete the old text and type new text?
 
1:07 AM
well, the question is asked and answer and accpeted
 
holy fucknibbles
Polt vs Violet :O
 
is this chat about c++?
 
meh
not really
 
@Martin: <sarcasm>No, it's cleary about Java.</sarcasm>
 
does it make sense to initialize memory with std::initialize_fill() when the memory has been allocated with a custom allocator?
 
1:15 AM
@Martin: Do you mean std::uninitialized_fill?
There isn't an std::initialize_fill as far as I know
 
So I've been writing a new file system, and it seems to fail (get corrupted) on the third mount, but only when I'm putting another file system on it which is encrypted.
Doing the following things in order seems to make it become corrupted
1. Mount the master file system
2. Create a file used for mounting another encrypted file system
3. Mount the encrypted file system
4. Unmount the encrypted file system
5. Unmount the master file system
6. Mount the master file system
7. Create another encrypted file system
8. Unmount the new encrypted file system
9. Delete the encrypted file system
10.
Create a new encrypted file system
11. Mount the encrypted file system
It is now corrupt
And yes; that's the only way I can seem to reproduce the error
And I get a strange fragment offset value of 3492249849036006977
I have ran numerous tests on the encrypted file system and have determined the encryption portion of it is not the problem, but it must be something the encryption is doing to the underlying file system to create the problem.
The great IC80FS conspiracy
 
I find your lack of programming skills disturbing.
 
Well I've tried making scripts to create files of different sizes
And reading them from the disc and verifying the contents are in tact
However the problem only seems to happen particularly when the encryption service is also running.
 
1:44 AM
@ScottW: I stand corrected.
 
2:08 AM
I don't cease to be surprised by claims of performance. The last one is this guy claiming that the target for latency in a high frequency trading environment is 3 cpu cycles or 1.8ns (I guess he is running a 1.66 Ghz processor) linkedin.com/…
1.8 ns is about the time it takes for light to travel over 54cm in vacuum, or 36cm in a fiber optic (rough approximation)
CAS latency on DDR3 1333 is between 10 and 15ns
You cannot even read one random address in memory in that time, much less read, take a decision and act on that!
 
We were just talking about this at work, and were surprised the trading folks haven't snatched up all the FPGA programmers
 
Xeo
@StackedCrooked Whoever contructs / manages those GUI widgets should hold ownership over the timer and the widgets themselves should only refer to it, IMHO
 
But then you are exposing implementation details.
Self-contained is good.
Hm, maybe you are right.
In my current solution this won't work:
{ Widget w1, w2, w3; }
{ Widget w1, w2, w3; }
The second row won't create the object anymore.
 
2:28 AM
Does anyone know how I can compare two arrays in c? Can I use strcmp
 
@LearningC Nobody knows :)
 
@StackedCrooked aww.
 
There is memcmp.
 
@StackedCrooked Turns out strcmp worked great! Thanks for the help.
 
@Insilico, yes i meant to say uninitialized_fill
 
2:44 AM
@StackedCrooked : I'm puzzled how the snippet in your question (stackoverflow.com/questions/9755351/…) even works.
@StackedCrooked : I would have thought that w2 and w3 would end up will null shared_ptrs.
 
@EmileCormier Yes! That's why I deleted that embarrasing snippit...
 
Well, I tested it, and it would not crash when I'd try to access mPtr from w2, so it seemed like your snippet actually worked!
 
You mean actual dereferening the pointer?
 
@StackedCrooked Singleton!!! (just wanting to fire up the old discussion again, from which I will stand apart... call me troll)
 
2:49 AM
@DavidRodríguezdribeas I already claimed the singleton a while ago. Nobody else can use it now.
 
@StackedCrooked : Oops, nevermind. It was just a fluke that it didn't crash.
 
@CollinHockey There are two sides to the story of high freq trading, speed of execution and speed of development. You want to be able to tweak the algorithms almost on a daily basis.
 
Actually I don't think what I'm looking for is a singleton. It's less globally accessible and it has a more-defined lifetime.
 
Singletish
 
user406009
More like a private singleton.
 
2:52 AM
There are some that are using FPGAs already, but only for some building blocks, if I recall correctly risk management implemented in hardware
 
@EthanSteinberg Yep, something like that.
 
@DavidRodríguezdribeas that's interesting to know
 
@StackedCrooked : Proponents of dependency injection and TDD would probably prefer that the shared object be explicitly passed to the group of widgets.
 
user406009
Yeah, hold a WidgetFactory on the stack. This widget factory creates the widgets.
 
user406009
It can then also keep track of them.
 
2:54 AM
@EthanSteinberg No.
why the hell would you need to involve a factory?
 
user406009
Well it's either use a factory or pass the WidgetManager in each widget's constructor.
 
it's as simple as create weak_ptr on stack, initialize it once when you create first gui object, then pass it to be initialized to a shared_ptr to all gui constructors
@EthanSteinberg There's also no need for a Manager.
 
user406009
A factory could be used to abstract away from the creation of the weak_ptr and the passing of it to constructors. Just an alternative.
 
right
except a higher level of abstraction is absolutely worthless unless you actually have something to abstract
 
Isn't the group of widgets an abstraction?
 
2:59 AM
and you haven't actually gained anything at all
there's no difference whatsoever between Widget w(t); and t.MakeWidget(); for any T t;
except that MakeWidget sucks balls because you can't control where it's allocated
so if they use the default heap and you really want an object pool, then you're fucked
and there's also no difference between T == weak_ptr<Timer> and T == WidgetManagerBlahBlahBlah
and Manager is a terrible name
what on earth does it mean to Manage a widget?
 
How about MiddleManager?
 
especially as there's actually no management required at all
it's a creation parameter
 
user406009
Yeah, you are right, a parameter would be cleaner. Learn something new every day.
 
Ok, this works. But I don't really like it..
A parameter would not be cleaner. It pollutes the constructor interface with implementation details.
I mean, not in this situation. In most situations a parameter probably would make more sense.
 
@CollinHockey one of our clients had the system and bought our product to measure latency, which was IIRC 1.7ms across the subsystem, which has much less logic than what is needed for a full trade. Claiming 1.8ns to be the goal of latency... :)
 
3:07 AM
A parameter makes it easier to unit test with a mock object, if you're into that kind of thing.
 
user406009
@StackedCrooked This is for widgets, correct?
 
@StackedCrooked Then make some WidgetConstructionParameters thing which has the parameters as a private variable?
 
@StackedCrooked : Couldn't you make use of shared_ptr's reference count, instead of writing a CountedInstance wrapper?
 
@EthanSteinberg Yeah, although I don't really need it anymore. I find the problem in itself interesting.
 
user406009
Because with widgets, you always have at least one parameter: the parent widget.
 
user406009
3:09 AM
If a widget is root, then have it spawn it's own tree, if not, then use the parent's.
 
@DavidRodríguezdribeas I guess prime real-estate is now the offices directly above the trading floor
 
Prime real state is renting space inside the exchanges. Colocation is expensive but the most effective way to obtain the smallest latency numbers
 
seems ridiculous that a few ms or us could make that much of a difference that's you'd pay exorbitantly more for the space
 
Then they have their own problem: high prices, cannot access the hardware as simply as if it is in your own offices...
 
What's this about trailing commas in enums? :D
 
3:13 AM
They didn't used to be allowed, but now you can put a comma after the last element in an enum and have it be well-formed
 
Handy if you reorder items in an enum and don't want to mess around with commas.
 
A nanosecond or a fraction of it faster than the second fastest makes all the difference, it is just that overall that need not be below microseconds :)
 
@CollinHockey Beautiful!
 
Ah, sorry, my last data quote was incorrect, not 1.7ms, but 1.7us
 
Ah, I was thinking 1.7ms is probably too slow
 
user406009
3:15 AM
If they care that much about speed, what language do they use to program the software to do the trading?
 
or they were doing a ton of calculation
 
user406009
Assembly?
 
Cobol *snicker*
IF PRICE IS LOW
BUY ALL THE SHARES
 
Dilbert: You know COBOL? Ashok: We learned about it in history class.
 
3:19 AM
@EthanSteinberg Exchanges are mostly implemented in C++
 
MS Exchange is.
 
The same goes for trading firms in general, but the language does not need to make a lot of a difference, I once interviewed for a company that had two platforms, one in C++ one in .NET (C#) and there was no real performance difference overall
Then again, not your usual Java/C# novice shop :)
 
Robot Wars with our money
I wonder if control systems theory come into the picture
 
I'm sure it does
 
@DavidRodríguezdribeas Yeah, I think C# and Java are just as fast as a C++ program. The difference is that in C++ you can then start optimize and tweak the code in order to make it still faster.
 
3:25 AM
@StackedCrooked C# is a quite complete language (much better than Java for this), and you can tweak both of them
 
True.
 
It about the time of the year where I try Eclipse again to see it still runs like molasses.
 
@EmileCormier It still does. Eclipse keeps up with technology :)
 
my claim is that an expert C# developer does not write much slower code than an expert C++ developer
that is, the language does not make the difference, the programmer does
 
You'd think that the Java folks would work harder at optimizing their flagship IDE. The sluggishness of Eclipse doesn't give a good impression of Java's performance.
 
3:28 AM
@DavidRodríguezdribeas We need @Mysticial to confirm this claim :)
 
@StackedCrooked care to explain why?
Is he an expert C# dev?
 
@EmileCormier Oracle actually sponsors Netbeans
 
@DavidRodríguezdribeas Ah. I don't know that. But we could benchmark his expert C++ code against the code of a C# expert.
 
@CollinHockey : Does Netbeans run smoother than Eclipse? Does it support CDT or the equivalent for C++?
 
oh, so he is an expert C++ programmer (I have never met him)
@EmileCormier Netbeans has support for C++, don't know how good. SunStudio is built on netbeans
 
3:31 AM
But yeah, typical example would be text file processing. The way most C++ programmers would implement such a task would likely result in a program that runs slower than a Perl script.
 
(Another bold claim: vim runs faster than both eclipse and netbeans!)
 
Yeah, I'm an IDE cripple. :-(
 
@EmileCormier I've only recently gotten away for using IDEs with C++ - now with Java or C#, definitely need it
You might try giving Eclipse more memory, I think the flag is in eclipse.ini or something
 
@DavidRodríguezdribeas His work on y-cruncher gains him some credibility.
 
Do doubt everybody already saw this.
 
3:35 AM
emacs 23 has M-x butterfly
jeebus, 4th of 4 at 95 wpm (you guys and getting me hooked on typeracer)
 
My brain is the bottleneck when programming, not my fingers. :P
2
 
oh, for sure
 
Finally hit 100% accuracy on a passage!
 
Why can't they pull the plug when the Holodeck goes bonkers?
Good old mechanical power switch too good for them.
 
3:45 AM
Magic mouse is driving me nuts.
Press command-a to Select-All and accidentally move my finger a little over the mouse surface at the same time and the text zooms in or out like crazy.
 
Who fooled you into getting a magic mouse ? :P
 
It came with my Mac. I kept using my old mouse for nearly two years. But now it's wearing down and the mouse mat is ragged so I decided to start using the magic mouse.
Funny thing is that the original batteries still worked.
 
Anybody else think that the hand waving stuff in Minority Report would never fly in real life?
 
I was still using this mouse from 2001.
 
I'd much rather move a pointing device a few inches than flail my arms in the air.
 
3:58 AM
@EmileCormier Yeah, it's too verbose.
I'd prefer a Vim-style interface :D
 
Heck, I don't even like OS X Lion's Launchpad because I have to move the mouse too much.
 
@EmileCormier Just watch any new series with high tech and you'll see that we are getting to it... large touch screens and people dragging with their hands...
 
I don't use it either. I launch most apps via Spotlight.
 
@EmileCormier nothing like Cmd+Space and a few keystrokes
 
Indeed.
 
4:00 AM
How many here own macs?
 
@DavidRodríguezdribeas I sort of do.
 
Most are Windows users.
 
My wife has a macbook
 
I think Jalf has a MacBook.
 
4:01 AM
I dual boot mine with Linux
 
Used to have macbook pro, now an air
 
Funny seeing my tiny Mac Mini sitting on top of my mid-size gaming tower.
 
I think if I ever need to assist my mom in getting a computer I'd recommend her an air.
 
I'm hoping by the time I'm up for replacement at work I can get one
 
One more ST:Voyager episode should put me to sleep. Haven't yet reached the episode where big-boobed-borg-babe shows up.
 
4:09 AM
5th season or something?
4th according to wiki
 
Whoa, 4th season? I'm still in 1st.
Love the brass in ST theme music. The world needs more brass.
 
But not too much. (I play clarinet)
 
I tried it once and couldn't even make a tone.
 
Might have been too hard a reed to start
 
It sounded like this:
That vid still cracks me up.
 
No sound, for now, would wake people up
 
Your laughter would be more likely to wake them up.
 
I'll just file that way for the morning
 
morning.
Note to Self: drinking 3 cans of Coke before sleeping is bound to give you a severe headache the next day.
trailing comma enums? like in C99?
 
and C++11 I guess
 
4:30 AM
yeah. but what's the use of trailing commas?
 
it makes generating code much easier, don't have to worry about not putting the comma on the last element
and you can move the lines around all you want and not muck anything up
 
@IntermediateHacker : Try chamomile tea instead.
 
Always using comma's is more consistent than using them always except once.
 
yeah.
what's chamomile tea?
 
tea.. with chamomile..?
 
4:49 AM
hello
 
@CollinHockey without the tea
 
Is there any one who can help me in image classification?
 
5:20 AM
Hi
 
5:38 AM
@Gomathi You mean like black and white vs color pictures?
Oh noes, Tony and Jalf aren't in the "frequently in room" list anymore..
 
6:02 AM
lol, I just got an upvote for mindlessly copy pasting PHP code I know absolutely nothing about from google. :D
I was expecting my answer to be flagged or something.
@StackedCrooked lol, that duck's a murderer. :D
 
You can't really tell the emotion on his face in the last frame.
It wouldn't be even remotely as funny without that last frame.
@IntermediateHacker You're doing pretty good for being 17. When I was that age my programming experience was merely a little Basic and Pascal.
 
What happened to gameboy?
 
6:17 AM
Something happened to gameboy!?
 
6:29 AM
@StackedCrooked no...tumor classification in liver ct images
 
7:11 AM
is there any cracker here :)) ?
 
@Stranger You have to ask it the right way - "Cracka, please!"
 
7:42 AM
Is there any reason why my compiler would linker error , citing one of my user defined methods , in a class that In have written myself to be an unresolved external !
 
Hey, shit happens.
 
@StackedCrooked :( why does it have to happen to me ? why not to some fictional character in some vaguely inspiring or moral story ? :D
 
8:25 AM
Hello. Anyone here?
 
No one who can help :P
 
I'm here.
 
Help with what?
 
:) I assumed you had a C++ related query
 
I hadn't :P
 
8:56 AM
@DavidRodríguezdribeas Was traveling so didn't see this until now. Indeed every major language can be tweaked. And for most applications, I suppose there wouldn't be much of a different between C#/Java and C/C++ provided that the JIT is competent. And to some extent, C# may actually outperform C++ since the JIT has run-time information.

But there are some things you can do in C++ that you (probably) can't do in C#. For numerical heavy number-crunching apps, I dare say that it will be extremely difficult (or even impossible) for a C#/Java implementation to beat a C/C++ implementation writte
@DavidRodríguezdribeas I can't claim to be a C++ expert since I suck at templates and I don't know Lambdas. A C expert? Maybe...
 
9:16 AM
Hi guys
I've recently bumped into a problem where I use operator overloading (in c++)
although, as I understood, there's only one parameter allowed to pass onto the overloaded operator function
to be more precise, I use '=' assignment operator
so if my problem needs an extra boolean for full implementation
I should probably use a simple newly created method, right?
 
Yes. You can alway have the operator= call the other one
 
uhm, it's not the thing, I mean
for assigning two different size object containers, I need an additional boolean value for adding value by value type
 
9:32 AM
so your operator= can compute it and then call the other function
 
Is there such a thing as a unix socket, only it's in ram, not a file on disk?
 
9:45 AM
@Mitja disks end up in ram
the OS will (probably) do as little actual disk work as possible
 
Socket is a virtual file anyway.
 
10:01 AM
@StackedCrooked thanks.
@DavidRodríguezdribeas I don't get it.
what has disk space got to do with fingers?
@ScottW lol, guess the gameboy is more recognizable than my real pic.
anyway, you understand this?
 
10:17 AM
hi
 
hi
 
i need advice with css and styling webs
 
Slow day.
Time to compile trunk clang.
 
yeah its always like that @CatPlusPlus
 
10:38 AM
Went pretty fast.
 
0
A: Which Windows GUI frameworks are currently worth learning?

IntermediateHackerNative Applications For employment: Well, nowadays most companies (at least most companies from Oman and the UAE, where I live) are slowly migrating to the cloud. However there are still some opportunities for native app development. The most demanding framework nowadays, is, ( no.. not WPF ), i...

I love these Framework comparison questions.
 
Gah, Swing.
 
Gah, Java.
 
Nobody uses Silverlight.
Especially for desktop apps.
 
doesn't mean it couldn't be useful
 
10:49 AM
yeah, but it's pretty popular.
 
How do you infer "popular" from "nobody uses it"?
 
@CatPlusPlus There's always a job for .NET developers with experience in Silverlight in the Careers section in Gulf News.
 
Ok, when was the last time you saw a Silverlight app?
 
well, 3 days ago. Microsoft uses silverlight to play videos.
 
Beside MS.
 
10:51 AM
......I don't remember
damn, guess I'll edit my answer to unrecommend silverlight.
edited.
 
@IntermediateHacker where's Qt in that?
ah c#
hmm
 
Qyoto (.NET port of Qt) is pretty buggy.
lol.
 
@IntermediateHacker huh, didn't even know that existed.
 
Gtk# is probably your best bet if you want open-source GUI in C#.
 
@CatPlusPlus yeah, but the OP specifically mentioned Windows.
 
10:55 AM
doesn't mono have things in place to just use the normal c# gui stuff?
 
yeah. It supports Windows Forms and System.Drawing.
 
It's called "WinForms" not "normal C# GUI stuff".
 
isn't that any good?
sorry for not being an expert on the subject...
 
It's good but looks ugly as hell on Linux.
 
lol
 

« first day (519 days earlier)      last day (4443 days later) »