« first day (2123 days earlier)      last day (2828 days later) » 

12:00 AM
With support for direct byte values too
 
12:33 AM
 
12:43 AM
Stay with me
Deep down I know this never works
Oh, won't you stay with me?
Cause you're all I need
This ain't love it's clear to see
But darling stay with me
 
Hello darkness my old friend
I've come to talk to you again
And in the naked light I saw
Ten thousand people maybe more
Wait
Why would you flag "stay with me"? /cc @Hunter
 
This looks like spam to me..
 
It's just a song lyric
Nobody is active anyway
 
Alright, no fun allowed. Why are you here @Hunter?
You seem to be a Java/script guy
 
12:53 AM
Please don't abuse flags.
 
It's ok Mysti
(s)He meant to do no harm
 
idk, maybe he came here to ask a javascript question
we will see what he does
 
does anyone mind if I ask a question about something I'm doing in Java? I just think it related to C++ as well
 
Hardly
I would be surprised if it was something that is valid for both C++ and Java
 
hardly to minding or the relationship :P anyway i think I found an answer
hmmmm well
concepts of OOP
are kinda similar I think.
 
12:59 AM
What's the question?
 
I dumped java, it bothered me that it uses too much ram
 
It was related to observer/observable design pattern
 
Hellu
 
QObserver/QObservable
 
Hellu
 
1:01 AM
In Java you can't extend multiple classes so I was wondering what the best practice would be to extend observable
I think what I'm going to do is make an interface that... has observable. Then implement the interface.
 
OOP design patterns are well known to be messy and awful for most non trivial situations
If this is something you learnt at uni, just forget it
 
@qaispak Just pretend its an interface, you only get in trouble if it needs to own something like a list of pointers... Thats why you can't inherit multiple QObjects. Also use Qt.
 
The observer pattern must use abstract classes
Specifically the subject must inherit from Subject which holds the pointers to Oberservers
So no, you can't pretend it's an interface
But really forget this shit exists
What's the problem you are trying to solve?
 
He wants to do multiple inheritance, and in Java you can't. In C++ we let you do stupid shit, but only because we're too poor to afford interfaces.
 
No, because not every single instance of multiple inheritance is evil
 
1:12 AM
I prefer it for composing large POD style objects.
saves on the dots
 
I've been at war with the Intel Compiler for the whole weekend. I think I'm gonna raise the white flag.
 
obligatory joke about compiler flags
 
no kidding
One of ICC's loop optimizations is backfiring. And I can't find a reliable way around it.
 
Hmmm doing enough research
I've come across a few ways to thread in C#
But I have no idea which would be optimal @_@
Guess im gonna have to try em all :'3
 
(at)_(at)
 
1:25 AM
rofll
(semicolon)-(semicolon)
I keep trying to plan this thing but I just misreably fail
Although, is finding a 100x100 pixels image on a 1360x786 screen in 0.7 seconds on a AMD E2-2000 apu fast enough?
 
1:43 AM
(R)of(L)
@ReousaAsteron Testing Go
 
@Darkrifts I've made up my mind, I'll either be using TPL or TAP depending
I like that TAP has a WaitAny method, because I don't need to wait for all the tasks to finish, just the one that finishes first
 
@Mysticial What about this "backfiring"?
I need flaws to exploit :>
 
But if I'm gonna queue the results, I'll probably just use TPL, since the order wouldnt matter anyway and it's faster
 
@Darkrifts How familiar are you with compiler optimizations?
 
Did it just make a bad performance decisions?
 
1:47 AM
Not very
Probably optimizes a bunch of my stuff :P
 
@Mikhail Yeah. I have a loop that simultaneously iterates 23 streams. Now I know that I can't have 23 pointers since there aren't enough registers for it. So I'm abusing the capability of indirect addressing to get 23 pointers with only 13 registers. The problem is that ICC is identifying the 23 streams as induction variables. So it creates 23 induction variables and spills them.
 
What are "induction variables" and how could they "spill"
 
Flip the cup.
 
IOW, ICC clearly has an optimization that finds all "induction values", and turns them into induction variables without regard to how many there are. Once the register allocator gets a hold of it, it doesn't know what the fuck to do with it other than spill everything.
 
Hmm, feels like a bug. Maybe you could do something insane like build with clang?
 
