« first day (874 days earlier)      last day (4083 days later) » 

9:00 PM
^ Posted by somebody.
 
Ermagherd
 
Daknok?
 
@Zoidberg is what you want
 
user142019
@StackedCrooked by me. :P
 
9:02 PM
@Zoidberg Oh you.
 
@Zoidberg where did you post that?
0
Q: "Iterate" over constants defined inside a namespace

dario_ramosSay I have a bunch of constants define inside a namespace: namespace FooConstants{ const string foo1 = "foo1"; const string foo2 = "foo2"; //... const string fooN = "fooN"; } Is it possible to use Boost to "iterate" over these constants names? Something like a macro which expan...

I'm not sure this is possible?
iterate over declared constants?
 
@StackedCrooked the hell
 
maybe template magic?
 
It's not possible AFAIK.
 
@JerryCoffin may know...
 
9:04 PM
Oh, wait, he means to use the PP library.
 
user142019
Haha.
 
Boost Preprocessor library.
 
ah
I've never used that
 
user142019
A nuclear reactor in Minecraft exploded. xD
 
9:06 PM
lol
 
user142019
@TonyTheLion Coliru.
 
@StackedCrooked you expanding on that or should I dig something out?
 
@TonyTheLion This is one I'd simply avoid -- put the strings in an array or vector and iterating over them becomes trivial.
 
hmmm
interesting
 
user142019
@Flexo dat pun.
 
9:09 PM
@Flexo I have a few old examples probably. Ah, here's one.
 
@Flexo Boost Wave in case anybody cares.
 
@Flexo You better win this election. We are MUCH in need of a C++ mod.
 
@JerryCoffin Boost PP is PP macros to do compiletime iterations, Boost Wave is a CPP implementation
 
> Only today we begin to understand, that preprocessor generative metaprogramming combined with template metaprogramming in C++ is by far one of the most powerful compile-time reflection/metaprogramming facilities that any language has ever supported.
I hope Stroustrup didn't hear that.
6
 
@sehe Oops -- quite right. My apologies.
 
9:15 PM
Best way to win elections - show up on lounge :P
 
@sehe I just noticed from the examples. How ..strange.
But that means that an extra build step is required.
 
user142019
Use PHP as alternative to CPP.
 
Is that like PCH?
 
user142019
No.
 
user142019
You just abandon CPP and use PHP instead.
 
user142019
9:17 PM
Hey, at least it's Turing-complete.
 
user142019
I don't love you
 
If you want a different macro processor, why not something intended for the job (e.g., m4)?
 
what's wrong with you?
lol
 
Ell
steve greene is genious!
 
user142019
@ScottW it's not opposite day.
 
user142019
9:21 PM
Hmm.
 
Ell
Who is electric retard?
Also I'll be on mumble in le second
 
@Ell You?
 
@ScottW I wouldn't bank on it yet. Stranger things have happened.
 
9:23 PM
@StackedCrooked I was thinking BOOST_PP_SEQ_FOR_EACH_I with BOOST_PP_CAT
 
Holy crap... (Skip to 2:20)
 
I always forget -.-;
 
Still What?
Waht? Wath?
 
9:31 PM
Ok seriously... that video -> mind-blown
 
I don't get what's so mind blowing
It's neat though
 
It's mind blowing because all this time I thought most of this stuff was done by modeling the detail and baking it.
I never thought you could just shop it in
that's much quicker (and yes i know hes fast-forwarding)
 
If you like normal mapping, you're going to love parallax mapping
 
I know what that is :)
It's not the normal mapping itself that I like. Its that idea of creating detail entirely in photoshop
 
Ah, I see
Yeah, I've never seen an editor like that before
 
9:38 PM
0
Q: How does one determine whether a C file is gcc compilable?

Sigma FreudOne of the requirements for my college project is that my C file must be gcc compilable. I do not know what this means and I do not know how to go about determining whether a C file is gcc compilable or not. How does one do this? At the moment, I am using VS 2012 to compile my files. Part of th...

 
Check this other tool
 
That's pretty neat, although I don't understand much of what's going on
 
me neither
 
(although I have it muted)
 
What does this tool do?
 
Xeo
9:43 PM
150 lines of code is as trivial as it can get? Ok, I will take a deep breath and start reading :-) — Andy Prowl 2 mins ago
Ahaha
 
user142019
Aids in masturbating.
 
Xeo
@AndyProwl: You're crazy
 
