« first day (1352 days earlier)      last day (3596 days later) » 

4:00 AM
It looks meh
 
I'm still undecided about the new Material Design
I'm excited about the new UI components, though
 
user3010322
4:12 AM
Well. This is slightly retarded.
 
user3010322
I wonder if I'm just doing ti wrong...
 
user3010322
set_function<int>("overloaded", overloaded);
 
user3010322
Consider this
 
user3010322
Then look at this:
 
user3010322
template<typename... Sig, typename Key, typename... Args>
void set_function(Key&& key, Args&&... args);
 
user3010322
4:13 AM
Key correctly resolves to const char[11]
 
user3010322
Sig resolves to int
 
user3010322
... But, Args... is empty.
 
Where do you use Sig?
 
user3010322
In the function, but that doesn't matter
 
user3010322
The error is that I'm calling the function with too many parameters
 
user3010322
4:16 AM
(there's 2, but only Key&& key is being considered a parameter)
 
@ThePhD fun urban legend... apparently BeOS had a 'Computer is on fire' environment variable that was always false. Don't know if there is any truth to that but it's funny nonetheless.
 
main.cpp:7:5: error: call to deleted function 'set_function'
    set_function<int>("overloaded", overloaded);
    ^~~~~~~~~~~~~~~~~
main.cpp:2:6: note: candidate function [with Sig = <int>, Key = char const (&)[11], Args = <void (&)()>] has been explicitly deleted
void set_function(Key&& key, Args&&... args) = delete;
     ^
 
user3010322
note:   candidate expects 1 argument, 2 provided
    set_function(Key&&, Args&& ...) [with Sig = {int}; Key = const char (&)[11]; Args = {}]
         void set_function(Key&& key, Args&&... args)
                ^
 
g++:
main.cpp:7:47: error: use of deleted function 'void set_function(Key&&, Args&& ...) [with Sig = {int}; Key = const char (&)[11]; Args = {void (&)()}]'
 
user3010322
Change the function signature to int ( ... )
 
4:17 AM
pretty much impossible is where I'm getting at :v
same shit
honest, your error is elsewhere
 
user3010322
Show meh. D:
 
main.cpp:7:47: error: use of deleted function 'void set_function(Key&&, Args&& ...) [with Sig = {int}; Key = const char (&)[11]; Args = {int(&)()}]'
 
user3010322
No I mean
 
user3010322
Show me the coliru!
 
user3010322
4:19 AM
Dude, that's nto overloaded. :v
 
Why does it matter?
 
user3010322
 
I'm replying to your claim
 
user3010322
Sorry, part of my claim was that overloaded is indeed the name of an overloaded function.
 
user3010322
I should have specified.
 
user3010322
4:20 AM
But, see?
 
user3010322
Args={}
 
user3010322
It's not even passing through the overloaded function set. D:
 
I know how to fix it but I'm not sure you want to know how to
 
user3010322
Is it some super ugly hack?
 
user3010322
4:24 AM
EWWWWWWWWWWWWWWWWWw
 
user3010322
I'll just keep my old solution. :c
 
I told ya.
That's how you fix overload resolution.
 
user3010322
Orrr,
 
user3010322
you do crazy shenanigans with templates!
 
I'd like to see that.
 
user3010322
4:25 AM
You already have, from Xeo. :>
 
Link me.
 
I don't mind if someone finds an interesting programming question to solve together here ... have not done that for a while ...
 
Oh.
"Million and a half overloads" fix
That's what std::mem_fn used to do until it got DR'd.
 
user3010322
DR'd?
 
4:29 AM
defect
 
user3010322
Why was it considered a defect?
 
user3010322
And how did they fix it?
 
It only applied to mem_fn
i.e. R T:: *
 
user3010322
I wish you could pass down an "overloaded set" of functions.
 
@chmod711telkitty want to join my open source android app project? ;-)
 
user3010322
4:30 AM
If you could pass that around with templates, then you could defer resolution until the latest point possible.
 
I've got quite a few open tickets...some more interesting than others
 
Those ones probably would not meet my intellect requirement :p j/k
 
too high for your standards? =p
 
P.S. I am working on an android app as we speak, so there isn't the lacking of java programming problems to solve ...
@Code-Apprentice what's your app about
 
most of what I'm doing lately is learning related API and libraries
It's for baseball card collectors to keep an inventory of their cards.
 
4:37 AM
@_@
 
reminds me I should put my android funny cat app back onto the market
 