1:55 AM
If you're wondering how 23 streams can possibly work efficiently on any processor: There's only 15 "real" streams. The other 8 are prefetch streams.
 
I'm surprised they haven't added more.
Is it like a fire hazard or something?
 
Fuck you ICC. This doesn't belong in the critical loop:
vfmadd213pd ymm4, ymm2, ymm10                           ;54.5
mov       rsi, QWORD PTR [184+rbp]                      ;163.9
prefetcht1 BYTE PTR [rsi]                               ;163.9
add       rdx, 32                                       ;85.9
mov       QWORD PTR [256+rbp], rdx                      ;85.9
add       r15, 32                                       ;128.9
mov       rdx, QWORD PTR [216+rbp]                      ;163.9
add       rdi, 32                                       ;85.9
 
Instructions unclear: froze CPU with assembly
 
A better troll comment would have mentioned that as a real programmer you were only fluent in MIX
 
@Mikhail The loop as written in the source code has 7 "real" induction variables that are incremented by 32 bytes each iteration. ICC generates code with at least 20 of them. Half of them on the fucking stack.
 
2:00 AM
ICC = I Can't Compile!
 
@Mysticial gg no re icc
 
> I don’t know how much time I want to devote to this — it is just an experiment — but Sol will make it go preposterously faster. It’s single-handedly made a proof of concept look feasible.
Help. The praise is making me feel all warm and fuzzy inside.
 
2:35 AM
@Shoe It looks like spam to me too :)
 
@ThePhD happiness is a lie to make the following pain of rejection that much stronger.
really though: good job
and yes, you do deserve the praise. You've worked hard as hell on Sol, and invested a great deal of emotion to boot.
Instead of dismissing any weaknesses as insurmountable, you found a way to remove them even when it seemed like it would be insane
 
3:02 AM
@Mikhail Its probably an encoding thing. We're only getting 32 vector registers because they added completely new encoding specifically to support it. It won't be as easy for regular instructions since they're so diverse.
By "diverse", I mean compared to SIMD instructions. SIMD instructions are generally self-contained and don't have side-effects such as messing with the flags register.
That's more of the RISC vs. CISC thing.
 
3:31 AM
@jaggedSpire And it's starting to pay off a little too: people I don't even know are not only using but recommending Sol to others.
 
I even got my first major pull request.
It's a poorly done pull request but WHO CARES, PEOPLE ARE TRYING WOOO.
8
 
@ThePhD Congrats bru c:
 
3:50 AM
Yassss
Finding the image in 65ms o__o
 
4:02 AM
lol, now all you need to do is over-train your classifier and you can publish in some internal IEEE journal
 
 
1 hour later…
5:04 AM
@DeepDrumpf
#MakeLSTMGreatAgain #MakeAmericaLearnAgain I'm a Neural Network trained on Donald Trump transcripts. (Priming text in [ ]s). Follow @hayesbh for more details.
211 tweets, 22.7k followers, following 8 users
 
why is that about as coherent as the real one?
 
the photos in the account looks weird, maybe Stegnography
@jaggedSpire it seems someone cracked his code
 
@Khaled.K it's an image of Trump run through Google's deep neural networks for images
the distortion is fairly recognizable
 
Heeh making progress :3
How would you rate this programme? aast.edu/en/colleges/ccit_cairo/…
 
5:22 AM
@ReousaAsteron Seems normal.
 
@wilx Mhmm, it's my top candidate so far. Good location, good reputation and it's comparatively cheap (I get a discount in that one).
 
that's in Eygpt?
 
Yeah
Land of the camels :P
 
Camel is meaning of the name of Elgamal, which is an asymmetric cryptography method developed by the Eygptian computer scientist Taher ElGamal
 
@Khaled.K Where are ya from though? If you don't mind me asking ofcourse c:
 
5:58 AM
Actually he left Egypt 1977 and never came back
 
6:19 AM
@ReousaAsteron I'm a man who was cursed to live in the middle of the desert chained by tribal foolishness and material ecstacy
 
@Khaled.K That's worse than egypt .-.
 
forced to live with a community of idiots who choose to live in the middle of a desert, the worst place for human condition, animal or plants, not good for farming, not near the sea or a river or a forest, and with a harsh weather that reach 60C in summer peak, in a country so vast that it could've been located northern, southren, westren or eastren to this stop
@ReousaAsteron well, Eygpt has the best "theoretical" university education in the Arab world
 
