« first day (443 days earlier)      last day (4488 days later) » 

9:00 PM
My package manager just drops stuff where it's supposed to be. I have no idea where, but it's where it needs to be, so everything is ok.
 
Ell
Well I like things to be organised ;)
* :)
 
Xeo
@DeadMG: "It doesn't work because you never initialized the CRITICAL_SECTION." ?
I just took that critical section code from the OP
I was hoping it would be correct. :P
 
you have to call InitializeCriticalSection(&cs) before you can use it
you can't just enter it randomly for lols
 
user406009
Stuff in linux is organized. All the libraries are in /usr/lib. Nothing complicated.
 
@Ell IIRC, yes. It comes with samples and documentation, whether you like it or not.
 
user406009
9:01 PM
All the headers are in /usr/include.
 
you need to thread-safely-initialize the lock you're going to use for thread-safe-initialization
 
Or somewhere else, really.
 
see the problem?
 
Ell
yeah but it seems much less organised when I see the list of installed libraries
 
Xeo
@DeadMG wtf
 
sbi
9:02 PM
@DeadMG And, guess what? You need to free it, too, when you're done!
 
user406009
Ell, that's why synaptic has the "quick filter" at the top. Easy to use.
 
precisely
that's why the only way to thread-safe-initialize is locklessly using CAS instructions
 
Xeo
I'll just rely on the OP actually initializing that critical section in the single-threaded part of the app. Aka main
With RAII, of course
 
@Ell The tool to see a list of installed libraries is not the filesystem. It's the package manager.
 
Ell
@Ethan never saw that, I will try it now :)
 
sbi
9:02 PM
@Xeo What's the problem? You do this when you start the program, and before you spawn any threads.
 
Xeo
@sbi Just what I wrote some seconds later :)
 
Ell
@Ethan ohh that yeah i knew about that
 
Xeo
@DeadMG: Assuming the critical section is correctly initialized - would it then be fine?
 
Ell
i prefer ubuntu over windows for developing but I think if i wasnt a developer or tech person I would choose windows. I wish linux could game -_-
I think i'l skip qt as well - its 1.6gb. Il use wx until i need something more
 
0
Q: Get the "size" (length) of a C++ function?