So I just finished reading about "Service locator pattern"
What's the difference between that and a singleton? :v
 
currently translating this into an android app ... with a different name
 
4:52 AM
cool
 
user3010322
5:28 AM
@Rapptz There's no debug mode for the tests on sol ?
 
you don't debug tests :v
 
user3010322
You do when they loop infinitely.
 
just put it in a main file
there's too much stuff with the test framework
 
do you use a 3rd party framework like cppunit?
 
it's catch
also I'm tired
gonna go to sleep
night
 
5:35 AM
this is ... sooooo cute <3
 
6:00 AM
until it scratches your face off
 
A lot of cute things can only be appreciated afar :p
 
user3010322
@Rapptz I did it.
 
user3010322
Overload resolution and everything else works flawlessly now.
 
user3010322
It's.... it's finished.
 
user3010322
6:20 AM
@Xeo Thanks for helping me, I managed to make all the features work. Magic and magic-less styles! Woo.~
 
what is it supposed to do?
ballsy, very ballsy
 
Hey, can someone who has used App Engine please help me figure out why Search API is not returning any matches for distance queries? Full question: stackoverflow.com/questions/24471890/…
 
please do not dump questions on us like that.
If we wanted to help answer questions right now, we would be on SO looking at questions
 
6:35 AM
Sorry, really needed help on this one :(
 
tough luck
It's a damn fucking Java question too!
 
6:48 AM
 
7:37 AM
quiet ...
 
Xeo
8:06 AM
@ThePhD Alright, a few things: If you are doing that deduction stuff, at least present a proper error when it fails (i.e., have a trait is_sig_deducible where you SFINAE-check if decltype(&F::operator()) resolves).
@Rapptz ye, unfortunately. Overloads need to be resolved at the top-level, so there's really no other solution.
@ThePhD And two other things about my "magic": You can currently pass (member) data pointers, like int i = 42; set<int>(&i);. Dunno if you want to support that in any way (would need INVOKE semantics), but it works.
Last thing: Templates + overloads really don't work well together.
void f(int){}
template<class T> void f(T){}

set<int>(f); // fail
and there's practically nothing one can do about that
@ThePhD Yes, guess why I made all those overloads at the top-level. :P And I think I mentioned that before.
 
Such sun, much warm
and rage at mobile chat
 
Xeo
such time, much hurry, very late
 
what for?
 
Xeo
D&D
gotta get going in 15 mins and I'm still undressed
 
Oooh
 
8:40 AM
life skills: 3/10
 
morning
 
9:05 AM
if you have a non-trivial copy constructor, but a trivial move constructor, I wonder if that prevents me from holding values in registers?
 
9:46 AM
@sehe WTF is that? Breathing/respiration? Eating? I'm sure I had those sorted out pretty quickly after I was born.
OH, Google helps: 'behaviors used appropriately and responsibly in the management of personal affairs'. So, that's all clear then.
 
cpx
10:00 AM
@sehe game?
 
@MartinJames in response to Xeo
 
not need to lament 1 dimensional geeks
someone has to be relatively lacking in life skills
you need to be more sympathetic, like me ... I always feel sorry for those people who aren't very good at living independently ...
 
cpx
what are those skills?
 
driving, cooking, cleaning, shopping, navigation (especially in the wild), swim in the river/ocean, light a camp fire, construct a dwelling, share trading, renovation, medicine, first aid, rearing animals, growing veges, etc etc
 
pssst: Hint hint
Xeo doesn't quite lack as much life skills as some loungers
 
10:12 AM
I lived in my own unit/apartment/house for more than 10 years. I didn't have any roommate. Just me, my computer and the internet (and other furnitures etc)
Various people directly and more often indirectly critisized me for being too independent ... as if, like I care ...
 
You're simply amazing
 
you are just jealous ...
... of my care free attitude :p
 
I'm more care free: I couldn't care less whether you brag about your care-free-ness :)
 
cpx
I don't think I ever needed any of those life skills and yet I'm still living.
 
cpx
10:19 AM
Or.. maybe I'm not living at all. Just breathing.
 
Fuck life skills, I wish I just had better poker skills. I got thoroughly shafted last Sunday, and I'm not looking forward to today:(
 
count the cards
 
morning guys, I see today's topic is poker
 
@MartinJames you can always choose not to play
 
@MartinJames you can always choose not to pay
after losing that is ... :p
 
10:30 AM
Jun 19 '13 at 0:50, by Cat Plus Plus
Lurk more.
 
