« first day (1205 days earlier)      last day (3746 days later) » 

12:00 AM
so my supper is a bowl of rice
 
Ell
@jerry I would use tabs exclusively for indentation
 
I would just like to share what happens when you use tabs: github.com/LaurentGomila/SFML-Game-Development-Book/blob/master/…
 
@Rapptz oh I love that guy
 
user3010322
@Rapptz s/when you use tabs/when you're retarded/ FTFY
 
Ell
12:01 AM
@thecoshman you'd never use tabs for alignment
 
@Ell you're right, I never would use tabs.
 
@ThePhD both are valid
 
@Ell So which is it? "tabs exclusively", or " tabs [...] then spaces [...]"?
 
@BartekBanachewicz This repo isn't actually Laurent's, he's just hosting it in his username for some reason.
 
12:03 AM
It's by some people on his forum lol
 
@JerryCoffin indentation and alignment
@Rapptz "his" forum
gah I remember SFML 1.5
 
@BartekBanachewicz Is it not his forum? He owns the domain name.
I don't get why you're putting quotes when ownership is clearly his
 
I don't think anyone owns his community
 
You're definitely misrepresenting.
 
Ell
@jerry tabs exclusively for semantic indentation, spaces exclusively for visual alignment. tabs always leading, spaces always trailing
 
12:04 AM
@Rapptz He's just arguing (incorrectly) for the sake of arguing, as usual. Ignore.
 
@Rapptz ignore me, I have a thing inside for that guy
 
@Ell tabs leading, spaces trailing, mess everywhere.
 
the opposite of mess. tight, finite, one-to-one semantic meta-information. glorious.
 
Ell
yes tomalak!
 
user3010322
 
12:06 AM
mess
lightmess
 
@Ell ... trailing white space? you mean redundant data? good job!
 
Ell
@thecoshman I meant trailing the tabs >.<
 
Am I the only person here that uses spaces but understands how people that use tabs do it?
 
12:07 AM
yes
 
user3010322
We sacrifice goats daily to the tab god.
 
Yes.
 
@Ell how can you align when you don't know how wide the tabs are?
 
Gottaberung.
 
Ell
@thecoshman I don't. I align with spaces
I indent with tabs
 
12:08 AM
You still should die for using tabs, but you fellow spacers are displaying a lot of ignorance.
 
user3010322
vOv
 
user3010322
Get un-shitty software that can customize your tabs.
 
@ThePhD Not the point either.
 
Ell
indent vs align, maybe we need to clear this up
I will draw a diagram tomorrow
 
or just stop using tabs vOv
any way, night
 
12:10 AM
@ThePhD But if you view the files online then you get tabs with 8-space widths. And that messes it up (often).
 
OK write your source with MS Word.
 
@StackedCrooked It doesn't.
 
user3010322
Then firefox should fix that shit.
 
no, it's unfixable
tabs can look differently by definition
 
8-space tabs look horrible, but that's a different issue.
 
12:10 AM
'One ruler to rule them all'
 
and exploiting the fact that they might look the same is just fucking UB
if you want defined, consistent view of code use spaces.
but what do I know, @ThePhD used Comic Sans for code so yeah
 
user3010322
Consistent view of code does not include the amount of indentation I prefer when I look at my code.
 
@ThePhD use git hooks to reindent if you want.
just don't commit tabs TIA
 
user3010322
Too late~
 
Fucktabberung.
 
12:12 AM
well in your code tabs are really the least of a problem
 
bully
 
Ell
@bartek but we don't want a consistent view!
 
Xeo
@R.MartinhoFernandes nah
 
Ell
I like my indents 43 spaces long. most people like 4. use tabs for each level, problem solved!
 
12:13 AM
That uses tabs.
Feel free to change tabs to another size.
It won't misalign anything.
 
OK, I might(!), be drunk, but it's amazing that tabSpace battles have sprung to life yest again.
 
Xeo
tabs for indentation, spaces for alignment. if they used tabs for everything, now that would be even more fucked up
 
eh, that's the idea
 
user3010322
@R.MartinhoFernandes ^ Fixed.
 
user1804599
12:15 AM
lol eight space indentation
 
but it's just idealistic bullshit
 
@ThePhD I have no idea what you did, except for removing important bits.
 
user1804599
I actually like that.
 
@rightfold Yeah - how wide are their displays?
 
@rightfold now go write xml with 8-space tabs
 
12:15 AM
@R.MartinhoFernandes I know how they (at least some of them) do it, but I also know what a complete mess you can get the minute you move from one environment to another--and every attempt at mixing spaces and tabs I've ever seen has resulted in almost comically awful results from at least one editor in every case I've ever seen (and usually awful results from essentially every editor).
 
user1804599
Eight-space indentation promotes code that is not too deeply nested.
 
^^^v^^
 
@rightfold lol, in a way.
 
12:16 AM
@rightfold You are drunk as well.
 
@rightfold lol
We should go for 20-space tabs then.
 