iDomoI'm making a Hooking program that will be used to insert a method into the specified section of memory. I need to get the length of a local C++ function, I've used a cast to get the location of a function, but how would I get the length? would int GetFuncLen() { int i = 0; while((DWORD*...

 
user142019
9:04 PM
I always liked Ubuntu. Until they invented unity.
3
 
@Xeo Not necessarily. Your code depends on reading the value (inited) correctly- however, it's not volatile nor word-sized, so there's nothing preventing the compiler optimizing it nor making the processor read it atomically
 
Xeo
~.~
 
user406009
Whoever said qt is one gigabyte is bs. core is 9MB and gui is 12MB.
 
Xeo
> Multithreading is just one damn thing after, before, or simultaneous with another.
 
@WTP precisely. I cannot even recommend it to my relatives now. It is just too 'strange' and foreign all of a sudden. Amazing how Canonical will risk the whole desktop segment in order to win the tablet/touch market (presumably)?
@EthanSteinberg And killer in combination with a search (Ctrl-F). E.g. search for cil, than quickfilter for a keyword; Search for python, then quickfilter for keyword
 
9:07 PM
@EthanSteinberg That's a bootstraper.
 
user142019
@sehe It's not just strange and foreign. It simply doesn't work. I even like the Windows command prompt more than Unity.
 
Or something.
 
Ell
offline installer is 1.3 / 1.6 gb
unity isnt that bad
i would probably like it more if i had a decent machine but alas, i have one of my friends old laptops :'( it sucks :(
 
user142019
KDE ftw.
 
Ell
what are you guy's machines like? specs wise?
 
9:10 PM
Five years old.
 
Ell
@WTP linux mint for the win :D
 
user142019
2,66 GHz Intel Core 2 Duo, 4 GB 1067 MHz DDR3, NVIDIA GeForce 9400 256 MB, Mac OS X Lion 10.7.2 (11C74)
 
user142019
I need more RAM.
 
Ell
more than 4gb?
what for?
 
Suddenly numbers. Lots of them.
 
user142019
@Ell So I can play Minecraft while compiling my C++ code.
 
Ell
minecraft doesnt need lots of ram?
just graphics
 
@Xeo Check out my answer
 
Ell
for me anyways
 
user406009
compilers don't use up that much ram.
 
Ell
9:12 PM
my integrated intel graphics doesnt cut it for minecraft :(
although our families communal gtc 560 ti cu II does :D
shame i cant have it for my own :(
 
I need at least 3.5GB to build LLVM without paging.
 
user142019
@Ell Playing Minecraft means "playing the game while talking on Skype." Skype is strange. While Skype's window is opened, the entire GUI lags. Close the window, no lag anymore.
 
Ell
oh kk fair enough
but still i would have thought 4gb would be enough?
 
user142019
I want 6 at least.
 
user142019
But I have no money :p
 
9:14 PM
@Ell Yes, just like 640K.
It's never enough.
 
Ell
lols yeah
my upstairs thing has 8gb
this only has 2 :'(
 
user142019
We have a computer we never use and it has 8 GB too. Too bad it doesn't fit in my Mac.
 
Ell
what processors does everyone have?
@WTP may I have it?
 
user142019
@Ell no. :p
 
Five years old. I totally forgot what it is.
 
user142019
9:15 PM
@Ell 2.66 GHz Intel Core 2 Duo
 
Xeo
@DeadMG Really, fuck C++03... :|
2
 
what?
 
Xeo
Btw, you used auto in there. :P
 
as far as lockless algorithms go, it's pretty simple
oh, cry me a river :P
 
Ell
i have an intel pentium something-or-other dual core @1.46 GHz
 
user142019
9:16 PM
@Ell Pentium I?
 
@DeadMG Not as simple as C++11.
 
meh
C++11's concurrency support is a big disappoint
 
Ell
@WTP dont know - cat /proc/cpuinfo doesnt tell me
 
Xeo
Better than not knowing anything about concurrency
 
Like everything else.
Btw, there are high-level concurrency constructs on track for TR2.
 
user142019
9:17 PM
Can't wait till TR2.
 
IMo
 
Ell
what does this mean? #pragma hdrstop
 
they should not have signed off on thread support that did not include concurrent algorithms and containers
 
user142019
It gives you additional control over precompilation file names and over the location at which the compilation state is saved.
 
9:19 PM
It's a trap hack!
 
Ell
its surrounded by #ifdef __BORLANDC__ so I think i will get rid of it. I only use g++ & mingw
 
@DeadMG I think they seriously needed the language-level stuff in.
The rest can be done by you.
(Ok, not you, but someone else.)
 
ah, yes, that is true
 
user142019
Why do people use Borland C++?
 
Ell
Do people use Borland C++?
 
Xeo
9:21 PM
In schools, mostly
 
The same reason they use Dev-C++?
 
user142019
My nephew does.
 
Ell
when people say schools
 
user406009
My high school used Dev-C++.
 
Ell
do they mean universities? I'm at high shcool and nobody has ever, ever mentioned programming
 
user142019
9:22 PM
My high school lets me choose what I use. So I use Haskell.
 
in my experience
 
I'm really glad my programming classes didn't have an IDE.
 
my school didn't offer a shit of programming or CS
 
Ell
we only do "I.T." (making webpages in front page. yes, front page)
brb
 
I always take 'school' to mean 'place of learning'.
 
9:22 PM
the closest they got to programming was a tiny bit of HTML and then clerical skills in Word
my university
 
"clerical skills" lol
 
they take stuff which serves absolutely no purpose even in theory without an implementation, like graphics, and then they pussy about with it on a blackboard
not a scrap of code anywhere
it's pathetic
 
user142019
Last year we had to write a website in HTML.
 
user142019
We were forced to use frames.
 
user142019
I didn't use them, I got an 8 out of 10. :)
 
9:23 PM
we didn't get as far as frames
 
Frames are like, evil.
Or something.
 
user406009
I think I finally convinced my teacher to allow me to use codeblocks.
 
user406009
Took about 6 months.
 
user142019
It was a tabasco fan site.
 
@EthanSteinberg What was he forcing you to use? Dev-C++?
 
9:25 PM
see, here's the thing I really don't get
 
user406009
Oops my bad. It was Borland.
 
if CS degrees are supposed to be theoretical and not preparation for a job in software engineering
 
user406009
Dev-C++ was hidden on the hard drive.
 
then why the fuck do all the jobs in software engineering require a CS degree?
 
user406009
From previous students.
 
9:26 PM
@DeadMG You think that's supposed to make sense?
 
no
 
Ell
back
 
I think it's fucking stupid
 
Ell
and Codeblocks? I hope you mean eclipse...
 
user142019
It is.
 
user142019
9:26 PM
Code::Blocks sucks, but its suckage is nothing compared to Eclipse.
 
and should I ever run any kind of company, I will be interested in one and only one thing: if the fucking applicant can fucking program/design/etc
and I will not give two shittles what qualifications they have
 
@Ell FizzBuzz the hell out of them.
 
Ell
but how do you determine their skills?
are their exams and stuff?
 
@WTP Yeah, Code::Blocks can actually launch on the same day you ask it to do so.
 
Ell
If there i want to take some - it would be interesting to see how I do in them
 
9:27 PM
you sit them down and you ask them questions about how they would program/design/etc a task
like if I require C++ devs, I will ask them about partial template specialization
 
Ell
well I need someone to do that to me
okay ive failed already :o
 
sbi
@WTP When I was young, BCB was the best compiler you could have on Windows.
 
Btw, anyone ever seen Enterprise FizzBuzz?
It's awesome.
 
@Ell 3yrs old (on average) Q9550, 8Gb RAM, 2x30 SSD, Linux 64 bit (fileserver separate)
 
@DeadMG Ask them about malloc.
 
9:30 PM
lol
 
Ell
aaaaaahhh malloc! Help help!
 
That looks like an appropriate reaction.
 
Ell
yay :D
 
user142019
malloc is easy.
 
Ell
does anyone know of a gui mockup tool?
 
9:32 PM
@WTP relevance? mov eax,1 is easy
 
user142019
@Ell pen and paper.
 
user406009
Ask them how to design a thread-safe queue with atomics and copy/swap.
 
@Ell delphi
 
Ell
@WTP fairplay - probably right althought I am a terrible, terrible artist
can barely draw a straight line
 
user142019
 
Ell
but I havent got one at hand
will a toblerone box do?
 
user142019
ask wolfram alpha
 
Xeo
@Ell PowerPoint
 
Didn't you say these were mockups? Isn't that like, just some sketch to get a general idea?
Or am I confusing stuff?
 
user406009
9:36 PM
You could also try directly using qt-designer(or glade) to design your ui.
 
Ell
if only I had a clear desk -_-
 
@Xeo das klingt gerade faul
 
Xeo
@sehe Don't read it out of context. :P
 
user142019
@Ell go sit somewhere else. At least go away from your computer. It only distracts you.
 
user406009
Get a bigger desk.
 
Ell
9:37 PM
@WTP I think that is my problem
@Ethan I cant afford a desk :O
I think by doing stuff on the computer
I convince myself I'm doing work o.o
 
user142019
@Ell use the floor as desk.
 
Ell
subconsciously
 
@EtiennedeMartel To put matters into perspective, I'm pretty sure finding Nemo weighs in at about 4.7 Gbs (gasp!). And you can't even theme it
 
Ell
but its carpet and I will rip the paper!
 
user406009
Use a textbook.
 
user142019
9:38 PM
a Moleskine.
 
user406009
Under the paper.
 
Ell
but but but but but but
oh fine then -_-
i will do it some other time :P
 
user142019
aka "never"
 
Ell
the reality is i have literally never finished any project i have started in anything
 
user142019
I did, yesterday for the first time! A hangman game. :P
 
user406009
9:41 PM
@Ell You can also try doing mockups in qtdesigner.
 
Ell
literally
@WTP i dont even finish those :O
 
I never finish anything because if I don't get bored before I reach the UI part, I get bored when I reach the UI part.
I can't stand UI code.
 
user406009
There is a simple solution to that. Redefine "finished".
 
Ell
even if i say "finished" is "started!
 
sbi
@RMartinhoFernandes Nor can I. The only gamer I ever made has an ASCII graphical UI.
 
Ell
9:42 PM
*"started" i still never finish anything :O
 
user406009
Sucky things in code: 1. Networking 2. GUI 3. Threading 4. Parsing.
 
@sbi The few times I care about it, I usually just slap a bunch of UI stuffs on it and make it call the existing code. At least I can boast my presentation layer is thin :)
But I'm more of a library guy.
@EthanSteinberg Of those four, I think three are interesting :)
 
user142019
@EthanSteinberg and anything that has to do with time or graphics.
 
Ell
I hate anything that isnt learning new interesting things
I cant apply anything I learn
okay - so i dont even learn
 
9:46 PM
lol
 
Ell
I just... well I dont know what I do o.O
 
user406009
Nah, graphics are cool. Just have to remember your maths.
 
user142019
@EthanSteinberg you haven't fought with OpenGL.
 
Ell
aaaaahhh maths! help help!
 
@Ell I used Borland C++ 3.1 in highschool. But that was ~1990. And Turbo Pascal 5.5/6.0 with OOP and TurboVision. Sweet. Wrote a business application in it too :) Reinvented spreadsheets, complete with formula parsing/evaluation. Good fun and I got to skip university
 
Ell
9:46 PM
@sehe before my time :P
 
@WTP That's because OpenGL sucks donkey dick, not because graphics suck donkey dick
although admittedly, there is definitely quite some donkey dick sucking going on on Direct3D, I think it's less
 
Ell
whats up with opengl?
 
(read: I'm selfeducated and dropped out of all higher educational institutions :))
 
The OpenGL API is a total mess.
 
user142019
@Ell the API sucks.
 
sbi
9:47 PM
@Ell How much is out there that you can do without also learning something?
 
Ell
@sehe wow :P I could never do anything like that
@sbi errrrrrmm o.O
 
@sehe I'm doing my absolute best to avoid that fate
 
Ell
@sbi pass
 
but I just don't seem to possess enough self control
 
user406009
@RMartinhoFernandes it actually turns out that the newer versions of glVertexAtrribPointers actually use intptr_t.
 
user406009
9:49 PM
Like the uniform buffer versions.
 
user142019
The only things we learn at school about programming are variables, functions, conditions, loops and implementing a swap algorithm. Oh, and connecting to a database. Something about data structures? No. Threading? No. Networking? No. Parsing? No. Fuck school.
 
user406009
Oops, wrong persion
 
@DeadMG it's ok, actually. But you got to love what you're doing because, you are still going to learn all that stuff, only there will be no teachers and handbooks. Just you and the business clients!
 
bwaha
I don't think I'll need "Pussying around on a blackboard" in a job
 
(And intptr_t would still be the wrong type.)
 
9:50 PM
the only thing my teachers teach
 
user406009
They obviously can't change the signature of that function, but functions that do similar things now have the signature intptr_t or something.
 
user406009
void *glMapBufferRange(GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
 
user142019
I'm going to buy a book on C++ soon, I think.
 
@DeadMG don't fret it: you won't get that. You'll just be fired :) (I never did; I fire my first employer though; It was a c++ gig but they made me stay in a hotel (I was... 19yrs or sumting) and it was a SAPR/3 to serial device integration thingie: right on the critical path. In my innocence, I requested a Borland Compiler (back, then, not entirely out of this world, because Quick C was nasty too).)
 
9:52 PM
lol
 
@EthanSteinberg Right, a GLintptr is correct, but it's not intptr_t. It's ptrdiff_t. Don't ask why they chose this name.
 
I should probably fire my current employer by now, I'm at the same company for 12+ years now and it's getting old. You know, they don't 'do' UNIX, C++, even Java (just C#, and formerly VB6/ASP etc): a microsoft shop.
 
eh
 
user142019
They don't do Java?
 
nothing wrong with being a Microsoft shop
 
user142019
9:54 PM
That's awesome!
 
Still, of course, there is plenty of work that they can sell that requires those 'evil' skills. These days my company is starting to value my experience with opensource a little bit more
 
C# isn't anywhere near as good as C++, but it sucks significantly less donkey dick than Java
 
Where I worked was a C# shop, and we used open-source stuff.
 
user142019
C# is quite nice. But it has GC, yuck.
 
There's some really good open-source things in .NET (and some even come from the mothership)
 
9:55 PM
@WTP: I take it you missed the rest :) If I say 'Microsoft Shop' you should keep in mind that Microsoft tries to mould 80% of the business into evil stuff like Sharepoint, Bizztalk and friends
 
user142019
@sehe I know nothing about Microsoft, only that Bill Gates worked there and that Windows is a pain to develop on.
 
why?
 
@RMartinhoFernandes Precisely. Most of them rip-offs of their respective Java predecessors, which I was befriending years before. Must say, C# + .NET OSS is a huge improvement because they skipped many of the 'infancy problems' (?)
 
@DeadMG Because he's not used to it.
 
user142019
@DeadMG ever used the command prompt?
 
9:56 PM
you use the command prompt on Windows?
wtf are you smoking?
 
Ell
i use powershell :P
 
it's called a "GUI" and most Windows programs use one
 
@sehe But it's not just rip-offs, because they use the neater C# stuffs :)
 
Ell
i just hate the fact
 
@DeadMG because we don't have enough thinking to do, waiting for the editor to refresh after scrolling, or the project to reload with umpteen confirmation boxes after switching branches
 
Ell
9:57 PM
you cant resize terminals
 
user142019
Powershell isn't installed at school. :P
 
Ell
wtf cant you resize terminals?
 
@DeadMG I do. I'm a man.
 
user142019
I need the command prompt for compiling Haskell code.
 
Ell
ghk
 
9:57 PM
@Ell I jsut use Cygwin+screen+mintty. Git + TortoiseGit and Vim/ViEmu for all my editing needs.
R# on VS2008+ is okay. No, it rocks.
 
R# is really neat.
I use Console+PowerShell.
 
@Ell Of course you can. My Mintty is always in fullscreen mode. Freaks my colleagues out all the time!
 
Ell
i just tihnk linux is significantly better for programming
 
you mean all that configure and make endless bullshit?
 
Sometimes they sit at my keyboard and I forget to disable the ViEmu plugin for them. Very amusing
 
user142019
9:59 PM
I use TextMate + ksh.
 
and "Did I remember the special character that performs this function" shell scripting?
 

« first day (443 days earlier)      last day (4488 days later) »