« first day (1598 days earlier)      last day (3345 days later) » 

11:03 AM
@thecoshman vs what?
 
"You should debug your code by yourself" immediately followed by you instead debugging it for him... — Lightness Races in Orbit 5 secs ago
 
user3010322
@R.MartinhoFernandes I got a couple of compiler errors and just lost all hope; didn't even bother reading them, just closed out and said "that can wait until RTM".
 
@ThePhD Yeah, I'd probably do the same.
 
btw ThePhD
Why are you referencing a JSON library in a Lua library?
 
user3010322
11:18 AM
@Rapptz Because when it was pointed out to me it gave me the idea of "that might be how we get basic table iterators".
 
I remember discussing it before
Oh now I remember the issue.
 
user3010322
My only fear, really, is that it won't exactly fit the semantics that iterators require (e.g., separate ++ and if ( it != itend ) semantics), since it's a single function that does both.
 
No the problem is
auto v = *it; // ?
 
user3010322
@Rapptz std::pair<????, sol::object>
 
user3010322
Much like std::(unordered_)map
 
11:21 AM
see bad idea
it's either string or integer keys and it can be both
 
user3010322
Maybe a new sol::key type?
 
user3010322
Which is basically sol::object specialized for string/integer ?
 
bad plan
besides table iterators suck for other reasons
like the actual iteration
if you mix and match string/int keys you're fucked up
and probably some other gotchas I forgot
 
user3010322
My only goal, really, is for ( auto kv : my_table ) // lua: for k, v = ipair(mytable)
 
yeah and ipair sucks.
 
user3010322
11:23 AM
vOv That's what the users have.
 
How about despair
 
doesn't make it any less shit
 
user3010322
Well, at the base since we're dealing with a dynamic language the key is a variant<string, int> and the value is a sol::object. After that... there's not much I can imagine that'd make the API better.
 
> x = { [1] = 1, test = 'hello', [3] = 4 }
> for k, v in ipairs(x) do print(k, v) end
1       1
 
user3010322
You can maybe make it slightly better by doing table_iterator<key, value> and have it skip elements that don't match the key or value type, but...
 
11:26 AM
So what do you guys develop with, sublime+gcc?
 
user3010322
@ParkYoung-Bae QtCreator for not-VC++, VS for VC++.
 
@ParkYoung-Bae lol
 
user3010322
But sometimes I just use the command line and notepad++.
 
@ParkYoung-Bae Notepad+++GCC
 
user3010322
And I'm also trying to learn Vim too.
 
11:26 AM
@ParkYoung-Bae That'd be me alright.
 
I could not close tabs on firefox, how do I know whether I am hacked
 
And tab indentation, of course.
 
user3010322
QtCreator's debugging experience has me sad, though.
 
> for k, v in pairs(x) do print(k, v) end
1       1
3       4
test    hello
 
Minutes spent so far waiting for colleague to answer the question 'in release or debug?': ||||
 
11:27 AM
@JerryCoffin Tournament ended and I didn't win, but it seems I showed enough prowess to get invited into the serious leagues. Yay.
 
user3010322
Lots of little things in even VS's C++ debugger than it just doesn't do.
 
@ParkYoung-Bae vim+whatever, primarily GCC. All sorts of stuff at work, including VS when it gets so bad no one else can handle it.
 
Fucking shitellisense pulling errors out of its ass when everything compiles flawlessly
 
I wanna mess with libclang one day
 
There we go - reason for his thinking my fix didn't work has been discovered
 
11:29 AM
Thanks for your answer ... the problem is that have to use raw pointers ... It is an old code I cannot change ... — thamurath 1 min ago
Lol. Look at that edit the OP made
 
user3010322
@ParkYoung-Bae Right?
 
Turns out he was checking out some unrelated branch, not trunk. And the revision was one before the fix was committed.
Just... why...
 
user3010322
The best part about it is, Intellisense uses a different compiler to run its tests.
 
user3010322
Literally, the Intellisense team made their own C++ compiler to do shit.
 
Literally shit
 
11:30 AM
Intellishit
 
Alright
 
user3010322
(I think these days they borrow bits and pieces from other places and maybe even clang now)
 
@LightnessRacesinOrbit use git (?)
 
@R.MartinhoFernandes What version of GCC, out of curiosity?
 
11:30 AM
It's time for my departure.
 
@ThePhD Yeah and sometimes it disagrees with the VS compiler
 
user3010322
Baaaaii.
 
1 min ago, by Park Young-Bae
Fucking shitellisense pulling errors out of its ass when everything compiles flawlessly
 
See ya at 4 PM EST maybe.
 
@ParkYoung-Bae vim+gcc
 
user3010322
11:30 AM
@LightnessRacesinOrbit It does: I have to turn off the intellisense compiler/intellisense errors all the time.
 
