« first day (1822 days earlier)      last day (3131 days later) » 

5:00 PM
@RyanHaining If you have to ask, stop writing such code.
But my gut says undefined.
 
how bad is this horrible attempt at take
 
@fredoverflow I didn't write the original code. I thought unspecified because there's a sequence point before the function call, but even if there wasn't nothing is being written to twice between the sequence points
 
is kotlin a .net language?
 
user1804599
-1 android
 
5:03 PM
It's for the JVM
 
@RyanHaining *a++ writes to a, *a reads from a, no sequence point, UB
 
wait, you sure?
 
When it comes to UB, I'm never sure.
 
doesn't * dereference the result of a++?
 
5:04 PM
@fredoverflow doesn't it read from the result of the expression?
 
IOW isn't that equivalent to *(a++)?
 
It is, but that doesn't change the fact that a is a variable that is written to and read.
 
which in this case would be the value of a before the increment
 
The * is a red herring.
 
5:05 PM
I was lacking context
I thought you were saying *a++ was UB by itself
sorry
 
@fredoverflow presenter is funny
 
*a++ is perfectly fine by itself, that's what strcpy does internally.
@JohanLarsson She also Russian lady with accent.
 
user1804599
I wish Java had no downcasts, like OCaml.
 
yeah
ok, fuck take, I'll go home
 
user1804599
5:06 PM
It would render the whole erased generics point moot.
 
@fredoverflow okay I got you, thanks
 
@RyanHaining Did you win a bet? ;)
 
@fredoverflow nah, I was unclear on the write-then-read rules
 
Xeo
@R.MartinhoFernandes That's... I don't even know what to call it.
 
@R.MartinhoFernandes Okay now I feel a lot better about my undocumented tarpit of a project. At least it's fast!
 
5:13 PM
@R.MartinhoFernandes Yeah I posted that earlier... I couldnt even...
wtf did they do
 
> The small changes made the function body of add() growing over 600 character. v8 optimizer (crankshaft) inlines the functions whose body length, including the comments, is less than 600 characters.
Hahahahah. Char count is such a good measure of whether to inline something.
 
why would they include the comments in that
thats just stupid
 
Expression templates would never inlined with that.
 
@Borgleader To disprove the multitudes of answers on SO claiming that comments won't affect execution speed, of course.
Of course, those answers are absolutely correct about any sane implementation of a sane language, but obviously enough, neither applies here.
 
5:19 PM
Ooooh, now that I host the docs for nonius myself, I can move them from a separate branch and into the branches as the code.
I can finally have docs track the right version yoohoo.
 
INteresting modules talk.
 
@JerryCoffin Are you implying compilers are allowed to ignore comments?
 
I thought I was leaving comments as hints to the compiler. My entire life has been a lie.
 
@fredoverflow Lol, "Software Engineering Bar"
 
@fredoverflow Well, of course, a really good compiler would ignore my broken code, and just produce output to implement what my comments say it should do. Most don't seem to do that though.
 
5:22 PM
Toppest of kek.
 
@ElimGarak Oh, not all of it. When you vomited on your great-aunt's shoes (when you were 17 months old) that was a honest and accurate statement about her (lack of) taste in clothing.
 
And in case you're wondering: yes, that did actually happen, even though your parents have probably forgotten.
 
Maybe
 
5:31 PM
> there! the cardboard.io framework came up with version 3.5 which broke compatibility with 3.4 and this yielded 4 forks in the community! I have to try them all to know which to choose!
rofl
3
Q: Is it good programming to have lots of singleton classes in a project?

Alien01I have a few classes in a project that should be created only once. What is the best way to do that?, They can be created as static object. Can be created as singleton Can be created as global. What is the best design pattern to implement this? I am thinking of creating all classes as singl...

 
user1804599
TIL about std::invoke.
 
@AndyProwl I've became too predictable
 
Is there a way for ninja to use a whole directory as an input dependency?
 