@EtiennedeMartel Well the part I like best is when he starts adding all the detail (@ around 3min). Theres a bunch of presets for stuff like oil spill, wear & tear, ... but it seems to be doing a lot of grunt work automagically. Like at the beginning it seems to have created layer groups for every patch of color on the diffuse map. And a bunch of other stuff I don't totally understand
 
@Xeo How come?
 
Xeo
I think the quoted comment is enough? :)
 
9:46 PM
@Xeo Oh, hadn't seen that ;)
 
@Pubby Parallax occ. mapping has some intense aliasing problems on high frequency "geometry". BioWare used POM to flesh out all of the stairs type details in Mass Effect, reverting back to normal mapping to everything else.
 
@DomagojPandža What's occ and POM?
 
user142019
Teacher gave me a compliment today because I normalized a database completely correctly.
 
Its* full name is parallax occlusion mapping.
It basically fakes height details using a normal map with a height map.
 
Oh, sounds neat!
 
9:48 PM
But under small angles with the horizontal surface, it turns to shit quickly. :D
 
@AndyProwl: That damn wording "vote to remove answer"!!! Why on earth doesn't it say "really delete"? Could be so easy... :)
 
@DomagojPandža Why only the stairs?
 
user142019
daknøk wins again!
 
@StackedCrooked - I added an example to that question about boost.pp
 
@Borgleader Stairs are pretty regular shapes and remember how I said it had intense aliasing issues
with low angles with the POM-enabled surface? :D
 
9:49 PM
@DanielFrey Yes, I also found it a bit weird the first time ;)
 
Stairs are almost always at 45 degrees :D
(example, eh)
to the player
 
@Flexo It should be easy to generate the constants as well.
 
Nowadays, tessellation is the big brother of POM, uses the same data basically. :D
 
@StackedCrooked yeah, I'm assuming they're not so trivial in whatever the real example is though.
 
A heightmap and a normal map, you filter the data and extract geometry through hull & domain shaders
 
9:51 PM
otherwise you'd just generate everything at the point of use and forget about the crazyness
 
@DomagojPandža Oh I see
 
If you can guarantee that the player won't be able to get weird almost horizontal angles with the surface, POM is great.
 
I hope next gen games use tesselation dat closeup detail
 
Everything else fails hard due to the limited resolution which is... Well, finite. :D
 
9:56 PM
Meh.
 
Full command line access is so nice :)
Not sure which is harder. Writing a quine or writing a quine generator.
 
user142019
<3 represents a ballsack.
 
user142019
@StackedCrooked why not both at once?
 
user142019
(Btw a quine usually generates a quine—itself.)
 
damn, I need to implement destructors.
 
user142019
10:01 PM
Sounds fun.
 
@Zoidberg I mean a program that generates random programs and tests if they are quines.
 
@DeadMG gl hf. to us both I'll have to do that in a few months
 
@Zoidberg "usually"? Is there some other possibility?
 
user142019
Brute-force.
 
user142019
@JerryCoffin HQ9+ :P
 
user142019
10:02 PM
That's not really "generating". IMO.
 
Dear lord.
I wonder if they got permission for this.
 
Permission for?
 
This is a fan-made expansion of the game.
 
Oh o.O
 
Microsoft is also updating it!
 
user142019
10:12 PM
@StackedCrooked ooh multi-monitor.
 
user142019
Awesome.
 
hmm
I need to implement constructors, destructors, and lvalue/rvalue semantics all in one go.
this is going to suck.
 
Why all in one go?
 
because they interdepend on each other.
in an unfortunate fashion.
 
@EtiennedeMartel lol... nice
 
10:17 PM
I mean, I obviously can't construct things without destructing them, and rvalues are necessary to deal with temporaries...
 
user142019
How does a ctor depend on a dtor?
 
not destructing things you constructed is a really bad habit
 
user142019
Dtor doesn't need to be present for ctor to be working.
 
user142019
@DeadMG but you don't have to implement it immediately.
 
that's true, I guess.
to be more accurate, once those three are done, I can bootstrap my compiler.
 
user142019
10:20 PM
It's just a member function you call on end of scope or when exception propagates.
 
even though 99% of it will still be in C++, in theory, I can implement the bit that says "Go" in Wide.
 
@DomagojPandža I know this is supposed to be a joke, but yeah you can masturbate without hands.
 
user142019
You can masturbate with your arms.
 
@Rapptz How?
 
@StackedCrooked Depends if you're circumcised or not I guess.
 
Ell
10:27 PM
In what way?
 
lol tropico is on sale to take advantage of the Simcatastrophy going on
 
Takes advantage?
 
