« first day (1765 days earlier)      last day (3197 days later) » 

user1804599
2:01 PM
 
Finally making a game?
 
user1804599
Yes! :D
 
user1804599
if you walk over the two buttons, the door opens
 
Meh Sunday already
 
user1804599
I should find better sprites.
 
2:04 PM
@Borgleader Err, I meant enums, for OpenGL.
 
You should take a look at the OpenGL header file sometime :p
@elyse If you're never going to distribute the game just steal the art from somewhere else
also opengameart
 
woop woop, live shader recompilation is a go :)
 
@Prismatic I'm too young to see such potential horrors.
 
Im actually curious to see if the khronos initiative with all the open standards stuff takes off
 
2:11 PM
@Borgleader Making an engine?
 
Not really, just want something that I can tinker with
Also, not having to restart the application to recompile a shader is such a time saver
 
Live shader compilation sounds great.
 
2:35 PM
@Nooble Can you see this ?
 
@Borgleader Yes.
 
@MohammadAliBaydoun shadertoy.com/view/XtlSD7
SFW and more impressive
 
@Borgleader What do you think you're doing with the default ST3 theme?!
 
@Nooble That is not the default theme, I'm using Seti UI/Seti Syntax
 
2:42 PM
@Borgleader Really? Looks like monokai.
 
@Borgleader What happens when compilation fails? I'd be scared to hammer the driver with multiple shader compiles that fail
 
Ah.
Needed to turn up screen brightness.
 
@Nooble Really
@Prismatic I... haven't handled that yet :P
12 hours ago I didn't even have a working file watcher, and I slept for 8hours in that time period so :P
 
did file systems get into c++17
 
@Borgleader How can I create a game like that?
 
2:47 PM
@user3002233 Thats not a game, the just a shader, and the code is on that very page
 
@user3002233 Through suffering.
You must be the API.
 
@Prismatic They are in their own TS.
I guess that they will pick a bit before standardization which TSs will make it into C++17 and which ones won't.
 
I can't wait for C++20.
They will fix variadics.
 
just use boost::fs alreeady
 
@Nooble Which means?
 
2:52 PM
is it header only
also pretty much every time I've tried to use boost it brings in half the library
with the notable exclusion of asio which has a define you can set to use c++11
 
@Morwenn All of the koalas will be happy.
 
@Prismatic Hey, at least they made small modules with the most frequently used small utility features (was it last year?) and began refactoring some parts of the libraries to use them.
 
did they? That's good I guess. The only thing that was fairly self contained outside of asio that I remember was the unordered_map/set containers. Those things saved my butt when I had to port something to a platform that didn't have c++11 support
 
They introduced Boost.Assert and Boost.Core in 1.56 and made some effort to greatly reduce the dependencies in of Boost.Intrusive and Boost.Container in 1.58.
Of course, many things still rely on many parts of the library. IIRC there was a dependency tools to analyze the dependencies in Boost.
 
I'm kinda surprised at how much stuff boost has in general. They don't have any significant funding do they?
 
3:04 PM
They incorporate 3rd party libraries.
Then refactor when too many modules use the same tricks and make another library out of that.
Also, they sometimes implement the library classes proposed to the standard.
So, well... of course they end up with many things.
 
Ell
@Prismatic why do you want header only?
 
usually trivial to add to a project
 
Ell
Laziness then? ;)
Adding linker flags is pretty easy
 
Header-only Boost libraries avoid having to use bjam.
 
Compiling, packaging and using shared or static libraries is either easy as pie or nightmare fuel depending on the platform.
 
Ell
3:10 PM
If you already have boost installed its really easy
If you don't then its only very easy
 
Unless Windows + MinGW.
 
Yeah, its not really that fun trying to get boost (or anything) to compile on mobile platforms either
 