@Khaled.K In some unis that might be true, considering we have shitty education all over. Drugs are all over the place though .-.
 
Xeo
6:34 AM
uuhhh... I just pushed my first Java back-end change, now I feel dirty. :<
 
O.o
Imma go to bed c:
Gonna plan this thing and get working on it tomorrow o-o
I'll cya guys around c:
 
see ya breh
some go sleep, some come from it
 
6:50 AM
@jaggedSpire ikr
 
7:24 AM
damn
bought some jeans in the wrong fit because they don't have any remotely useful explanation as for what the different fits are
 
Xeo
You didn't try them on?
 
I'm too fat for them to stock my preferred size in the physical shop
ordered online
 
is there any style of music that can be comparable to the calm, complex parts in progressive metal?
you know, i don't want the hardcore parts when i'm coding, but i love the complex and melodic parts
 
I don't want your face
 
Great. Now Thailand is also down the drain.
 
7:32 AM
@Puppy you don't see it anymore, i changed my profile pic some time ago, now you see my brains all over your screen
 
@R.MartinhoFernandes What?
 
@wilx military constitution approved
 
@wilx They held a mockerendum and voted in approval of the recently established military junta.
 
@R.MartinhoFernandes They have been in a shitter even before the 2014 coup, IMHO.
 
They've been alternating for a while.
But now they took a page from Russia's book and "legitimized" it with a hastily held referendum.
 
7:41 AM
@R.MartinhoFernandes The coup was in 2014. How is that hasty?
On other news, there is an article regarding wage gap in Czechia (this country).
It tries hard but it had to acknowledge that there are only 6,5 % gender gap for same position in industry and even smaller, 1.4 % difference when comparing same position in the same company.
\o/
 
Gender gap?
 
@wilx Hasty as in there was no debate around it. Opposition campaigning was banned.
 
@Mikhail Yes.
 
Yeah, its really bad in the USA, due to cultural reasons that can be traced to grade-school ages.
 
Opps. I read it wrong. 6.5 % and 1.4 % is for 33 countries in the world. For Czechia it is 3.8 % for same position same company.
They compensate the good news by saying we are still the second worst from the lot.
 
7:50 AM
lol
What's the lot?
Europe?
 
@Griwes Such a clickbait title. :)
 
>>Sure enough, it’s a tweet from Hot Pockets, and I had already favorited it. In fact, every time you download express, you favorite this exact tweet from Hot Pockets: introducing their new signature Hickory Ham sandwich pastries filled with real ham, real cheese, and a variety of chef-inspired sauces.
 
@Griwes Wow, that is actually pretty scary. :)
 
7:57 AM
> Imagine if the apple you were eating for breakfast had 291 ingredients, or if the car you drove to work had 291 parts. You’d be worried, wouldn’t you?
Does this person know anything about... anything?
Or is it a joke?
 
@R.MartinhoFernandes Dunno - the things he found are pretty scary though.
 
Just got to that. WTF.
 
Gotta love the "fat web" tweeting about "hot pockets"
 
How does the tweet faving work?
How does it deal with login?
 
@R.MartinhoFernandes Tokens in the code?
 
8:01 AM
But which tokens?
 
The most important question is why do serious people spend money on Twitter, or other advertising if the statistics it generates have an unclear effect on the targeted outcome (more sales, or visibility).
 
If it's always the same, then it doesn't really do anything; each user can only like a tweet once.
> If the entire recorded history of humanity could fit in a single megabyte, then Babel alone would consist of SEVENTEEN times the entire recorded history of humanity.
WTF.
 
> It’s true. Each installation of Babel includes a picture of Guy Fieri, and there is nothing you can do about it.
 
This thing swings wildly between informative and complete nonsense.
 
@R.MartinhoFernandes ikr, but the informative parts are awesome
 
8:03 AM
If the entire recorded history of humanity could fit in half a megabyte, then Babel alone would consist of THIRTY-FOUR times the entire recorded history of humanity.
You can quote me on that.
 
> Conclusino
 
If the entire recorded history of humanity could fit in a single kilobyte, then Babel alone would consist of SEVENTEEN THOUSAND FOUR HUNDRED AND EIGHT times the entire recorded history of humanity.
 