@sehe CD guy posted his full code. Wear goggles.
bool & Song::operator==(const Song & s)
{
    bool result = false;
    if (title == s.title && length == s.length)
    {
        result = true;
    }
    return result;
}
here's a free sample
 
user1804599
Eight-space indentation isn’t very doable in C++, though.
 
CD guy? I gotta look back now..
 
@rightfold That's what widescreen displays are for.
 
12:18 AM
@R.MartinhoFernandes :D
 
user1804599
But for Go or Scala it is very nice.
 
Xeo
@R.MartinhoFernandes *Wide screen displays
 
user1804599
And C.
 
Xeo
Wide promotes 8 space indent
 
user1804599
Styx forbids tabs.
 
12:19 AM
Styx also forbids being finished.
 
I guess 8-space tabs are OK as long as you always use single-char var names.
 
Xeo
@BartekBanachewicz ... I can ignore the code flow, but bool&? ugh
 
@BartekBanachewicz I won't :) I'm looking at this guys code:
Please review https://github.com/iamOgunyinka/tinydircpp Tinydir in C++11 PLUS a small cross-platform File Management library wrapper #cpp
 
user1804599
Only U+0020 and U+000A are considered whitespace.
 
It can't be worse... :(
 
user1804599
12:20 AM
@sehe Tell him.
 
if(a.is_open()){ //explicitly requesting if it is "openable"
I'm done here.
 
At least we have Boost.Filesystem.
 
@rightfold I'm on it. I massacred his interface. Now I'm fixing some of the implementation warts.
@Rapptz Of course. But this is /tiny/ - huge selling point, right
 
@R.MartinhoFernandes Yeah - WTF is 'openable'..
 
Boost.Filesystem is sadly? one of my favourite Boost libraries.
 
12:22 AM
Then I guess you have to check for 'closeable':)
 
@rightfold Dunno if you guys can see my review comments: github.com/iamOgunyinka/tinydircpp/commit/… /cc @R.MartinhoFernandes
 
lol, no namespaces.
 
Xeo
@sehe ...namespaces fucking where?
 
@R.MartinhoFernandes that too, fixing it. Will be one nice pull request
 
user1804599
 
12:24 AM
@sehe lmao every line
@sehe oh of course it will
delete filehandler.cpp
delete filehandler.h
That's the best pullrequest for this.
 
Xeo
ugh, so sleepy... g'night
 
Good night
 
That's not even the worst TU. Check github.com/iamOgunyinka/tinydircpp/commit/… I stopped writing review comments there. I figured I'd just fix things
 
@sehe how the hell did you find it?
 
user1804599
12:27 AM
Also, I can’t wait till clang-format understands lambdas.
 
twitter.com/meetingcpp retwote that. I consider unfollowing him
 
user1804599
Right now it sees []() as subscripting followed by a function call. :P
 
user1804599
So it does []() instead of [] ().
 
@BartekBanachewicz Then again, he retwote me too :)
 
user1804599
12:28 AM
@sehe @meetingcpp posts a lot of crappy things.
 
Yup
 
Anyone here have experience with blue/green deployment?
 
user3010322
... What deployment?
 
I hate that. It's giving c++ not a very good reputation IYAM
 
user1804599
@JohanLarsson Yeah.
 
user1804599
12:29 AM
I am very good at letting bread get blue and green. Then I deploy them to the bin.
3
 
@JohanLarsson what
 
I only deploy red.
 
anyway I should read GIS tutorial not chat here :F
 
> I'll take a look at boost.filesystem.
 
@BartekBanachewicz I have never used it, heard about it tonight. Think this is it.
 
12:30 AM
:S
 
hmm
QGIS looks cool
also the tutorial I am reading is one amazing tutorial
 
So.. kinda like how double buffer works?
 
I have no idea what the guy is trying to tell me but it's beautiful
@BoniTea gimme a second
 
user1804599
If I want to use Boost.MultiIndex with key/value pairs, should the type be std::pair<K, V>? Currently I just use two maps and the values are stored twice and there is duplication.
 
in JavaScript, Jan 13 at 15:36, by Miszy
@BartekBanachewicz Can you elaborate what is triple/double buffering then?
read from there
@ScottW PostGIS
@ScottW actually I am the noob now WRT what I want to write
 
12:34 AM
@BartekBanachewicz Sorry, I should've used the arrow thing. I was comparing double-buffer to the blue-green deployment thing.
 
@BoniTea zomg. orite.
uhh this software has 890MB
it better be worth it
 
user3010322
Ah~
 
user3010322
much compiler optimization, so template speed, much fascination~
 
user3010322
The good news is, it'll only get faster when I stick SIMD in it.
 
user3010322
For -2K lines of code and getting rid of one intermediate type altogether, that's a pretty good yield.
 
12:37 AM
yeah, how's your test coverage?
 
user3010322
Doesn't exist just yet.
 
much TDD
 
user3010322
Meh.
 
I thought tests should be written before the implementation.
 