Ell
There are binaries for that right?
Hmm mobile platforms that's a fair point
Nothing is fun on mobile :L
I even.failed to get scala to work on android :(
 
That's because Android is really a huge joke by the devs to see how horrible they could make it until people would just give up
 
@Borgleader ThePhD lives :o
 
3:14 PM
@ThePhD Hi.
 
@melak47 Oh shit :O I hadnt noticed that
@ThePhD <3 <3 <3 <3 <3 <3 <3 <3 <3 <3 <3 <3 <3 <3 <3
 
Someone's trolling
 
ThePhD isn't even here.
 
he could be lurking with a smurf or anonymously
 
3:16 PM
Maybe.
 
Why did he leave SO in the first place? :/
 
No one knows.
 
no clue
 
@Marco I finally know how you fuckers do the indirect branch thingy
 
When people leave, they disappear quietly.
 
Ell
3:18 PM
I think he just got bored
He only comes here to vampire now
 
@MaiLongdong What is that 0_o
 
Nvidia's patent on indirect branching on GPU
 
That sounds complicated.
 
If they bothered to file a patent it probably is... actually Apple had filed a patent for slide to unlock so nvm that =/
 
Whats a good name for a class that creates, destroys and controls access to a set of things by type. Like NameOfClass<T>
Manager is obvious
 
Ell
3:22 PM
I can't decide how i feel about patents
 
Software patents suck
 
@Prismatic vector?
 
Ell
@Prismatic "controls access"? Can I see API example
 
@MaiLongdong I know how to make efficient railroads in factorio instead
 
3:23 PM
@Prismatic obvious but terrible
 
Yeah its basically a vector but the underlying implementation is up to the class. It could be an array a linked list or whatever. And for obvious reasons I don't want to use 'vector'
 
collection
 
@MarcoA. good job
 
@Prismatic so its a container of T then?
 
Ell
3:24 PM
just call it container then I reckon
 
@Borgleader hmmm. Yeah, I guess it is
 
Ell
But what operations can you do on it?
You ocild call it iterable for example
 
@Prismatic 'Manager' is a terrible name precisely because it's not obvious.
 
Create (returns an index), Remove(index), Access(index). Thats pretty much it
 
container then
You could be more specific, but something like random_access_container is too much
 
3:26 PM
RandomAccessThingyContainingStuff
 
Ell
LinearContainer or something
I think random access container is fine
 
RandomAccessManagerContainingStuff
 
RandomAccessManagerThingContainingStuff
we java now
 
RandomAccessManagerThingContainingStuffImpl
 
that entire class seems so useless now
 
Ell
3:27 PM
I think random_access_container is fine
 
RandomAccessManagerThingContainingStuffImpl_t
 
just use std::unordered_map and you're ready to go
 
@unordered_meow Probably because it is.
 
Its up to the library user to provide an implementation.
 
hi i'am search a user with 3000 reputation
 
3:28 PM
The vast majority of "manager" classes are bullshit. Not only they're named terribly, they also don't need to exist.
 
to reopen my question
4
Q: The accurate parameter : someCalculation(doubleObject.doubleValue(), doublePrimitive) instead of someCalculation(doubleObject, doublePrimitive)?

Jesus ZavarceFrom Effective Java - Joshua Bloch Item 49- Prefer primitive types to boxed primitives Use primitives in preference to boxed primitives whenever you have choice. Primitive types are simple and faster. If you must use boxed primitives, be careful! Autoboxing reduces the verbosity, but not...

 
jesus
 
Aaaaaaaaaaand... you're kicked.
 
and you think Lounge<*C++*> can do valid judgement on Java question
fucking markdown
 
> Effective Java
 
3:32 PM
@Prismatic so it's an adapter for hash maps
 
It doesn't have to be a hash map
 
so it's an adapter for associative containers
 
Ell
Vector isn't an associative container is it?
 
yeah
 
Ell
Oh wait ignore me
@Prismatic I would just use Unordered map until you need something more complex
What is it for? What benefits could be gained from Using something besides unordered map?
 
3:34 PM
speed
which is why I'm leaving the implementation to the user
 
Ell
don't bother imho
Wait until someone complains that its too slow
 
What is your opinion even based on
 
Ell
No need to optimise it yet, right?
 
How do you know?
 
Ell
I don't :)
Is it too slow currently?
 
3:37 PM
Why don't "DLNA certified devices" say whether they are DMS, DMP, DMR, or DMC?
Fuck muggles.
Muggles are the reason we can't have nice things.
Shopping for anything is a terrible chore because of muggles.
 
Right now I'm using a sparse vector and I wouldn't mind if it was a bit faster
 
@R.MartinhoFernandes heheh
 
Also I don't like the idea of wasting so much memory if I don't have to
 
I want to buy a speaker system I can push music to (i.e. acts as a DMR), but everything I see only mentions "DLNA-certified". I'm pretty sure 99% of the time that means it's yet another DMP with a half-smart player interface (i.e. worse than a dumb one), and I'm not interested in that.
 
Ell
@Prismatic how do you profile on android oit of interest?
 
3:40 PM
timers
 
google also released a set of python tools that seem interesting
 
I guess a "DLNA-certified" AV-receiver would be a DMR. But maybe I'm wrong because that would be too good.
 
For the price of the apartment I live in, my parents could have gotten a 9-bedroom 2 story mansion with a pool in Oklahoma.
 
> in Oklahoma
Prolly means no fast internet
Also hello from Sv. Juraj
 
3:55 PM
Ah yes, you are right.
Gigabit > Mansion
 
Indeed
And verily so, tbh
 
But fuck I want a pooool.
 
Ell
yeah a pool is sweet in a hot country
 
Meh I could just go dive into the hudson river.
 
Guess I could get a receiver without any DLNA features and setup a DMR box myself with an actual OS in it, then just HDMI in it.
 
4:17 PM
Real Estate in San Diego is so fucking cheap compared to Real Estate in Beirut
Jesus Christ
 
> FBEventUpdateNotificationSubscriptionLevelMutationOptimisticPayloadFactoryProtoc‌​ol-Protocol.h
 
typical Objective-C name
 
What the hell are people thinking when they name things
That name FBEventUpdateNotificationSubscriptionLevelMutationOptimisticPayloadFactoryProto‌​c‌​ol on its own is longer than 80 characters
 
@MohammadAliBaydoun "That was good weed"
 
the name is automated
its from facebook react apparently
 
4:23 PM
lol caring about 80 character limits
 
0
Q: Differences between searching technniques

CodeInSunCan anybody explain the differences between internal and external searching in data structures?. Which is faster and better?

Lolwat
 
I did a robot and locked myself out
10
 
:D
 
4:31 PM
:D
 
Fail
Lounge<Schadenfreude>
 
Ell
4:41 PM
I have a 160 character column thing
 
:D (for that, I can spare the time for a laugh:).
 
"And Richard forgets the abbreviations for America"
"U S B"
lol'ed
 
4:55 PM
not really sure that isn't an accurate abbreviation for all Western culture
 
The U. S. of Booze
 
I was still thinking Universal Serial Bus
 
attending a public execution?
@Borgleader ugh. separate notifications for the new and old name of a renamed file....I think I'm just gonna treat them as removal and addition
 
Anybody know why non-trivial global variables are dangerous in Linux compared to Windows? Something about dlopen behavior?
 
they're pretty shit on all systems
that's like claiming that knifing yourself in the carotid artery is a bit more dangerous than knifing yourself in the jugular
 
idk, I've use a pointer to a global state object without much issue...
 
@melak47 Hope not.
 
5:49 PM
@Mikhail Depends on which issue you're looking for
 
@Puppy Recently learned that deleting a virtual class without the correct header is UB. Oddly, neither CPPCheck or PVS Studio warned me.
 
@Mikhail The real lesson here is what the fuck were you doing for that situation to occur in the first place.
unique_ptr won't permit that situation and shared_ptr uses an erased deleter.
 
@Puppy dctor for a hardware device factory that was global.
I think unique_ptr has the same problem?
 
@melak47 yeah that part is lame
 
@Borgleader also, is it just me or does the filename string contain a bunch of garbage?
like, it says its length is 42, there's a \0 somewhere before then and more text after it...
 
5:56 PM
maybe the length they give is longer than the position of \0 idk, i havent payed attention since im able to open files correctly with it :)
 