In other other news, I cannot view PDFs because Acrobat Reader has decided to update and that it won't work until I restart it.
 
consider using Firefox
 
@Mikhail I am using now actually. :)
 
8:06 AM
thank you, please mark the answer as the accepted solution
 
@Mikhail ✓
 
+2
 
@Griwes I really don't buy the tweet thingy.
 
@R.MartinhoFernandes Well, inform me, please, when it all turns out to be a hoax. :)
 
8:09 AM
it's all a meme
 
"britannica" exists nowhere in the ember source code.
 
@R.MartinhoFernandes Wow! That was quick.
 
made for jokes
it was obvious when you got to the punchline (and really when you read it)
I found it funny
 
(also the screenshot of the hot pocket only has like 2k likes, should have been higher...)
 
also the constant typo of glitter from glimmer
 
8:15 AM
There's only one such typo.
 
two
maybe three
 
Oh, there's another URL there.
 
Recently started using __has_include. Gotta say this is a really nice feature.
Thanks Clang.
 
9:09 AM
void reset(pointer _Ptr = pointer());
This is how MSVC does the first two overloads here en.cppreference.com/w/cpp/memory/shared_ptr/reset
Is this conforming?
Well, I guess it is. It only allows more than it should.
No, wait.
 
is it really though
 
Wat.
No, it isn't.
 
It's detectible by taking a pointer to member function
 
> Y must be a complete type and implicitly convertible to T.
...this feels weird.
 
@milleniumbug No. There's no guarantee that that works.
@milleniumbug Implementations are allowed to have extra parameters on pretty much any function.
 
9:12 AM
So I can't do &std::unique_ptr<T>::reset? TIL
 
Xeo
Nope
 
You can't because of overloads.
 
oh right
but I could static_cast the name
 
Xeo
Well, even without overloads, you could do it, but can't rely on the outcome type.
 
If for some reason there can only be one overload, you can do &std::unique_ptr<T>::reset but can't do sig t = &std::unique_ptr<T>::reset
 
9:13 AM
ok
 
Xeo
@R.MartinhoFernandes Not sure. Implicit conversions from the argument to pointer would still be possible, no?
 
Wait! I know how it rejects conforming code.
 
Xeo
Although I guess it's detectable by not having a virtual dtor
struct X{}; struct Y : X{};
std::shared_ptr<X> p(new Y()); // would call Y::~Y() if conforming
something like that?
 
struct foo {
    operator Y*() const;
};
p.reset(foo());
 
Xeo
@R.MartinhoFernandes Btw, VS'15 has both overloads
 
9:17 AM
No, wait.
 
Xeo
@R.MartinhoFernandes that breaks anyways, no deduction possible
 
That's still not too many conversions.
@Xeo Right, that's essentially nullptr_t.
@Xeo Ah.
 
@Xeo Wait, but it works with the single pointer overload, right? And shouldn't per the standard?
 
Xeo
2 mins ago, by Xeo
struct X{}; struct Y : X{};
std::shared_ptr<X> p(new Y()); // would call Y::~Y() if conforming
 
So reset(nullptr) doesn't work?
 
Xeo
9:19 AM
doesn't seem like it would
 
@Xeo Ah.
> Constructs a shared_ptr object that owns the pointer p.
It must own the Y* bit, so it must call the right deleter.
 
Xeo
ye
But still, you can have a shared_ptr own a typed nullptr
 
Are C enthusiast welcome here or is their a different lounge for C conversation?
 
