« first day (2414 days earlier)      last day (2519 days later) » 
00:00 - 20:0020:00 - 00:00

12:32 AM
How the fuck did my answer get a) 37 upvotes b) a comment by Eric Lippert !?
@CodesInChaos: C99 and C++ have the same requirement as C#: that if q = a/b and r = a%b then q * b + r must equal a. Thus it is legal in C99 for a remainder to be negative. BorgLeader, you can fix the problem with (((angle % 360) + 360) % 360) / 30. — Eric Lippert 2 hours ago
 
12:46 AM
Is it just me, or is every man and their dog trying to write a messaging system at the moment?
Chat system, chatbot, database, whatever.
 
Okay. Anybody have any idea why new would throw an access violation? And it happens the second time it is called.
 
Because... There was an access violation?
Most likely, the constructor for the type is badly written.
 
Constructor is empty. Only exists because I need it to be protected
 
Then the type must contain other members that have an access violation. What's the code?
 
The maker:
DriveInfo* DriveInfo::make_from_disk(BYTE* data) {
    DriveInfo* di = new DriveInfo();
    di->sector::init_from_disk(data);

    return di;
}
And the thing that calls that...
DriveInfo* di = DriveInfo::make_from_disk(disk->read_sector(DRIVE_INFO_SECTOR));
// ...
delete di;
That's called twice.
 
12:53 AM
And how do you know that its' the new DriveInfo() that causes the AV?
 
Breakpoint on the new line above. Step over causes the exception.
 
Ok, so what's the code in DriveInfo's constructor?
 
> Constructor is empty.
as stated above...
 
private:

DriveInfo() {}
 
Ok, what are the fields in DriveInfo?
 
12:55 AM
Two full classes coming...
class DriveInfo : public sector {
    private:

    DriveInfo() {}
    DriveInfo(const DriveInfo&) = delete;

    public:

    static DriveInfo* make_for_disk(size_t size, size_t rootNodeAt);
    static DriveInfo* make_from_disk(BYTE* data);

    const size_t root_node_at() const { return next_sector_at(); }
    virtual const size_t next_slot_at() const override { return sector::next_slot_at() + sizeof(next_sector_at()); }
};
class sector {
    private:

    bool m_needToDeleteData;
    sector_type m_type;
    size_t m_nextSectorAt;

    protected:

    size_t m_size;
    BYTE* m_rawData;

    sector() : m_needToDeleteData(false) {}
    sector(const sector&) = delete;
    void init_for_disk(sector_type type, size_t size, size_t next_sector_at);
    void init_from_disk(BYTE* data);

    static const size_t metadata_length() { return sizeof(m_type) + sizeof(m_nextSectorAt); }

    public:

    ~sector();