I think you do a .c_str() somewhere so anything after the \0 is ignored
 
user1804599
I don't know where to build my factories.
 
@Mikhail Nope- implementation is mandated to detect and issue compile-time errors for deleting incomplete types.
 
@Borgleader ah never mind, the FileNameLength is in bytes, not number of (wide) chars ._.
 
Yep, on the flip side this increases compile time because I'll need to throw in a class with a lot of ugly Windows headers (like ATL). I think one of the shared pointers can do incomplete types for the PIMPL idiom?
 
6:06 PM
> shared_ptr uses an erased deleter
i.e., the shared_ptr deleter is defined at the construction time, not at the deletion time, so the person calling the destructor doesn't need to know or care what the deleter does.
 
@Borgleader something I don't understand in your code - you just read the buffer as a FILE_NOTIFY_INFORMATION*, and it++ each loop - but doesn't that ignore the variable length string at the end of each item? i.e. don't you have to skip NextEntryOffsetbytes, not sizeof(FILE_NOTIFY_INFORMATION)?
 
@melak47 I fixed a few things during our discussion yesterday
what I showed you was very much WIP
I had just gotten it to work
 
ah :)
 
Good afternoon.
 
o7
 
o7 is a salute.
 
@Borgleader No namespace? owch
 
@Puppy ih ffs what part of wip
did you not understand
 
