« first day (1625 days earlier)      last day (3316 days later) » 

3:00 PM
you could use an automated tool to obfuscate
 
@Puppy I've seen some that I'm pretty sure did so.
 
@Nooble those commands are obviously not the same
 
a nice one
0
Q: if statement inside a loop of vice versa

Shai ZarzewskiI'm wondering which is more efficient: lets say I have this code: while (i<10000){ if (cond1) doSomething1(); else if (cond2) doSomething2(); else doSomething3(); } now cond1 and cond2 are "constant" condition, which means that if it happens once for i it will happe...

 
@Puppy Wow. Was just looking for one of the old commercial obfuscator tools, and stumbled across the Abraxas web site. Warning: not safe for work eyes.
 
ow.
ow ow ow.
why did you subject me to that.
 
3:06 PM
(that was sarcasm btw)
 
Could be worse
Like it could be a modern website instead
 
I honestly don't find that very hard on the eyes.
 
@chris I'm glad you write C++, not web sites. :-)
 
it's not. at all.
@Nooble you also need to consider whether the makefile does other things (changing include paths, setting environment variables etc) that you may not be able to see from the console output
 
@JerryCoffin Yeah my web page is pretty bad, but there's not really anything on there.
 
3:10 PM
@Puppy Malicious cruelty. In fairness, I did warn you though.
 
Hi all.
I'm about to finish the 0.2 release version from libcrosswind using Sonic the Hedgehog as a research tool, it is a C++14 multimedia engine using SDL2, OpenGL and Bullet physics as backend.
 
I have a question regarding documentation, which is good? I've heard that Doxygen works good but I did find this other tool cldoc
 
I should start writing about SCD. Sounds Correct Development, where you write some code that just seems like it is correct.
 
user1804599
POD is great.
 
3:15 PM
POD?
 
Plain Old Data
 
Payable on Death
 
user1804599
Though I should really use Ninja for this.
 
ITT: Puppy writes another bug because he can't default move members in VS.
hurry the fuck up microsoft
 
user1804599
3:20 PM
lol that feature has been in C++ for about over three years
 
what was that creepy game-in-progress thing someone linked a while back?
had a video about people being happy. the one that wasn't was beat up or something
oh wait nvm search is good
 
How can I generate Plain Old Data documentation for C++14?
By the way, there is a game that is trending, it is called "The static speaks my name" have you checked it out?
 
user1804599
What the fuck is Plain Old Data documentation?
 
I don't know, I did search POD and it took me to Perl documentation generation.
 
it's terrible documentation for terrible concepts
 
3:24 PM
@VictorLopez what is it?
 
user1804599
@VictorLopez That has nothing to do with plain old data.
 
@Blob It is a game about someone obsessed with the meaning of a painting. It's pretty disturbing.
 
I don't really see what POD and documentation have t odo with each other
 
should i watch someone play it or play it myself?
might be like Stanley's Parable where watching it would just ruin the thing
 
I would only watch someone else play a game if they could play it in a way I couldn't
like professional SC2
 
3:28 PM
@райтфолд @thecoshman Said Plain Old Data, but I guess it should be Plain Old Documentation?
 
user1804599
Alright, what shall I implement first? Conditional expressions or arithmetic operators?
 
@райтфолд clearly arithmetic operators
 
user1804599
The former must be fun when translating stack-based code to SSA.
 
user1804599
Although not too difficult.
 
damnit, all the vids i can find go with annoying commentary
not analytical commentary, just dramatic crap
 
3:34 PM
@райтфолд You did post the code of a language called MILL, what is it? Who coded it?
 
> coded it
Hi peeps
 
Hi all
 
@sehe Hello.
 
Too lazy for Who wrote it.
I'm looking for a cross-platform scripting language, the last I saw was this MILL lang, I'll be testing Lua in a few hours but I'm not really sure about the performance.
 
well
that game was short
 
3:44 PM
Nobody in the lounge would ever ask about who wrote what language. Or parser. Or VM. Or codegen. Or regular expression wanking syntactic disaster.
 
wait, there were multiple stuff at the end and showed me creds, i esc'd. that's the end, right?
 
Everyone knows the probabilities point overwhelmingly in the direction of a lobster.
Except if it's Wide. Or _coded_ in Boost Spirit.
 
Wide isn't really a scripting language, although you cuold try to use it as one
 
@Blob Yes.
 
@Puppy at the point in time I was answering nobody mentioned scripting languages
 
3:46 PM
ah yes
 
user1804599
@VictorLopez Does it have to be production-ready?
 
