« first day (633 days earlier)      last day (4316 days later) » 

3:03 PM
he didn’t fall on his face :(
 
Ell
@EtiennedeMartel you think a tegra 3 is a good enough processor for gaming?
 
@Ell It's still more than enough for an indie game.
 
Ell
I suppose
it's not open source is it? this gaming thing?
 
But, yeah, the hardware might be the problem.
@Ell It runs on Android. That's open source.
 
@Ell define 'enough'. define 'gaming'
 
3:07 PM
@EtiennedeMartel What does this device provide that a computer doesn’t?
 
@KonradRudolph It's 99$.
 
@EtiennedeMartel Slightly misleading: everybody has a computer already, so it’s 0$
 
@KonradRudolph Alright then, so why are people buying PS3s?
 
@EtiennedeMartel Because of vendor lock-in
 
3:09 PM
(and because consoles used to have advantages over PCs)
 
@rubenvb If a source directory (..) is not provided, what is it at the point of this switch statement?
 
Ell
@EtiennedeMartel I mean, is the hardware open source?
 
@Ell How can hardware be "open source"?
 
Ell
open source design docs etc. see arduino et al
 
@KonradRudolph They still have a big edge: when you get a game for your console, you know it's going to run. You just put the disk in, pick up the controller and start playing.
 
Ell
3:09 PM
or reprap
 
Simplicity over versatility.
 
@SamDeHaan you mean the switch(index) on line 74?
 
@EtiennedeMartel binary blob firmware for a start
 
@rubenvb Use lambda instead.
 
but ideally schematics
 
3:10 PM
@EtiennedeMartel It’s a matter of perspective. You’re right but that’s to a large degree only because the games have old-fashioned requirements.
 
@DeadMG lambda for what?
 
@rubenvb Code re-use.
there's no need to jump to another place in the scope to re-use code that uses local variables, you can simply make it a lambda.
 
@EtiennedeMartel the design of the hardware, as in, you would be able to make one your self from free plans
 
@DeadMG I have no idea how a lambda would help in this case.
 
@KonradRudolph Or rather, that's because the responsibility of making the thing run is on the developer's shoulder, instead of the user's, as it is with the PC.
 
3:11 PM
@rubenvb Yeah, what is lib::project::configuration->project_file() and/or what is the assumed source directory in lib::project::configuration (if that's even stored/assumed, I haven't looked)
 
@thecoshman I have no idea. But that would be cool.
 
@EtiennedeMartel Well, you can check for requirements on a normal PC. I’ll grant that a “runs on this machine” logo is quite helpful (see Google Play store)
 
@SamDeHaan project_file should end up with some defaults I try at line 136. The switch is still there cause there might be any number of build targets and/or options with one or two dashes.
 
@EtiennedeMartel chances are though, that the designs involve a complex PCB that is not easy to make at home, so would require modification for home fabrication.
 
@rubenvb Pretty sure that this is an equivalent function with no goto at all.
 
3:15 PM
@KonradRudolph Still, consoles sell. They sell very well, in fact. I don't know for how long it'll stay that way, but for now, it's a business model that works.
 
@rub The add_char gotos seem kind of silly. It's an append, it would add clarity and very insignificant code replication to just put the append there.
 
@DeadMG oh, you were talking about the parser thing. @Sam was talking about the other thing. I might as well just do token.append directly.
 
oh, also, your lexer structure is a bit, um, WTF.
 
@DeadMG Probably. Explain how to make it better.
 
@EtiennedeMartel Yes, I was specifically asking from the perspective of the customer, since that’s what they seem to address. But what’s more, consoles sell because of vendor lock-in. I posit that this is the major factor, by a vast margin
 
3:17 PM
@rubenvb You should completely factor the while and the quotes into a subbranch. Let me show you.
 
@KonradRudolph What do you mean by that?
 
@rubenvb A lexer should echo the DFA that is equivalent to the regular language that it parses – i.e. one giant switch
 
I got rid of the add_char's. Been a while since I looked at this code, it working nicely and all.
 
In economics, vendor lock-in, also known as proprietary lock-in or customer lock-in, makes a customer dependent on a vendor for products and services, unable to use another vendor without substantial switching costs. Lock-in costs which create barriers to market entry may result in antitrust action against a monopoly. Examples of lock-in SIM locking SIM locking may be considered a vendor lock-in tactic as phones purchased from the vendor will work with SIM cards only from the same network. This creates additional inconvenience to the buyer as the phone cannot use a prepaid SIM fr...
Consoles sell because there’s exclusive content for consoles
 
also noticed a throw statement followed by a return.
 
Ell
3:20 PM
IMHO consoles sell because they are cheaper than pc's
 
@rubenvb I'm actually struggling to recognize the lexing constructs. Is it like regular C++ comments/identifier and stuff?
 
@KonradRudolph Not that much. The huge majority of games available on consoles are also available on PCs.
 
Goodmorning fellas.
 
@EtiennedeMartel In the meantime, yes. But when the current generation of consoles began to sell, not so much
 
@DeadMG no, check this for an example
 
3:22 PM
@KonradRudolph There wasn't a lot of stuff for consoles back then.
 
cool. Free interactive code review of code largely written a year ago :P
It's also my first attempt at this kind of thing.
 
@EtiennedeMartel but not all of them. The only reason I got a Wii was for some of the exclusives it had. I wanted to play those games enough to be willing to pay for the console as well
 
I must go have dinner. If you pling me, I'll read your messages when I get back. Cheerio!
 
@thecoshman Yeah, but a Wii doesn't really target the same audience. They have very little AAA titles.
I'm talking about the "big three" here: PC, PS3, 360.
(For most developers, the PC is "just another console", with the main difference being that piracy is rampant on PCs).
 
Ell
and PCs are free to develop on (excluding labour, obvs.)
 
3:26 PM
@EtiennedeMartel well, in that case, the only reason I would get console X is because I want to play an exclusive badly enough to get the console
any ways, laters!
 
@rubenvb Well, here's half the problem. You don't actually have a regular lexer.
    throw syntax_error("Beginning quotes must be preceded by a whitespace or a special character.", m_filename, m_line_number);
really needs to go in a parser, not a lexer.
 
Guys, I'm starting to believe that none of you is in the appropriate target audience.
 
@EtiennedeMartel PCs have the advantage/disadvantage that they're far more compatible from one "console" to the next
 
also a PC can do many more things than just play games
 
What, still not answered?
20
Q: In C++11, how do I specify that the implicit "this" parameter "[[carries_dependency]]"?

Marc Mutz - mmutzIn [dcl.attr.depend]/1, I read: The attribute[...] carries_dependency [...] may be applied to the declarator-id of a parameter-declaration in a function declaration or lambda, in which case it specifies that the initialization of the parameter carries a dependency to (1.10) each lvalue-to-rv...

 
3:36 PM
 
@rubenvb Consider this as a potential replacement. Half the size, and also, your original code was so obfuscated, I actually had trouble even reading the logic- probably because it's CFG rather than regular.
 
@EtiennedeMartel That pretty much sums it up, yes
 
Yeah, I figured you were all PC gamers.
 
@DeadMG Gaah, people, use gist or ideone to share code
way more better
 
@JamesMcNellis rep-whore! :)
 
