« first day (1629 days earlier)      last day (3302 days later) » 

11:00 AM
e.g. a call to bar<int> succeeds
 
user1804599
How do JVM and Mono catch call stack overflows?
 
user1804599
On Linux.
 
user1804599
I'm puzzled.
 
ask Stack Overflow
made for questions such as this
pontanna
 
user1804599
 
11:08 AM
@райтфолд IIRC it's because stack allocation is handled in native code, and they can fail there
 
user1804599
Yes, I know, but how is that implemented
 
user1804599
for as far as I know all you get is SIGSEGV.
 
@райтфолд I doubt it actually gets to that actually. Both the CLR and the JVM have hard stack limits that are smaller than the parent OS
 
user1804599
I guess you can set up a non-accessible page right below the call stack, and catch segfaults and see whether it was an attempt to access that page.
 
user1804599
But that may still cause heap corruption unless the heap is not below the call stack in memory.
 
11:11 AM
@райтфолд Is it real?
 
It can never run into the heap
 
user1804599
I don't know where the heap and stack are relative to each other.
 
user1804599
@R.MartinhoFernandes I see.
 
@райтфолд again IIRC that's not what happens. They preallocate the stack area and end up in native code if the call count gets high enough
 
user1804599
Problem is I use Boost.Coroutine's stack allocator. :P
 
11:12 AM
The only way that'd happen would be if you mapped the guard page and that'd be a bug in itself
 
user1804599
Is there always an attempt to access that page on stack overflow?
 
user1804599
What if the stack frame is larger than the page and only the last byte has to be accessed?
 
kernel_sigaction.h
 
> Exception catched
 
11:14 AM
lol comment in 160-170
 
user1804599
> JAVA_SIGNAL_H
 
Oh damn.
 
@Griwes +1 for "shenanigans"
 
Problems with passing Boost.Any to Lua are problems.
 
> Problems are problems.
 
user1804599
11:16 AM
I'll just make stack overflows UB.
 
> r2 by navrocky.vlad on Dec 2, 2009 Diff
 
@райтфолд that is technically the case in the CLR. That's why you can't catch them.
 
user1804599
csharp> class a { public static void f() { f(); } };
csharp> try { a.f(); } catch (StackOverflowException) { }
Stack overflow: IP: 0x41b45467, fault addr: (nil)
 
user1804599
top kek
 
@райтфолд in C# you can just catch(FooException) if you don't care about the actual value
 
user1804599
11:21 AM
I wonder what Go does.
 
user1804599
Ugh, TCO.
 
When given a choice, should I install TrueType font or OpenType font? It is a single font set and it appears to be distributed in two forms.
 
hmm
need to copy my keys for my flat
I bent one of them
 
user1804599
Puppy what does Wide do on call stack overflow.
 
UB atm
 
11:23 AM
dat edit :)
@Puppy pro tip: don't sit on keys
 
user1804599
Oh right, Go has unbounded call stacks.
 
@sehe Double pro tip: don't have only one set of keys.
 
user1804599
@Puppy Any other plans?
 
not likely
 
user1804599
OK :3
 
11:26 AM
@Griwes not bad
 
user1804599
I can't get mill to compile on my other PC.
 
user1804599
I get silly shit like this:
 
user1804599
/usr/include/boost/asio/local/detail/endpoint.hpp:78:55: error: expected '(' for function-style cast or type construction
      + offsetof(boost::asio::detail::sockaddr_un_type, sun_path);
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
 
user1804599
Maybe I should reinstall Boost.
 
user1804599
I have Boost 52 wjich is ancient.
 
11:33 AM
Seems it's illegal to wear a bulletproof vest whilst committing a murder in New Jersey.
 
Hm...
Interesting, I cannot pass Boost.Any to Sol.
 
OP I suppose.
 
@wilx does the truetype have opentype info?
if it does install that
otherwise opentype
 
I wonder why Lua gives me an error while calling the copy constructor for Boost.Any
 
11:33 AM
dns error
 
user1804599
@JohanLarsson nice
 
6
Q: Template version of std::abs

LingxiHere lists the current overloads of std::abs in C++. I'm wondering why not just define the following template and let go all the ugly C-style overloads? template <typename T> inline T abs(const T& v) { return v < 0 ? -v : v; }

 
user1804599
Ugh, still broken.
 
@LightningRacisinObrit I like that faltering attempt to censor 'shit'
 
@R.MartinhoFernandes It’s a good thing you checked that ahead of time.
 
11:38 AM
@R.MartinhoFernandes Seems it's illegal to let a moose sleep in your bath over night in Illinois
Read that somewhere
 