user1804599
If no, Perl 6. If yes, Perl 5.
 
does it have to be production ready ? anything but Perl : anything but Perl
6
 
@райтфолд Will it add too much overhead? Well, the implementation is simple, this is Sonic the Hedgehog sonic_character
 
3:49 PM
@Andy oh no, we'll never know what happened to the Tortoise in Goodfortune's hideout.
 
user1804599
No idea what amount of overhead is considered too much.
 
@райтфолд derp
 
@R.MartinhoFernandes Damn I can't remember that part. I should get back to the Book!
 
@VictorLopez For text processing kinds of things, I'd use AWK. For more general-purpose uses, probably Python. Neither is anywhere close to perfect, but neither is nearly as generally awful as something like Perl or Ruby either.
 
@райтфолд Since it should run in mobile devices I would consider less than 24 ram mb and actually the engine by itself uses 14-19 mb.
 
3:50 PM
I should also improve my memory
 
Buy more ram
 
That would arguably be more useful than programming a snake game
 
user1804599
Alright, so if the bytecode has jump targets that don't have the same stack size for all possible sources, the behaviour is undefined.
 
@sehe Do you speak Wide?
 
user1804599
So conditional_jump foo; pop; foo: is UB.
 
user1804599
3:53 PM
I cannot imagine when such code would be generated anyway so hurray!
 
I feel a bit strange.
 
Does Perl support bindings for C++? And if so, does it support polymorphism?
 
@MartinJames how come?
 
user1804599
@MartinJames So does ~INT_MAX.
 
user1804599
3:54 PM
There are some C++-specific things. I have never used them, though.
 
I'm scared.
 
user1804599
I would also be scared around Perl.
 
user1804599
Since Boost tends to be nice, perhaps Boost.Python is nice.
 
@Pris Abbot poisoning.
 
Boost.Python was an undocumented mess last time I tried, doubt it improved
 
3:57 PM
@райтфолд Don't be scared of Perl. If it threatens, just run off; it will never catch up.
 
The last thing I saw containing Perl was OpenSSL and I was like this
 
user1804599
 
user1804599
I don't need unconditional jump instruction. :P
 
user1804599
You can just push true and do a conditional jump instead. :P
 
@JohanLarsson mensen noemen me wel eens breedspraking, ja
 
4:08 PM
hmm can't read that, my Dutch is getting worse.
 
@Nooble any luck?
 
't is dan ook "breedsprakig"
 
Haha. You can tell I'm too used to chatting in english
 
It's your spine, those little annoying typing neurons
 
@JohanLarsson breedsprakig (sorry for engrish typo)
 
Annoying... I wrote a JackClient base class that closes itself when destructed.. but now jack still calls process when the derived class is already destructed and the base class isn't.. that doesn't really work either. Basically, I have to call a 'we_are_going_to_be_destructed()' of the base class from the destructor of the most derived class.... feels like a shortcoming of C++ :/
 
> closes itself when destructed
eh
> jack still calls process
no idea what this means
> I have to call a 'we_are_going_to_be_destructed()' of the base class from the destructor of the most derived class
big design smell
 
You shouldn't have a situation where the desctructor for the derived class is called but the destructor for the base class isn't
 
> feels like a shortcoming of C++
feels more like a shortcoming of you :)
@Pris Um that occurs literally every single time you destroy an object of a derived type, for a brief moment.
 
the destructor for the derived class implicitly calls the destructor of the base class as a language feature.
 
4:19 PM
/me gives Lightness a book about social skills
 
It sounds like the OP is trying to do something from the base destructor that she shouldn't be.
 
I don't understand how you can end up in any case where the derived class is destructed but the base is not.
 
@CarloWood Oh for god's sake. Yeah, you're welcome.
Waltz in here, not even a "hi", dump your problem on people, react like that to constructive criticism. Good one.
And here I was, going to help!!
 
Puppy: if an object is destructed, first the destructor of the most derived class is called, then the destructor of the base class... So, in between a thread can make calls to half-destructed class.
 
@Puppy in the base destructor body, dude
 
4:21 PM
@LightnessRacesinOrbit indeed
 
that's a race condition, which has nothing to do with destructors.
it's to do with you being a moron and writing race conditions.
 
So now threads are involved? You did not state that in your question. Yet another problem with it.
 
@Puppy lol
 
Well, so much about trying out a new forum. bye bye unfriendly noobs
 
@CarloWood Is your condition listed? (SCNR)
 
4:21 PM
ha ha?
What a strange person.
AND THIS IS NOT A FORUM!!!!
 