I understand, I guess I would just never even start actual work without chucking stuff in an appropriate namespace
2
 
17 hours ago, by Borgleader
https://onedrive.live.com/?id=E030BB50921FFF08%21142&cid=E030BB50921FFF08&group=0&parId=E030BB50921FFF08%21140&action=locate
It's based off of: ReadDirectoryChanges.zip
@Puppy Look at the code it's based off of
 
6:17 PM
What are the lounge's favorite online repos?
 
@caps this chat is my favorite repository of stars
 
@Puppy Yeah so you still need to include the header file when you define the dctor. Looks your real criticism is that I was using a pointer rather then a shared pointer :-)
 
@Mikhail No, only when you construct the shared_ptr.
 
Yeah, so in my case I have a function called `deleteObject` that lives in its own C++ file, with the right header. In your case you have a `struct` (probably) with the destruction method in the format required by the `unique_ptr` with the right header?

Anyways, the more interesting question is how the virtual dctor works. In a naive implementation I would think that every class will need to have its dctor compiled even if it is never used. But then why do I need to include the header file in C++ when calling delete on a vritual class?
 
@Mikhail So delete knows if it should look for virtual destructor in vtable or not
Don't delete pointer to objects of incomplete types, seriously
There's boost::checked_delete
 
6:29 PM
There's a compiler warning for that silliness :P
Also... err... don't delete things manually at all. vOv
 
Yeah, that
 
I don't really get this, the class has virtual members therefore the compiler better use some kind of virtual dispatch. And the steps for destructing the object are build in an obj file in the final class. So why do I need to include the header? I'm thinking its some kind of linker problem but I can't put my finger on it.
 
@Mikhail How does the compiler know it has virtual members if you didn't include the header?
Also virtual members != virtual dtor.
 
@Griwes The base class has those virtual members...
 
@Mikhail Err, s/is virtual/has virtual members/?
Ok. Does the base class have a virtual dtor?
 
6:34 PM
yeah
but also virtual members
 
Completely irrelevant.
 
mostly deleting what java people call an interface
 