@Columbo Public health issue.
 
Laws are like a program's source code. They always suck.
 
Trafalgar Law is kinda cool.
 
@StackedCrooked No, he's just a wanker (and so is Lorenor)
Now Do flamingo is a fucking badass
Best character in the series so far IMO
Crocodile is cool as well, not so wankerish
Just a little
 
Wut, Lorenor?
Is that the German name?
@Columbo he is definitely one of the most evil characters
 
11:45 AM
@StackedCrooked Zorro
 
@Columbo what about kizaru?
 
@StackedCrooked Yeah, kizaru is really cool! In a different way
He's the chiller ^^
 
hehe :D
 
well
turns out that if you grip the end of the key with the pliers, you can literally just bend it back with hand force.
 
Xeo
Did you bend one of your keys?
 
11:49 AM
yes.
 
Xeo
I'd recommend not using it anymore - I managed to break off the front of a key inside the lock once :/
 
I'm going to get a copy after the Easter holidays
 
Yeah, if I've bent it out and back, I'd be afraid to use it.
 
@Mgetz I do not know. How do I find out?
 
agreed with Zao and Groves
 
11:51 AM
according to The Internets, you only really need to worry if the key is cracked
which my key was not.
it was a pretty small bend and the key is made of steel or someshit like that.
 
@Rapptz When you get back on: stackoverflow.com/questions/29412250/…
 
@Puppy o_0 why wait?
 
@thecoshman Because I'm leaving in an hour and that's not enough time to get it copied beforehand.
 
@Puppy oh right
 
user1804599
ok apparently Boost.Asio fail
 
11:53 AM
@райтфолд ...ed?
 
user1804599
it uses offsetof without including <cstddef>.
 
I thought UK had taken on stupid holiday shut downs too
 
@райтфолд lel
 
@райтфолд worst offense ever
 
must remember to stock up on booze and meat for tomorrow :D
 
11:54 AM
@райтфолд Perhaps the devs thought they included sufficiently many other stdlib headers that implicitly include <cstddef>
 
user1804599
removed the dep on Asio and now it works
 
@Puppy your key is crooked
 
@thecoshman It has.
 
also, what's the difference between the stackoverflow and programming stack exchange sites? apart form ours being the right one.
@Puppy o_0
 
@Columbo It's easy to forget to include every stdlib header you need.
 
11:55 AM
@StackedCrooked Just realized that chiller is a defined term in the english language that definitely doesn't mean what I said
 
@Puppy Oh well if the internet says so, who cares what your friends with personal experience say?
 
@thecoshman Progammers is like SO but for terrible questions.
 
@thecoshman It does. Tomorrow and Monday.
 
@LightningRacisinObrit "friends" lol
 
@Columbo ;p
@thecoshman Stack Overflow is about code problems. Programmers is about software development problems.
 
11:56 AM
Programmers.SE is a place where you ask theoretical questions. Like "Why does C++ suck?" "Because it sucks." "Yes, definitely."
 
@LightningRacisinObrit Your new pic is really sweet :*
 
@Griwes No it's not
@Columbo Thanks Calamby
 
yes it is
 
@Griwes No, it's not.
 
Yes, it is.
 
11:57 AM
You are mistaking "theoretical" for "conceptual".
 
well I need to eat and pack.
 
@Griwes no
 
@LightningRacisinObrit I love how you probably started the response with @Col.., pressed tab, and then called me Calamby
 
@Columbo Um, no, it's the reply-to arrow dipshit
 
@LightningRacisinObrit Ohhhh, right, I'm stupid
2
 
11:57 AM
@Columbo yes Calamby you are
 
@Puppy package.luggage;
 
no.
 
Dan are you on mobile?
 
@LightningRacisinObrit It's "Calambu"
 
11:59 AM
@LightningRacisinObrit Is that an abbreviation?
 
@LightningRacisinObrit k
awergöuagaerg
iudbhrgulisebrgisubhgvlishedrbgixzulsrbhgse
;))
 
@Puppy on the pounds
 
