« first day (2174 days earlier)      last day (2765 days later) » 
00:00 - 15:0015:00 - 00:00

12:03 AM
Considering the context, I probably shouldn't worry overmuch
 
@Aaron3468 As long as it's reasonably readable, I wouldn't worry much about it.
 
Just make it a PDF and you're good.
 
no there is only LaTeX all else is heresy
 
Alright then, I'll just duplicate the document, start removing the checklists I used to ensure I missed nothing, and try to avoid page-breaking in the middle of a response to a question.
@jaggedSpire Sadly, LaTeX is some of the cleanest output I've seen from one of the messiest languages out there Q.Q
@Mysticial Yes, this is a huge peeve as well. They might as well say "I have a processor produced sometime in the last few decades"
 
@Aaron3468 there really does need to be some way of getting LaTeX's beauty with less noodle
 
12:22 AM
I think you could get LaTeX to be better if you just had a language for it that had more sensible defaults.
What makes LaTeX hard -- aside from the syntax of the language itself -- is the 19 packages -- at minimum -- I need to set things up just right. Which, really, is bizarre, for something that usually comes in a multi-gigabyte installation.
You'd think they'd have a bunch of things as always on.
 
True, a lightweight LaTeX derivative with a macro for a python preprocessor would be glorious. It would do away with some of the includes that have LaTeX counter magic
Once I hand in this assignment, I'll have 3 days of breathing room before the next deadline... and the assignment after that one is already 80% finished
 
nice
 
Depending on whether the function takes a T, const T& or T&& the result is different each time.
 
I recall a C++ video that went over the different return value rules of template types. The speaker broke it down into ~4 distinct categories depending on what was passed
 
Oh, I do understand why T&& gets me a const char (&)[N]. It's a reference to the original type (which is an array of const char elements).
However, i don't understand why the by_val version gives me a const char*.
@Aaron3468 interesting
 
12:41 AM
@StackedCrooked Because you can't pass an array by value. Just doesn't happen.
Anytime you try to pass an array by value, you're going to get array to pointer conversion, so the received type is a pointer.
 
I see.
Didn't know that was so strongly baked into the language.
 
Interesting. Thanks :)
I know one more thing now.
 
@StackedCrooked Surely. Just remember, the road to hell is paved with good intentions knowledge of C++.
 
Alright, I managed to move.
 
12:46 AM
Just printing and then double-checking I met the requirements before I hand it in. Then I can take the 1 hour lrt ride home
 
@Aaron3468 "lrt"?
 
hm ...last train ride?
nah.
> Light rail, light rail transit (LRT) or fast tram is urban public transport using rolling stock similar to a tramway, but operating at a higher capacity, and often on an exclusive right-of-way.
 
> I've been using C++ for class this semester and the only thing I like is reference types. Makes pointers much more concise. Other then that it can all go in the bin. In order to keep my C++ project clean I've needed to avoid a huge set of features and keep it in a data-oriented design.
 
References also exist in C, but they can't be "grasped" as a type:
(a < b ? a : b) = 5;
 
Ell
@PatrickM'Bongo Tbf he's right tho
So
....?
@StackedCrooked I rember when I very first learned c++
I was on irc and I asked
 
12:57 AM
Oh, wait. That doesn't seem to compile in C.
It does in C++ though.
 
Ell
"What is the point in references in c++?"
And somebody said "well, what would the type of *my_ptr be if we didn't have them?"
 
and you’ve never ever desisted since then
 
Ell
And my mind was blown
 
@Ell Nice.
 
Ell
For some reason
 
1:02 AM
the type of *my_ptr is T if my_ptr is T*. Expressions are never references.
 
@StackedCrooked I liked the juxtaposition of developers and designers.
 
@StackedCrooked Arrays return references in C.
 
1:31 AM
hey @StackedCrooked is it possible to make a shared link via your coliru API?
 
1:43 AM
@JerryCoffin Yep, is basically a monorail bus. Not as big as a subway
 
@Xeo remember when we talked about complicated return expressions and so on? I finally went ahead and pushed this horror and I had a thought for you. look at it, gaze at it, and bask in it!
 
@Rapptz curl http://coliru.stacked-crooked.com/share -d '{"cmd": "g++ --version", "src": "" }'
^ Basically use '/share' instead of '/compile'.
 
ah neat thanks
 
It returns the id. Then you can go to http://coliru.stacked-crooked.com/a/${id}.
 
I was making my bot post the stuff on gist if it's too big but I thought about it and it was better to just make a shared link
 
1:50 AM
Cool.
 
2:06 AM
impressive, no ICE after a fresh GCC snapshot
 