cpx
I need some better C++ skills. Maybe it is time to read the standard :D?
 
@chmod711telkitty he didn't say they play for money
 
that won't level you up at all
 
cpx
but i will learn about semantics..
 
In three hours, I only picked up one good full-house, and that bastard Eddie had quad-7's.
 
10:32 AM
holdem?
 
Yeah.
 
did you have the top boat?
 
No:)
It was a day to forget:((
 
much money?
 
@JohanLarsson Nah - it's a fun game with limits.
Well, it's supposed to be a fun game, anyway:(
 
cpx
10:37 AM
anyway i think its better to learn about the OS itself before i start with in-depth programming skillz
 
you need to write code in order to get better at writing code - I know this fact comes as a surprise but it's the way of things
7
no amount of contemplating in the lounge will help
 
cpx
I know this has been your own experience :)
It's a good advice.
 
it's general advice; if you want to learn piano, you need to play piano
go write some code, don't listen to Scott Meyers
 
cpx
I guess it's like telling someone to "Shush! just do it".
 
11:20 AM
Jun 28th 1914: The Archduke's murder has greatly improved the prospect for peace in Europe, says a leading lawyer. http://t.co/YPbFTIJLLv
 
@Rapptz void update(float dt) = delete; ? ;)
@Griwes A lot of people seem to confuse auto with dynamic typing.
 
@FredOverflow He wasn't even about auto!
He was all about exceptions. "Exceptions are dynamically typed, because you can't know, at compile time, what type gets thrown."
"Also there's a preallocated space where exceptions live. But until throw you don't know what goes there, so it's dynamically typed".
 
@Griwes So, did you manage to get this guy fired?
 
@FredOverflow Fired from where? 'Twas on IRC.
 
So ban him from IRC for all eternity!
 
11:29 AM
Unfortunately I'm not a network op in Freenode :(
 
Then find out where he lives and nuke his house.
 
Subtype polymorphism is a form of dynamic typing
 
Dynamic typing doesn't exist.
 
What
Oh I just remembered to not bother trying to discuss programming seriously nvm
 
:D
 
11:33 AM
@CatPlusPlus Too late, we're already down the rabbit hole!
 
you're a rabbit hole.
hmm, f() abstract; or abstract f();?
 
Ell
Abstract f
Imo
 
Whatever's consistent/easier to implement
 
Ell
11:50 AM
I think I should read up on exceptions. If they are variable sized how does the compiler know how much memory to preallocate? Unless it looks at all the throws
 
it just preallocates a pretty large buffer, relatively speaking.
about 16kb per thread.
they use malloc or some other heap allocator if possible but if not, then they fall back to this buffer.
 
> The C++ runtime library shall allocate a static emergency buffer of at least 4K bytes per potential task, up to 64KB. This buffer shall be used only in cases where dynamic allocation of exception objects fails. It shall be allocated in 1KB chunks.
> At most 16 tasks may use the emergency buffer at any time, for at most 4 nested exceptions, with each exception object (including header) of size at most 1KB. Additional threads are blocked until one of the 16 de-allocates its emergency buffer storage.
That's what ABI says.
 
A ABI
 
Standard requires bad_alloc be thrown when heap memory is exhausted so the other ABIs have to do something similar.
 
@Puppy I'm curious now to know what windows does, as exception handling on windows is built around SEH
 
12:00 PM
I'm given to understand that x64 EH on Windows is basically Itanium but slightly renamed.
x86 SEH is stackbased- kinda like setjmp/longjmp.
 
oh I know, I'm more curious about the role that SEH plays and how much more expensive it is to use exceptions on windows because kernel mode is involved
 
it's not
 
last I read the SEH documentation it was, but that documentation was rather old
 
nah
it involves calling Windows functions, but they are implemented in user space.
pretty sure that kernel switches are only required if the exception propagates to kernel space
 
This was the article I read: ancient microsoft article on SEH from 1997
 
12:12 PM
:D
 
hmm is fs:[0] even accessible from user mode?
 
Of course?
It's how you implement TLS. Huh.
 
having never had to implement TLS myself... or do far pointers I wouldn't know
 
@Mgetz What did lead you to asking this question?
It's a normal memory access using a segment.
On x86_64 it's slightly abnormal, since it's one of two segments that have bases that are not completely ignored.
 
again... no experience using segements
 
12:19 PM
All memory accesses you did on x86 went through segments, so I'd say you do have some. :D
 