5:39 PM
rep lost today: 120
 
Have you put it on a milk carton yet?
 
It seems to rebuild if I touch the directory, but I want all the files within to trigger rebuild too.
 
dir/**?
 
Oh well.
I added all files as an implicit directory.
 
@fredoverflow very cool story
 
5:46 PM
> Say I go online and see a project I dislike. The trick is to point out everything that is wrong, give no more information than that. You can probably subtly point ways in which the person who did the thing is an idiot and get away with it.
lol
 
funny
apparently sea transport is so cheap that it's cheaper to send fish from scotland to china to process and back than to do it on-site
Factorio much
 
Well, cheap in that context ignores the exorbitant value of time.
 
@BartekBanachewicz :P
 
@BartekBanachewicz I think chinese workforce is also really cheap
 
But then again, one could create a deep pipeline where he gets the processed fish just in time, if he's willing to delay business opening by an initial time delay, which then results in a steady stream.
 
5:51 PM
@fredoverflow oh, unwatched Uncle Bob video: thanks!
 
@BartekBanachewicz Water transport being cheap is (for another example) pretty much the whole way Japan became an industrial power in the 1950s. They have virtually no natural resources to draw on, but they have quite a few ports so the imported raw materials, and exported finished products. Practical solely because transport was so cheap.
 
@BartekBanachewicz Why
 
@ElimGarak cap
 
Ah, I don't quite get that cap. Should be imposed over 50k or 75k or 100k. Where residuals start mounting up. There is the argument for quality answers in a day, but you could put a cap on the number of answers you can provide in a day, not the potential reward from sharing your insights.
 
the official rationale is to make you answer question in a way users accept your answer (there's no cap on upvotes for accepted answers), but think this is bullshit
 
5:57 PM
@ElimGarak Rep cap has nothing to do with making real sense--it's all about encouraging the behavior they want (specifically, to encourage continued participation).
 
I kinda feel it does the opposite. You provide a good answer and the system punishes you for it. But then again, people like high scores, so it is kind of a mind game for some.
 
@ElimGarak To an extent it undoubtedly does. Others of us, however, don't really care much--I've posted answers well after I'd hit rep-cap for the day quite a few times.
 
Please don't use not-so-popular abbreviation in the question. — false9striker 4 hours ago
WTH. If "UT" means anything but Unit Test there I'll grant them this ...
 
UNREAL TOURNAMENT -- VEHICULAR MANSLAUGHTER
 
heh not the first
 
6:06 PM
sehe, your non-gaming background is starting to hold you back in life. :/
 
@ElimGarak This is not necessarily a bad thing.
 
what, sehe doesn't play games?
jesus christ, sehe...
 
@milleniumbug And both wrong anyway. It's obviously "Unicode text".
 
do you know why computers were created? for GAMES
 
sehe only plays games in the bedroom.
 
6:09 PM
certainly not for the shitty ones like modern titles
 
Which is not necessarily a bad thing.
 
@ElimGarak Oh, quite the contrary. He plays "catch" (with fish in streams).
 
@BartekBanachewicz there are good new games too
 
> KOMPLETE KONTROL
 
6:10 PM
wonder how expensive that's gonna be
 
Germans spotted
@BartekBanachewicz $420.69
 
> 499,00 €
 
@AlexM. so we can wait for the computer while it does our work sooooo much faster
 
@sehe Obligatory...
 
6:25 PM
@BartekBanachewicz wow, I never saw such modern witchers before
@sehe when you play games all worries go away, this includes work
 
FINALLY
Homework published \o/
 
@AlexM. whories?
 
TIME TO TURN IT AROUND IN LESS THAN 24 HOURS
 
My work already went away
 
I think I'm going to go play KotOR in bed in an hour or two
 
6:30 PM
Is that what they call it these days?
 
Oh, you!
 
Good idea though
 
@ElimGarak tablet?
I'd guess it's really tiny on phones
 
He said: in bed
 
@AlexM. the big iphone 6s, it's more or less enough :D
although, if someone did the touch overlay, I could play it on the Surface Pro 3 as well.
I sometimes play EVE Online on the tablet, just typing is a bitch (impossibru).
 
6:36 PM
@ElimGarak Use voice Recognition. "Maneuver left" "Error: command 'Man waver heft' unrecognized."
 
are you sirious
 
@sehe No, I'm Sirius (Black).
 
@ElimGarak On ur phone?
 
> ur
Borg spending too much time on 9gag or so
 
@Borgleader Yeah, it's pretty relaxing because I don't have to put much effort into holding a fat tablet. And less chance of it falling on my head.
 
6:40 PM
Bear knows BrE
 
The UI of the port is an atrocity, tho.
 
sup joffrey
 
f*
 
@sehe "Ur" is perfectly acceptable (when used as part of "Ur-Vile").
 
6:42 PM
who said something about acceptable
inb4 jerry did
 
@ElimGarak Killing random people with my crossbow, generally being a jerk to everybody. What about you?
 
ITT @ʎǝɹɟɟɟǝſ is Ezio Auditore da Firenze
 
Xeo
Halp. I'm a prisoner of the white throne.
 
white thrones are impractical. The cleaners' bills aren't worth the trouble
 
user1804599
6:48 PM
GCC y u no warn on MVP.
 
Because you're not most valued
 
sup elyse
How's your sex life
 
I'm thinking about the concept of currency in an RTS, where it can evolve over time. Allowing the player to create a currency in a relatively advanced phase of the civilization's development and determine the exchange rates on the market between him and the other NPC or player civilizations. Would like to expose manipulating it to undermine the other side, without being inb4.
 
für Elise
FTFY
 
user1804599
@ʎǝɹɟɟɟǝſ it isn't
 
6:50 PM
@elyse Most Vexing Professional
 
@elyse :c sex is very important
 
user1804599
I swear STL said in his talk std::function used std::invoke.
 
It's essential to staying healthy
 
meh
Of course it isn't
It can be extremely helpful.
 
user1804599
#include <functional>
#include <memory>

struct F {
    F() = default;
    F(F const&) = delete;
    F& operator=(F const&) = delete;

    void operator()() const { }
};

int main() {
    std::function<void()> f(std::make_shared<F>());
    return 0;
}
 
user1804599
6:51 PM
doesn't work :(
 
lel. ginormous WoC
 
shared_ptr isn't callable
 
lol newb
 
user1804599
@milleniumbug he said it is!
 
user1804599
oh wait
 
user1804599
6:52 PM
std::invoke is new in C++17.
 
user1804599
LOL
 
Is it literally INVOKE?
 
don't about now, but they used INVOKE before, which meaning was defined in standard, but not in C++ standard library public interface
 
user1804599
What is INVOKE?
 
std::poke
 
user1804599
6:54 PM
std::bukkake
 
std::puke
 
user1804599
well, it's trivial though
 
as in, an expression of which meaning is defined in standard
now it's in public interface
and you can call it with std::invoke
 
cool
 
6:57 PM
also my Terminal now has a lambda prompt
finally
 
user1804599
template<typename Ref>
auto function_ref(Ref ref_) {
    return [ref = std::move(ref_)] (auto&&... args) {
        return (*ref)(std::forward<decltype(args)>(args)...);
    };
}
 
user1804599
Now function_ref(make_shared<F>()).
 
user1804599
I want const(auto) and noexcept(auto).
 
@BartekBanachewicz So up until now, you've given a name to the prompt you use in your terminal? That's so...cute.
 
declid(typeauto)
 
user1804599
6:59 PM
And volatile(auto).
 
user1804599
{const,volatile,noexcept,override}(auto)
 

« first day (1822 days earlier)      last day (3131 days later) »