"I dont know how to access it because when I type '->' VS2010 doesnt offer any members or methods." Sigh. IDEs. They encourage you to rely on "intellisense" instead of developing some sense of your own. :( — Lightness Races in Orbit Aug 26 '14 at 16:33
 
@ParkYoung-Bae nice
 
Also I like how my SO profile is the first Google result for intellisense "lightness races in orbit" site:stackoverflow.com. It's like I'm famous or something.
 
Thank you.
 
11:32 AM
I want to buy myself a new toy
inb4 no not a sex toy
 
inb4'ed
 
yes, a sex toy
 
"inb4" defeated
 
I'd like to buy a mixer
 
@ParkYoung-Bae At work I have free rein to update at a whim, so I use the latest. Elsewhere, it varies. On my hobby dev machine I have a 4.8, a 4.9 and a 5.0. I use 4.9 (the latest stable release) as a default, but test on 4.8 and 5.0. For nonius, 4.8 is what I chose as the minimum requirement, so I keep it around for that.
 
11:33 AM
inb4 no not a kitchen mixer
 
you're using inb4 wrong wtf
 
"inb4" circumvented
he's using "inb4" literally 100% the opposite of how it's supposed to be used
which is amusing
 
@AlexM. better safe than sorry
 
@LightnessRacesinOrbit ikr
 
11:33 AM
but now you're neither safe nor sorry
so how does that work
 
@BartekBanachewicz Please read the inb4 manual
 
inb4 there's no manual.
 
It ships with libinb4.so
Sometimes I change a little thing and forget to commit it and continue and whoops [54 files modified]
 
hm and I could buy a speaker with that mixer
 
Cue shitty commit messages
 
11:36 AM
yeah
No, cue untangling your modifications into separate commits
that's a lot of "Copy of" files in your WD :D
 
@LightnessRacesinOrbit like a willing victim?
 
I always feel weird shopping for things I don't need
 
$ git commit -m "Things WIP"
 
TortoiseSVN has a nice "restore after commit" feature to do that but I'm not sure how much I trust it so
@BartekBanachewicz Don't do that then.
@chmod711telkitty Asking for it, really
 
forgot -a?
 
11:37 AM
forgot yum uninstall git; yum install svn;
 
No you still add files manually but the message is very light
 
user3010322
I need to work on my commits.
 
"First of 54 changes I've forgotten" ?
 
user3010322
They're still pretty hugecakes. ;~;
 
@LightnessRacesinOrbit git stash save --keep-index is nice for that kind of stuff.
 
11:37 AM
@R.MartinhoFernandes Prefer to retain control in those circumstances
That may be irrational
 
Also staging hunks
 
@LightnessRacesinOrbit Oh, it doesn't do the restoring automatically. You still need to stash pop things after the commit.
It just puts away the unwanted changes for a while.
 
user3010322
The first time I made a git stash was for harfbuzz.
 
@ParkYoung-Bae Oh yeah, that also helps a lot.
 
user3010322
The original dev is probably never going to look at the changes I made for a clean harfbuzz build.
 
user3010322
11:40 AM
Maybe I'll have better luck with the freetype devs, but honestly I'm not sure how to fix the code they've written in a style the freetype devs would like...
 
@ParkYoung-Bae Oh, yeah, I also have a 4.1 release installed for some reason.
 
user3010322
It's some error about unreachable code since the code that'd get to the next bits is off behind a #ifdef
 
Just ignore warnings on freetype code?
OH RIGHT VC++ SUCKS
 
Dec 1 '13 at 22:41, by Lightness Races in Orbit
git is cloud bullshit.
I'll just leave this expert opinion here
 
user3010322
I actually probably could, but I'd much rather it compile cleanly.
 
11:42 AM
@R.MartinhoFernandes For the rainy days
 
mmm new Behringer mixers are pretty cheap
 
@ThePhD No, you don't.
 
user3010322
Behringer?
 
user3010322
@R.MartinhoFernandes I, uh. I don't?
 
It's not your code.
 
11:43 AM
@ThePhD it's a company known for producing shitty hardware with really nice prices
 
You just want it to compile.
 
I have a mixer - a food mixer
 
where by nice I mean that products comparable with features cost 4x less than mainstream
 
@BartekBanachewicz Finally you understand
 
It's hell as a library developer to anticipate all stupid warnings and warning workarounds for all compilers. Sure it would be nice if it didn't produce warnings, but unless the warnings actually indicate bugs, it shouldn't affect you in the slightest.
After all, if the warnings are false positives, code that compiles cleanly will be equivalent to code that produces those false positives.
But VS sucks and you can't ignore warnings from third party code, so I don't know.
 
user3010322
11:46 AM
I can put some "disable warnings" in the project files, and that should cover it I think.
 
user3010322
I already have an ignore on warning 4001
 
@R.MartinhoFernandes You have to wrap the includes in pragmas or something
 
user3010322
Annnd, there. Clean compile.
 
@ThePhD Doesn't always work, though. There are non-contrived scenarios where it is simply impossible in VS to shut up the warnings without also shutting them up in your code.
@ParkYoung-Bae Nope, not good enough.
 
user3010322
@R.MartinhoFernandes I actually have some inline includes for shutting up some errors
 
11:49 AM
19:50 I'll go home
Bye~
 
hmpfh now I'm tempted to buy a 4-mic one
for whatever reason other than "it's €5 more"
 
    #pragma ignore warning blah blah
    template <typename T> void f() { this_warns(); }
    #pragma don't ignore warning blah blah

    int main() { f<int>(); } // haha, warning triggers here
> Cock forging with hammers would be the bomb.
 
user3010322
@R.MartinhoFernandes Huh, that's really strange. I don't think I've ever gotten that before!
 
@ThePhD It's a direct consequence of no-2-phase lookup, I think.
 
user3010322
@R.MartinhoFernandes Can't pre-generate code with warnings ignored if you don't even look at what's inside the template! :D
 
11:53 AM
Oh, yeah, and putting the #pragmas inside the template doesn't fix it, in case you were wondering.
 
user3010322
template <typename T> void f() { ASDF NOT VALID C++ SYNTAX 💩 💩 💩 💩  } // compiles cleanly. :I
 
user3010322
@R.MartinhoFernandes I have some code that has some inline warning exclusion inside a templated struct; maybe it only works in that case (but it's not for the functions, only for the declarations).
 
user3010322
Something about ThreadedTileTracer<16, 16> crashes VC++'s compiler...
 
user3010322
Well, whatever, I didn't need to use my raytracer anytime soon anyways.
 
user3010322
Single-threaded raytracing is good enough for anyone anyways right ;~;
 
user3010322
12:05 PM
PFFFFF WAAHAAHAAA
 
user3010322
MY FONT RENDERING WENT TO SHIT
 
user3010322
I dun goofed somewhere.
 
looks like Japanese
 
What about source and target vertices properties ? — KHALDOUN Mohsen 28 mins ago
Sure. So the question reads "I want to copy the first edge with her properties from dataG.front(), and add it to testg" and that is totally the comment. <mind blown>
 
#pragma just fucking do it
error: I can't do that, Hal.
 
12:17 PM
Hahaha. tDWTF is very nice w.r.t. back stories
> Between national-level exams being leaked by putting them in an unprotected folder with directory listing turned on
> the Social Insurance department buying 130,000 floppy disks in the year 2008
You're doing it again. — sehe 12 secs ago
Fuck that OP now. I'm not gonna look at his ramblings anymore
 
12:28 PM
2
Q: Some const char * are unavailable at compile time?

PaperBirdMasterLet's suppose we have a template function with non-type parameter of const char * like this: template <const char * MESSAGE> void print() { std::cout << MESSAGE << '\n'; } Using this template wouldn't be a problem as log as the MESSAGE can be deduced at compile-time, so the following uses ...

inb4 it looks like an interesting question folks, take a look
/cc @LightnessRacesinOrbit
 
inb4 /cc @LightnessRacesinOrbit
god damnit
 
@Jefffrey already downvoted, probably a dupe of what's the difference between const char[] and const char*
 
user1804599
awesome
 
user1804599
immutable DOM master race
 
user3010322
12:37 PM
 
user3010322
@AlexM. I fixed it. :D
 
not Japanese anymore :(
 
user3010322
Nope, it's not.
 
@ThePhD you need some diffuse walls in there
 
user3010322
@orlp NEEVEEER.
 
12:39 PM
it will makes your balls look a lot prettier (heh)
 
user3010322
I plan on rewriting parts of my RayTracer
 
user3010322
But that day is not this day.
 
Wow, it seems nobody has answered the question yet.
(Integer) -Integer looks to me like the compiler could interpret the first Integer as either a class or a variable. — user2357112 May 7 '13 at 7:08
lol, that's the comment I meant to post.
It seems Java is even weirder in this respect than C. That is, even if you declare a variable named Integer, that variable name does not seem to unconditionally shadow the type name.
 
@FredOverflow I didn't think java allowed nameshadowing at all?
 
@FredOverflow you mean Integer Integer is legal?
why wouldn't it be?
 
12:48 PM
@Mgetz Not within the same method.
 
are you telling me that I can do int int = 1; in java?
 
Integer Integer = 1;
Integer foobar = 2;   // You can still use the name Integer as a type name here
@chmod711telkitty No, because int is not a valid identifier in Java. It is a keyword.
 
@FredOverflow nothing weird there
 
12:55 PM
I often give instances the same name as their type in C#
class PartyCharacter
{
	...
	public Stats Stats { ... }
	...
}
 
user3010322
Stiggity Stats.
 
hhhmmfph
those cheap mixers don't have XLR out
 
and considering I want to use powered speakers most probably.
 
wtf is this?
 
12:58 PM
@Borgleader MVVM?
 
@chmod711telkitty looks like Eclipse
@Jefffrey model-view-viewmodel
(almost-wannabe-FRP)
 
@BartekBanachewicz what you need it for? grounding or phantom?
 
@sehe grounding
 
yeah. Cheapies not gonna fit the bill
 
I am totally like mindwanking over the things I could possibly be doing with those
 
12:59 PM
How many combinations can you write with Model, View and Controller?
Jesus
 
@sehe so the max I can get out of those is home studio.
 

« first day (1598 days earlier)      last day (3345 days later) »