a) this is not a forum, and b) unfriendliness and noobiness are orthogonal.
 
U
N
F
R
I
E
N O O B
D
L
Y
4
 
So glad I just wasted five minutes of my Sunday afternoon trying to help this dick
 
Carlo will be fondly remembered as the most friendly noob in a long while
 
@AndyProwl hahahahahaha
 
4:22 PM
For all the pedantry that goes on here, this is technically a forum
 
@Pris For all the pedantry that goes on here, this is technically not a forum, no
 
I wish I could be like Carlo.
 
orthogonality++
 
> a place, meeting, or medium where ideas and views on a particular issue can be exchanged.
 
"unfriendoobdly" is a great word
 
4:23 PM
We should all be more like Carlo.
 
@Pris And what makes you think that this is a place where ideas and views on a particular issue can be exchanged?
 
@Pris Gosh. What gives you this idea. In particular what convenient definition would you divine for this occasion
 
@Pris Plus that is not the definition people mean when they say 'forum' online.
 
@Pris The universe is a forum
 
@LightnessRacesinOrbit I'm being pedantic
 
4:24 PM
@Pris It refers to a specific model of software.
@Pris badly :)
 
your mom is a forum
 
Wow, everyone is super upset. Sorry for being so utterly correct
 
Just don't do it again.
 
@Pris Don't be sorry
just don't do it
 
@Pris This is similar to weeding out help vampires a bit too ruthlessly here.
We've had faaaaaar too many people being clingy and entitled on so. Invariably they will play the "But this is a forum" or "But what else would be the purpose of this forum" card.
The problem with that word is that they use it to refer to the plethora of other self proclaimed forums where there is a completely absent different goal of the site
 
4:28 PM
@sehe That's unreasonable on your part. There are plenty of 'forums' with the 'online discussion board' definition that are just lounging around and talking about random junk
 
Perl performs faster than any other language as it seems, so, well, I'll stick with Perl.
 
@VictorLopez wth
 
user1804599
lol
 
'Forum' doesn't imply a help site in any sense... its just a neutral term for a discussion board
 
correct
indeed I would imagine that most forumen are not help sites
and I used to run a few
forumen are basically IRC for the non-technical masses
 
