« first day (1014 days earlier)      last day (3933 days later) » 

7:00 PM
Though that's probably something to plugged into mvn package.
 
I also need to teach my self what maven means by terms like 'target' and 'phase', though I really can't hold anything against maven for my own lack of knowledge, else I'll be ragging on all sorts of things :P
@CatPlusPlus true, but surely if all I want is to 'build the project' the command should be 'mvn build' and that is a command in our set up... but not sure what exactly it does...
 
Building is not packaging.
 
would you not consider the .ear a build output?
 
we've started using Maven at work as well
 
7:03 PM
It's a deployment package.
 
well, we also have a few 'modeules'
so the 'ear module' it makes sense for his 'build' to 'build the .ear file'
 
What Maven version are you using?
 
just like when we get to our internal packaging stage, we would take that ear and a few other things, and 'build' and internal package
 
I like how you're all using java
 
@CatPlusPlus no idea :P
 
7:06 PM
@CatPlusPlus I use apt-get for installing C++ libraries on my work machine
 
@StackedCrooked :L it has old versions; you should just build from source
 
this->template _do_set_many<Cols>(
what.
 
I use MacPorts at home.
 
@StackedCrooked Not the same thing, not portable, blah blah.
 
7:06 PM
@EiyrioüvonKauyf Boost is often old yes. The other ones I don't care about.
 
@BartekBanachewicz What what?
 
@CatPlusPlus It's for my machine!
 
@StackedCrooked also compile time flags :L
 
@CatPlusPlus how on earth what syntax is that
 
Template disambiguator.
Think typename but for templates.
@thecoshman I don't see "build" in mvn, actually, so that might be something your codebase introduced. :v:
Standard goals are clear: there's "compile" and "package".
 
7:08 PM
@CatPlusPlus came with some sort of jee 'acrhetype' ... some sort of 'use this to set up a project for you'
 
@BartekBanachewicz IIRC member function templates which belong to a class template require that syntax. (Or something like that.)
 
@StackedCrooked i don't think so ...? the this -> is implied no?
 
Yeah.
 
Xeo
@EiyrioüvonKauyf Needed if it's a dependent name in the base class
 
7:10 PM
How does "edit your original question" turn into "post a comment to my answer"?
 
@Xeo oh ahh dependent name
 
@LarryKwatchiewanna If you want help figuring out how to fix the error, you need to provide more information. Please edit your original question with the error message and the code that causes the problem. — Monad Newb 10 mins ago
 
dependencies suck
 
@thecoshman Also, install installs to the local repository.
 
7:11 PM
And then the OP continues a conversation in the comments.../facepalm
 
And the build cycle is linear, so you specify only final phase as a goal, and all intermediate steps get executed.
So you probably should just stop at package.
And be not confused!
 
I forgot what somebody told me when I asked how one could test a LAN game localhost.
 
damn, I just used reinterpret_cast
I feel kinda bad with it
 
It's probably broken.
 
@CatPlusPlus no, it will work all fine
I have a ton of static checks on my back
 
7:14 PM
If you need it you need it, no need to be silly about this.
 
Is that for GL's void* arguments?
Because you should probably use C casts there.
 
@CatPlusPlus actually it's for GLfloat* when I have std::vector<glm::vecx>
 
Xeo
@CatPlusPlus Eh, why C cast?
 
@CatPlusPlus ugh?
 
7:15 PM
@BartekBanachewicz I don't understand.
Those seem like unrelated types.
 
I think someone (Alf maybe?) said that reinterpret_cast is bad there.
W/e.
 
Xeo
@CatPlusPlus C-style cast just resorts to reinterpret_cast
 
@StackedCrooked glm::vec2/3/4 is a raw memory vector of 2/3/4 floats
 
Even if alignment is right, you are still breaking aliasing.
 
@StackedCrooked it's standard layout type
 
7:16 PM
Doesn't matter.
 
Xeo
@StackedCrooked You can alias standard-layout types through the type of their first member
 
The first members are the same?
 
float x, y, z; ?
 
Xeo
Problem might be with an array of those
With padding n stuff
 
I am fairly sure vector will squeeze them together
 
Xeo
7:18 PM
That's the implementation-side, but what does the standard say?
 
W/o standard, logical reasoning would be that vector won't add superfluous padding because it allocates byte-based memory
 
Xeo
Actually, what exactly is the expected GLfloat* parameter?
 
the alignment of the array will be the same as the alignment of float.
 
Xeo
Just one vector of N floats?
Or an array of N vectors of M floats?
 
@Xeo the array of dimensions 1/2/3/4 x N
but I think I can force some padding on it if I need to
I certainly can for pixels.
 
Xeo
7:19 PM
No, the problem is that you don't want padding
 
struct { float; float; padding; float; }; :D
 
Xeo
@BartekBanachewicz That just sounds weird. So if you did it as a normal array, it would be, for 3 vec3s GLfloat vecs[9] = { ... };?
 
@Xeo I mean I can adapt the GL read call to what's inside vector as long as I can determine what is inside the vector.
@Xeo pretty much, yeah
 
Xeo
That's horrible
 
raw C and ~performance~
well, actually performance does matter here
the stuff put there is copied directly to GPU memory in vast majority of cases
@StackedCrooked // so they are comfortable
 
7:22 PM
they keep the floats from sinking
 
the guy from OGLplus did it like that:
const std::size_t nclr = 5;
GLfloat colormap[nclr*4] = {
    0.4f, 0.2f, 1.0f, 0.00f,
    ...
};

Uniform<GLfloat>(prog, "clrs").SetVectors<4>(nclr, colormap);
I did it like that:
 const std::size_t nclr = 5;
 std::vector<glm::vec4> colormap {
     glm::vec4 { 0.4f, 0.2f, 1.0f, 0.00f },
     ...
 };
 prog.setUniform("clrs", colormap);
 
user142019
Time to install OS X again.
 
Xeo
As I said, really not sure about going from vec4* to GLfloat*
You might want to ask on SO
Or maybe @Mysticial knows
 
@Xeo for one vec4 it works certainly
 
Xeo
Yeah
 
7:26 PM
@rightfold why? didn't arch please you?
 
Xeo
And you likely won't get any padding with 3 floats, but in any case.
 
user142019
lol I haven't used Arch in like half a year.
 
@Xeo it's graphics-specific I think :(
@Xeo for vbos it works all right, but of course it's not a proof that it's correct
 
user142019
But Python is completely broken on my machine and I'm too lazy to fix it so I just reinstall OS X again.
 
@rightfold ..........lol just re install python
 
7:28 PM
that's often the best way
 
Also using gl. in C++ is kinda weird
I mean it can be funky because gl object has a context attached
but I still feel uncomfortable with runtime-indirect calls
 
Which do you prefer when declaring a long?
auto n = 0l;
auto n = 0L;
auto n = long();
auto n = long{};
long n = 0;
long n = 0l;
long n = 0L;
long n = {};
long n{};
 
long n{}; or simply long n = 0;
 
I tend to use auto n = 0L;
 
user142019
var n int64
 
7:31 PM
@StackedCrooked too easy to trop the L imho
 
I have not yet accidentally forgotten the L afaik.
 
long n = 0 is by 1 char shorted than auto n = 0L. :D
 
I forgot to list long n{0};
 
Xeo
long n = 0; for me
 
But if you always use auto then you gain a boost speed from habituation.
 
7:33 PM
hm, the oglplus guy is using unique_ptr
 
long n{} zero-inits?
 
he's not that bad, really
 
@Tuntuni yes
 
user142019
@StackedCrooked auto n = *new long{*new long{*new long{*new long{*new long{0}}}}};
 
@BartekBanachewicz it's his only redeeming feature
 
7:33 PM
Oh god.
 
@rightfold oh you!
Is scope killing your objects? Use new!
 
user142019
auto n = [] { return 0L; }();
 
@StackedCrooked are you aware of his creation?
 
@BartekBanachewicz Never heard of him.
@rightfold You need to eliminate duplication and write a recursive helper function. Silly.
 
user142019
Oh God, Jan Smit is on TV.
 
7:35 PM
long n = NULL;
nvm, just my connection
 
@Tuntuni That's not good.
 
@StackedCrooked ofc not :D
 
decltype(0L) n{};
 
Xeo
using N = Long<42>;
auto  N = long(42);
 
user142019
class LongFactory : public AbstractLongFactory {
public:
    virtual long createLong(long value = 0L) override {
        return value;
    }
};

std::unique_ptr<AbstractLongFactory> factory(new LongFactory());
long n = factory.createLong(42);
 
7:37 PM
asthma is bad for the long
 
user142019
Haha.
 
@rightfold needs more AbstractLongFactoryBean
 
user142019
Nooo! That might actually be useful!
 
user142019
Yay installing OS X now.
 
user142019
I should really get my a new desktop computer and two more monitors.
 
user142019
7:41 PM
Uploading 300 MB to Dropbox. 9 minutes left.
 
user142019
Why is this shit so slow.
 
Xeo
You can lift the uploading limit
 
Does you ISP have an upload speed limit?
 
hahahaha
 
@Xeo Bro, do you even lift?
 
user142019
 
it works!
(computed purely on GPU)(from the OGLPlus sample #5)(brought to you by GLDR)
 
user142019
@Xeo web interface
 
Awww yisss, I found the sdk code files for cryengine's type info mechanism for C++ types
let the learning begin
 
@Borgleader wasn't cryengine's code like extremely bad?
 
7:45 PM
Says who?
 
pretty much everyone who see that code?
 
Who's that?
 
Um, I dunno, do you think it's good C++ personally?
 
I just got into it
and its like 325 kloc so... it'll take me a while to form an opinion
 
Cryengine uses Lua so it can't be that bad
 
user142019
7:46 PM
> good C++
 
user142019
Hahaha.
 
@rightfold shut up, savage
@Borgleader anyway, wtf is "type info mechanism for C++ types"?
something like exposing classes to Lua?
 
@BartekBanachewicz Reflection~
 
Hm.
 
@ThePhD yeah that's what I fear. Would be yet another reason to stay away from that code
 
7:47 PM
Reflection is useful.
 
for what exactly?
 
Everybody uses it. Embrace the reflection. <3
 
no, not everybody uses it.
 
The two biggest engines in the industry use reflection mechanism and your takeaway from that is "better stay the fuck away because i think reflection is bad?"
 
and even if, that's appeal to authority.
 
user142019
7:48 PM
Reflection is useful for generating stuff.
 
12 secs ago, by Bartek Banachewicz
and even if, that's appeal to authority.
 
@BartekBanachewicz I use it daily.
 
@EtiennedeMartel in C#
 
@BartekBanachewicz I would probably use it in C++ if the language had reflection support.
 
@BartekBanachewicz Are you not ready to admit that maybe you are wrong and they are rright? Maybe?
 
7:49 PM
@Borgleader so I have no right to disagree with them now?
I mean, they are obviously right in a sense that they make great games.
That alone is a huge achievement and I won't even doubt it.
That being said, I have my own opinion on reflection in C++.
 
.. someone just asked if it's a bad idea to try piping 200gb ... wow
 
user142019
Piping from what to what?
 
Ell
Is there a way to get the name of a std::duration type?
 
a mysql dump to a gzip it looks like. on the same computer
 
0
Q: create a javascript that will automatically press an ok button on a window when logging onto an ip via a browser that opens a log on window

Todd TembeyI am trying to create a JavaScript/HTML/or C++ that will automatically press an OK button on a window when logging onto an IP via a browser. Basically, if I wanted to automatically log in to a site with a cookie filling in my username and password, the JavaScript would automatically press the OK ...

MY brains! Aarg..
 
7:51 PM
Oh you have a right to disagree you just make it sound like you know it was a wrong decision to use reflection.
 
Ell
actually I could convert it to seconds
 
@Borgleader also please note the scale difference. I have no idea about few hundred k game engines simply because I've never written one and it will be a long time before I do
 
user142019
Is it possible to reflect on namespaces in C#?
 
AFAIK, Unreal, Havok, and CryEngine use their own built in reflection.
 
user142019
I kinda miss package reflection in Go.
 
7:52 PM
I actually only learned of Havok's recently -- it's opensource nad on Github.
 
@ThePhD and all 3 of them are extremely huge
 
@Ell seconds is nice compared to everything else
 
@BartekBanachewicz Fairly tiny, actually.
 
@ThePhD excuse me?
 
I meant the reflection mechanism itself.
 
user142019
7:53 PM
@EiyrioüvonKauyf You realize that it doesn't put everything in RAM first, right?
 
It's... pretty tiny. :D
 
He was talking about the projects you nub :P not the reflection systems
 
@rightfold he's using python pipes; it buffers everything; it goes straight to ram
 
Oh.
Well, sure I guess.
 
@ThePhD oh, interesting. So it's using Clang's AST
 
7:54 PM
what is the max file size you can use before you start breaking pipes anyway
 
@BartekBanachewicz Yep, so it's a good example for me. :D
 
@ThePhD except you need probably a whole clang to build anything with it.
@ThePhD Also why don't you simply use it if it's opensourced?
 
It doesn't do quite what I want it to do.
It parses header files.
I'm parsing translation units.
 
@ThePhD using clang API?
@ThePhD and why is that bad?
 
Translation units are the actual place where types are made. Headers can be configured with #define's and #ifdef
 
7:56 PM
~/tmp $ Darwin() { echo "Yes darling?" ; }
~/tmp $ `uname`
Yes darling?
 
@ThePhD you can run preprocessor on them first, no?
 
Heehee.
 
@BartekBanachewicz You couldn't accurately tell what that was before you ended up at a translation unit
 
@Borgleader so all in all, probably overblown for small projects.
 
So you might as well do it by translation unit, no?
 
7:57 PM
@ThePhD I figure it might be harder to extract, but I dunno really
 
It is. D:
 
@BartekBanachewicz Depends how long it takes to implement it.
That's why I'm doing ~~research~~
 
@ThePhD aand, what you will do with all that information extracted from it?
@Borgleader well, you could use a ready solution in which time of implementation is 0. And what you would do with it? (the same question)
 
@BartekBanachewicz merge them into one database (to exclude double-pulls from types from multiple TUs) and then export that database (or make a specialization of reflection<T> for that class, to allow for compile-time(ish) reflection with reflect<Vector3> or something).
 
What would I use the reflection code for? IO for one.
 

« first day (1014 days earlier)      last day (3933 days later) »