« first day (894 days earlier)      last day (4058 days later) » 

11:00 PM
@ThePhD SCons.
I pushed the code I have now too. github.com/bananu7/LuaVM
 
Now compiles with stack overflow. Progress!
 
> Illegal class literal for the type parameter In
 
Ell
I'll take a look :P
 
@Ell beware, this code is serious dragons now
 
11:03 PM
@CatPlusPlus What language is that?
 
@BartekBanachewicz Dude you don't even have a goat sacrifice in it.
 
Apparently you can't get Class<?> from a generic argument because why would you want to do that
 
@R.MartinhoFernandes but man, it works! I am so proud.
 
11:04 PM
Aw, last time I solved the issue with a copy constructor taking T&. Can't do that this time.
 
@CatPlusPlus Generics are not reified, no way out of that. Just give up and try something else.
 
You'd think this would be easy to translate
 
@Rapptz omg that is out of control
 
@DogPlusPlus Well, I pushed the .user files... let me know if anything else breaks...
 
We need variadic template returns in C++.
NOW.
imagine the possibilities.
 
11:05 PM
Good thing I didn't use constructors in those classes
I can make myself a default one :toot:
 
@BartekBanachewicz Tuples?
 
@Rapptz ahahahah
 
can anyone recommend a good C++ book, specifically for graphics?
 
> Cannot instantiate the type Out
Welp
 
11:06 PM
@Crowz C++ and graphics have nothing in common. The latter is just one of the many possible applications of C++.
 
@Crowz like 3D or general
 
@JustinMeiners 3D
 
@R.MartinhoFernandes So I think I know how to do function returning something from C++ <3
 
inb4 terrible suggestion
 
@Crowz its not specific to C++ but OpenGL ES 2.0 programming guide is pretty good
 
11:07 PM
oh my god i am not going too sleep today
this is too awesome
 
user142019
"Good C++" and "graphics" rarely go well together.
 
Dude you need to get out more.
 
@R.MartinhoFernandes clap
 
@R.MartinhoFernandes NEVER. I must Code! Lua! AWESOMENESS
collapses from sleep and food deprivation
 
@Crowz are you looking for opengl or more 3D concepts?
 
11:08 PM
@Zoidberg cough
 
@BartekBanachewicz Are you playing NetHack?
 
user142019
@BartekBanachewicz Indeed! Never code Lua!
 
@JustinMeiners Looking for something for complete noobs that covers really any graphics haha
I can java, I can't C++
 
user142019
@BartekBanachewicz link me to a few tutorials or books that have both good C++ and graphics.
 
11:08 PM
Graphics are not for noobs.
Learn C++ first.
 
@Crowz hmm a good intro is videotutorialsrock.com - its fixed pipeline
 
Sorry for being blunt, but I think you do yourself a disservice if you plunge head straight into graphics.
 
but its a good intro
 
You can use JGL or how is that called
JWGL?
@R.MartinhoFernandes I can be a bit too passionate a bit programming
 
@BartekBanachewicz oh hey, nice
 
11:09 PM
I should play NetHack again.
I need to ascend a Tourist.
 
> error| use of deleted function 'annex::variant<int, double, annex::recursive_variant>::variant(U&&) [with U = int; int Index = 0]'
 
user142019
@BartekBanachewicz For Java? LWJGL?
 
I never deleted that constructor :s
 
@Zoidberg was looking for that word.
 
Why do you get pipes after error?
 
11:10 PM
Vim formats that.
> unit/recursive_variant.cpp|42 col 26 error|
Start of the line.
 
Oh WTF how did I not notice.
 
It's a result of option errorformat IIRC.
 
That thing.
 
note: 'annex::variant<int, double, annex::recursive_variant>::variant(U&&) [with U = int; int Index = 0]' is implicitly deleted because the default definition would be ill-formed:
using variant_detail::variant_base<T...>::variant_base;
 
Do carets mess it up, or does it work OOB with them?
 
11:13 PM
That's... new to me.
 
Also my friend just sent me a link for ordering free hardware SoC samples. University mail is useful sometimes. //cc @JerryCoffin
 
@R.MartinhoFernandes Whatever the errorformat can't deal with gets put on its own line starting with '||'. Which is ugly but doesn't mess it up.
 
To be honest I think I wouldn't mind carets much if errorformat just ignores them.
 
You can possibly set it up to remove them. I've already forgotten how that works, and I'm glad too.
 
@LucDanton My SAN score is currently too low to try that.
 
user142019
11:18 PM
 
What the hell is that?
 
A thing for silly teenagers who can't make their own bed
4
 
user142019
@Rapptz I'm lazy.
 
What would making your bed do?
It'll only be messy the next day!
 
oh
> Next batch shipping early 2014
so it's nice I actually registered earlier
 
11:21 PM
What's that?
New fangled drugs?
 
Is that that bracelet gimmick?
 
@Zoidberg I'd rather have what Mr. Burns has. His just drops into a hole and a new, perfectly made one comes out.
 
@Zoidberg Hells ya!
 