4:30 PM
@Pris Thank you so much for informing about the essential error in my ways. (Never mind I was pointing out the reason about behaviour of the Lounge as a group. And my explanation is nearly factually objective. I don't care what you think about me)
@Pris You don't get it at all, by the way.
The point is that SO as a Q&A forum does not just lounge around.
 
@LightnessRacesinOrbit Not yet. I think it has to do with how it handles relative paths.
 
@VictorLopez Correct. The primary function of programming languages is to make outsiders feel completely lost about what this code might do, and Perl does that much more quickly than any other.
 
@Nooble have you tried getting GCC to tell you how it's resolving the include paths?
in both cases
and compare
 
@LightnessRacesinOrbit Well in GCC it works fine.
Using the . signifies a relative path.
 
user1804599
Meh, this is suck.
 
4:39 PM
@LightnessRacesinOrbit Pretty sure this has to do with how Windows isn't a Unix system.
Okay so I added the actual full path to the files.
And it still can't find it.
:(
 
user1804599
I am so confused.
 
@Nooble show me
 
4:58 PM
fuck you Cinder why do you have drawTorus() but not drawCone?
also drawFrustum takes a Camera wtf
 
iStretched
 
as if there were no other ways of specifying a frustum than providing a camera
 
@AndyProwl that function is specifically for drawing a frustum that's defined by a camera
> Draws a wireframe representation of the frustum defined by cam.
So, yes, it takes a camera.
 
Yeah, but what's the point?
 
Debugging, most likely
 
5:00 PM
drawFrustum(camera.getFrustum())
that's how it should have been
 
so if I want to specify the frustum in a different way, I don't have to create a camera
 
@LightnessRacesinOrbit Wait a second I think I know the problem (and how to fix it).
 
shame Camera::getFrustrum() is a void function with six out parameters
Ironically, though, its documentation states:
> Returns the coordinates of the camera's frustum, suitable for passing to glFrustum.
heh
I think these functions are supposed to be utility functions on top of the OpenGL API. So you can use glFrustum if you want to do what you said you want to do, above. drawFrustum is just there as convenience to shorten your code when it is the camera's frustum you want to draw.
 
5:02 PM
It should be called drawCameraFrustum though
 
Didn't know about glFrustum
Thanks!
 
oh, hey, wait
turns out it doesn't draw anything
so no
 
lol what?
 
pfft I dunno then. maybe check your normals
 
yeah, it's not for drawing
anyway what I would like is to draw a cone
but that's missing too
maybe OpenGL has a function for that
 
5:05 PM
The Makefile gods have cursed me.
 
what, just them?
 
> glutSolidCone and glutWireCone render a solid or wireframe cone respectively.
 
you got off lucky
 
Can you mix Cinder and GLUT?
 
no idea
 
5:07 PM
I briefly looked at the Cinder APIs and I seem to recall that it was utter shite.
just my vague memory though.
 
gluCylinder() may help
but to call that I have to call another function that returns me an owning raw pointer
first impact with OpenGL is not nice
 
s/first impact with//
welp
I'd better do some washing up or someshit
 
@Puppy Hehe.
I've figured out that the paths do indeed work, it just can't find the freaking headers for some reason.
 
ah, it's called drawCylinder()
You can specify different radiuses for the two bases
Because naming is hard
 
huh well that's not a cylinder then
a cylinder has height and radius and that's it
 
5:21 PM
Yeah
 
6
A: Why do we call pitches "low" and "high"?

Greg LeeA web search on "metaphor low pitch" yields, among others, these references: The Metaphor of "High" and "Low" in Pitch ... Greek music theorists of antiquity spoke not of "high" and "low" but of "sharpness" and "heaviness"; in Bali and Java pitches are not "high" and "low" but "small" and "la...

-6
Q: Differentiationg parts of image

Shravan TanguduI'm looking for a c++ package that can be used to get images out of an image and save them. My program will take a screenshot of the desktop and recognize the borders of a window. This is for an interactive game. Would be a great help if you can provide me the code too. Thanks in advance..:).

Loungers Assemble
 
It's a cylindroid.
Truncated cone.
 
right, which is not a cylinder
"cylindroid" is ambiguous anyway as it more often than not instead refers to elliptic cylinders
in fact hang on
I can't find a definition of cylindroid that means a truncated cone
 
5:37 PM
Why not trying "capsule"?
 
If you want to move an object in 3d spaces it is easier to achieve by using a capsule and locking the x/y/z axis rotation.
 
I thought that frustums were square pyramids (with the "point" lopped off) not cylinders
 
Bullet does this with something called Kinematic Character Controller.
 
In rendering, frustums are typically pyramids because it's easier to represent.
 
5:42 PM
also, isn't that more accurate for the case of e.g. frustum culling for the camera?
 
@Puppy there's that too
 
Woo my sense of taste has returned
 
so you like apple?
 
@AndyProwl for what?
 
@BartekBanachewicz drawing a frustum
 
5:50 PM
that's like 12 lines
i mean, lines in terms of drawing
 
Yeah, but I'm a noob
 
um, still?
can you like draw a triangle?
 
I'm learning how to do that
in fact I'm trying a pyramid atm
 
why are you even using OpenGL while we're at it
it's low-level crap
 
I'm using Cinder
 
5:52 PM
Doesn't cinder have a proper graphics api
 
but it turns out Cinder does not have a function for drawing a frustum
@BartekBanachewicz That's what I thought, but it appears to be quite crippled
 
like everything related to C++
coincidence?
 
anyway I managed the pyramid
 
welp so the smaller side (top) is your near clipping plane
but frankly, why bother? Draw a cube and recalculate it using your matrix ^ -1
perspective matrix maps that frustum into an AABB cube of -1,1 on every axis
if you take inverse of that matrix and pass it that cube, you'll get the frustum
 
That makes sense, but the thing I'm getting now is Good Enough (TM) and I have to move on
Drawing this snake is taking me forever
 
5:56 PM
3D is a pita
 
Oh yes I figured
 
it's much more complicated and annoying compared to 2D and games aren't much better
well stuff like voxels is fun, but tuning everything to 3d.... the shadowmaps size and bias, the texture filterings, whatnot
 
Right, and I'm afraid this game is going to be completely unplayable
 
you should've prototype it with Three.js or something
that API is actually usable.
 
Haven't gotten to textures yet
 
5:58 PM
after you get the basics done it gets only harder
 
lol awesome news
 
if you think you can wing it by skipping some math you'll collapse again on parallax maping and phong shading
 
in the meanwhile, git push is stuck
unable to access blah blah 443 blah blah oh come on
 
IMHO the only proper way to learn 3D is to admit you suck at maths and life, and learn it slowly from the basics
so that on every step you understand every equation and principle
otherwise it's going to bite you sooner or later
 

« first day (1625 days earlier)      last day (3316 days later) »