@Xeo But not with reset.
Because no deduction.
(don't you p.reset<T>(nullptr) me)
 
Hey guys I am using SOIL.lib in Visual Studio 2015. Here I try to load a .jpgFile which islocated in the "Resource Files"-Folder:
// Load image, create texture and generate mipmaps
int width, height;
unsigned char* image = SOIL_load_image("container.jpg", &width, &height, 0, SOIL_LOAD_RGB);
 
Xeo
9:32 AM
Reset and the ctor behave the same if you pass static_cast<int*>(nullptr) :P
which is what I meant with "typed nullptr"
 
but image always is null
without any errors thrown
 
Xeo
I didn't put nullptr in markup for a reason
 
do I have to shange the path somehow?
 
Xeo
How would we know? Also, Stack Overflow
 
@Xeo Oh. But ctor(nullptr) doesn't behave like ctor(static_cast<int*>(nullptr)) :P
 
Xeo
9:34 AM
but it does
both yield an empty shared_ptr
 
Xeo
argh
 
Oh, wrong example.
 
Xeo
friggin tabs
I hate em
Anyways, VS'15 has both shared_ptr() and shared_ptr(nullptr_t) as empty
@R.MartinhoFernandes Okay, now that's different
But yeah.
Seems a bit weird that reset(nullptr_t) isn't a thing, but eh
 
9:51 AM
4
Q: How do videogames store information offscreen?

Just a few questionsI'm trying to make a videogame from scratch, but I'm really new to this and keep running into basic issues. Most importantly, how do videogames store offscreen information? What I mean is, how does the program know what to display next onto the screen? Or even, if the player changes the environme...

#gamedev
 
KIC 8462852 (eponymously Tabby's Star after the initial study's lead author Tabetha S. Boyajian, or WTF Star, formally for "Where's The Flux?", but also a reference to an expression of disbelief) is an F-type main-sequence star located in the constellation Cygnus approximately 454 parsecs (1,480 ly) from Earth. Unusual light fluctuations of the star were discovered by citizen scientists as part of the Planet Hunters project, and in September 2015 astronomers and citizen scientists associated with the project posted a preprint of a paper on arXiv describing the data and possible interpretations...
Who else is disappointed that no technology radio signals were found?
Pretty unlikely it's an actual paperclipper :(
Or maybe it's a paperclipper smart enough to not use radio.
I guess you don't need to communicate between builder bots if they are autonomous enough, or if they are dumb enough and the entire construction is planned to enough detail before it starts.
Or maybe they just use passive communication.
All agents have a panel that can change its reflective properties (so it can change "colour") for output, and a small telescope to read other agents' panels.
That's gonna have lower bandwidth than radio, but should be enough to coordinate sufficiently smart agents (worst case it can be used to send a recall command so the agents come back to some source that dispenses actual commands by physical means or via small range signals.
 
@milleniumbug Simulated dual screen, duh!
 
10:11 AM
I can come up with so many possible ways of doing this without radio; a paperclipper can certainly do much better. So WTF Star might still be a paperclipper :D YAY
Though covering the star is a surefire way of giving yourself away, so avoiding radio isn't crazy helpful.
Oh, maybe WTF Star isn't where the paperclipper originates; just a von Neumann probe sent to paperclip elsewhere.
Actually, if you can send vNPs at speeds close enough to c, your victims would only find out about you too late. The probes will reach their victims soon after the light from the star that gives your presence away reaches them. So if you send probes in all directions, you're relatively safe unless your probes meet another paperclipper.
I should go back to work.
Sorry for the monologue.
Actually you can send the probes even before you start construction. That would make it even less likely that your victims would get any warning signs.
The logical conclusion is that since we can observe the events at WTF Star but we are not paperclips yet, WTF Star clearly doesn't host a paperclipper.
 
Xeo
10:41 AM
You and your clippies...
 
i understand getters and setters now
fucking hell
in polymorphic types, you can make a getter to get a member of the child class
damn daniel
useful for static variables
 
@R.MartinhoFernandes ...lol, -8000
 
@Griwes What's funny?
 
@R.MartinhoFernandes -8000 isn't very useful on that graph, is it?
 
10:55 AM
It's one of the estimates of when humans spread across all continents.
 
It's still not very useful.
 
(They are in the 10-14ka ago range)
@Griwes For what?
 
...for seeing at what point anything started rising, even if very slowly? :P
 
A 200-year scale doesn't change much, btw:
300.
lolwut
 
have you tried using logarithms
 
11:04 AM
@Griwes The whole point of this chart is to show that there's no "very slowly".
It's all extremely fast.
 
I wonder what the graph between 2000 and 3000 will look like.
They say exponential growth can't go on forever :)
 
There won't be tools to draw graphs anymore in 3000. And there won't be tools to interpret old data either.
:p
 
11:20 AM
again! ETOOBIG
 
@Griwes I haven't finished reading that and it's already absolute madness.
 
@Morwenn It's one big joke.
 
Looks like it.
Looks like that article with that one guy finding 24 bottles of beer and a PS2 in the N64 he purchased.
 
> or if the car you drove to work had 291 parts
I'd be worried. But not for the reason anticipated!
 
Yup.
 
11:24 AM
> Yet, for some reason, we’re totally fine installing 291 individual modules just to power an enterprise-grade web server capable of handling thousands of incoming requests per second.
wth
 
mo’ modules, mo’ problems
 
The only dubious point would be the externality of the dependencies. Making it harder to guarantee a working combination. But other than, at, 291 is ridiculously a low number
> In fact, every time you download express, you favorite this exact tweet from Hot Pockets
That's mild. They could have injected script to do it on every page served
 
alright
today I learned how useful git filter-branch is
@R.MartinhoFernandes Go go industrial revolution
 
@Puppy If you just found out, you probably screwed up stackoverflow.com/questions/7672907/…
console.log("glimmer (n). " + descriptino);
Comedy gold
> If the entire recorded history of humanity could fit in a single megabyte, then Babel alone would consist of SEVENTEEN times the entire recorded history of humanity.
If my dick reached the upper floor from my living room couch, I could easily answer the doorbell using just that, without having to get up from the couch. (As well as implying some less convenient logistics in other areas)
@Griwes I think the guy may - understandably - be confused into thinking the Bible holds the entirety of recorded human history. Because that /does/ roughly amount to 1Mb
 
@Puppy Actually, I think it's the development of vaccines and antibiotics that had the greatest impact. Note how things barely change between 1700 and 1900.
More people, more GDP.
 
11:38 AM
this one's good too
I like these dumb posts
 
@Puppy The first 10^9 people was in 1830, the second 1930, then 1960, 1975, 1987, 1999, 2014.
 
@Rapptz It's more overt in its tongue-in-cheek intent:
> I’m a big fan of Dan Abramov’s hair, so I started off by grabbing his React boilerplate off GitHub.
> Since my webpage will be a user interface, it’s a perfect fit.
etc.
 
yeah
 
$ nmp start
bash: nmp: command not found
I quite like that sarcasm
 
> And — surprise, surprise — it didn’t work (as if npm ever works am I right?). After writing JavaScript for a few hours you get used to this sort of thing, so we’ll move on and try another boilerplate. The react-transform-boilerplate, also from Dan Abramov, looks good and has many stars.
 
11:44 AM
He has some points
He's mostly exposing lack of criticism in the community, I feel
He's not /actually/ trying to make any factual, constructive suggestions.
 
12:10 PM
Hi there. is here anyone can help me with an issue I have? :)
 
