« first day (1831 days earlier)      last day (3118 days later) » 

user406009
4:01 PM
They never evacuated the school though. The evidence appears to be that no one thought it was a bomb.
 
user406009
Like I said, they were arresting him for having a hoax bomb.
 
Let’s not use facts and go back to talking about suitcases.
 
user406009
Even when he claimed it was a clock every time Ahmed was asked.
 
Popehat, a law blog with a libertarian stance, has a interesting stance on it.
 
It's not claiming something is something, there's also the aspect of what it looks like for the cop at the scene. It's like someone enters a bank with a mask-ish thing and says it's not what it looks like.
 
4:02 PM
The problem started before cops entered the picture
 
@ElimGarak In your own private imagination. You’re recreating the scene in your mind based on apparently nothing, and then using that as if it mattered. But it’s imaginary.
 
@ElimGarak That's not what happened.
 
It's also a trend not an isolated incident
 
He brought a suspicious object to the school. The staff called the police. The police determined it is not a bomb. Deferred to the notion of a hoax bomb (still a crime), arrested the kid. And now it is done and he's a minor celebrity.
 
And one day he'll board a plane with a clock and you know what happens next
 
user406009
4:05 PM
Islamophobia is real and it is a problem.
 
I am pretty sure they didn't start fearing islam because they were bored.
 
here we go again
 
Make sure to make your walls of text bigger this time.
 
I'm all for picking the best in every religion TBH, weddings from Christianity, respect of elders from Buddhism, the art of making money from Judaism and the mastery of explosives from Islam.
4
 
4:08 PM
No walls of text necessary. I am not saying any of it is right, I am just saying that I understand it.
 
And goat sacrifices from all of them
 
we need to get rid of handcuffs
 
@ElimGarak They were never necessary.
 
they're ineffective
what the government needs is mindcuffs
 
@GregorMcGregor I like that
 
4:10 PM
I said that once at a dinner
 
@GregorMcGregor just replace weddings by easter/christmas (weddings are p boring imo)
@GregorMcGregor how did it go
 
Very well
 
cool
how are you
 
@AlexM. dunno if "better"
 
> char ****info = 0;
this is my code
not proud of it
 
4:15 PM
At least we know where the Lounge's star budget comes from now. :P
 
@Mr.kbok How could you even? ...
 
@BartekBanachewicz My eyes.
 
@Mr.kbok this shouldn't happen
@EtiennedeMartel 0/10 closed tab wouldn't use ever
 
@Morwenn it's a long story
 
It's fine, I just needs a couple extra chars:

//char ****info = 0;
Get rid of the wall-of-stars with typedefs.
 
4:16 PM
@Mr.kbok But seriously, how did you become a 4-star programmer?
 
it's a pointer to an array of arrays of char*s
 
@ElimGarak I assume alcohol.
 
@Mr.kbok that is bound to confuse someone
 
Me, for one.
 
I need to call a function in a vc9 dll from a vc12 dll. I need to pass data as a flat, C-like api
 
4:18 PM
3 mins ago, by Bartek Banachewicz
@Mr.kbok this shouldn't happen
 
I'm experimenting to find the least alienating solution
 
sorry m8 but you're failing so far
 
you can't fail to experiment
suggestions welcome
 
typedef some pointer types.
 
4:20 PM
actually it's char***** sorry
 
Oh fuck..
 
What do you need that for
 
Guise, we've got 5 stars programmer here.
 
He forgot after the second star.
 
Twinkle, twinkle little star,
nobody knows what the fuck you are.
 
4:22 PM
Also CRT mismatch will blow you up anyway, don't do that
 
glowing brightly on the page,
like dross that fell from some programming mage.
 
@CatPlusPlus no?
 
> visualized test performance
visualized my ass you made me go ufcking blind
 
4:26 PM
hi litb
 
what's the chat event for received or editet message
 
robert_event
 