    const sector_type type() const { return m_type; }
On the CTOR side, nothing crazy is happening.
 
Dont paste the whole code here
past it somewhere else (like gist.github) and link it
 
Indeed.
Ok, sector doesn't follow the rule of 5, it needs to.
You've defined a constructor, and a destructor, you must then follow the rule of 5.
I suspect, however, that the problem isn't the new DriveInfo() line, you must be misunderstanding the behaviour of your debugger.
 
Yeah, I'm aware of the rule of 5. But since I'm just using pointers, the move and copy should never be called.
Or move assignment.
I deleted move just in case.
 
Since you're using classes, the rule of 5 should be followed
 
https://rmf.io/cxx11/rule-of-zero
rule of zero plz
 
1:03 AM
Yeah, Rule of zero is much better - infact, it should be rewritten to use RAII properly, but first, the AV should be understood.
@David: I also tend to prefer explicitly calling the base class constructor, as well.
 
Personally I love RAII the most. You shouldn't need to call new in good C++ code
 
Ie, DriveInfo() : sector() {}
 
Hmm, let me try that.
The weird part is that it fails on the second call.
 
No, it's not wierd at all.
It's typical that something fails after creating the first instance, if you don't follow the rule of 0/3/5 properly.
 
Fair enough.
 
1:08 AM
C++ has a lot of traps if you're working at a low level. Find good code and cling to its styles like your life depends on it. Otherwise you'll get lots of segfaults, memory leaks, and race conditions.
 
Yeah, unfortunately, I've kicked out most of this code in the past week, and I normally work in C#
 
Alternatively, avoid the low-level stuff.
 
This is for an OS class. Simulating a (really bad) file system and disk
 
David: A good rule to follow is to avoid 'new' and 'delete'.
 
Also using linters and other static analysis tools is helpful. CppCheck is a good one to keep around.
 
1:10 AM
I have done CppCheck
So, I need raw unsigned char's eventually, which makes not using new/delete hard.
 
How so?
 
Full code if you care github.com/DavidA94/FileSystem
Because I need to write to "disk"
So, at the base, I'm dealing with unsigned char arrays that are there to simulate sectors
 
@David: Well, you could just use std::basic_string<unsigned char>
Or std::vector<unsigned char>
 
I might try that.
See what I can do.
Is there a way to make a vector with a set size that won't expand?
 
Basically, use abstraction until you have no other choice. Especially when C++ goes out of the way to reduce the cost of function calls, etc.
 
1:14 AM
Or should I just depend on not being stupid / put size checks.
 
Boost has an array type, I think, that won't expand, but you don't gain much from it, just use vector.
 
Okay
I'll see what I can crank out tonight after class. Appreciate the advice.
 
But if you really do want array, I'd probably use boost.org/doc/libs/1_64_0/doc/html/array.html
 
@David You might also want to look at std::array.
 
@JerryCoffin: That's new!?
Nice. Yeah, I'd use that.
 
1:16 AM
@Arafangion How new is new? It wasn't in C++98 or 03, but it's been around for a few years now.
 
@JerryCoffin: I somehow missed the memo for that type. I don't use C++ in my day job.
 
I will play with those options. Gotta play attention to class now. Thank you so much!
 
@Arafangion I use C++ day and night... :-|
 
Btw, I'd consider smart pointers and/or references, rather than raw pointers, if possible.
@JerryCoffin: You poor thing.
 
@David This is a great (if a bit extreme) of an example of how using abstractions makes code less prone to bugs and easier to debug. Before abstraction. After abstraction. So use anything C++ gives you for convenience :D
 
1:19 AM
@Arafangion Perhaps because you're looking at such a broad range of possibilities that everything anybody does falls inside it?
 
@JerryCoffin: I don't understand?
 
@Arafangion Hover over it, and click on the arrow at the top left of the message to be taken to your message to which I replied.
 
@JerryCoffin: Ahh, I see it! Thanks - yeah, it's possible.
 
@Aaron3468 IMO, this isn't a very good example of abstraction, just of "ridiculous" and "not ridiculous" (or at least "less ridiculous").
 
@JerryCoffin A very extreme example of using only the low-level basics to a ridiculous degree.
David's code is far more coherent, though it does a lot of stuff by hand that could be done in a better way with std
 
1:26 AM
@Aaron3468 needs more auto
also probably won't build because you didn't have enough headers + std::getline
 
Yeah, sehe messed up a bit, but it reads very clearly
 
@sehe the evicted possum did not only illegally resided in the garage, it also stole chicken feed and damaged private possessions (made a nest out of old wool blankets) ... had to throw the blankets away because no one wants to touch a blanket that smells like a possum
 
1:43 AM
I have a friend who is planning on how to eat a possum. I think she's moving towards a stew.
 
1:58 AM
If I could go to a restaurant and order a possum stew, I would try. But I don't want to get my hands dirty and cook a possum from scratch.
I am more of the kind that tries to lure possums closer with apples, just so I can pet them and nothing else
 
This girl loves trying all sorts of different meats. A bit scary - too adventerious for me. She even eats bats...
 
I wouldn't mind trying all sorts of meat, but I hate killing lives
 
K O T L I N
For real, anybody got a Kotlin question?
 
@Mikhail++
 
2:04 AM
@Mikhail Here you go. Have fun!
 
2:24 AM
Was there any collateral damage?
 
@Mysticial thank you for the garbage collect
 
@Aaron3468 deallocation
 
rofl
 
garbage collection is done without prompt by the user of the language
i.e. a bot
 
sigh. I often forget that "restart" in teh visual studio debugger does NOT restart the application.
Instead, it kills the current debugging session, and then the new default startup project, not necessarily the one being debugged.
 
2:30 AM
i hate it when it does that!
 
3:11 AM
MSVC: "Compilation Failure Is Not An Error"
 
3:30 AM
@Luc wtf?
 
This isn't the right place to ask about C/C++ but more C
is it ?
 
I...uh
what?
C and C++ are different languages, this is the C++ room (for a given value of "the C++ room") and there's a dedicated C room.
really this is more the everything but C++ room
 
Yeah, it's just I went there and saw something about another C++ room in the C channel so I kust took a peek here
My missunderstanding sorry
 
3:47 AM
Don't apologise, this is the Lounge, insult people while blaming your misunderstanding on them instead.
 
4:11 AM
apologize
 
 
4:54 AM
@RudiantoPrasetya How dare you say such a thing, you ignorant buffoon!
 
s/buffoon/baboon
 
@Telkitty Why would you try to get me to insult an innocent monkey this way?
 
ignorant baboon == innocent monkey?
 
5:09 AM
AaaaaA"!!"!!
Facebook commenting is so frustrating!
You can't write a long comment with many links because it will not show up even though you can see it.
You can't write multiple shorter comments without links either, splitting your long comment. Some of them will not show up.
Oddly enough, the 1st and 3rd shorter comments after I deleted the long comment do not show up either but 2nd and 4th do.
 
your problem is that you are using facebook
 
5:24 AM
Its an interesting concept, I heard everybody using it as a face
 
My friend called me a faceless person because I didn't have a facebook account for personal use. Now many friends rather quit but could not
 
@Telkitty Are they holding him hostage or what?
 
she said she used it to keep contact with relatives overseas
 
@jaggedSpire It is a communication platform as any other. There are lots of things to discuss but if the algorithms are censoring your comments then it sucks.
@Telkitty So why would she want to quit?
It is not like she can't unlike and unfollow all but the relatives.
 
I call social network a herding machine
that's why
of course that's not what she said
someone told me that she doesn't want to be on facebook any more because too much information and mostly from group than her friends
 
5:30 AM
People without facebook are dangerous loners or Chinese
 
Not want to sound bitter or anything, I build android, ios & windows apps and a house, none with the assistance of social network
I build useful stuff, I don't spend time on useless activities, at least I try not to
time is too short
I don't want to be an ant that leaves no trace
 
@Telkitty 'fraid no lonuger has much room to make such a claim.
 
part of the crowd, and only that
 
But also if you want to meet somebody of the opposite sex...
 
I meet opposite sex everyday thank you
@JerryCoffin I hang around with mentally abnormal people like myself to feel normal :x
I rather being weird than to be insignificant
@Mikhail chinese use weibo, it's like the chinese version of facebook
 
5:37 AM
@Telkitty Sounds like my dad's law: "Children would rather be picked on than ignored."
 
speaking of which, I am about to use facebook - to add social component to the apps
social network is great - it helps people to connect other people to my apps ... maybe
 
so you actually do have a facebook
 
for apps yes
not personal one
@mik also according to my physiotherapist, MRI gives more details than the ultrasound
for a small tear in the knee for example
 
@Telkitty Yeah, I have no clue as to why somebody would prefer ultrasound if they can afford MRI
I guess speed of acquisition might be an issue, but in principle you can do MRI faster if you only scan part of the missing cone, etc.
 
also my hiking buddy taught me ways to get free MRI, but my physiotherapist said that there is no need
 
5:51 AM
I thought heathcare was free?
 
only under certain circumstance
 
Anybody know an online GLSL compiler that lets you specify samplers?
So texture(lut_r, texture(img, pos).r) is valid, but does this work? texture(lut_rgb, texture(img, pos).rgb) ?
shit its like 1:00am and I should go home
3
 
@Mikhail Oo, the reason why I didn't get it done in the first place was that ... I didn't know :x
even GP didn't mention it when I complained about my knee problem
 
6:09 AM
In the US you would have an operation, and be fucked for life
 
Here, you can get free MRI scan if you suspect that you got a meniscus tear IRC
but according the the physio, my problem was minor ligament injury
 
Yeah, we have a common problem where the replacement limb isn't the same color as the original
Also should I suck it up and use boost.bimap?
 
I could go to GP and asking for a free MRI by saying 'I suspect that I got meniscus tear'. But I don't think that would be appropriate
 
mmm, I"m sad that I can initialize a bimap with an equality operator
 
you should go home probably
but ... it's your call
 
6:24 AM
mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm‌​mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm‌​mmmm
okay w/e
 
 
2 hours later…
8:01 AM
wow, so actually had an interesting job offer
12 out of 12 in joel score is pretty significant
 
8:34 AM
@BartekBanachewicz who answers the questions? The employer? How much can you trust that they are accurate?
 
@BartekBanachewicz Holy fuck that salary is higher than what a french would get
p amazing for polen
 
8:49 AM
@RudiantoPrasetya that's prolly before taxes though
we have 18% income tax
and then some mandatory insurance bs
 
@BartekBanachewicz but aren't your jobs always listed pre-tax?
 
@thecoshman depends
also my brake pads and rotors just shipped :3
 
9:12 AM
@Borgleader how coincidental is that I've needed to use modulo to wrap numbers yesterday
also I needed to handle negative numbers too
 
@BartekBanachewicz Still, in France I would get offers of ~28-32k€ pre tax, that's 1800-2000€/mo net
(entry level, not Paris area, which isn't France anyway)
and probably 0/12 joel score bc "france" is latin for "can't into software"
 
@Borgleader Also my approach was way more shitty than that so +1 for that comment
 
> Modern C++ can be very pythonic.
 
@RudiantoPrasetya and where are you now?
still HK?
 
9:27 AM
Yes
not much longer tho
 
 
1 hour later…
10:40 AM
Apologies to users who saw home page errors today (8,372 hits). A single web server went off the rails and is being punished appropriately.
 
Hi everyone
 
10:55 AM
Huh my phone almost fell from my pocket.
 
hey bawses
 
11:21 AM
@Mysticial I'm about to rep cap for a second day in a row. I'm coming for you! evil laugh
@milleniumbug neat
 
11:46 AM
room's dead
post ponies
 
@Telkitty so much fun to just peek over a treeline with
 
some really awesome toys
I bought another drone ... so that I could join some drone club with it, then I can learn how to build drones there
 
@BartekBanachewicz wrong cutie mark for this room
 
@BartekBanachewicz the right one is the kotlin symbol, or a haskell lambda
 
11:58 AM
why the sudden kotlin meme anyway
 
@BartekBanachewicz because KOTLIN
 
I thought we saw this language long enough ago and all decided on "meh"
 
@BartekBanachewicz dunno I think it's because Android made Kotlin an officially supported language
 
at the same time I kept mixing it with Ceylon
which is actually interesting
@Mgetz oh
 
@BartekBanachewicz because android so needed its own version of a swift like language
 
11:59 AM
well swift is native
but otherwise I guess those two are mostly on par
> And if you check a type is right, the compiler will auto-cast it for you
oh so not that far from Ceylon actually
well at least they have really strong support game
the "use in intellij, use in android studio, use in eclipse, use standalone" links are more powerful than anyone might think
that's basically what happens when you start pouring serious money into a language
 
@BartekBanachewicz "native" it's closer to VB6 actually if you look at what they are doing, it's quasi-native
 
@Mgetz I thought it's llvm-backed
 
12:16 PM
@BartekBanachewicz it is, but they keep a LOT more type info than you'd expect, and use it quite regularly at runtime
 
@Mgetz so they just preserve reflection information
that's a good thing
 
@BartekBanachewicz yeah, I don't know all the specifics but that's what I got from the apple devs when I was at WWDC
 
it doesn't make it "non-native"
it just means that its values are more complex in runtime
which IMHO is what most of the languages that operate in MB if not GBs of RAM should be doing
 
12:40 PM
Australia will continue sharing intelligence with US despite Manchester bombing leak https://on.rt.com/8csa
no offense, but do they have any intelligence?
 
yes
once I had an interview with their hacker unit
 
interesting
 
I am not a hacker, I like to bluff that I am, actually I know very little about hacking
 
@Abyx yes they do, they actually have significant adversaries. NZ on the other hand has a token unit.
 
for AA batteries, is there a relationship between battery's capacity and it's voltage when fully charged?
 
12:53 PM
@Telkitty depends on the chemistry
I used to remember this but it's been a long time since my circuits course
 
Nimh
 
@Telkitty all I remember is that different chemistries have different voltage drop off curves
 
@Telkitty so does it mean that you have no intelligence?
 
@Telkitty thanks for pointing that out
@Telkitty googling that is surely a more reliable way. NiCd!
 
I like to do things that I can boast. Can I tell the internet: hey, I just hacked X bank and stole 10 million? Can I ever say "hey I hacked Y's account?"
 
1:05 PM
@RudiantoPrasetya That was a popular opinion in 2011
 
Prefer not to live in the shadows
my apps/house, no matter how crappy they are, I can still tell the world: here is my (albeit sh!tty) work, come and have a use!
 
1:30 PM
Coroutines are now in Clang Trunk! Working on the Libc++ implementation now. Thanks to @GorNishanov for all the hard work!
5
 
1:46 PM
:D
 
1:57 PM
Oh happy days!
https://t.co/ewZzj85vH6
 
2:59 PM
Jupiter's rings, from the inside, looking out.
 
This is very clever, but it's completely unreadable, and no more likely to be maintainable, so I disagree that it is a good solution to the perceived "ugliness" of the original. There's an element of personal taste, here, I guess, but I find the cleaned up branching versions by x4u and motoDrizzt vastly preferable. — IMSoP 10 mins ago
More complicated? sure, it involves a bit more math (especially with Lippert's fix to handle negative angles) but "completely unreadable"? Really? =/
 
3:19 PM
@Borgleader Depends on whether you've made it through fifth grade math yet...
 
"no more likely to be maintainable"... now introduce more angles or reduce the number of them, you silly person
 
36
Q: Reject edit popup broken

BoundaryImpositionCurrently, when I click "Reject" from the review popup, the button changes to "Rejecting..." and that's it. Nothing else matters happens. This is on question pages only; seems ok from review queue. Chrome 58, Windows 7 and 10.

finally getting the love I deserve
@R.MartinhoFernandes sweet
that the sun? or a moon
 
@BoundaryImposition Stars in Orion.
 
@R.MartinhoFernandes oh blimey
 
Jupiter's rings are rather faint, so it's a long exposure.
@BoundaryImposition The really bright one is Betelgeuse.
The one behind the ring is Bellatrix.
 
3:26 PM
I can never detect constellations. It's really annoying.
tried yum install pattern-matching but apparently my distro is EOL :(
 
@BoundaryImposition Orion is one of the easiest to find in the night sky. Arguably it's hard to find them in a picture with so many stars.
 
it's weird because my pattern matching skills as they pertain to conceptual stuff, e.g. during bug hunting, are quite good
must just not be a visual person
@R.MartinhoFernandes that's one I can sometimes pick out with x % confidence
 
there are apps that can detect constellations for you
 
The three in an almost straight line near the bottom right of the picture are a big giveaway.
"Orion's Belt"
 
@Telkitty not the point though
 
3:28 PM
@BoundaryImposition s/visual/educated/
 
I use them sometimes because I suck at be able to name the stars too
 
you can find three stars in a row in loads of places
there are other candidates in that very picture
 
@BoundaryImposition Sure, but they're approximately of the same brightness and brighter than the ones around then, and with the middle one at about halfway.
That does reduce the number of candidates a lot.
 
yum install any-of-that-knowledge
mmm nope still nothing
 
In the night sky I know what the expected distance is between them, and I can look around to find Betelgeuse and Bellatrix.
Betelgeuse is bright and red, Bellatrix is bright and blue.
Bellatrix is the one behind the ring in the picture.
The famous nebula should be right below the bottom of the picture. (Pity it's not in the frame)
 
3:35 PM
@R.MartinhoFernandes Betelgeuse is red, and almost all the other (major) stars in Orion are bluish white (but it seems strange to skip Rigel).
 
@JerryCoffin It's not in the picture :p
 
@R.MartinhoFernandes Neither is M42, but you didn't seem to let that stop you. :-)
I should probably shut up now--I sound like a Lisp fan getting upset when the world doesn't recognize his baby as the greatest at everything in all ways (even though I'm not actually upset at all).
 
@JerryCoffin Anyway, I guess I tend to go for Betelgeuse and Bellatrix first because they're easy to describe together to muggles ("the shoulders"), and Betelgeuse is more likely to ring a bell than Rigel.
 
3:50 PM
@R.MartinhoFernandes I guess I think more of the astronomy--to me, the sheer size of Betelgeuse and luminosity of Rigel (and Saiph...) make them particularly memorable.
 
@JerryCoffin Right, in the night sky Saiph is fainter than Bellatrix.
Well, to the naked eye.
 
@R.MartinhoFernandes Even in a telescope. Bellatrix is simply a whole lot closer.
 
Also, from Bellatrix you can look east to find the shield, which is also an easily recognisable shape.
 
So, my son has chickenpox. Fun.
 
@R.MartinhoFernandes Yup. Bellatrix also has somewhat interesting history: a couple of times in a couple of ways it's been designated as a "standard", then (at least in the cases of which I'm aware) the changed their minds and decided: "well, maybe not'. It was once designated as a "standard" for brightness--but then they found out it's actually (slightly) variable). Then it was designated as the standard reference for a type B2IIIa (or whatever designation if actually falls into--I don't remember).
 
3:59 PM
@R.MartinhoFernandes Say that 3 times please.
 
Then they decided: Oops, no it's probably not that either--it's probably a double star masquerading as a giant. Has about the right spectrum, but lower luminosity than it should if it was really a single star of that type (at that distance).
 
right off for the weekend byeeee
 
Weekend started yesterday, dude.
God bless Catholic holidays.
 
@Borgleader "Alpha Orionis...Alpha Orionis...Alpha Orionis." Hmmm...Michael Keaton doesn't seem to be showing up...
 
4:42 PM
std::packaged_task<void())> pull() { return []{}; }
isn't return type as specified , ? works when it's std::function<void())> return type
error: could not convert ‘<lambda closure object>ThreadPool::pull()::<lambda()>{}’ from ‘ThreadPool::pull()::<lambda()>’ to ‘std::packaged_task<void()>’
return []{};
 
@spakai there is a conversion to std::function<Sig>, but there isn’t for std::packaged_task<Sig>
e.g. you may have std::packaged_task<void()> task { [] {} };, but you may not have std::packaged_task<void()> task = [] {};
return { inits }; performs the same kind of initialization as return_type return_value = { inits };, and is subject to the same rules
you can write return std::packaged_task<void()> { inits }; to perform an explicit construction instead
 
Thanks @LucDanton
 
5:10 PM
@R.MartinhoFernandes I never got this. I don't see any shape in that image. It's just a bunch of point lights, some of which have lines drawn between them for no apparent reason
 
@Borgleader Woah, that one took off.
 
I had to downvote
all uppercase identifiers that are not macros
also Dir is way too short
 
for(int I = 0; I < 100; I++)
beautiful.
 
I blame OP for all uppercase
though Dir is not OP's (his was Car::EDirection)
 
5:25 PM
I'm confused by this question:
-19
Q: Why doesn't ++ increment integer value?

4thSpaceIn C, why doesn't num1++ increment in the printf()? int num1 = 1; printf("num1=%d", num1++);

OP has 15k. In tags mainly related to iphone and ios. Does Swift and Objective-C not have pre/postfix operators?
 
71
Q: The ++ and -- operators have been deprecated Xcode 7.3

Oleg GordiichukI am looking at Xcode 7.3 notes and I notice this issue. The ++ and -- operators have been deprecated Could some one explain why it is deprecated? And am I right that in new version of Xcode now you going to use instead of ++ this x += 1; Example: for var index = 0; index < 3; index += 1 ...

 
oic
 
@milleniumbug Correct, I mimicked OPs all uppercase names, and Dir is because I god lazy. Besides the important bit was the array + indexing, not the naming :P
@Mgetz How far along is the support for this? AFAIK he also did the implementation for VS2015 but it was qualified as like very experimental/basic IIRC
 
@Borgleader my understanding is the VS2017 TSU:1 will be standards complete
 
Oh nice.
 
5:32 PM
my understanding is that right now they are not standards complete because they except the old syntax without a warning
 
VS still never be standards complete. Because by the time they are, there will have have been 3 newer versions of C++.
 
@Mysticial I suspect it'll be easier for them to be up to date when they have the AST revamp done
 
@Mysticial I just looked at it and it seems like Rust doesn't has that either.
 
@Mysticial they deliberately removed them
along with the C style for
 
6:22 PM
Why are we Lounge<Kotlin> now?
3
 
@Mgetz complete standard of which standard?
 
@VermillionAzure Because we stopped explaining the joke.
 
@Mysticial I'd expect anyone with 15k to know what is a pre/post op it's like common knowledge almost
to be honest, it could simply be a rep whoring question
 
6:41 PM
Hello, Cruel World!
 
Xeo
@Mysticial Clockwork Planet adaptation sucks
 
@LoïcFaure-Lacroix I wouldn't necessarily expect someone to know that because they have 15k rep. This particular person doesn't have any rep in .
 
6:59 PM
@R.MartinhoFernandes To be fair, it was hardly a secret, I think he's shown orchestrating matters from like, the first ten minutes or something
 
@Mysticial This is why prefix/postfix maybe shouldn't be a thing?
I mean, it's helpful when everyone knows it but...
 
@VermillionAzure pick any... well, thing. You'll find someone who doesn't know it.
 
@VermillionAzure I don't deny that we can live without the prefix/postfix operators. But at this point, they're a little bit too basic to not know. If you do any of these, you should know it:
Even has it.
And I'm pretty sure I'm missing a few more.
Though my favorite abuse of pre/postfix is this: coliru.stacked-crooked.com/a/498168ec46df2b90
That second one with the do-while is my favorite for performance-critical inner loops. It's immune to compiler loop-pessimizations and compiles very well since the decrement and the loop jump will fuse into one uop.
 
00:00 - 20:0020:00 - 00:00

« first day (2414 days earlier)      last day (2519 days later) »