« first day (517 days earlier)      last day (4416 days later) » 

9:00 AM
long text is long :S
 
oh hey, someone needs to replace the newbie-hints message
 
sbi
@thecoshman Haha. In fact, I first wrote "privacy" in the headline, and only just caught that by proof-reading before I hit the "publish" button.
@keithlayne I doubt it, because I only wrote it this morning.
@keithlayne I have no idea what you're referring to, but since you have seemed to resolved that...
 
@sbi no, I was referring to that one
 
sbi
@keithlayne Indeed. Goes digging...
 
New here? read these newbie hints loungecpp.wikidot.com/owners:newbie-hints
wait... did I just cock that up?
 
sbi
9:04 AM
If you are new here, please read the newbie hints. Thank you.
14
 
(╯°□°)╯︵ ┻━┻
 
sbi
@keithlayne Ah. I think @jalf mentioned that in the comment discussion I linked to yesterday.
@thecoshman Stop throwing tables, you brute!
 
@sbi you've got kids... yeah
 
sbi
@thecoshman So? I didn't get kids by being a brute.
 
@sbi speak for yourself
 
sbi
9:08 AM
@keithlayne I did.
 
@sbi so you should know the only reaction I can give is...
(╯°□°)╯︵ ┻━┻
 
sbi
@thecoshman Oh, so you're a child, too? Didn't you say you had a girlfriend?
Anyway, I do need to leave the house now, or those two kids of mine will surely break this apartment. Or at least some furniture.
 
@sbi I'm not a child, I just immature. And yes, I do have a girlfriend
 
@sbi I can only stomach so much of meta in one sitting. I came across your post some other way.
 
@sbi "flack jackets on and bail out!"
 
9:23 AM
@sbi I think you should still s/privacy/piracy/ that blog post some more:
> So I happened (thanks, Olga Nunes) to come across this article at Forbes.com, where David DiSalvo, author of a book himself writes about Neil Gaiman’s point of view on the issue of privacy, using an interview video of Neil as the base of his argument, asking for the opinion of his readers
 