I see this
        "MessagePosted": 1,
        "MessageEdited": 2,
But I don't see code posting them
 
@GregorMcGregor what's the deal with robert
 
> Skyep has stopped working
 
4:26 PM
you said it before when you said robmix
 
Skype U SUCK
 
std::map<long, std::map<std::string, std::string>> result;

char *****ptr_info = 0;
size_t size = 0;
detail::get_instrument_info(handle_, &sicovams[0], sicovams.size(), &ptr_info, &size);

for (size_t i = 0; i < sicovams.size(); ++i)
	for (size_t j = 0; (*ptr_info)[i][j]; ++j)
		result[sicovams[i]][(*ptr_info)[i][j][0]] = result[sicovams[i]][(*ptr_info)[i][j][1]];
there
 
> char *****ptr_info = 0;
FUCK YOU
 
> Intel has 72 core Xeons
>mfw people don't understand the Phi is a coprocessor
 
Or you know use an opaque handle and have a function const char* get_result_bit_whatever_info(handle, long, const char*);
 
4:31 PM
@Mr.kbok and this is what runs my bank account? pls
 
I like teh skype. I can now make video calls from mainland Europe, (also Tenerife etc.), at no extra charge on my 3G unlimited tarrif:)
 
ooookay
Vt = TheThingThatGetsDataFromTheServer(Ns)
v good naming
 
@CatPlusPlus Presumably we are in fact seeing the internals of a horror-hiding bridge function.
 
Even my most obscure and complex code does not have more than two explicit indirections. Onviously, there are horrendous pointery things hidden in my GUI apps, but I don't have to look at them:)
 
@ElimGarak If only it wasn't windows
 
4:33 PM
It manages a char*****, it's a crappy shitty API
 
Just having VC++ installed would make me feel sick
 
Just return that map as an opaque handle, and have functions to extract information out of it piece-by-piece
 
^^ wot cat says.
 
@Jefffrey Given the components, you can probably run El Capitan on it (ran it with some success on the Surface Pro)
 
@CatPlusPlus Ɗude it’s a local variable :v
 
4:37 PM
What's up with that D?
 
And I'm saying that detail::get_instrument_info or whatever should return it instead of unpacking it into that pointer monstrosity
 
@Jefffrey Lol, I thought a fly took a shit on my screen.
 