@R.MartinhoFernandes yep
 
11:23 PM
Somebody's having a stargasm.
 
I haven't written anything for my blog in a long time.
So long for discipline.
 
Well, time to sync and clone, yo.
 
lol, 'note: template argument deduction/substitution failed:'.
 
And nothing afterwards?
 
As usual. Well, to give credit it's been happening less and less. But still.
 
11:26 PM
Yeah, I've been having that one regularly. Luckily I am awesome enough to figure it out.
And then people don't understand why I want a TMP debugger.
 
Those seemingly non-terminating compilations I've been having are a good example, too.
 
@R.MartinhoFernandes: How can you debug something that is not sequential but declarative?
 
What I don't get is the forward-rendered version is perfectly fine.
 
@wilx Yeah, I get that one often. Do you think when people write Haskell they are just left in the dark and it is impossible to debug?
(Hint: it isn't)
 
@ThePhD That's because you're doing the deferred rendering version terribly wrong. :D
 
11:28 PM
@R.MartinhoFernandes: Well, I have never seen a Haskell debugger. It is at least hard, if not impossible.
 
Prolog has debuggers too.
 
@DogPlusPlus Really?
 
Prolog is not declarative though.
 
@wilx No, it is not. BULLSHIT>
 
So, best_match</* stuff*/>::type::value compiles but using BestMatch</* still the same stuff */>::value leads to SFINAE. Even when checking the alias by hand does yield a result. Go figure.
 
11:28 PM
@wilx WAHT
@wilx Ever heard of GHCi?
 
@R.MartinhoFernandes It's shitty though. I mean... if youre talking about that step through verbose shit
 
That's an Haskell debugger.
 
@R.MartinhoFernandes: I know GHC and GHCi. I have just never seen it as a debugger that can step through the evaluation.
 
Hmm, that's new.
 
11:29 PM
Words fail me. Let's not have this conversation again.
 
Ell
A Haskell... * ?
 
@wilx It's at least as old as since I started using Haskell (2004).
 
Ok. :)
I have not been using it that much beside one feeble attempt at coding LZW compression in it.
 
@ThePhD Everything. I didn't even see you have a clear shader. You do know that DX clears them automagically with the CPU command to clear the backbuffer before rendering (unless hardcorely told otherwise)?
Depth needs to be used as a shader resource, not extrapolated manually. :D
 
Is there a GHCi debugger tutorial anywhere?
 
11:31 PM
..... Yep.
That's what I get for following fucking tutorials.
I hate the internet.
Fuck theinternet.
I'm going to read academic papers only from now on.
People tell me to do fucking retarded shit, and I'm retarded too! Why? Because I listen to these dumb shits because I THINK THEY UNDERSTAND WHAT THEY'RE DOING
 
@wilx Dunno, sorry :S
 
"Write your own clear shader. Set the variables this way."
 
Yay, compilation. And stack overflow.
 
People tend to write a lot of shit. That's why puppy started the Codepuppy tutorials and that's why I should start writing on rendering.
 
WELL, FUCK YOU MEDIOCRE INTERNET BLOG-TUTORIAL FUCKERS, FUCK YOU.
 
11:32 PM
@BartekBanachewicz : i use std::vector now + initialisation. works lot better than using a "len" property or sizeof(array) / sizeof(array[0]). thanks !
 
user142019
Maybe more like a reference but yeah.
 
user142019
@tigrou hit arrow up key to edit messages.
 
@ThePhD But, the idea is solid. For a beginner, you've managed to hack something interesting together. ^^
 
Haha, he just called you a noob.
 
11:34 PM
I pretty much am a noob.
 
It's well established.
 
Oh. Did I miss something?
 
There's no way around it. I have no books, and I survive off internet tutorials and sheer bruteforce of finger typing alone.
I'm surprised I made it this far myself.
 
The key is to not give up. :D
 
Are there any good DX/OGL/3D/games/whatever books?
Or is that landscape just like C++'s?
 
11:35 PM
@R.MartinhoFernandes Not really, most cash in just on the name and give you beginner bullshit. :D
Sometimes they put in ADVANCED DIRECT3D in the title.
 
It's okay ThePhD, you're doing good.
 
Ell
There are like 3 good ones I can gather
Only one OTOH is open.gl
 
@DogPlusPlus And crappy beginner bullshit, lemme guess.
 
I only know of like 2 "good" books.
e.g. Game Coding Complete I heard was good.
 
How does this sound, @ThePhD, instead of fixing (rewriting, more like :D) this trainwreck, how about I write up on deferred rendering after I finish puppy's website? With some nice source that does what it's supposed to?
 
Xeo
11:37 PM
WTF
Did you guys see the "RaiiCaps" "proposal"?
 
hahahahahahahahhaahahahhahaahah
 
Ell
Nope
 
hahahahahahahahahhahahaha
 
Link?
 
hgahahahahahahahahahahhahahaha
Sorry, but it's just that funny.
 
11:38 PM
RAII COPS.
SEASON 0
 
I mean, it's not meant to be serious, right?
 
