« first day (500 days earlier)      last day (4452 days later) » 

9:00 AM
Doesn't that require running make twice on some occasions?
 
@sehe How is ` $(OBJECTS)` declared?
 
@LucDanton Not in my experience. But you might be right in case you don't have the .depends file first time round. You can always make .depends && make program
 
Oh noes, it's LaTeX all over again!
 
@StackedCrooked That would depend on your sources :)
@StackedCrooked a generic answer would involve $(patsubst $(wildcard.... but my memory isn't good enough to produce it on the spot (and I'm at work)
 
$(patsubst %.cpp,%.o,$(wildcard *.cpp))
 
9:02 AM
@RMartinhoFernandes Thank you, dear robot
 
Now do it but my includes are in include/, and my sources are in src/
Aaaand that's the story of how I'm now using SCons.
 
@LucDanton It wouldn't change a thing. Just say, e.g. obj/%.o: src/%.cpp where appropriate
 
@LucDanton $(patsubst src/%.cpp,%.o,$(wildcard src/*.cpp))?
 
@sehe Or maybe I have to add separate build folder to that? I don't remember.
 
.PRECIOUS: $(OBJECTS) <---- "precious" reminds me of LOTR
 
9:03 AM
@LucDanton You never need a separate build folder. You might want them if you want to compile the same sources with different flags
 
@sehe Right, but I also have unit tests in unit/. And obviously it can reuse what is built from src/.
@sehe Of course I want that.
 
@TonyTheLion It is an optimization (to keep the intermediates)
@LucDanton Yeah. I don't see what problems you might be pointing at. A good example might make that clear. If it does, it would best be posted as a Q on SO :)
 
ah right
not very familiar with make files
 
I think the whole point of being declarative is lost when I can't declare "this needs to be compiled as source, this needs to be compiled as unit tests, sort out the dependencies" and be done with it. Note that I claim that other build system or metabuild are terser, but they don't feel like hacking around.
@sehe I don't have a question.
 
People have been doing makefiles for decades, there are bound to be people who know the answer right off the bat
@LucDanton True. I should learn SCons for that reason. Like I said, i 'make do' since I know GNU make well enough
Now, don't get me started on autotools :) That is a veritable mess that eludes my comprehension
 
9:07 AM
I suspect it really made sense when it was invented.
 
It still does. People make more demands, nowadays
(not saying they shouldn't)
 
I'm not saying it doesn't, I don't think the 'really' is part of it anymore though.
 
@LucDanton Or was that in reference to autotools? Hehe
 
@sehe FWIW the SConstruct file I've ended up with. Since you don't know SCons, shouldn't it be testament of its declarative nature if you can in fact make some sense of that file?
 
@sehe keep the intermediates , you are keeping me, then?
 
9:13 AM
Dammit, the goblins are doing target practice with my livestock.
 
has anyone ever tried out this game ?
It's awesome.
 
I think I own that. Didn't take the time to try it out yet.
 
@RMartinhoFernandes which version? the PC version is freeware (you can download it on the site) however you have to pay for the Wii version.
 
No idea. I think it came in one Humble Bundle.
 
Humble Bundle? You mean one of those '65 games in one' DVDs?
 
9:20 AM
Dee-vee-dee? What is this strange and ancient technology?
 
I dunno
I think it's some ancient non-rewritable physical storage medium
but I don't know of anyone who still uses it
 
Stop making me feel like a Dinosaur! :(
 
@LucDanton I can make sense of that. However, it strikes me as (horribly?) complicated. In fact, that is exactly how I would do things in a makefile? I'd wager SCons could let you do things with less ... red tape.
@LucDanton Oh, I 'know' it, and I've used for years, but mostly 'passively' (working 'with', not implementing from scratch). So I'm more confident with make
 
@sehe I'm not satisfied with the stringify/prefix hacks, which are mine as you may have gathered. I really don't know much about either Python or SConstruct. What I value is all the things above the globbing.
 
What about XBox games? They are still sold in DVDs. The technology isn't obsolete yet.
 
9:23 AM
@LucDanton That's where I got my 'this is just as bad as GNU make' vibes :)
 
@IntermediateHacker You're arguing that DVDs aren't obsolete because they're used in an exceedingly obsolete game console?
 
@sehe I get dependency analysis for free and I feel like having a separate build directory is too much of a hassle with Make.
 
@DeadMG Does this mean I'm a dinosaur? :'(
 
yes
 
@LucDanton Oh, that was easily missed: I didn't 'see' the dependency analysis happening, so I subconciously assumed it wasn't there. I wonder how they do that if they don't know about the compiler/C++ variant in use? Do they honour CPPFLAGS when scanning for includes?
@LucDanton Separate build dirs have served me well with make. I guess it just means you don't rely on the standard (stock) auto-rules, but instead work with a shared makefile include.
 
9:27 AM
@sehe SCons does inspect the compiler/toolchain to make assumptions.
 
@IntermediateHacker Among other things
 
My brother broke my GameBoy Color last week. Now it's screen is cracked. I showed it to the guy at the computer fixing store... he mistook it for one of those brick game devices and started laughing. Guess I'll have to change my gravatar now... :'(
 
And e.g. changing a define does trigger recompilation.
 
@LucDanton mmm... scones
 
@DeadMG Not being a native speaker, in my mind's voice it doesn't sound like that :(
 
9:35 AM
harhar
English > you :P
2
 
lol
woah, a chill day today
 
@LucDanton Ah, I should have felt it coming, since I have been per-using SCons caching ability and extensively tested that it does the right thing.
@TonyTheLion "lol" ?
 
You guys are always talking about me when I'm not here
 
I get flickering in my cam video display, even though I (think I) turned off background erasure. Why?
 
9:43 AM
@rubenvb are you identifying with Mingw64 too much?
@rubenvb To be honest, I have a tendency to drop your name whenever Mingw is mentioned in relation to C++11
 
@sehe possible.
@sehe np, really, people should get to know it better
 
@rubenvb +1
 
So more devs will feel it's important enough to put time in mostly :)
 
Also, how do convince Bitbucket to just delete the files that I have removed from the project? It's silly when it reports umpteen megatbytes of code. It's just a teeny tiny little Windows API program.
 
@CheersandhthAlf blame hg. It's compression of history just sucks
Can't you optimize the repo like with svn?
 
9:45 AM
@rubenvb What?
@CheersandhthAlf You can strip some changesets.
 
aaah
 
@RMartinhoFernandes hm. how?
 
finally got around to torrenting the TA music and adding it to my library
 
I know the Bitbucket UI has an interface for that somewhere.
@DeadMG What's TA?
 
@RMartinhoFernandes I'm guessing @Alf here is talking about his repository's size, hence every little commit == history.
 
9:47 AM
Total Annihilation
 
@rubenvb No, he's talking about a 30Meg file he accidentally added to the project.
 
composed by Jeremy Soule, who also did e.g. Skyrim and Oblivion
 
@RMartinhoFernandes oh, well that's so stupid I wouldn't even have thought of that.
 
It's hard to make the repo small when you have a 30MB incompressible file in it.
 
@rubenvb It's surprisingly easy to do with Intellisense databases and such crap
 
9:50 AM
@DeadMG isn't that an self-incriminating statement in some jurisdictions?
 
@sehe Incriminating of what? "To torrent" is not a verb.
 
@RMartinhoFernandes Yes, it is.
 
@RMartinhoFernandes so, two offenses then :)
 
@DeadMG Damn.
 
to torrent means to download via BitTorrent and other peer 2 peer filesharing software
 
9:51 AM
Ah. That.
 
@sehe Obviously it was from his private tracker and he has a separate machine that seeds that torrent.
 
besides, I'm fairly certain that the fact that I did at one point legally own the game does give me the right to use the music in such a way
 
I'm almost certain, peer 2 peer isn't in Websters dictionary :)
 
@DeadMG FTR I knew that. I was trying to defend you.
 
@RMartinhoFernandes heh
but I don't care, the fact that I'm a filthy pirate is well-known here
and it's funny, I don't think Mr Soule really cares about me violating his copyright on a bunch of fifteen year old game music which I already paid for anyway
 
9:52 AM
@DeadMG isn't there a .hgignore file or something like .gitignore? With lots of templates for VS projects on the interwebz?
 
I torrented music that I own. It was a lot quicker than ripping your CD-collection manually (and didn't induce RSI quite that much)
 
@rubenvb It's not 100% effective. Newer versions of VS produce newer kinds of crap.
 
@DeadMG well, newer interwebz templates.
 
@Alf it's in the admin section.
 
Re: @hg explosion: I think the good habit of reviewing commits would work wonders
 
9:54 AM
@CheersandhthAlf ok, ill ask an SO question
 
@sehe I bet you pondered for a while if it would be rude to point out the painfully obvious.
 
This is not C++ related: Hey there how could I make my old question new? I mean how do I make people to see it? It's old and the answers have errors.
 
0
Q: Flickering in cam video display, why?

Cheers and hth. - AlfI get flickering in my cam video display, even though I (think I) turned off background erasure. Why? Full code at Bitbucket. Perhaps most relevant code, the gizmo that display the video: class ImageDisplay: public gizmo::SubGizmo { typedef gizmo::SubGizmo Base; private: winapi::graphi...

 
@LucDanton I don't think anyone thinks for a second if his/her comments here would hurt somebody else's feelings for one second.
 
@rubenvb This hurts me.
 
10:07 AM
@rubenvb What? You think we're just a bunch of rude, insensitive bastards?
 
@RMartinhoFernandes I sure am
 
lol
@DeadMG how does one get to become so rude and insensitive?
 
damn, the mock exams are starting. I'll be busy for a while. :(
 
@TonyTheLion By eating garbage food and complaining about stomach pain.
 
10:09 AM
@TonyTheLion Easy. Just don't give a flying fuck :P
2
 
:P
fucks given: 0
 
virtual int GetFlyingFucksGiven() const { return 0; }
 
> Tweetup is an informal business networking get-together, ostensibly to talk about Twitter
this is sad
@DeadMG hahah
 
damn, have to prepare for the fucking mock exams. :(
 
five hours flying today, meh, boring as hell
 
10:13 AM
@RMartinhoFernandes most of you are. I see the two sensible people here were listening to what does not apply to them. I apologize, @LucDanton, @RMartinhoFernandes
 
man
 
oh so you consider me rude?
 
and that came out corny
 
animation is teh complicateds
 
@DeadMG women
 
10:14 AM
@rubenvb And rude. And insensitive.
 
@RMartinhoFernandes that only proves my point :p
 
@rubenvb Well, not that I was hurt! It was too good a setup not to make the joke.
 
@LucDanton I knew that. I just wanted to make a bad joke
sue me
 
all those complaints about rudeness, it's like a congregation of very sensitive males
 
Wait, what?
 
10:15 AM
@anonymouslyanonymous WRONG ROOM
@CheersandhthAlf lol
 
i think it was a good idea to review a commit before committing.
 
sbi
1 message moved to bin
 
0 people in php ..
 
I'm pretty sure there are people watching the tag.
 
10:16 AM
@anonymouslyanonymous That isn't going to make us care any more than we did before.
 
@anonymouslyanonymous stop talking about this ugly fugly shitty cock-sucking pussy-licking language
 
@anonymouslyanonymous oh so if the bakery is closed you go to the butcher's for bread?
 
sbi
> Some programmers, when confronted with a problem, think "I know, I'll use floating point arithmetic." Now they have 1.999999999997 problems. — Tom Scott
15
 
@sbi Naaiiss
 
@TonyTheLion Woah, you're pissed.
 
10:17 AM
@sbi lol.
 
Or rude.
 
@RMartinhoFernandes :P
 
@LucDanton insensitive for sure
 
hm, did i ever mention, the Eniac was once described as sounding like a thousand old ladies knitting away?
 
euh wut?
 
10:17 AM
it had lots of electro-mechanical relays.
 
@RMartinhoFernandes I'm sure they have even less of a life than we have :P
 
wow, two of the starred messages are composed almost entirely of 'cusses. This room is awesome!
 
sorry, i was just free-associating to the congress of american knitting ladies. sorry. sorry!
maybe i should just flag my own comment?
 
@CheersandhthAlf lol you're funny
@CheersandhthAlf no.
 
@CheersandhthAlf the meta-police will invade again, so don't.
 
sbi
10:21 AM
@CheersandhthAlf Hey, have you been drinking again? :) Anyway, that is one awesome comparison!
 
cpx
hmm being very sensitive refers to getting emotionally hurt by criticism, right?
 
@cpx that, or being too horny.
 
man
my project has way too many folders for code and shit
 
I wonder if there's a better way to organize projects.
 
cpx
I don't know why would i do that.
 
10:25 AM
I used to do software_development -> <programming_language> -> <code-base> -> <system> -> <project name> -> <src> -> code . But I ended up in a mess of subfolders. Now I just dump everything in a "projects" folder.
 
@IntermediateHacker I still have a "Development" folder, which has "Source", "x64", "x86", "msys", "utils" subdirectories. There's only source code in Source, and I always build out of source.
 
It's a bit better on linux distros, where all libraries and headers are safely tucked away in ./lib and ./include, all you have to do is create a separate folder for your projects. but then linux itself sucks so much.
 
@RMartinhoFernandes the headers and libraries of packages in linux are automatically put into the ./lib and ./include folders.
 
And what's the problem?
On Linux, I just create folders under ~/dev. On Windows, I did the same, except it was under %USERPROFILE%/dev. I don't see a difference.
 
10:34 AM
@RMartinhoFernandes well, you don't have to add compiler search directories for every library you use in linux.
anyway, bye all. the mock exams await. gotta cuss my maths teacher study.
 
You don't have to do that in Windows as well. Just drop the stuff at the right places.
 
@IntermediateHacker they're placed in /usr/lib and /usr/include, not the top-level ones.
@RMartinhoFernandes hallelluja, someone that understands :P
 
@rubenvb I understand many things. If you wish to gain some of my understanding, kindly enter your credit card details, and you shall be charged a trivial sum for universal truth and knowledge.
 
@DeadMG wow, an offer so simple it can't ever be a scam!
 
you know
I could just reply to anyone who paid saying "You've been scammed" and it would be a universal truth for all recipients
 
10:42 AM
@DeadMG I have a credit card with 10 cents left or something. Would that be enough?
 
sure
just throw in a few more details, like your billing address
 
mmmmm
scones
 
Wut, GCC complains that I'm not capturing this when calling a static member function.
 
did you remember to fully qualify the call?
 
10:57 AM
That doesn't help. Should it?
 
uncertain
 
Arg! I have had enough of trying to get openssl to work with my c++ server! I found a good example but I am clueless how to generate the proper keys! I don't mean to take it out on you guys but you know how it is
How are you all?
 
anyway, I'm going to go and waste lots of money by buying massive quantities of sugar and fat for little discernable purpose or value
have fun
 
Buy DeadMG
Am I not the only one up all night?
 
@user1220811 you know, there is a world outside the US with different timezones :p
 
11:00 AM
Yep, definitively the static member causing this. Oh well!
 
I am actually from Canada
Any good C++ crippies around I can get some advice from/
 
@LucDanton huh. no harm intended :) I was just surprised at the type of arguments being delivered:
1 hour ago, by DeadMG
@rubenvb It's not 100% effective. Newer versions of VS produce newer kinds of crap.
 
I use code::blocks I used to use VCpp
Is eclipse any good?
 
^^ if that is the line of reasoning, then nothing will help except
(a) whitelisting what to include (e.g. like starting .gitignore with '*') - perhaps `hg` can do it
(b) reviewing. ..
 
I really should configure my account
 
11:04 AM
@user1220811 I think it is. Opinions vary, mainly because it was written in Java, I guess. People attribute sluggishness to that
 
Hmm, it is a little slower then cpp
 
Yeah totally. Go configure your account.
(whatever that is)
 
so it doesn't say user1220811
 
@user1220811 What is? Most anything is slower than the C/C++ preprocessor
@user1220811 aha. That account
 
@user1220811 I think it's good enough, but there are still some small bugs plaguing the environment. It has enough potential, but not fully there yet.
 
11:06 AM
I saw a promising program called ultraedit studio that was alright
 
@user1220811 no use in keeping that number. It isn't even prime (3 * 31 * 13127)
 
In the end it all comes down if you can have a productive workflow with your environment, choose whatever works best for you
 
Feb 16 at 23:00, by sehe
@user1131997 Did you know (trivia), that 1131997 is a prime number?
 
not a clue
 
@user1220811 about what? Note you can 'respond' to individual messages, which helps a lot in a chat environment with intermixed conversations (hover the messages, click the angled arrow and read the newbie hints) --> see starboard
 
11:09 AM
@sehe got it
 
@user1220811 cheers
@sehe @user1220811 note 3 * 31 * 13127 == 1220811
 
I am going to try to get my SSL working for another few days then I give up and just use HTTPS to hide the username/password
 
@user1220811 https runs over TLS also
you're just adding a layer
 
Well the client is a Java applet
@KillianDS There is a SQL database involved
 
@user1220811 it doesn't matter what's involved, switching from TLS to https does not mean dropping TLS, it just means you'll be sending HTTP over a TLS link :p
 
11:18 AM
@KillianDS I know but using HTTPS on a web server i(APache) is a routine task while getting the applet(client) and Cpp(server) to communicate via SSL is not as easy
You will have to take me word for it. I have a innovative way of anuthenticating users
 
I fail to see how sending the applet over https secures the communication inside your applet itself. But then again, it's been some time since I've done applets.
@user1220811 If I haid a dollar for every time someone asked me to "believe me, I have something innovative" I wouldn't be at my silly desk job anymore...
2
 
I don't think the world needs more innovative ways of authenticating users.
 
This was more of a compromise
 
odds are massive you're doing something that's been done over and over and over again, only less secure because you started from scratch
 
yawn I was up all night trying to get SSL working and I see at least a few more before I give up entirely. Hmm, breakfast
I am just a beginner programmer I am not very seasoned
but I have great ambitions
Hey, who likes chiptunes?
 
11:43 AM
@user1220811 "I have a innovative way of anuthenticating [sic] users" sets off so many alarm bells with me, it isn't even funny
@user1220811 ... uhoh: more alarm bells. Just don't roll your own security. It is hard. If you have it working, it will be wrong. You will have to take me word for it :)
 
@sehe Is there a better way of encrypting a JSSE/Winsock connection?
 
hi
 
A quick fix would sure would be great
@DeadMG Hi
@sehe It doesn't have to be JSSE
 
@DeadMG: I added what people call "double buffering" for the API level, namely rendering to a device-specific bitmap and than bit-blasting that, but it didn't help. :-( Info I forgot to tell you (I think): also the text display above the video presentation, flickers. And now, adding magic watch expression "result, wm" in Visual Debugger, I see very unexpected WM_CREATE message while it's running...
 
@CheersandhthAlf Double-buffering is not something you do manually. It's done by the graphics driver.
 
11:51 AM
What are you using? Direct draw?
sorry, forgot to reply
 
just blitting directly, or now with "double buffering", via a device specific bitmap:
        bool renderOn( HDC const dc, Point const& where = Point() ) const
        {
            int const   w = width();
            int const   h = height();

            HDC const       bufferDc            = ::CreateCompatibleDC( dc );
            HBITMAP const   bufferBitmap        = ::CreateCompatibleBitmap( dc, w, h );

            HGDIOBJ const   oldBufferBitmap     = ::SelectObject( bufferDc, bufferBitmap );

            // TODO: Massage things for down-up bitmap?
            bool const result = !!::StretchDIBits(
 
no
double buffering is done by the graphics driver or by Windows
you can't do it yourself
even in Direct3D you ask the driver to do it
 
@user1220811 I suppose a question like that is perfect material for stackoverflow.com
 
12:08 PM
@DeadMG u know, i guess that's why i pointed out that to you. ten minutes ago?
@sehe u know, i guess that's why i asked it at SO, and posted it here
 
then why did you post code that double buffers on the application levl?
 
@DeadMG because it seemed that was what you were talking about. at least some bloggers call that "double buffering". but my guess is that it's slower, not faster.
 
no
I know what I'm talking about :P
@CheersandhthAlf You're correct there.
 
@CheersandhthAlf huh? are you talking about JSSE/WinSock now? I think you have the messages confused or I haven't got a clue what you're talking about :)
 
double buffering is swap(buffer1, buffer2)
simply copying them over would never yield an iprovement
the whole point of double buffering is to avoid the copy
 
12:11 PM
@DeadMG real life says that you are wrong.
 
@sehe a bit earlier perhaps
0
Q: Flickering in cam video display, why?

Cheers and hth. - AlfI get flickering in my cam video display, even though I (think I) turned off background erasure. Why? Even the text display above the video presentation flickers. Full code at Bitbucket. Perhaps most relevant code, the gizmo that display the video: class ImageDisplay: public gizmo::SubG...

 
@DeadMG no it's not, the major point (in graphics APIs anyway) is not to draw on your display directly.
 
@CheersandhthAlf ^^ Yup. You're totally lost in chat threads :)
 
at GDI level, "double buffering" is when you have two buffers and copy bits from one to another, there is no buffer-swapping, API don't support it. If you would add a third buffer, you'd can do buffer-swapping, but you still need copying
 
@CheersandhthAlf chat.stackoverflow.com/transcript/message/2778911#2778911 wasn't at you :) Nor was it about double buffering...
 
12:14 PM
actual double buffering is about having two buffesr, read from one, write to the other, and then swap them
copying bits from one to another is pointless
 
@DeadMG what do you mean by "pointless"?
 
well, i think i need to find out about that WM_CREATE message i saw in debugger. for sure, my code isn't creating any windows after start-up.
 
It just works, even if you say that it's "pointless"
 
well, since you can just swap the buffers and completely avoid the copy, then it's pointless
 
@DeadMG ok, but in GDI you can't swap buffers.
 
12:15 PM
it's also pointless if you copy synchronously, as the whole point is to present one whilst writing into the other asynchronously
@Abyx Hence why "double buffering" is impossible at the GDI level.
only the graphics driver, and maybe Windows itself, can do double buffering of the frame buffer.
 
@DeadMG can you parse "double buffering" and check that there is no "swap" token ?
 
@DeadMG I agree to that, if you can swap it's quite stupid to copy. But "swapping" is hardly the main point of the double buffering technique
 
@Abyx So what? There's no "wave" in Fourier Transform, but it still applies to waves. There's no "template" in C++, but they're still pretty damn essential.
@KillianDS If you copy synchronously from one buffer into another, then you may as well synchronously copy it directly from the frame buffer.
 
IMO, "double buffering" is when you use two buffers. period. It doesn't say how do you use them.
 
@DeadMG that would also be double buffering (assuming you draw to that framebuffer)
very inefficient double buffering, granted, but still double buffering
 
12:19 PM
@KillianDS Not really, because you haven't gained anything. The whole point of double buffering is to gain time.
 
btw, with three buffers, you can use'em asynchronously
 
there's neither need nor purpose for copying in a double buffering system, because you're just going to write into the buffer you've just copied out of anyway
 
@DeadMG You could have gained time
 
what, compared to swapping?
 
suppose the actual drawing from the front buffer takes 5ms, then you saved those 5ms
in most modern GPU driver implementations it will gain you nothing, granted
 
12:21 PM
most of them already double buffer
 
but it is here about the general "double buffering" technique, which is a bit more than simply this use case
 
@KillianDS But you've cost the time it takes to copy the buffer.
and since you've benefited exactly nothing by copying over swapping, then the copy is totally redundant.
 
I was hoping Wikipedia would agree with @DeadMg and me. Alas, it talks about copying.
In computer science, multiple buffering is the use of more than one buffer to hold a block of data, so that a "reader" will see a complete (though perhaps old) version of the data, rather than a partially updated version of the data being created by a "writer". It also is used to avoid the need to use Dual-ported RAM when the readers and writers are different devices. Description The easiest way to explain how multiple buffering works is to take a real world example. It is a nice sunny day and you have decided to get the paddling pool out, only you can not find your garden hose. You...
 
@CheersandhthAlf Look at the page flipping section
 
double buffering is about having two buffers. One for your producer to write to, one for your consumer to read from. How you exchange buffers when needed is actually an implementation detail. Indeed, if available you should swap, but copy is not something that goes into the 'double buffering' concept
 
12:26 PM
OK, so what I've always thunk was "double buffering" is actually (at least nowadays) "page flipping". One learns. :-)
But in that case my code is actually doing double buffering. To no avail. It flickers.
 
@CheersandhthAlf Well, that's like suggesting that you always thought of "C++" as "C++ with a compiled implementation". Sure, technically, there is non-compiled-C++, but it's not terrifically useful and nobody sane would do it.
 
I remember doing page-flipping on the original 1984 Mac in VRAM, to eliminate flicker...
If the pointer switch happens at the right time (in theory, during the vsync - not sure what this means in the context of flat-screen monitors these days), there should be no flicker
 
vsync shouldn't solve flickering but tearing
 
ur right - I was being sloppy with the terminology - in fact, the VRAM wasn't even VRAM - the video was using part of the 128K that was the main memory: no specialized VRAM, much less video cards in that box...
with double-buffering back then, don't bother even copying from one buffer to another - just ensure that you overwrite/redraw shared regions (so extra cycles will be spent on maintaining these data structures - depending on complexity, these algorithms could cost more than a straight copy)
but these days, I would think all this low-level detail is handled by drivers...
 
12:44 PM
Hey, uhh question. If I wanted to connnect several Java applets to a Cpp server using sockets should I consider using UDP?
Anyone into the demoscene or chip tunes. Personally I think they are real nice
 
@user1220811 That depends on the data
 
I found a fix, namely adding WS_CLIPCHILDREN to the main window, and using RedrawWindow to force immediate redrawing of the control (child window). Big mystery why it works. Bigger mystery: without RedrawWindow applied, WS_CLIPCHILDREN causes extreme slowness, like 1 frame every 20 secs?
 
@CheersandhthAlf I'm half tempted to sneakily put that as an answer :P
 
1:07 PM
@CheersandhthAlf I remember using WS_CLIPCHILDREN to avoid flicker when resizing windows.
@CheersandhthAlf However, my framerate has always been better than 0.05 fps.
 
hm, it only worked for a while... :-(
 
I'm stuck being some middle guy between managers 'here' and people in India. I feel like such a douché hounding them for progress. Now I get why managers are the way they are
Not sure if this of much use to you @CheersandhthAlf but IIRC openCV has a rather ok GUI library built in... though I am not sure if you can do things like text boxes as well
 
1:19 PM
interesting stuff:

http://news.cnet.com/8301-13772_3-57386317-52/ibm-claims-huge-strides-in-quantum-computing/

I wonder if QC can ever be used for general computing or will they just be relegated to run very specialized algorithms...
 
1:30 PM
well, to a certain extent, only some algorithms have much faster known quantum equivalents
like discrete logarithm/FFT
 
1:45 PM
Anyone knows how redirect some output to another bash terminal? I.e. use two bash terminals, one for input and one for output?
 
2:02 PM
Interesting question
 
@ManofOneWay mkfifo pipe; term1: proces | grep some_info > pipe term2: cat pipe
mkfifo makes a 'special' kind of file, you can name it anyway you want (e.g. /tmp/mypipe$RANDOM)
 
2:15 PM
Anyone know what a CA certificate is?
 
I like to think that some one knows what they are
 
hey catplusplus
didn't you work on some game? goblin tinkerer or smth?
 
well I know what a CA is I just wanted to know how to use OpenSSL to generate a PEM file for the CA. Sorry if I wasn't clear about that
Just looking for a quick answer insted of wading through web hell
 
2:20 PM
@CatPlusPlus By the way I need to thank you for that great blog post you linked yesterday(?). Great read.
 
What blog post?
 
FRP in Haskell.
 
Oh. I linked that ages ago. And not in this room, I think.
 
I'm going to rock out and find how to generate that PEM file ty for the help
 
Either someone that isn't you relinked it, or I somehow ended up on an old transcript.
 
2:23 PM
I love my mp3 player
 
why Lua, why do you have sucky char* strings :(
such a flexible language and such a crappy API
 
because every one loves char*
 
also, so many open source projects, y u use shitty build systems
ah, whatever
 
2:39 PM
@DeadMG is this your afternoon ranting session? :P
 
you make it sound like that's not all the time
 
opposed to your morning, evening etc :P
 
lol
trying to decide on a model format and loading it and shiz
programming in native code is such a mess
bad and multiple string types, poor C APIs, etc
 
I wrote a basic loader for a fairly simple format that is just basic non-animated models.
in theory, I have the data in memory, but I've yet to actually put it into openGL buffers to render it :P
 
2:55 PM
lol
I wish I could find a more active community for game development
a little irked about muddling through on my own compared to the quantity of support I got for learning C++
 
@LucDanton I'm liking the DF Mayday tiles - will try to create a new world now
 

« first day (500 days earlier)      last day (4452 days later) »