3:37 PM
gist has a nasty habit of oneboxing into the chat massive pages, iirc.
 
Ell
@KonradRudolph much better I hope you mean :L
 
James is apparently the first ever to get the badge
@DeadMG yup
 
@Ell Noo, I meant what I wrote, in full awareness that it’s f*cked-up English
Oh my, Twitter spam is picking up again
why isn’t Twitter able to ban this totally obvious form of spam already?!
 
Anyone happen to have experience with the specific heat capacity of sulphuric acid at different concentrations?
 
definitely not
 
Ell
3:41 PM
anyone know the syntax of /etc/group?
 
@DeadMG ideone.com/jVGg6 fixing the but ugly indenting mess
 
@sehe Half one style and half another, I think. I'm a K&R four-spaces guy and ruben is an Ackermann two-spaces guy
isn't the other style of brackets Ackermann? or smth?
 
@DeadMG I thought you didn't do useless details :)
 
no, wait, that's ruben's original paste :P
 
What's the best way to locate a memory leak in a large program?
 
3:42 PM
@IDWMaster Use RAII to guarantee that it does not leak.
@sehe I don't care. I'm just curious.
 
Mine was astyle -bj which appeals to me for the obvious reasons
 
Ell
Oh shoot. is there a way to undo sudo rm?
 