@PatrickM'Bongo so so true (zoom in on the people on the bridge)
 
2:25 AM
@Telkitty where is it?
 
2:50 AM
You know what I want in C++?
Recursive Classes
 
@ThePhD You failed the first time? Cursive Zs are tough, I suppose :p
But in seriousness, why would they help you?
 
3:22 AM
@DaleSong somewhere in china
 
@Aaron3468 They would allow you to define classes that can have classes that can contain themselves, with a 'base case' version of the class that would allow the compiler to keep constant stack space or just abstract out heap allocation as an implementation detail.
 
Oh, I see, so class Matryoshka { Matryoshka inside; }
 
@ProblemSlover It seems at Jiuzhaigou Valley, Sichuan Province...
 
@DaleSong oh you are based in china as well
 
@ProblemSlover yes.
 
3:30 AM
@DaleSong btw the link to your linkedin profile https://www.linkedin.com/profile/preview?locale=en_US&trk=profile_view_lang_sel_click
goes to nowhere
 
@ProblemSlover it's well for me
 
Does anyone know how you would say 'Command Line Photoshop' in French?
 
@ThePhD Depends. What's the context?
 
3:45 AM
It's literally just that phrase: "command line photoshop", describing a language meant to deal with image manipulation / processing.
It's obnoxiously named LéPix.
 
Hmm
"Photoshop en ligne de commande" would describe something like Photoshop but invoked from a command line.
 
@EtiennedeMartel "Photoshop for the command line" would be a more suitable phrase to literally translate, but I think your literal phrasing is fine: "Photoshop in the command line", right?
 
Btw, a while ago we sold music speakers in the store I worked at, and they were shaped like animals and dance to the music:
And on the packaging, the (legally required) translation for "I'm a speaker!" into french was "Je suis le President!" /cc @EtiennedeMartel @LucDanton
 
3:57 AM
well, maybe he was
 
@EtiennedeMartel xD Is "revendeur de drogue" the joke, or is there more?
 
@Aaron3468 Yes.
 
Translation is such an easy thing to get wrong and I find hilarious mistranslations all the time
In french, is 'neige' also a slang word for powder drugs? I know that 'snow' is in English
 
 
@LucDanton A case could be made that he'd be a better president than either American candidate :D
 
4:02 AM
@EtiennedeMartel I'll take it! :D Thanks
 
Can any applications be built in Ubuntu without with out having to install something like qt libs or gtk+
Or without having to install any libs or APIs
Is their a library that Ubuntu already carries ?
 
Certainly, but then you're messing with linux' low-level APIs. By default, the platform/OS provides a set of libraries to access files, render gui if available, and output/input from terminal
The issue is that using only those APIs means you will need to rewrite/recompile for each platform you want to support. Many people opt for a higher-level wrapper like qt so they don't need to rewrite.
 
Where can those libs be found and I'm talking about a library that is already in Ubuntu obviously since I already said that that can help me make like a GUI or a desktop application I mean
Or what is the name of those APIs and libs ?
And understood
 
@ProblemSlover The link works well...
 
@DaleSong lol. It works well for you but not for others because it doesn\t contain your profile ID :P
 
4:17 AM
What link ?
 