not in flat mode
in flat mode the segments are ignored
 
your mother's in flat mode
 
@Mgetz Nope.
 
@Puppy ba dum tish!
 
In long mode (not "flat" mode, duh) segment bases and limits are ignored.
The segments themselves mostly aren't.
 
12:21 PM
Set to same value and not modified != 'ignored'
 
@MartinJames Well, bases and limits ARE ignored. :P
@Mgetz And even what I said is not true, since the bases of fs and gs are respected.
 
@Griwes I was referring to when in compatibility mode
 
@Mgetz In compatibility mode, segments work the exact same way as in protected mode.
 
no shit... </sarcasm>
 
I preferred to explain it, since your knowledge on the segmentation topic wasn't quite full.
 
12:24 PM
@Griwes I've tried pretty hard to read the intel manuals... and it still makes my brain hurt pretty badly
 
They are not bad.
Some claim AMD manuals are better, and well, they are written less formally, but I still prefer Intel ones.
 
tbh, the main issue is that x86 has a LOT of cruft which makes it much harder to understand. Particularly the whole MSR/CR setup
 
@CatPlusPlus I think f() abstract; because then it's basically the same as f() delete; or f() default;.
 
Consistency good
Argh I hate when I'm about to do something, but then something else distracts me, and I forgot what I was about to do
 
sorry :D
 
Ell
12:31 PM
Hi again guys
 
Not you, got an SMS from friend
 
Ell
I'm on the train now woop
 
congratulations on putting one foot in front of the other in the correct order
2
 
It's not as easy as it sounds
Oh I remembered what I was about to do :toot:
 
gratz
 
12:33 PM
I gotta send the modem back to the ISP
 
Ell
It would be nice if this chat was XMPP
What went wrong with the lounge chat effort?
People just didn't want to implement stuff?
 
@Ell the :effort: part of it
 
:D
 
I still don't believe people will switch
Also I have to put more hours in to work
 
Ell
They might if there was a bot which mirrored everything to help the transition :P
Idk :L
I'm working on my own lounge chat project :P
 
user3010322
12:37 PM
I have far too many things to do to work on LoungeChat right this moment
 
user3010322
But I have not forgotten the project.
 
user3010322
I didn't implement all that WebSocket stuff for fun, you know. :v
 
Kyrostat is not dead
 
My personal issue is that after 8 hours of working, doing programming, I don't normally feel like doing more programming
which Lounge<Chat> requires
 
Ell
@ThePhD I'm just using strophe.js :3
 
user3010322
12:38 PM
@Ell Filthy casual. D:<
 
BOSH is terrible
 
Ell
Is it?
Meh. I'm using it anyway :P
 
user3010322
@Xeo I think I can live with that. :D
 
It's long polling, which should be dead by now
 
Ell
Well it's transparent to me so far :P maybe once I've implemented some of the other XEPs which need implementing (which I totally will do) then I can look into moving away from BOSH
but it works so far :3
 
12:41 PM
man that was a good sleep
I feel ready to code the WORLD!
or play a game
 
Ell
Ugh this train makes me feel gross
 
user3010322
@AlexM. I just woke up too!
 
user3010322
It's like, we're like, soul mates or something. <3
 
Ell
@ThePhD you must have a lot of soul mates :P
 
millions of them
 
user3010322
12:52 PM
Well, now sol is done...
 
user3010322
Back to fixing the kd-tree for Lightstalker.
 
@Chimera Cool, thanks. I might give it a try some time later.
 
Ell
@ThePhD what's it for?
the tree?
 
user3010322
Primitive culling.
 
right.
I gotta re-implement this stuff to actually code-generate them as real functions instead of always (shoddily) inlining
 
Ell
12:55 PM
@ThePhD is lightstalker a game?
 
user3010322
No.
 
user3010322
A silly raytracer.
 
Ell
Oh cool
Maybe I should write a raytracer some time
 
user3010322
Nope.
 
user3010322
You stick to your current projects
 
user3010322
12:56 PM
And you like it, young man!
 
Ell
xD
Yes sir :(
I might write one in the future I meant anyway
 
day 2 while low on funds, must improvise food
maybe I should buy some nice jam or something and make rice balls with jam
I have that rice sitting there for months now anyway
 
user3010322
I have to survive the next 2 weeks on 40 USD.
 
user3010322
It's gonna be great.
 

« first day (1352 days earlier)      last day (3596 days later) »