well fucking played to them.
 
Sales are usually planned for a while.
 
not Steam Sales.
 
10:30 PM
What makes Steam so different?
 
and if he's an indie dev selling just through his own website, say...
@Rapptz Because it's digital-only. The only thing you need to do is e-mail Valve and ask them to change a link to stick your game on the front page, and a float in a database to change the price.
you don't have to print signs, ship them to hundreds of retail locations, stick them all up at the same time, organize it so you're not over-taxing your employees....
 
Tropico's devs isn't an indie dev from what I gather.
 
one of the main advantages of Steam over other, even digital, distribution channels is that Valve have a phenomenal response time.
 
@DeadMG I guess it must be because I dealt with games that had a lot of localisations, but sales were still planned ahead of time due to other issues.
 
theyve been at this for a while so its not surprising
 
Ell
10:33 PM
Some of my friends are so stupid
 
@Ell Getting off on friction.
 
hmm
I wonder if Clang will die if I try to treat a primitive type like a class type by calling the operator overload mechanics.
oh well
 
user142019
Segfault! :D
 
@Zoidberg You joke, but Clang does that a lot.
 
user142019
I know.
 
user142019
10:36 PM
Clang segfaults even when you use unimplemented features.
 
user142019
Just like, "oh we haven't implemented this yet let's just dereference null instead."
 
o.O lolwtf
 
at least they don't corrupt memory
 
Why don't they just throw?
 
Clang authors can't handle the truth exceptions
or C++11 for that matter.
 
Ell
10:39 PM
I always forget how to throw and catch
 
user142019
wat.
 
try {} catch (...) {}
 
user142019
Throw by value catch by reference to const.
 
user142019
It ain't rocket science.
 
I don't even know how to try to throw or catch.
 
Ell
10:40 PM
Uh. "I have all these problems boo hoo" "let me try to help you, tell me about them" "no!" "okay" "okay, is that all you're going to say!?"
Geese. Stupid people.
 
user142019
@Mysticial yes, but you don't know C++.
 
Ell
@zoidberg I know, I just always forget :3 I have to look up every time xD
 
user142019
Noob.
 
Ell
I have to look up syntax sometimes too
Like lambda syntax
 
user142019
Use longjmp.
 
10:41 PM
I think it's almost the same between C++ and Java.
 
Ell
[]{ ... }
 
Java of course abuses exceptions.
 
user142019
@Mysticial Except Java has finally and C++ has RAII.
 
@Ell [](){}
 
user142019
[]()->T{}
 
Xeo
10:43 PM
\x -> ...
 
woo my std::unordered_map based vertex cache works ^_^
 
user142019
fun() -> … end
 
@Rapptz he posted an animated gif! get him!
 
aha. So you noticed.
 
user142019
10:45 PM
@melak47 Oh no my ancient computer from the 80's cannot handle it.
 
@Zoidberg Finally can be usefull even with RAII I gues
 
user142019
@Borgleader no of course not.
 
Why not?
 
user142019
What would it gain.
 
user142019
It would only lead to bad APIs.
 
10:47 PM
@Zoidberg allowed to throw exceptions.
 
@Borgleader I guess if your intent is to produce unreadable code and inflict pain on everybody who has to read or use your code, then yes. Otherwise -- hell no!
 
Ell
I love dark music
 
user142019
@StackedCrooked wat.
 
Ell
And fucked up music
And depressing music
 
user142019
emo.
 
Ell
10:47 PM
XD
Im Not an emo!
By looks anyway
 
@Ell You're not an errno?
 
Ell
I'm a sigsiev
 
@JerryCoffin I can't watch it in my country.
 
user142019
 
Ell
10:49 PM
I'm listening to "how to disappear completely" atm. That will be my next song though
 
@StackedCrooked Damn. Sorry 'bout that.
 
No problem :)
 
@StackedCrooked feels like I have to use a proxy for 70% of youtube vids I get linked to >_>
 
lol GEMA
 
Hm, my VPS is located in the US. It could be useful as a proxy :D
 
10:51 PM
I just use this thing
nope :p
@JerryCoffin is it me or is that not very dark and depressing and fucked up?
 
@melak47 Dark, but not exactly depressing. Fucked up I suppose depends on your point of view.
 
Ell
Hmm I cant plat that video either, probably mohile though
 
@StackedCrooked I ran it with -E to start with. Only sane way to debug Boost.pp
 
I'm bored.
 
@Flexo Indeed.
+ code formatter
 

« first day (874 days earlier)      last day (4083 days later) »