nwp
@Tirolel Yes. Either there or there.
 
@nwp great I will ask a quick mini question there
 
12:39 PM
I am binge watching Ramsay's show
He's great
 
nwp
threshold for code duplication: If code is duplicated once you leave it be, if it appears 3 times it needs to be factored out into a function.
Good rule of thumb or terrible?
The rational is the observation that if you factor code out when it appears twice you end up with worse code than if you allow some duplicates.
 
How is it worse?
Which metric?
 
nwp
supposedly factoring out the duplicate code makes the code in general more complicated and often enough it turns out that the code isn't that similar after all so you only use the factored-out-function once
It isn't a proven fact, more like a question if this sounds familiar and everyone does it since ever or if no-one ever heard of that.
 
12:55 PM
Yup. It sounds familiar that code-reuse also can have a cost.
@nwp Good rule of thumb
At twice, notice it. At thrice, actively try to refactor.
And yes, broken or limping abstractions are often worse for maintenance.
 
nwp
@sehe cool thanks
 
Most notably: be wary of action at a distance.
 
@nwp I think it depends on how much duplicate code we're talking about.
 
and whether the code is actually duplicated
 
If you need to inject complicated flags/callbacks to get the variations in behaviour you need, you likely have the abstraction ill-designed. Consider not refactoring until you spot the clean way to have a non-surprising abstraction
Especially OO heavy languages (C#, Java) invite the refactoring into meaningless object hierarchies that interact in completely intransparent ways.
 
12:58 PM
My heuristic is "potential change points". If there are more than a couple of those, I'll probably factor it out.
 
It doesn't "appear" like that. You're basically quoting the documentation here. — sehe 13 secs ago
 

« first day (2123 days earlier)      last day (2828 days later) »