@Ell Hahaha. Scroll up, look for `Unix Hater's Handbook'
 
@DeadMG It appears to be a leak in a 3rd party component -- DirectX 11
I am using smart pointers to my COM references though.
I'm getting a lot of these though
D3D11 WARNING: 	Live Object at 0x00000035BBE8C4A0, Refcount: 0. [ STATE_CREATION WARNING #0: UNKNOWN]
D3D11 WARNING: 	Live Object at 0x00000035BBE8CA60, Refcount: 0. [ STATE_CREATION WARNING #0: UNKNOWN]
D3D11 WARNING: 	Live Object at 0x00000035BBE8CC80, Refcount: 0. [ STATE_CREATION WARNING #0: UNKNOWN]
D3D11 WARNING: 	Live Object at 0x00000035BBE8CFA0, Refcount: 0. [ STATE_CREATION WARNING #0: UNKNOWN]
D3D11 WARNING: 	Live Object at 0x00000035BBE8D220, Refcount: 0. [ STATE_CREATION WARNING #0: UNKNOWN]
 
@IDWMaster That's pretty unlikely.
look at the refcounts
they're 0
 
3:47 PM
Refcount 0, so shouldn't the objects no longer be in memory?
Why are the objects still alive?
 
@Ell there is. It's called an “automated back-up”.
 
well, I'm not wholly sure, but I think that it simply means you cleaned objects up in the wrong order.
 
folks
 
litb
 
there are no memory leaks in the D3D11 API, so as long as you refcount every object you get back properly, there should not be a concern
 
3:48 PM
You know, you only realize how valuable a working toolchain is, the day you don't have one.
 
@DeadMG Hmm. A problem in my refcounting class perhaps?
 
Quick! Copyright thingamajig! What is the code?
 
@IDWMaster You wrote your own?
that's le insane
 
template<class X>
class SafeComPtr {
public:
	X* internalPtr;
	int* refcount;
	SafeComPtr(X* ptr) {
	internalPtr = ptr;
	refcount = new int(1);
	}
	SafeComPtr() {
	internalPtr = nullptr;
	refcount = new int(1);
	}

	//Copy constructor
	SafeComPtr(const SafeComPtr<X>& existing) {
		refcount = existing.refcount;
		(*refcount)++;
		internalPtr = existing.internalPtr;

	}
	SafeComPtr<X>* GetAddressOfPtr() {
	return this;
	}
	SafeComPtr<X>& operator=(const SafeComPtr<X>& other) {
		if(other.internalPtr !=internalPtr) {
 
ok
word to the wise: std::shared_ptr<T> with custom deleter.
or std::unique_ptr.
 
3:50 PM
Or maybe boost::intrusive_ptr, since he appears to be using COM.
 
either of them can cope perfectly fine with COM objects
 
Ell
yeah custom deleter ftw!
I've only ever needed twice :L but I was chuffed when it worked :D
 
I wish I could have custom deleters when travelling abroad.
 
So... I was playing GTA IV.
 
why?
 
3:52 PM
 
it's the same game as GTAIII, Vice City, San Andreas, and all the others
 
Ell
I can't make head nor tail of linux groups and users :S
 
@Ell It's Linux. You were expecting?
 
With LCPDFR, you can summon a bazillion officers to harass citizens.
 
@Ell They're pretty simple...
 
3:53 PM
And the sight of emergency lights illuminating the night with the classic NYPD yelp sounds is simply gold. :Đ
 
Ell
@Cicada I'm trying to allow the group "developer" to have read/write access to /usr/local
how?
 
@Ell head and tail are pretty simple commands :p
 
UNIX permission model is stupid.
 
Ell
argh I messed up linux mint nautilus theme thing. It only looks good if I'm root :L
 
@Ell Oh... you may want to use ACL then
 
3:55 PM
@Cicada That's the problem, most often: they're so excruciatingly simple, that it can be hard to do what you want. xattrs and acl extensions in combination with RBAC exist in all serious UNIXen. They make it complex, though not usually as complex as Active Directory on Windows
 
@Ell Things can be owned by one user and one group at the time in UNIX model.
 
Yes, the UNIX security model is very simple and un-powerful
Compared to that of Windows.
 
So you'd have to chgrp that directory to developer.
 
Ell
will it then not be able to be accessed by other groups though?
 
@Cicada I'd go with "retarded". HELL YEAH LET'S REUSE +x FOR DIRECTORY TRAVERSAL MAKES SENSE.
 
3:57 PM
@Ell Yes. Hence you have to go for ACL.
 
@Cicada Ironically, I believe the simplicity is also a good part of why UNIX security is usually easier to get right. It is a lot clearer what works how
 
@Ell There's user, group and other.
 
@CatPlusPlus DUDE WE SAVED 1 BIT STFU
 
@CatPlusPlus It's worse on windows.
 
ACL beats UNIX model.
Thankfully Linux people recognised that long time ago, and you can use ACLs on Linux.
 
Ell
3:58 PM
@CatPlusPlus so when I look at permissions with nautilus, and there is user group and other, what do I do there? will changing the permission for one group affect all the groups, or can you give permissions per-group?
 
USE ACL
 
@CatPlusPlus That's true, but the permissions subdivision on windows is convoluted. Also, the way the APIs deal with ACE entry ordering in ACLs is really broken. If you order them manually, you can get 'Denies' to show in the UI which aren't effective (by ordering them behind the grants). Officially, this is 'undefined behaviour', though because the documentation says that Denies MUST always precede Grants
@Cicada Do you know any popular distro that makes ACLs easy?
 
@sehe Windows
 
Ell
@Cicada saying "USE ACL" isn't going to help -.- at least give me a hint or something
 
What part of ACL do you not understand
 
Ell
4:01 PM
I have never use permissions before - ever - so I have no clue about anything
 
Then I can only redirect you to Google.
 
@Ell With UNIX permissions you have an owning user, an owning group and the rest of the world.
 
The topic is huge.
And very well documented.
 
I really don't know what more to tell you.
 
Ell
but ACL is another permission system thats unrelated to UNIX permissions?
 
4:04 PM
That's right.
 
It's Access Control List.
 
Ell
and is that installed on all linux systems? most? some?
 
Templates rule, guys.
 
Templates suck dick, in a quasi-good way.
 
@Ell since 2.6, yeah. Probably try Fedora (since RHEL actually uses them)
Or Hardened Gentoo :)
 
Ell
4:08 PM
I have linux mint :L
 
If your kernel doesn't have ACL support, go change your kernel.
Because damn.
 
Ell
@CatPlusPlus so I should check for that by doing lsmod?
 
@KonradRudolph: u there?
 
uname -a
 
@Nawaz Yes, but about to leave for the bus
 
Ell
4:11 PM
3.2.0-23-generic
 
@KonradRudolph: Oh.. I wanted to talk to you regarding your Modern C++ Slide..
 
Then pretty sure it supports ACL
Incoming useless cat
cat /boot/config-* | grep ACL
 
@Nawaz go ahead, I’ll answer either now or later
@Cicada No, useless cat
 
you mean, tinyurl.com/fuckpointers?
 
grep ACL < /boot/config-*
 
4:13 PM
@KonradRudolph That's what I said!
 
@KonradRudolph: Its small. You have example of int* arr = new int[1024]();.. then suggested to use vector instead...
 
@Cicada Ah, I read “useless grep“ …
 
I would say when it is constant such as 1024, then std::array makes more sense...
 
@KonradRudolph (i edited it, har har!)
 
std::vector makes sense when you want dynamic size...
 
4:14 PM
@Nawaz Maybe I really should change that to a variable. See, if you had new before then clearly it wasn’t constant storage …
but yes, I’ll change that, thanks for the feedback
ok, gotta go
 
1024 is a constant.
 
Prove it.
 
@Cicada You evil …!
 
alright...
 
@Nawaz Most of the time
 
Ell
4:15 PM
"CONFIG_EXT4_FS_POSIX_ACL=y" that means its supported right?
 
on EXT4
 
@sehe: Sorry, I didn't get you...
 
@KonradRudolph grep ACL -H /boot/config-* - that has the benefit of actually showing which config has enabled/disabled.
 
@Nawaz Because it was an extremely sophisticated joke.
 
@Cicada: Prove it :P
 
4:16 PM
@Nawaz I already did: you didn't understand.
 
@Ell Now, it needs to be enabled on both the fs (tune2fs possibly) and the mount options (man mount and /etc/fstab)
@Cicada Zing!
 
Ell
CONFIG_EXT2_FS_POSIX_ACL=y
CONFIG_EXT3_FS_POSIX_ACL=y
CONFIG_EXT4_FS_POSIX_ACL=y
CONFIG_REISERFS_FS_POSIX_ACL=y
CONFIG_JFS_POSIX_ACL=y
CONFIG_XFS_POSIX_ACL=y
CONFIG_BTRFS_FS_POSIX_ACL=y
CONFIG_FS_POSIX_ACL=y
CONFIG_GENERIC_ACL=y
CONFIG_TMPFS_POSIX_ACL=y
CONFIG_NFS_V3_ACL=y
CONFIG_NFSD_V2_ACL=y
CONFIG_NFSD_V3_ACL=y
CONFIG_NFS_ACL_SUPPORT=m
# CONFIG_CIFS_ACL is not set
CONFIG_9P_FS_POSIX_ACL=y
 
Then you have ACL eburiwer which is great and also very normal.
 
@Cicada: Ohh.. Now I got it :|
 
Ell
can I assume I have ACL then?
brb >.<
 
4:19 PM
What else do you want? Some screaming "IS_IT_HAVE_ACL_IS_CAN_ENABLED_ON_THIS_SYSTEM_YES=TRUE"
All these lines indicate you do have ACL on a variety of FS.
 
@DeadMG Thanks for trying to understand the code :). I'll take a look into your replacement. I do have some questions about that though, if you've got the time/"fucks to give".
 
Ell
@Cicada well sehe said something about the mount options
sorry my bro needs help with his bike. back later (unfortunately for you :D )
 
man setfacl
 
For std::basic_istream<e,t>, what are e and t?
 
char and char_traits.
 
4:25 PM
@CatPlusPlus Which do what?
 
Sit there and drink coffee.
 
lol
 
lol@catz
 
@rubenvb I'm eating atm but come back in two minutes
 
Ell
back :D
 
4:32 PM
As for exceptions, you exception purists are silly.
 
right
I'm back briefly
ruben, vat's ze question, ja?
 
@DeadMG silly things really. Why the braces with the case statements?
 
To introduce new scope?
 
And how does this handle a token consisting of a single special_character?
@CatPlusPlus and no breaks?
 
I don't even know what you're talking about, really.
 
4:37 PM
And you kind of "forgot" my newline character '\\' handling too.
 
@rubenvb Habit. Even the idea of non-braced case is stupid. I do it by habit now because the annoying jolt when you declare a non-pod inside a case and get an error is, well, much more annoying than bracing them by default.
@rubenvb Forgot them.
@rubenvb No, I just couldn't work out WTF the logic for it was supposed to be.
 
@DeadMG ok. Thought some magic thing I didn't know about :)
 
Ell
I brace everything - I dislike non-braced flow constructs of any kind
 
@DeadMG read new line, incr m_line_number, continue getting token (if there is none yet). But ok.
 
the important thing is
your whole whitespace mandatory before special character or whatever
drop it, or you will have to make whitespace a token, because that's irregular
also, I've gotta ask
 
4:41 PM
Oh, Wide?
 
dear God, why would you want a line continuation?
 
@DeadMG whitespace mandatory before quotes. Not special characters.
 
@CatPlusPlus No.
@rubenvb Point's the same.
also, I believe that my string token includes the quotes and yours doesn't, but hopefully that conversion should be obvious.
 
I'm not in the topic and that makes me sad. :(
 
@DeadMG because of stuff like this which I want to be able to do.
 
4:41 PM
Greetings
 
@CatPlusPlus Topic is things about stuff.
 
Also break in switch is the stupidest thing ever.
 
@CatPlusPlus wut?
 
Passthrough should not be default.
 
@rubenvb Y u no just SOURCE_DIRS = { Source, Source/Configuration, Source/Error } or smth saner like that
 
4:42 PM
@MooingDuck When you're around, I'd like you to walk me through the overloaded stream >> you have so I can explain it to other people who want to use it.
 
@DeadMG comma's, braces, equals. I also have ~somefile to remove it from a file list. Like SOURCES *.cpp (windows)~not_for_windows.cpp
 
@rubenvb You already have braces, the equals is optional, and your existing / seems to be entirely equivalent to ,
 
the assignment is funny in your example. It's more of a += which is too confusing to be useful.
 
except that people know WTF a , is
 
people know what a `\` is.
 
4:45 PM
C preprocessor is the only place I know of that uses `` as a continuation
and you don't want to be taking that thing as an example
 
and make
 
everywhere else uses , to delimit lists
 
and qmake
 
@rubenvb It's that annoying thing that shows up all over the multi-page macros my company uses!
 
I use a space to delimit lists. If you want a multiline list, use \
 
4:45 PM
ok
let me rephrase that
why on earth are you defining your own text file format instead of simply finding one that's already been designed and implemented, like JSON or Lua or something?
 
Academic purposes.
 
ok
 
@DeadMG why on earth are you writing your own language instead of simply finding one that's already been designed and implemented, like C++ or something?
 
@SamDeHaan Mine avoids mistakes done in existing languages, instead of re-implementing them.
not that I don't understand the desire to implement it because you can or want to learn about implementing such things
 
@SamDeHaan oh snap :P
I wanted to see if I could pull off writing a parser thingie and do something useful with the result.
 
4:48 PM
anyways
 
I still believe your solution (with the missing things added again) will miss some degree of error reporting. I'll try to get it completed with everything it has now, and we'll see then.
 
whether or not you use , or / and even the concept of having to have another character to have a multi-line list... (which is silly!) is really not the point
 
Thanks for the tips
 
the point is that having to have whitespace before quotes is non-regular.
and you will burn in hell trying to write a lexer to lex such a construct
 
Seems unlikely.
 
Ell
4:50 PM
matching quotes are non-regular aren't they?
 
@Ell Nope.
 
@DeadMG You are absolutely right!
 
Ell
oh. But you can't match them with a regex can you?
or something
 
@SamDeHaan Well, technically, he could write a thing he calls a lexer that lexes them, but since it's irregular, it would be a parser.
@Ell ".*"?
 
@sehe I defend the idea of IDEs. There's a reason I use VS even when it does that stupid stuff.
 
4:51 PM
@DeadMG "foo"bar"
 
@DeadMG Either way, burning in hell due to it is very unlikely.
 
Ell
@DeadMG Then I am confused about it. what about what @RMartinhoFernandes said?
 
@RMartinhoFernandes That's just greedy/nongreedy, which there are characters to deal with (I don't know what they are).
 
@DeadMG I knew you knew that, but I'm in a mood for pointing out the failure of others. Pining for some schadenfreude.
 
lol
 
Ell
4:53 PM
Well I'm confused then
how does it know to continue matching after the "foo"?
 
non-greedy means it doesn't grab the first one it sees, it looks aaaaall the way to the end, and picks the last one it found.
 
I defend those who LOVE BACON even though it can be fatty.
 
@TonyTheLion What's the deal with his right eye?
 

« first day (633 days earlier)      last day (4316 days later) »