Xeo
I find the state of mind of that poor sod more sad than funny.
 
I can't find it :(
 
I want in on the joke too.
 
user142019
@Xeo no.
 
Xeo
 
user142019
Congratulations.
 
Apparently gdb points me to the using decl. for the inheriting constructors when I inspect that stack overflow :/
 
user142019
You have mismatched parens in your very first sentence.
 
user142019
And you misspelled RAII.
 
user142019
Makes a very good impression, yes.
 
11:40 PM
@Xeo Whoa.
That's almost as bad as that Java-like C++ thing I saw.
 
template <typename T>

class raiicap {

  public:

    friend int main(int,char **);

  private:

    raiicap(){}

};
So. Much. Win.
 
user142019
@Xeo HHAHAHHAHAHHAHAHHAHAHHAHAHHAHAHHAHAHHAHAHHAHAHHAHAHHAHAHHAHAHHAHAHHAHAHHAHA
 
@LucDanton Bad GCC.
I admire Jason for trying to talk sense into any and all of these... proposal authors...
 
Xeo
I'm kinda sad that there's no discussion on my proposal. :<
 
user142019
Let's start one!
 
11:43 PM
@Xeo noone understands it
 
The really good proposals don't need discussion. It's an 'of course, we've should have done it that way the first time around' kind of deal. So there!
 
@R.MartinhoFernandes s/James/Jason/?
 
Oh, right. Sorry.
 
@tigrou :)
I admire him for many things.
 
Jason is Nicol Bolas?
 
11:44 PM
WE know.
 
@DogPlusPlus I guess... I don't know. I'm not sure what I'm even doing anymore. =/
 
Xeo
@LucDanton heh
 
You have posters of him in your bedroom.
We know.
And probably worse.
 
@R.MartinhoFernandes You were supposed not to tell anyone!
 
11:44 PM
@ThePhD You get way too easily discouraged. :P
 
user142019
@R.MartinhoFernandes sex doll.
 
anyway, one day I will top him.
wait, that sounds wrong
 
Freudian slip.
 
fuck.
that sounds wrong too.
 
No need to be that explicit. We understood.
 
11:45 PM
ADSAASFAADFASD
 
@DogPlusPlus I dunno.
I feel horrible.
I'm just gonna go bury my face in some water.
 
Xeo
room topic changed to Lounge<C++>: Stealing your context since 2009. [c++] [c++11] [c++-faq] [no-helpdesk]
 
@Xeo poor Xeo.
 
@ThePhD First you need to .inl -> .cpp your code.
 
BestMatch<variant<int, recursive_variant>&, list<int, variant<int, recursive_variant>>>::value == 1, how do I dig myself out of this?
 
Xeo
11:47 PM
Special-case recursive variants?
 
Previously I had a copy constructor taking variant& that was preferred over the converting constructor.
 
Hmm.
isNFKD(x) implies isNFD(x).
 
@DogPlusPlus you can count me in as subscriber
 
But now I rely on the automatic declaration of special members. So that they get not declared/deleted when it makes sense (e.g. variant<const int> has no move assignment op).
 
Or maybe not. I should ask.
 
11:49 PM
@R.MartinhoFernandes spot on.
 
Amazing, I don't have DisableIfRelated.
 
@ThePhD But I just can't get over it, how did the .inl thing propagate through your codebase? The way to structure an engine, or any bigger project for that matter, is to separate source code into a workable structure. Rendering, Math, Networking, Scripting, Resources etc. The Header / Resource / Source structure is not really suitable.
 
in Lua C++ API project, 2 mins ago, by Magtheridon96
currently, it's a Singleton used for loading sprites, textures and images
I leave it in your hands
Good night.
 
Well
This is awkward
 
Ell
xD
 
11:54 PM
So, if I have class Graphics with all static methods used for image/texture/sprite loading, what should I change it to?
 
a namespace?
 
A proper design
 
lol
 
user142019
@Magtheridon96 Wat. Why is that a class.
 
user142019
Make it a namespace.
 
11:55 PM
Alrighty.
 
Also, if it has all static member functions, it's not a singleton, just a collection of static functions
 
user142019
This isn't Java.
 
Since singletons get a lot of (fully justified) hate, it pays to know when something is actually a singleton :)
 
It's a first-class namespace
Sometimes those are handy
(Not in this case)
 
It compiles and runs. Some tests fail.
 
11:57 PM
Oh! Oh! Oh! You guys have to see what they expect us to do in a second year of programming course.
 
@LucDanton delete the failing tests. If it compiles, it works!
3
 
Well I have been doing that.
 
Purge the history, pretend to not know anything, whistle innocuously
 
Oh right. The failing tests are due to changing the rules of initialization. As planned.
 
Question posed. Time to slack.
 
11:59 PM
I think I wrote like 1000 LOC today without testing anything yet
 
@CatPlusPlus Traits/policies, mostly.
 
But it compiles!
Not that it's hard to make Java compile
@R.MartinhoFernandes Yes
 

« first day (894 days earlier)      last day (4058 days later) »