@GregorMcGregor It's typically used that way, but IIRC, the processors still have memory managers and such, so it could (for example) be used like a blade system, with groups of cores each running an OS. I doubt anybody's done so (and the OSes wouldn't have much in the way of I/O) but I doubt there's anything to truly prevent it. In any case, get used to it: I'd expect to see at least one processor released with at least 100 cores within the next few years, and within 5 years or so, 1000+ cores.
 
> I have the following code:
for(g=0;g<G;g++){
    for(j=0; j<p; j++){
         for(k=0; k<p; k++){
             sg[g][j*p+k]=0.0;
                 for(i=0; i<N; i++){
                     sg[g][j*p+k]+=z[g+i*G]*(x[j+i*p]-mu[g*p+j])*(x[k+i*p]-mu[g*p+k])/n[g];***
 
4:39 PM
Yeah good luck
 
Unreadable garbage
 
ikr
 
why does the following not work again? (ignoring silly macros)
namespace WinCrap {
	extern "C" {
#include <WinSock2.h>
	}
}
 
And lest I be misunderstood: no I'm not talking about something like a GPU either, where you have lots of cores that mostly execute the same tasks in lock-step, so it's more like a single processor with N-way SIMD. I'm talking about multiple cores, each executing completely independently of the others, about like the cores in a typical i7 or whatever do now.
 
Because it doesn't don't do that
Ever with anything
 
4:41 PM
Why do you need extern "C" again?
 
to neutralize the namespace
linkage-wise
 
@melak47 ???
 
So if I understand well, you're trying to turn unreadable garbage into massively parallel unreadable garbage? — Gregor McGregor 51 secs ago
 
4:42 PM
you could always reverse the polarity
 
constructive
 
Stop
 
@melak47 it'll never work because linker will eat you and your breakfast
 
4:42 PM
monologues are a problem
 
@milleniumbug actually...this seems to work fine for me :v
 
@melak47 I'd guess that Winsock2.h has its own extern "C" markings in places (but may also include some C++ code that expects to be compiled as C++).
 
@melak47 You may have to clarify what 'work' means here (incl. in the 'not work again' original question).
 
@JerryCoffin oh, yeah it has it's own extern "C" block. let's say windows.h though
 
@melak47 which is surprising because C++ name mangling exists and you're nuking it with extern "C"
 
4:44 PM
If you wanted to declare entities in another namespace then sure it would work.
 
@milleniumbug well that was the idea for those C things :D
 
@melak47 I'd guess it does too. In fact, I'd be surprised to find any header in the Windows SDK that didn't. In theory, there's no reason you couldn't do it with some arbitrary header that doesn't know anything about C++, but I'm a bit lost as to why you would.
 
@JerryCoffin to not have windows everything in ::
:v
 
All problematic parts are macros anyway
So that buys you exactly nothing
 
well, this breaks all of them, so no problem
 
4:46 PM
Batman (Kurdish: Êlih‎) is a city in the Southeastern Anatolia Region of Turkey and the capital of Batman Province. It lies on a plateau, 540 meters (1,772 feet) above sea level, near the confluence of the Batman River and the Tigris. The Batı Raman oil field, which is the largest oil field in Turkey, is located just outside the city. Batman has a local airport and a military airbase, which was used for transit of aircraft and helicopters in some search and rescue operations of the Gulf War. Until the 1950s, Batman was a village, called Iluh, with a population of about 3,000. However, oil fields...
 
yay! new phone! it's updating ¬_¬
 
which one did you get
 
One Plus One
 
@thecoshman so.. Two?
 
One Minus One
 
4:48 PM
No, that's 2
 
it's called OnePlus One
 
@BartekBanachewicz that's not as confusing though :P
 
@BartekBanachewicz 1 + 1 == 1+ 1
 
@thecoshman yes and not as hackable right
@orlp irrelevant
 
@melak47 The problem there is that if you want to move something into a namespace, 1) you have to get rid of the extern "C" part, and 2) it affects name mangling, so you have to apply it both to the consumer and to the implementation (I.e., you need to specify the namespace when you build the functions, not just when you try to call them).
 
4:49 PM
@orlp true
 
@orlp Batman City in Batman Province near Batman River. lol
@JerryCoffin the idea is to nuke the namespace from the mangling with the extern "C" so no linker problems
we're talking about crappy C libraries here :D
 
@melak47 Yeah, but at that point, you're back exactly where you are now (everything in the global namespace). Of course, none of that even starts to deal with the fact that virtually every function xxx is actually an xxxA and an xxxW, with a macro to alias xxx to one of those, depending on whether you've defined UNICODE (or maybe _UNICODE) when you compile.
 
@melak47 Turns out it’s supported for functions and variables. Trickier for types I think.
 
@JerryCoffin except it's still confined to namespace WinCrap, and the A/W macros still work as before
@LucDanton that'd only be a problem with like...exported classes or something though, right? which C doesn't have
 
@melak47 For strict conformance, no.
 
4:57 PM
mingw/gcc also accepts this :v
 
Linkage matters is nearly always 'no diagnostic required'.
 
namespace Windows here I come! #yolo
 
@melak47 Well, it sort of is. The xxxA and xxxW names (that are unlikely to collide with anything anyway) would be, bit the xxx names that are a lot more likely to collide, are macros so they don't respect namespaces anyway.
 
@JerryCoffin sorry, what?
 
5:00 PM
@melak47 automatic is gonna be harder than anticipated :/
 
@BartekBanachewicz :/
no event-like things you can subscribe to?
 
I can subscribe to #chat element adding
But monologues don't add new top-element
 
train stop. brb
 
I'd need to subscribe to every message sent as well
to see if nothing appears in the monologue
aaaand to see if someone edits it
I could probably do that and automatically deregister those after 5 minutes when you can't edit anymore
Well I guess that's one way to do that.
someone write something
 
user1804599
I am bored.
 
user1804599
5:12 PM
But at least I can master the computer.
 
user1804599
Great life!
 
@Elyse Master is insensitive. Use "Primary" instead.
 
user1804599
Fuck off; I'm not your slave.
 
You mean you're not my replica? :D
 
user1804599
Luckily not!
 
user1804599
5:14 PM
As the worker, you build. Your work will soon be destroyed by your categorical dual, the coworker.
 
user1804599
lol
 
int a[10];
a[10];       // Is this legal?
 
But I'm not reading or writing?
 
It's dereference anyway
 
5:18 PM
@fredoverflow C takes the stance that lvalue-to-prvalue conversion is required (i.e. it’s the 'read' you are looking for, and it’s not there) for UB, C++ doesn’t (indirection alone is reading).
 
So legal C, illegal C++?
 
yes
 
interesting
 
@fredoverflow Let me check.
 
5:19 PM
@MartinJames hehe
 
@MartinJames I prefer attack helicopters.
 
@fredoverflow I know that &a[10] is fine, I have to double-check whether an expression statement triggers lvalue-to-rvalue conversion or not.
 
@melak47 I hoped someone would get it after I took the time to find a pic.
 
user1804599
@fredoverflow define "legal"
 
user1804599
You can ask for well-formedness and well-definedness.
 
5:25 PM
@Elyse What's the difference?
 
user1804599
"Well-formedness" is specific, "well-definedness" is specific, "illegal" can mean either of those or both or something else entirely.
 
> If an expression of any other type is evaluated as a void expression, its value or designator is discarded.
I’ll take it to mean that does in fact trigger lvalue-to-rvalue, which makes a lot of sense for volatile etc.
@fredoverflow This particular snippet is invalid code then.
 
heh
great
 
user1804599
That may not be optimised to return true; unless the compiler can guarantee i will ever reach 4.
 
5:28 PM
@Elyse reading past the end of table is ub so it does whatever I guess
 
@melak47 source?
 
cpx
@fredoverflow Why would you write only a[10] without doing anything with it?
 
user1804599
@melak47 Yes, so?
 
user1804599
If table[3] == v then it'll not index out-of-range.
 
5:29 PM
doesn't matter, because you return true in that case.
 
@cpx Because I'm curious.
 
so "may not be optimized" is entirely irrelevant :d
 
so in all the defined-behaviour cases, you return true.
therefore the compiler may legally optimize it to return true.
 
user1804599
Hence, optimising this is wrong unless you can prove i will reach 4.
 
printf("%05d\n", 0-42);
// prints 00-42 in my IDE :-D
 
5:30 PM
@melak47 technically that code is not UB
 
user1804599
@Puppy oh right, lol.
 
user1804599
I get it.
 
It was pretty funny, but not as good as the original JavaScript WAT talk.
 
@fredoverflow ooh, I'll watch that right now
 
dat bow tie
 
5:32 PM
@fredoverflow I would hope not - if C++ was as hilarious JS we'd be in real trouble :p
@StackedCrooked how so?
 
It's just wrong code. But it does not do anything that is labeled UB by the standard.
 
@StackedCrooked dereferencing one past the end of an array is not UB?
 
@StackedCrooked it derefences beyond the last element. That is UB
 
Oh, the code at the left hand side is the wrong one?
 
So, that's why the compiler can just return any value. If it's very kind for you
@StackedCrooked Gosh. The code on the RHS is what a compiler reads, likely
 
5:34 PM
@StackedCrooked the right side is the optimized "decompiled" disassembly I assume
 
Ah.
I'll go dig a hole now and crawl in it.
 
user1804599
@StackedCrooked Both are wrong. The one on the right-hand side has an unused parameter, which is UB.
 
Imagine a game with a playable ad where the advert gradually becomes the main game whilst the core game becomes the advert.
that's... interesting actually
 
@Elyse how is not using the parameter UB? o_O
 
@AlexM. Don’t feed the Molineux.
 
user1804599
5:36 PM
@melak47 It isn't, but it is as punishable as UB!
 
what?
 
@melak47 rfold's talking out of her ass
 
user1804599
Yes.
 
user1804599
I upgraded my ass with a mouth.
 
> Today, YouTube announced a premium subscription service that will allow users to pay a fee—$10/month—to watch videos without ads.
I already watch YouTube without ads.
 
5:40 PM
fun String.skipDigits(start: Int): Int {
    val n = length()
    for (i in start until n) {
        if (this[i] !in '0'..'9') return i
    }
    return n
}

fun String.parseInt(start: Int, end: Int): Int {
    var x = 0
    for (i in start until end) {
        x = x * 10 + (this[i] - '0')
    }
    return x
}
 
> $10/month
lolololol
 
> I’m too lazy and I don’t care enough to type it out, so something something about supporting content creators blah blah, fat lazy people should be allowed to not get real jobs.
lelelelel
 
During everything you watch on YT, you'll prollly not be worth that much
 
@StackedCrooked Tell me what you think afterwards.
 
user1804599
@fredoverflow four lines of Haskell
 
5:47 PM
Jun 10 at 15:23, by Bartek Banachewicz
oh fuck Haskell
 
user1804599
skipDigits :: String -> Int -> Int
skipDigits s n = length $ takeWhile (`elem` ['0'..'9']) $ skip n s

parseInt :: String -> Int -> Int -> Int
parseInt s f t = read $ take f $ drop (t - f) s
 
user1804599
parseInt is an approximation, though, as it's retarded (partial)
 
user1804599
It should return Maybe Int.
 
@Elyse Oh wait, I can use a fold for parseInt:
 
5:49 PM
@fredoverflow it looks normal to me
 
fun String.parseInt(start: Int, end: Int): Int = start.until(end).fold(0) { x, i -> x * 10 + (this[i] - '0') }
 
that's what she said
 
user1804599
skip should be drop.
 
@fredoverflow The example with brace-initialization are kinda painful.
It's incredible how badly messed up that is.
 
user1804599
I solve all brace-initialisation issues by never using brace-initialisation.
 
5:51 PM
I use it for std::atomic.
 
user1804599
-1.
 
@AlexM. I guess it only looks concise to a Java programmer ;)
 
user1804599
@fredoverflow The slides that changed my life: foldl and foldr (source)
 
@Elyse I don't see how the first slide is life-changing. But yeah, slide two totally makes me feel like a different person.
 
user1804599
It made me understand my own name.
 
user1804599
5:55 PM
And that I can handle infinity.
 
@Elyse Only if you're lazy ;)
Wait, Tony Morris sounds familiar. Is he some kind of Haskell guru?
 
user1804599
Yes.
 
user1804599
And also Scala.
 
@fredoverflow I think your first function in haskell would be writeable like...
 
@cpx Also, I wonder whether sizeof(a[10]) not crashing is actually worth mentioning :)
 
5:58 PM
length . fst $ span isDigit "some string"
 
(My next video is probably going to be about sizeof.)
 
@BartekBanachewicz how were you planning on extending the lifetime of removed messages? is there an event for that you can subscribe to and save the message just-in-time before removal?
 
@fredoverflow sizeof(a[10]) is not UB, right?
 
@bluefog correct
 

« first day (1831 days earlier)      last day (3118 days later) »