@sehe that's it, I can't pretend any more, I have no idea what people mean when they write things like "s/privacy/piracy/" can you fill me in :(
 
it's a regexp
 
oh, no wonder it makes no sense :P
 
gotta love vi
 
I can just about use regex for things like \d or \t
 
9:30 AM
Eh, isn't it more sed than regex?
 
yes
 
> written and parsed in reverse-reverse-Polish notation
what the fuck
seriously, what the fuck
 
@Pubby Nope. Technically, it's ed. It's just that sed, perl, awk, vi, vim, practically the whole UNIX userland has adopted the same 'syntax' for substitutions. Often with s implied (bash variable expansions etc)
 
@sehe Heh, isn't ed actually 'The Official Text Editor of Unix'?
 
@Pubby It was.
> ed was originally written in PDP-11/20 assembler by Ken Thompson in 1971
ed is a line editor for the Unix operating system. It was one of the first end-user programs hosted on the system and has been standard in Unix-based systems ever since. ed was originally written in PDP-11/20 assembler by Ken Thompson in 1971. Ken Thompson was very familiar with an earlier editor known as qed from University of California at Berkeley, Ken Thompson's alma mater; he reimplemented qed on the CTSS and Multics systems, so it is natural that he carried many features of qed forward into ed. Ken Thompson's versions of qed were the first to implement regular expressions, an idea...
> For interactive use, ed was subsumed by the sam, vi and Emacs editors in the 1980s
 
9:37 AM
dang, ideon dosen't support ZOMBIE :(
@sbi what do you mean by this o_0
 
10:10 AM
5
Q: Segfault with strcmp

JimmI am using strcmp in following ways Passing char[] array names Passing pointers to string literals but, the second result in seg fault. even though i have confirmed that pointers point to correct string literals, i am confused as to why i am getting seg fault.. Here is the code:- #include <...

why the hell are people voting too localised for that?
exact dupe maybe
 
10:44 AM
WARNING: 194::/main:0/WriteImage:1 internal error: module return value was not ERROR - que?
 
@awoodland is that a compiler warning? sounds rather cryptic, so it must be
 
nah it's some software that has the finest UX of the 1980s
(OpenDX)
 
not heard of OpenDX, what is that one for?
 
visualisation
 
erm... should I get on google?
 
10:50 AM
it's quite a neat tool
sorry I have a flashing window stealing focus every 5 seconds limiting my typing
 
I assume you don't mean graphics such as with OpenGL
 
it's a client/server visual programming thing
 
ooh I see
 
makes pretty figures for papers
 
indeed :D
though how did it 'DX'?
 
10:54 AM
dx=data eXplorer here
 
well that makes sense
per chance, have you made use of UnitTest++
 
I've not seen that one. I used cppunit a while ago
 
from what I can see, UnitTest++ is a lot of (hopefully) very well written macros that can take semi valid looking code and convert it into actual test code. It looks very smart and well written. What is cppunit like?
oh, UnitTest++ can do time constrained test. I've not seen that in Junit
 
!!/user sbi
 
@IntermediateHacker what?
 
11:03 AM
@thecoshman there's a bot here. @Zirak
he responds to commands.
 
One sec
 
!!/norris
 
And we need that for?
 
@IntermediateHacker oh right. When did he show up?
 
He's awesome.
 
11:04 AM
Can it at least compile code?
 
what does IT do?
 
HE can give results from the urban dictionary. Watch this.
!!/urban Burj Dubai
 
@IntermediateHacker [Burj Dubai](http://burj-dubai.urbanup.com/2858040): A huge skyscraper - now the world's tallest freestanding structure after surpassing the CN tower in September- in Dubai.
The final height is secret, but it is estimated to be at around 2,684, leaving enough room for approximately 162 habitable floors.
The building was designed by Skidmore, Owings and Merrill, who are known for their other famous designs including the Sears Tower in Chicago and the Freedom Tower in NY.
 
¬_¬ and what is the point in that
 
and post unlimited chuck norris jokes.
!!/norris
 
11:06 AM
@IntermediateHacker Chuck Norris can speak Braille.
 
!!/shut up
 
@IntermediateHacker Chuck Norris never goes to the dentist because his teeth are unbreakable. His enemies never go to the dentist because they have no teeth.
 
@keith.layne Command shut does not exist.
 
!!/norris
 
11:06 AM
too bad
 
@IntermediateHacker When Chuck Norris says "More cowbell", he MEANS it.
 
!!/learn shut_up "You shut up! A**hole!"
 
@thecoshman I was looking at that yesterday and decided on Boost test
 
@IntermediateHacker Command shut_up learned
 
!!/exit
 
11:07 AM
!!/shut_up
 
@thecoshman Command exit does not exist.
@IntermediateHacker You shut up! A**hole!
!!/tell thecoshman listcommands
@thecoshman Available commands: help, live, die, forget, ban, unban, regex, jquery, choose, online, user, listcommands, define, norris, urban, parse, tell, mdn, get, learn, hang, todo, spec, roll, shut_up
 
The chat bot is in here?
 
@Pubby yeah.
 
@Pubby gameboy guy asked me to come
 
@Pubby actually I was referring to this damn chat bot ¬_¬ but I will check out Boost test
@Zirak it's well made, I'll give it that
 
11:09 AM
!!/user thecoshman
 
I don't see the point in the tell command though
 
@thecoshman it lists all the commands.
!!/user 300797
 
It's main use is in the js room as the more useful commands are js-doc related
thecoshman, Liverpool, United Kingdom
1.2k 2 20
 
> @CatPlusPlus unique_ptr can't be the default choice, since in most cases, it's not available (yet). But ownership by unique_ptr or auto_ptr is normally only temporary, to ensure exception safety until the object is fully initialized (and it is only used in cases where you can't ensure full initialization in the constructor). If you leave the object in a unique_ptr, why do a dynamic allocation to begin with? – James Kanze 2 hours ago
 
11:10 AM
@IntermediateHacker oh right, I thought it was like an IRC bot where you can use it to leave messages for people
@Zirak oh, I need to update that :P
 
!!/user 753341
 
IntermediateHacker, Al Buraymi, Oman
2.3k 3 19
 
@thecoshman You know it's a JS attached to an user session, right?
 
OMG I got my first teaching job outside of my home town in 10 days :)
 
/tell userName|msgid cmdName cmdArgs is used to delegate command output
 
11:11 AM
@CatPlusPlus Have you mentioned polymorphism?
 
!!/user 964135
 
Pubby, United States
9k 2 15 34
 
@LucDanton I'm facepalming too hard to think about it.
 
!!/tell thecoshman "Yo!"
 
@IntermediateHacker Command Yo! does not exist.
 
11:11 AM
!!/tell thecoshman shut_up
 
@thecoshman You shut up! A**hole!
 
@CatPlusPlus ofc, I just thought that there would not be an actual person using that account at the same time, just leaving it for the bot
 
If you wanna poke around the source and stuff:
!!/help
 
I find this pointless spam, TBH. A bot is justified if it has useful functions, not some random sillyness.
Anyway.
3
Q: Is it possible to introduce Automatic Reference Counting (ARC) to C++?

caminoAs we know that object-c has introduce a technology called ARC to free the developer from the burden of memory management.it sounds great, I think C++ developers would be very happy if g++ also has this feature. "ARC allows you to put the burden of memory management on the (Apple LLVM 3.0) compi...

 
11:12 AM
@Zirak can you star messages on command?
!!/tell Cat Plus Plus shut_up
 
@IntermediateHacker Command Plus does not exist.
 
@CatPlusPlus shared_ptr?
 
Yes, but that's not the point.
 
!!/tell 16102 shut_up
 
That comment is on the last answer.
 
11:13 AM
:16102 You shut up! A**hole!
 
@CatPlusPlus What JK says makes perfect sense in the world of JK. I.e. big legacy projects in telecommunications. Or so it goes most of the time with his arguments. Not that I mind what he says most of the time.
 
Which is why this was made for the js room, as it has useful functionality for js purposes (mainly doc seeking.) Anyway, as I thought, bringing it here was pretty pointless.
 
I'm feed up with this bot already
 
damn, you've offended the bot.
 
No, the bot is more sensible than the person who wanted the bot.
 
11:15 AM
is there a real person using the same account as the bot?
 
@thecoshman yes, he's the one who replies things other than commands
 
There are no real people here. It's all in your head.
 
@IntermediateHacker oh right... so just plonking him is not really what I want to do then
 
@thecoshman lol.
!!/tell thecoshman shut_up
 
@IntermediateHacker Command shut_up does not exist.
 
11:17 AM
damn.
anyway, got to go now. Thanks @Zirak .
 
@thecoshman oh man...
 
the bot FTW.
 
@sehe ?
 
11:31 AM
btw, if anyone wants to play around with the bot or something without disturbing anyone, I made a room for it, and of course if you can think something useful can be added, I'm all ears.
And sorry about that, I should've known coming here would be a mistake
 
Lol, my library reports keypress as window_created.
 
lol, it's that, it's what you bot offers currently is mostly just noise
 
Oh, because the flag is 0.
Dammit.
MS, y u make bitflags with 0 in them. shakes fist
 
he he he
 
Finally, I get Alt presses.
Time to get GLX working.
And I'll have 0.1.0 to release.
 
11:38 AM
what you working on @CatPlusPlus
 
GL skeleton library.
 
oooh
 
Creating a GL window(s) and getting events out of them.
 
are you intending to do IK solving?
 
The what?
 
11:40 AM
Inverse Kinematic Solving
or do you not mean that sort of skeleton
 
Skeleton as getting a window with OpenGL context ready in a platform-independent way.
And nothing else.
 
oooooh, you mean skeleton as in a shell or bare bones thing :P
 
I thought you where meaning for something like a skeleton animation :D
 
The API currently looks like above.
I think it's not that bad.
Also, half of March went by and I failed to notice.
And it's suddenly 17 degrees outside.
 
11:43 AM
I'd had to sound negative, but window->poll_for_event(event) would that not make more sense as event = window->poll_for_event()
 
And what should it return when there are no events in the queue?
 
hello
 
Well, I could use boost::optional, but that would complicate the loop condition a bit.
 
well, currently what is event after that function call in that situation?
oh I see how you are doing it :P
 
If it returned true, an event from the top of the queue.
If it returned false, undefined.
 
11:46 AM
when I made use of SDL, I had an while(true) loop and checked non-blocking for new events, with in the loop
 
SDL_PollEvent works the same way.
 
in part of that loop I had my call to 'update' and 'render' (assuming it had been long enough since last render
 
Hell, I can add optional version, too, it doesn't need new implementation details.
 
@CatPlusPlus If you have an optional that abuses range-for then that could become for(auto&& event: window->poll_event()) { /* visit event */ }.
 
such that faster the loop runs, the small the time step I pass into my update code
 
11:47 AM
@LucDanton You really like to do that, don't you.
 
that way my updates are based on as small a time step as possible. I was planning to add smoothing to the time step if it start to get a bit jumpy
 
@CatPlusPlus I'm trying to make myself sick of it. Using it to the limit to, well, see what those limits are.
 
I like my update logic to work with fixed time steps.
 
E.g. that loop is suggesting that several events are visited, that's horrible.
 
@CatPlusPlus is this for a game?
 
11:48 AM
@LucDanton My loop or your loop? Because my certainly visits entire queue.
 
Mine.
 
@thecoshman Well, mainly. I guess non-games that don't need system UI could use it too.
 
I.e. while(auto maybe_event = window->poll()) { for(auto&& event: maybe_event) /* visit */; }
Do you see the horror now?
 
As opposed to visit(visitor, *maybe_event); :P
 
@CatPlusPlus then you want your update code to work on as small a time step as possible, especially things like physics. The smaller the time step the less penetration (badly worded I know )
 
11:51 AM
Oh yeah.
Guess I'll stick to what I'm doing, it's draining all of my limited brainpower actually.
 
@thecoshman Physics with variable time step is a bad, bad idea.
 
@CatPlusPlus what? It may make it a bit trickier to manage, but it allows you to have the smallest time step your system can handle. The smaller the time step the better
 
Fixed time step is better than variable "maybe small" step.
It stabilises the simulation.
Variable time step makes you vulnerable to spikes, which can cause explosion.
You can run physics at constant rate of 30FPS and it'll work just fine.
 
so you just need to manage what you allow the time step to be.
 
You don't have to run it as fast as rendering.
 
11:54 AM
no, you have to run it at least as fast
 
Nope.
78
Q: Fixed time step vs Variable time step

Nick SonneveldWhat is better for games when developing game loops, fixed time steps or variable time steps? What type of games are better with one or the other? Variable time steps: With variable time step, I mean physics updates will take in some sort of "time elapsed since last update" argument and hence ...

 
if you render more often then you update your physics, you will see things staying still when they should actually have moved
 
You interpolate for that.
> Should Physics step rate be tied to your frame rate? No.
> Should physics be stepped with constant deltas? Yes.
 
if you have a constant delta, then you physics and rendering are linked together, though the ratio may not be 1:1
 
This answer tells to use faster physics than rendering, but AFAIK in most engines it's working slower and interpolating.
 
11:57 AM
if you render at say 30 fps and physics at 120fps, you have a 4:1 ratio. they are linked together
 
Rendering FPS is never constant.
The loop looks like this:
 
well, it depends if you throttle you rendering or do it as fast as you can
another thing to consider. if you build your engine to take a variable delta, you can choose to feed it a fixed delta. you can not do the opposite
 
double time = now(), accumulator = 0.0; while (true) { double delta = now() - time; accumulator += delta; time += delta; while (accumulator >= update_rate) { /* update */ accumulator -= update_rate; } /* render */ }
 
it is also easier to think of distance per second, rather then distance per update
 
With event handling and stuff, too, but you get the gist.
Equations don't change.
 
12:00 PM
@thecoshman Nobody is advocating writing fixed-step integrators here. This is about the loop.
 
It's just that every step advances the time with a constant delta.
 
I would love to continue this, but it's lunch time, and I need to read over that link
 
It's really more stable.
I've coded 4RK recently, I should know.
Anyway, GLX.
My new nemesis.
> XCB-GLX only communicates with the X server, it does not perform any hardware initialization or touch the OpenGL client-side state. Because of this XCB-GLX cannot be used as a replacement for the GLX API. To use OpenGL in the X Windowing system, one must use the GLX API, and the GLX API is closely coupled with Xlib. As a result, an OpenGL application on the X Windows must use Xlib and thus can’t be done using only XCB.
So much for 'modern approach to X'.
 
X used to be such a strength for the unix-like world, I think it has fallen behind
but then it wasn't really imagined for running GL stuff
 
I wouldn't know, I never liked it.
 
12:07 PM
the underlying model allowed a lot of flexibility, but it just didn't scale that well over time
 
Build for Wayland instead... It's bound to come into general use in the coming 2-3 years.
 
Right.
 
You can even use it now, just needs some manual setting up
 
an example is something like LTSP...even with a pimped out server and a gigabit connection to a suitable client, AFAIK you can't for example watch youtube in Firefox smoothly
 
or run it on top of X, which is by far the easiest thing to do.
 
12:10 PM
I'll worry about it if it becomes widespread.
Because in the big picture, nobody uses it.
 
yet.
 
We'll see.
 
I hadn't heard of it...
> Wayland does not currently provide network transparency, but it may in the future.
 
@keithlayne It can piggy-back on X for that untill something better comes along.
but a wayland compositor with network forwarding support has got to be awesome.
 

« first day (517 days earlier)      last day (4416 days later) »