@BoniTea you thought well
 
user3010322
12:37 AM
It should.
 
user3010322
But I'm doing this one... .. raw~
 
nah, you're just bad.
let's call things by names.
 
user3010322
Pretty much.
 
Ell
I love "Don't hug me I'm scared"
 
12:39 AM
@BoniTea The order is not very important.
 
user1804599
Hmm. std::unordered_set<std::unordered_set<int>>
 
Hmmm, I never heard the Ringbahn referred to as Hundekopf before. Now I cannot unsee it.
 
user3010322
I wonder.
 
@R.MartinhoFernandes ...and so you had to ensure we couldn't either!
 
user3010322
Do compilers make the 1 / x optimization for division operations?
 
12:43 AM
@R.MartinhoFernandes it kinda is
 
user3010322
Or has division caught up to multiplication in terms of speed?
 
user3010322
(for floating point types)
 
@ThePhD optimised how?
 
user1804599
std::accumulate with std::set_intersection and std::unordered_set<std::unordered_set<int>>.
 
12:44 AM
@Rapptz The general notion is that multiplying by 1/x is faster than dividing by x.
 
user3010322
@Rapptz real p = ...; result1 = [...] / p; result2 = [...] / p;
 
user3010322
/cc @Mysticial Any experience?
 
user3010322
@R.MartinhoFernandes Doesn't work on VC++ last time I checked, not available in Coliru. vOv
 
Requires relaxed floating point.
 
Not the point.
 
user3010322
12:45 AM
Unless somebody did porting work while I wasn't looking?
 
But yes, they do.
 
user3010322
@Mysticial Good enough for me. :D
 
Woot, another Necro badge.
 
@ThePhD Though that's an optimization that I tend to do manually.
 
12:46 AM
i can't connect to my postgres
 
user3010322
@Mysticial Same. But the problem is my template code is for both integers and floating point. 1/ [integer] is just gonna be 0 most of the time, so. vOv
 
user3010322
Have to leave it as-is and hope the compiler optimization kicks in.
 
That doesn't sound good.
 
EVENING
 
user3010322
Stupid VC++ making my shit non-pod and fucking up all my c-style initializations.
 
12:48 AM
@ThePhD calm down brother
 
@ThePhD ...or use std::is_integer<T> to control what code is used depending on the type.
 
Being a POD doesn't affect initialisation syntax.
 
user3010322
@JerryCoffin That requires writing detail functions, and quite honestly, I really don't want to do all that.
 
@ThePhD Can't say I exactly blame you for that.
 
Well, this is amazingly stupid. I managed to make a loop faster by delaying a couple of memory accesses.
*AMD processor.
 
user3010322
12:50 AM
@R.MartinhoFernandes It does for VC++. RVector<T, 3>, while having absolutely no constructors or assignment operators, has implicit constructors generated for it. The initialization syntax gets borked:
 
user3010322
rightplane.normal = RVector<T, 3>{
		- ( ViewProj.m14 - ViewProj.m11 ),
		-( ViewProj.m13 - ViewProj.m21 ),
		-( ViewProj.m23 - ViewProj.m31 ) }; // Nope
rightplane.normal = {
		- ( ViewProj.m14 - ViewProj.m11 ),
		-( ViewProj.m13 - ViewProj.m21 ),
		-( ViewProj.m23 - ViewProj.m31 ) }; // nope
 
user3010322
In short, VC++ is dumb.
 
lol
much masochism
 
user3010322
RVector<T, 3> has 3 float members. That's it -- it's got all the requirements of being a PoD, and GCC and Clang call it a PoD. But VC++? Nooooooooope.
 
ewww, matrix.m23 and such.
 
user3010322
12:53 AM
I can't wait to ditch this for MinGW on Windows and GCC for Mac/Linux.
 
@DeadMG lol, just noticed.
 
@ThePhD Try RVector<T, 3> normal = { ... }; rightplane.normal = normal;.
 
user3010322
@DeadMG Nope.
 
user3010322
I don't understand how VC++ expects me to construct this with no constructors, when it refuses to call it a PoD. Am I just supposed to magic something up?
 
# - Genetic Query Optimizer -

#geqo = on
#geqo_threshold = 12
#geqo_effort = 5                        # range 1-10
#geqo_pool_size = 0                     # selects default based on effort
#geqo_generations = 0                   # selects default based on effort
#geqo_selection_bias = 2.0              # range 1.5-2.0
#geqo_seed = 0.0                        # range 0.0-1.0
that's pretty cool
 
12:56 AM
show the definition of RVector<T, 3>.
 
user3010322
vOv That won't help much, but...
 
well
what's most likely is that RVector<T, 3> is only a POD/aggregate under the C++11 rules, and not under C++03.
so if you didn't give it a constructor, then you'll have to suck up whatever VC++ generated, which is typically just default/copy.
 
finally
connected
Postgres is a fucking fortress by default
 

« first day (1205 days earlier)      last day (3746 days later) »