@Mikhail "Correct header" means "the header of the class to which the pointer you are deleting the object".
And obviously the compiler needs to know that one, because, I presume, an implementation can somehow omit a vtable entry or whatever.
(In case there wasn't an override of the dtor in that particular class.)
(Yes, only now I've actually read back. :P)
 
This IDE looks almost really awesome.
 
meh
IDEs
> typedef Days CLASSNAME;
terrible
 
6:40 PM
lol uppercase
 
"One of the things we discovered over our countless experiments with C++ GUI is the fact that the GUI toolkit should not own widget objects. GUI objects should be always owned by the client, belonging to some scope of client code (everything belongs somewhere)."
"instead of
struct MyDialog {
Option *option;
EditField *edit;
Button *ok;
};
we are using
struct MyDialog {
Option option;
EditField edit;
Button ok;
};
 
wow they discovered RAII
 
Oh look. Sensibility. I almost forgot how that looks like. --forget this
> One aspect of Ultimate++ is bringing a lot of criticism: Ultimate++ is not using much of standard C++ library. There are, however, serious reasons for this. STL, with its devastating requirement that each element stored in container has to have copy-constructor, makes standard containers somewhat hard to use in GUI development.
 
> date1 <<= THISBACK(Compute);
 
@Griwes Sarcasm?
 
6:43 PM
What the hell is a THISBACK
 
@unordered_meow Imagine that! RAII in a C++ GUI library.
 
@caps No, failing hard with markdown 'n' shit
 
@Griwes --- the thing --- but no spaces
 
Eh, too late.
> One aspect that makes development in Ultimate++ very orthogonal is the existence of Value - the polymorphic value type. Any of Ultimate++ basic types (int, double, String, Color, Rect, Font, Image etc...) can be stored into and retrieved from a Value. Value itself can be queried for the type of value it contains. It is also very easy to make any custom types Value-compatible.
Yeah, I definitely take back that "sensibility".
 
lol
 
6:46 PM
@Griwes I was trying to ascertain if you thought it was sensible or not.
@Griwes That's terrible.
 
Yes, for a second I did, seeing they managed to actually make ownership not retarded.
But then I started reading their website.
 
@Griwes Never heard of move constructors?
 
I am wondering about what it would be like to use it for GUI development.
 
@Griwes isnt that just boost::any
 
@Puppy Probably didn't bother with updating themselves after 2003 or something.
 
6:49 PM
or boost::variant... always forget the difference between the two
 
@Prismatic It is.
@Prismatic Variant is bound by a list of types; any is not.
 
@Prismatic It pretty much looks like boost::any but substantially shittier.
 
As a bonus, variant ~~almost~~ doesn't need heap allocations.
Or it wouldn't if move ctors were forced to be noexcept.
 
@Griwes I suspect it is more like boost::variant, but with all of their types as possible values.
For instance, I don't know that it takes user-defined types.
 
The library seems okay. I don't get their layout template thingy really but other than that it seems like a pretty normal UI toolkit
 
6:50 PM
@caps IOW shitty any
 
> It is also very easy to make any custom types Value-compatible.
 
> It is also very easy to make any custom types Value-compatible.
Yeah, shitty any.
 
@Griwes Via inheritance?
 
@caps Fuck knows.
I certainly don't want to. :P
 
@Griwes Well if the class doesn't have a virtual destructor for example, and even if it does, the compiler would need to know where it's located.
 
6:52 PM
maybe one day in the distant future in the lounge someone will post about my ui toolkit and old puppy and old griwes will call it shit
 
@caps Nana looks more sensible
 
@Puppy I guess it could be somehow forced in an ABI, by requiring an entry or something, but I don't know enough about how that's usually actually implemented to speak about that.
 
@Griwes What, deleting an incomplete pointer?
the only way that would possibly work is if every single class and struct had a vtable where the destructor was at a fixed location.
in literally every other situation it's completely impossible.
 
Oh wait.
 
@Puppy Isn't that what other languages do? I recall this was a criticism of C#?
 
6:54 PM
nana needs a better website so badly
 
oh god, I've been playing Factorio more or less all day... I can only see in a grid form now o_o
 
@Mikhail How does the compiler know about the base class if you didn't include the full definition of the class?
 
lolwut
 
> sourceforge
> trusted
hehe
 
"trusted"
 
6:55 PM
@Mikhail Well, not really.
for one, C# operates under completely different constraints- e.g. not needing C-compatible layout.
for two, the way they handle memory allocation and deallocation is completely different.
 
@Puppy Yeah, so garbage collector needs to always do the correct destruction...
 
sure, except like shared_ptr, the collector always knows the type of every object, because you told it when you allocated.
 
I don't know how I missed the point I made above before, @Mikhail. :D
 
and for three, they already require vtables anyway for quite useful features like runtime reflection so adding on a destructor entry isn't that big of a deal.
and like I said previously, they don't really need destruction in the vast majority of cases.
@Griwes It does not
 
Yeah, we should get it in C++ because boost/checked_delete sounds like a dirty hack.
 
6:58 PM
get what
 
@Puppy I know; somehow drinking for a week makes one oblivious for programming stuff logic.
 
I want to call delete on an interface without having to include the header of whatever class lives inside the interface
 
Really, stupid markdown syntax?
Really?
 
if it has a virtual dtor you can delete the interface pointer quite safely.
except for the fact that manually deleting things is fucking stupid (go go unique_ptr)
 

« first day (1765 days earlier)      last day (3197 days later) »