12:00 PM
>>>>:((((
 
&nbsp;
nope
 
I'll leave you to your work. :)
 
o_0 wtf you up to?
 
user1804599
lol
 
12:01 PM
Wait,
 
user1804599
using a non-Boolean as condition crashes the VM with std::bad_cast.
 
@LightningRacisinObrit damn your zero width space with joiner! or non joiner!
 
@thecoshman Already done enough of that.
 
@LightningRacisinObrit ​
I did it!
 
@Puppy weird Al comes to mind :\
"Why is this file so small? There was loads more than what I see now?" I then realise the functions have been 'folded' in the editor to hide them :|
 
12:06 PM
my code compiled
I'm essentially an objective c guru now
 
@AlexM. Is it... Hello world! ?
 
nah
 
@LucDanton Interesting. I guess I don't know my template argument deduction. How come the first argument isn't sufficient to deduce T = int?
 
@AndyProwl It is enough, but it’s not allowed to make the leap. The rules say it must fail.
mmmh don’t take that literally, I actually don’t know the wording—but we do agree that informally speaking the type is mechanically deducible
 
yeah... that's some odd template foo bar
 
12:10 PM
@Columbo well done Celimba
 
I think the way it’s set up is that for all parameters that involve a deduced parameter, all deductions must take place and must agree. Can’t 'skip' one, even if that would allow us to succeed.
 
@LightningRacisinObrit y u do dis
 
Xeo
Fuck's sake with IntelliSense and Unreal Engine source...
 
@Columbo ney roson
@Xeo UnintelliNosense
 
yet this and this are fine alternatives.
 
user1804599
12:12 PM
template<typename T, typename U>
T static_downcast(U&& x) noexcept {
#ifndef NDEBUG
    return dynamic_cast<T>(x);
#else
    return static_cast<T>(x);
#endif
}
 
@thecoshman I particularly like that first one
 
user1804599
:)
 
@райтфолд lulz
 
that's wrong.
 
@thecoshman That’s not really unexpected though. Did you try bar<int> with the original example?
 
12:12 PM
you should assert on dynamic_cast.
not return NULL.
otherwise you can't distinguish between an error condition and intended semantics.
 
I concur, actually
Pippa is right
 
@LucDanton will do...
 
user1804599
@Puppy right.
 
user1804599
noexcept already catches the exception if reference
 
@LucDanton OK, so for all the function parameters that are not non-deduced contexts deduction must be attempted and yield consistent results. I think I see
 
user1804599
12:14 PM
but I didn't account for pointer T
 
Xeo
VS is completely dead :|
 
@LucDanton getting at that it 'just works'?
 
user image
8
 
lol
 
12:15 PM
hey
 
Question: "Java: Why can a file not have more than one public class [duplicate]"

Answer: "Because one .java file can contain only one public class."

65 wat
 
my plane didn't crash
 
@Xeo REJOICE!
 
altough 2 hours in a crowded car were way worse than 2 hours on the plane
 
12:16 PM
why was it crowded?
 
@LightningRacisinObrit 4 people in a Ford Fiesta :/ because every other car broke
 
@BartekBanachewicz maybe next time
where you at?
 
Swindon ATM
moving later today to Bath I s'pose
 
@Columbo s/you don't/one does not/ :F
 
anyway I was extremely productive on board again
I've to push this thing
 
12:17 PM
@Griwes Shush Groves
 
@AndyProwl That’s not non-right.
 
Xeo
everything's so slow aaaaaaaaaaaaaa
 
that's what she said
 
@LucDanton lol
 
@thecoshman yeah
 
Xeo
12:17 PM
If I hate one thing when it comes to PCs, it's when they are slow for no fucking reason.
 
famous "slow internet vs no internet" eh?
 
user1804599
Hmm, knäckebrot in Coca-Cola is surprisingly nice.
 
@AndyProwl That’s a crucial difference between a type deduction algorithm (not a term of art) and type inference (that one is). In type inference the 'holes' are kept to be filled in from another part of the program.
as an aside
 
Xeo
@BartekBanachewicz slow pc vs no pc
 
@райтфолд Aren't you swedish or some shit
 
12:21 PM
@Columbo he's netherlandish
 
@BartekBanachewicz And you're polish
And I'm germanish
Wait what
 
user1804599
@Columbo no I'm Dutch
 
user1804599
netherlands master race
 
@райтфолд Not your fault
 
lol
 
12:23 PM
@Xeo Aliens Viruses
 
> To Ed Wood, the terms "outtakes" and "final cut" were pretty interchangeable.
 
user1804599
haha this program causes segfault: proc f(s: String) { outln(s); } MAIN { f(); }
 
@BartekBanachewicz so you had to share with randomers?
also lol 4 people in a Fiesta "crowded"
 
@LightningRacisinObrit not randomers
 
try 6, bitch
 
12:25 PM
@LightningRacisinObrit fuckin' barbarians
 
@BartekBanachewicz Family holiday to Swindon
 
Perfect holiday place innit
who cares I don't have to work that's what matters
 
make sure you spend some time looking for Swindon's beach. it's quite hard to find but it's worth the effort!
and today's a nice day
 
Swinedon
 
let's see
 
12:28 PM
@LightningRacisinObrit yeah there's actual sun outside
 
@BartekBanachewicz to each their own I guess
 
well was for like 10 minutes
I DONT HAVE TO WORK HA HA
just wanted to point it out
 
Bartek I think we're not receiving all of your messages
 
Yeah, what did you want to point out?
 
lol just took off my pyjamas ... then put them straight back on again. holiday required
when I get one it'll be particularly nice because everyone else here has been hard at work constantly lately with no breaks
 
12:30 PM
@LightningRacisinObrit pics or it didn't happen.
 
@khajvah no, khijveh
ok your name looks random no matter how I write it
I can't break 'khajvah'
 
python (a**2+(a/2)**2)**0.5 is (((a**2)+(a/2))**2)**0.5 right? I think I've understood the precedence right threre
 
lol nice
 
probably cash
 
12:32 PM
@thecoshman I would be surprised if it didn’t mimic mathematical notation, i.e. a + b² is a + (b²).
 
user1804599
@Puppy what is concept_map?
 
depends on who you ask
 
@райтфолд haskell instance <Typeclass> T
 
what context did you find it in?
 
user1804599
In the Wide lexer.
 
12:33 PM
you just state that your type T belongs to "typeclass" / "concept" <Whatever>
 
@LucDanton yeah, one would epxect power to have fairly high precedence, but vOv
 
a concept map, roughly speaking, defines that a type meets a concept externally, and maps the interface of the concept on to the interface of the type.
 
user1804599
OK.
 
Wide doesn't have concepts or anything like that right now
 
user1804599
Nice.
 
12:34 PM
it's just a keyword that is currently reserved for future use.
gah Daisy is such a tremendously stupid dog
 
Please note that the line where the add_edge() is used to redirect the edges, you missed to assign the weight to the re-directed edge that is why in your code you got 0.0 for Amanda after processing. Please check if this is correct and please update your code. Thanks — user1965914 3 mins ago
What the actual fuck.
 
LOL
I got a similar message once, I deleted my answer and downvoted the question
 
I literally spent hours looking at this code trying to understand it. I solved all the issues he was having and produced pretty graphs as well.
 
I didn't think porting python would be so educational :\
 
seems to me like he's just saying that there's a bug in your code
 
12:37 PM
OP says "you forget to copy XXX". I don't even
 
@sehe Please update your code. Thanks.
 
@MomotapaLimpopo I won't. I learnt a lot and it's useful to others
@MomotapaLimpopo I love this, for some reason. I think it requires some cojones to say this kind of thing
 
user1804599
@Puppy that bitch
 
dawwww
 
user1804599
Maybe I should get rid of contravariant and covariant and go the C# route of out and in.
 
user1804599
12:44 PM
Especially since out and in are already there.
 
lol news
56 yo guy climbs a tree to destroy an owl nest due to superstitions saying that owls foretell death
gets stuck and dies
 
what else is new
 
google translate: olteniteanul.ro/2015/03/…
it has pics too
 
@райтфолд in and out parameters are ugly :\
 
lol
0
Q: C++ Template interface (list implementation)

FlacktubI am trying to implement a list data structure in C++. I want to define a list interface which would be later inherited by implementation such as ArrayList or LinkedList. I'd like to be able to use it like List<int>* testList = new LinkedList<int>; or List<int> testList = new LinkedList<int>...

 
12:47 PM
@AlexM. QED
 
@thecoshman That's not what those keywords mean (in this context)
you're thinking of ref and out (a different use of the same keyword)
well I'm off to the swamp
see you ladies later
 
@Puppy nice to see you think of @mom
 
bye honey
 
user1804599
@thecoshman That's something else.
 
user1804599
E.g. with union Option(T: in) { Some(value: T); None } then Option(Derived) is a subtype of Option(Base).
 
12:51 PM
The guy who came up with vim navigation is a genius
 
Navimgation
 
user1804599
out keyword was already there to mean something else (return value in a postcondition).
 
user1804599
But it can perfectly be reused here.
 
so I have just 100 lines of duplicating code
actually less
can live with that right now
great.
 
Duplicating code? Watch out
 
12:54 PM
now only to write automatic context checking with fallback
 
@MomotapaLimpopo navis are hard works bro
 
This question seems clear to me. — Virus721 55 secs ago
 

« first day (1629 days earlier)      last day (3302 days later) »