I haven't done a lot of work with them. If I recall, they're part of libc++ or libstd. The only ones required by the runtime are usually basic file i/o. On windows, the system header is Windows.h and is included as part of your compiler.
Linux doesn't really need system headers because it's a thin skin over a command-line operating system (so you'll probably be using x11 or gtk if you need gui)
 
@ProblemSlover thanks for pointing out the problem.
 
Thank you
 
@DaleSong you owe me :D
 
@ProblemSlover :O
 
4:40 AM
@LucDanton Come on! By now you should know that posting something like that here requires an "NSFW" warning!
 
Holy shit. Yeah, that's uh... bannable NSFW.
 
just double checking
std::vector<float[3]>::data() is safely convertible to float*, right?
since float[3] is contiguous, and std::vector stores its data contiguous
 
@ProblemSlover good, but I'm totally a newbee.
 
@LucDanton My poor eyes. At that point you need a function somewhere :/
 
to do what
put three summands together?
 
4:51 AM
@LucDanton To pretend that template horror doesn't exist Q.Q
 
it’s just a cheeky unary plus to mirror the unary minus
 
is this a stdlib bug or am I asking for the impossible here?
float[3] has a default constructor, no? (it leaves garbage, but it should still have one)
 
5:08 AM
0
Q: Resizing vector of arrays does not compile

orlpThis puzzles me a lot. Is this a stdlib bug, or is this truly an error, and why? #include <vector> int main(int argc, char** argv) { struct A { float f[3]; }; std::vector<float[3]> v1(8); // Compiles. std::vector<float[3]> v2; v2.resize(8); // Does not compile. std::v...

 
@orlp not assignable or copyable p. sure?
 
@Rapptz c++11 fixed that
but apparently you still can't use arrays in vectors...
(I marked my question as duplicate)
@Rapptz so now I'm annoyed
I want to store RGB triplets in a vector
I can do std::vector<float>, but then I have to do all indices *3
 
how does C++11 fix that?
 
I can do std::vector<std::array<float, 3>>, but then the memory might not be contiguous
 
er
way too used to markdown
 
5:18 AM
ask this guy
The second sentence is no longer true in C++11, but the rest is still correct. The problem in C++11 is that arrays are not Erasable, at least with the default allocator. — T.C. Jan 12 at 3:22
 
I don't think he's right
I think he might be referring to the requirements of putting a type in the container
> The type of the elements to be stored in a container (called the container's value type) must be both copy constructible and assignable.
which is true, they have to Erasable now
 
@Rapptz is there a way around this?
 
I'd just do std::vector<float> if you really want contiguous memory
wrap it if you must
 
actually, is this legal?
 
?
 
5:25 AM
using F3 = float[3];
F3& get_triple() {
    float* p = v.data() + 3*some_offset;
    return *reinterpret_cast<F3*>(p);
}
 
5:56 AM
> foreach (i, Unused; Ranges)
sheesh the indices trick is easy in D
 
Xeo
@LucDanton You madman
 
I wanted to check when and how a double-ended zip 'adjusts' its end in D and I can’t say I’m disappointed
> //TODO: Fixme! BackElement != back of all ranges in case of jagged-ness
iow it doesn’t work
in Rust there’s a check every time the back of a zip iterator is queried
@R.MartinhoFernandes did you ever find a solution to this sort of stuff?
IME the Rust iterators are full of stateful bits under the covers, cos they really strive to be lazy
 
6:26 AM
@Telkitty I told you
This is the very reason why I won't be going on holiday in China again
 
come visit beautiful Tyria instead
 
class Foo
{
 
@PatrickM'Bongo You filthy rich scum, I can't even afford to travel!
 
Yeah but you work 35h and get retirement and healthcare and etc
:smirk:
 
Don't forget the mudslime takeover
And their monopoly on social compensations :smirk:
 
6:35 AM
@hiall class d8{ //TODO: Cool stuff
 
7:01 AM
> During the Middle Ages, everybody was middle aged.
> In the 1400 hundreds most Englishmen were perpendicular.
 
user1804599
7:44 AM
 
7:55 AM
@LucDanton No. It's not doable without knowing the sizes of the ranges
I.e. for a double-ended zip result you need all sized inputs
 
Lol.
Alistair Meridith on the "Implementing the C++ Standard Library" committee.
"I don't want a templated encoded string; I just want one for utf8 and that's all I want."
Thanks for contributing to the problem and not helping everyone in a way that's completely in your power...?
 
Ven
:/
 
It's not like anyone in the world needs other encodings or crap. No, utf8, WTFx, and ASCII are all we need. :B
Saltsaltsaltsalts the earth.
 
not to mention win32 (and java but we don't speak about that) likes utf16 more than it likes utf8
 
Good morning.
 
7:59 AM
@orlp In practice it is, and this can be statically asserted, so I'd just do it and move on.
 
@R.MartinhoFernandes how can it be asserted?
 
static_assert(sizeof(std::array<float, 3>) == sizeof(float) * 3);
 
Xeo
It's required to be, no? Somewhere in the standard
 
@R.MartinhoFernandes d'uh, I forgot padding shows up in sizeof
 
user1804599
 
8:01 AM
If you're paranoid, maybe add another for alignof(array) == alignof(float)
But only Hell++ would violate this.
@Xeo maybe. But even if not, it's one of those things only Hell++ would do wrong.
 
someone should actually make a hell++ compiler
that strictly follows the standard, but does the worst possible legal thing in every possible way
 
user1804599
MSVC
 
> MSVC
> follows the standard
 
user1804599
gcc and clang don't either
 
user1804599
vOv
 
8:08 AM
@R.MartinhoFernandes no I mean in the case where you have the sizes, you still have to have set up the correct state for the ends (or backs in D lingo)
for double-ended/bidi but not random-access stuff that’s not constant time
 
@ProblemSlover dunno, Apple's workstations aren't exactly stellar
 
I like the huge iMac I got at work.
 
@rightfold Nice. :D
 
8:28 AM
tfw not enough time in the day, but not because there's not enough time in the day
but because you can't stop passing out
> Safety being turned off by default. While I undestand that it's important for speed, there should be some important subset of errors which are thrown by the default. Getting a total crash instead of exception is frustrating at times, because you have no indication of what went wrong. And sometimes it's just some simple Lua error, like trying to call a nil value.
sol::function vs sol::protected_function is still a not that obvious in my opinion. I guess most people expect functions to have some basic protection being turned on by default and have it turned off in some sol::quick_function o
 
@R.MartinhoFernandes anyhoo I got my thoughts in order, I forgot I had a plan for all this. I’ll hash it out tomorrow or something so I don’t forget it yet again
 
They're probably right, here.
 
@R.MartinhoFernandes do you have an additional screen with it?
 
Jesus fucking christ.
I'm reading through the Licenses included in the Battle.net client.
It was apparently built on top of Qt
Qt's License is fucking ENORMOUS.
 
it has multiple modules that are not all under the same license...
 
8:39 AM
user image
7
 
@sehe I'd watch it.
 
You better watch it!
 
@ThePhD i live in Russia where software licenses exist and don't exist at the same time :p like Schroedinger cats
 
I wonder if he is worse than Bush jr. or not...
 
user1804599
I just had this magnificent idea for a startup
 
user1804599
8:47 AM
I'm gonna make billions
 
@rightfold Nope. You hardly ever finish anything. :D
At least it looks like that from where I sit. :D
 
@wilx That's the thing - startups don't mean to finish.
They start a shitty project, get it to look good in demos, and then make millions for selling it (or die without making any money).
It's the perfect environment for @rightfold.
 
@Griwes Hehe. OK.
 
@Griwes lol spot on
 
@Griwes actually not for selling it
you make money from people who think you'll be able to sell it
 
8:50 AM
lol
 
@BartekBanachewicz No, that's the money you burn through.
 
user1804599
@wilx RIP
 
Doesn't really matter for the point though.
The point is that you don't finish. :P
 
user1804599
All I need is a server.
 
@R.MartinhoFernandes well you can also sell the company
 
8:51 AM
@rightfold I thought it was love that we all just needed.
 
user1804599
And register a company with the chamber of commerce, otherwise you can't accept creditcard payments.
 
> sometimes including catastrophic tube failures (i.e. explosions)
heh
 
> magnificent
trump delusion detected
 
user1804599
better than the god delusion
 
user1804599
sehe come work for me
 
9:02 AM
I might. s/for/with/
 
user1804599
both are JS keywords
 
That's why they're practically interchangeable
 
hola
 
Going on debugging some of my coworker work
Not even mine
And MSVC 2010 /cc @PatrickM'Bongo
 
so who did watch the debate?
 
9:15 AM
hi
Any reference to C++ high latency programming ?
 
@Hemant ask @PatrickM'Bongo, he's an expert in high latency brotocols
 
@Rerito Thanks. how do I contact him?
 
@Hemant It was a joke intended to him, however did you mean low latency?
 
nwp
maybe it's about communicating with satellites on mars and you actually need a protocol that works with high latency
 
Oh clear example
 
9:33 AM
@Rerito rip in peace
Why are you not on discord
 
Coz I can't use my phone
 
You haven't seen our new emoji :bartek: yet?
 
Nope
 
> Clinton: "The gun epidemic is the leading cause of death of young African-American men, more than the next nine causes put together."

As long as you define "young" as being between the ages of 15 and 24, Clinton’s statement is True, according to CDC data.
wait what
what
how about a link you fuckers
 
Cause of the bugs: wrong class members order
 
uegh, the PDF is way too huge to debunk that clame
but seriously I find it super super hard to believe
> In 2014, suicide was the 10th and homicide the
17th leading cause of death in the U.S.
FFS
> Homicide, ages 15-24: 9.4 per 100k
male is significantly higher at 16, but that's still quite freaking low
well, if you extend the range to 85+, at least in that search, homicide drops to #5th place
that being said, it's super hard to get all of this to fit together
 
nwp
9:52 AM
@Rerito you are supposed to get a warning for that, so that is a bug that should never actually happen
 
That's what I told to my coworker :)
But that warning is lost in the ocean of other warnings :')
#goodware
 
nwp
@Rerito and that's why you treat warnings as errors
 
Yeah good luck with that in here
 
fix the warnings one by one
that's what I do
 
9:56 AM
CBA to do that
 
sbi
@Rerito When you work in such a shop, you have two options: 1) change how things are done, 2) get another job.
When I was young, I tried to change things. In one shop this worked (I stayed almost 9 years), in others it didn't (I stayed 10 months). In the last decade or so I have mostly denied offers I got from such shops.
 
Hi mom & dad.
 
@sbi How do you know which shops behave that way? Do you just ask "what's your policy on warnings?"
 
@sbi and yet you write in C++03
 
sbi
10:10 AM
@ThePhD There's no 100% sure way to find out before you try, but there's a few signs. Like when they give you a C++ test and the questions have errors (they always have) and you point those out. How do they react? When they show you around the floor, and you see the devs working. Are they pairing? You can ask for code reviews, ticket system, etc. As I said, you can still be wrong. I was several times.
 
@ThePhD ask what linting tools are used as a part of the CI build step
if they don't understand what "linting" or "CI" is, run.
 
sbi
@Abyx Yeah, but that's not because the people here do not want to leave their comfort zones, but due to a limitation we get through a hardware vendor. There's been a C++ project here in the last year where the code they write is going to run on a Linux server, and they are happily using the latest GCC and every new language and library feature they fell fits their code.
And let's not forget that there's shops out there that write truly awful C++14 code. This is not about the language (version), but the attitude.
 
Ven
We don't have CI at work
It was my task to include it
... But they forgot to give me access to the servers...
 
> forgot
 
@Ven neither do we and everything is working fine
 
10:29 AM
Announcing the release of DriveWorks Alpha 1, the Operating System for Self-Driving Cars #GTC16EU https://t.co/1RvldCgCLj
it seems that SDCs will follow the general motor industry trends
most of the cars will use off-the shelf driving algorithms and you'll be able to pay premium for a nicer experience
 
nwp
10:50 AM
gah, I hate latex too
such an incredible pain to set up
no error messages, just blind guessing
 
Ell
meh
how is it a pain to set up?
you just run the installer or dl the package or w/e
And you do get error messages
they are just obscure sometimes
> mfw overfull h box
 
I have to agree with Ell
just get LatexStudio
the only pain is the size of the installation package
 
Getting TeX Live and extracting it is not that hard.
 
user1804599
 
Just get debian unstable with gnome, texlive's installed there. lol
 
10:58 AM
btw, is there a site for engines on SE?
aside from engineering.se?
 
Ell
@BartekBanachewicz yeah, I don't understand why it takes such an extraordinary size
 
@wilx oh right that one, thanks!
I'm already registered there, heh
 
nwp
sure you can get it to install, and you can tell it to use the file mysources which is supposed to load mysources.bib, but you can also tell it to load akfjhsfklghjdsanfiowenfionweqofn and it says absolutely nothing about a file not being found
 
11:35 AM
In what language would "eta" mean "and"?
 
@wilx Basque
 
@Morwenn OK.
Thanks.
 
@sbi Ok ok you win :)
 
Ell
12:07 PM
I like this video
 
Ell
12:28 PM
@ThePhD ohhhhhh
my bad
 
Apparently there's a POC implementation of the proposed reflexpr in a Clang fork.
 
Oh boy, new report from the Dutch about that plane that was presumably shot down by pro-Russian separatists, I can't wait to hear @Abyx's shitty opinion on the topic
 
@Morwenn That's how you do big proposals. :P
No-one's gonna accept that without a proof of implementability.
 
It's good that things are going forward.
 
It's suspicious
 
12:50 PM
@PatrickM'Bongo yeah, I'll read that report later
and it's pro-Russian (culture) Ukrainian separatists, ftfy
 
1:01 PM
@Ell it's interesting
 
@Abyx ha ha, I see you're already putting some water in your wine <3
 
1:17 PM
@sbi Does that mean you're no longer trying to change things? :)
@sbi What do you mean by that?
 
@Ell v good
 
user1804599
1:33 PM
I should try this rad new SQL keyword capitalization style.
 
user1804599
Select id, email_address
From users
Where name Like $1
 
user1804599
Looks awful.
 
user1804599
dem goggles
they do nothin
 
Ell
@thecoshman most school of life videos are very good imo
 
Ven
@rightfold kill urself (or rather just kill this capitalization style)
 
2:33 PM
We wrote a PoC for our Rust mini-project this morning. Some 30 occurrences of unsafe in it. Now we rewrote everything with a different strategy. One unsafe. Yay.
 
2:54 PM
One too many (╯°□°)╯︵ ┻━┻
I wonder how long I can get away with using silly, but still understandable variable names and commit messages etc before I get called out...
things like boolean redish = isRedEnough()
signing off commit messages with notes like can someone please let me out of the bathroom
 
depending on your job, either on the first code review, or never
 
he he he
 
00:00 - 15:0015:00 - 00:00

« first day (2174 days earlier)      last day (2765 days later) »