« first day (2167 days earlier)      last day (2787 days later) » 

user1804599
12:05 PM
never mind I fixed it
 
user1804599
wikiamazing
 
Curse you msvc :(
the debugger command window is unable to print the result of some_vector.end() == some_iterator
 
Hello
Anyone in the mood for telling me why my C program is bad and why I should be ashamed?
 
@Magisch because it's in C
 
nwp
I wish network printers would tell me when they are done printing.
 
12:17 PM

C++ Questions and Answers

Solve problems and approach solutions. Just ask and lurkers wi...
 
it's like "why my cake made out of shit is bad and why I should be ashamed?"
 
@milleniumbug I don't have a problem with it, it works fine. I just want to know how far off from an acceptable implementation I am
 
@Magisch What criteria are there for acceptable?
 
and this is the most critical room I know
7
 
understatement of the century
 
12:19 PM
I posted it on code review I'd like someone who is better at this then me to tell me what parts of it make them want to puke
@wilx naming conventions, general coding, efficiency, basicly anything you can come up with why its bad
 
it's pretty clean tbh
 
if you like C-like languages, at least rewrite it in Go
 
I'd personally space out code stanzas and operands, and that's it
 
nwp
@Magisch you should consider tagging it with or
 
@nwp Is there an appreciable difference? IIRC, it compiles fine on both
 
12:22 PM
@Magisch in c11 you're supposed to use different idioms
 
nwp
if you are on I would yell at you for declaring the variables at the beginning of the function instead of when you need them
 
> Woman discovers male colleagues have been tracking her menstrual cycle 'so they can avoid her'
 
@nwp Is that generally frowned upon? I usually in my programs have a block at the start of each scope that does the variable stuff
 
nwp
@Magisch That is bad, but you have to in c89, thats why you should tag it.
 
@PatrickM'Bongo how smart of them
 
12:24 PM
But for(int i = 0; i < nDays; ++i) won't compile on
 
nwp
It is probably VS-C which has its own rules.
 
@nwp right, I tagged it c11
feel free to proceed to yell at me at lenght
 
Xeo
12:39 PM
> A banana produces ~12 positrons a day, if I'm not mistaken.
This sounds like a fact for @R.MartinhoFernandes
 
@Magisch if you have C11 compiler then at least you have a C++11 compiler. Why write in C then?
 
@Abyx I don't know any C++. Im a second year apprentice and most of my working day is spent maintaining a 2003 access vba .mdb database application. When I get to do C, its only in the context of writing a hardware driver for a scanner.
 
@Xeo Back of envelope calculations confirm.
A human produces 4000 a day, and a human has 350 times as much potassium as a banana.
4000/350 ~= 11.4.
 
Xeo
> Die Software an der du beteiligt wärst ist eine Server SW, die als Hintergrunddienst läuft (Deamon) und welche man mit folgenden Keywords verbinden kann: Cloud, Open Source, Netzwerksicherheit, Multi-Threaded und Encrypting.
Anybody looking for a job in Berlin? :P
 
> Die Software
I wish
 
12:55 PM
:)
 
Hottest August on record :(
 
I'm bored pls entertain me @PatrickM'Bongo
 
@Rerito I provide entertainment only on discord
@R.MartinhoFernandes Meh, it's nothing compared to next year!
And the year after that too.
 
1:10 PM
Aug 17 at 21:22, by sehe
> “The streak of consecutive records started in May 2015,” Sanchez-Lugo told me. We’ve now lapped ourselves, and are starting to break records set within this same streak, last year.
 
On the plus side, we definitely killed that cancer over there, even if we caused a bunch more everywhere else.
3
 
@PatrickM'Bongo That's good, because you've just created discord in the lounge
 
Ugh.
Cancer Moonshot promotion is annoying as fuck.
It's nothing like Apollo.
What was keeping us from going to the moon were engineering problems; the science of going there was pretty well understood.
With cancer it's nothing like that.
 
@Feeds The atom bomb there seems relevant to the cancer research, if we accept feminism==cancer as Milo Y. (I cannot remember his name's spelling exactly) says. :)
 
Painting the two as similar gives strength to the stupid idea that the only reason we didn't cure cancer yet is because Big Pharma.
I'd rather not have governments encouraging conspiracy nuts.
The whole Big Pharma narrative is harmful enough already as it is.
 
1:17 PM
According to The Manhattan Project, the Apollo Program, and Federal Energy Technology R&D Programs - RL34645.pdf, the peak spending on Manhattan project was 0.4 % GDP. I wonder how much is spent in USA for cancer research. If less, then the analogy might hold in the sense of the money spent yearly...
 
@wilx But there's an important difference in that both Manhattan and Apollo, being primarily engineering problems, had costs with bounds that could be estimated.
With cancer, you cannot have an expectation of a time frame.
You need to keep pouring money until it's done.
 
See the chart. The USA is spending 6 times less as percentage of GDP.
 
curing cancer is less visually impressive than sending a hunk of metal skywards
 
I also feel like the Manhattan Project needs to be put into context: it was funded at a time where the world's largest economies where engaged in total war. There were already plenty of otherwise important things being cast aside in the budgets.
Total war shifts resource allocation in highly abnormal ways.
(The same doesn't apply for Apollo)
@ratchetfreak I think curing cancer would be impressive as fuck for most people.
 
1:40 PM
@R.MartinhoFernandes "total war" is an exaggeration
 
That's downplaying it. vOv
inb4 useless definition of "total war".
 
Xeo
Hm. I want initializer_lists that aren't called such (since that would give the wrong idea), but behave basically the same. Guess a using-alias might do.
 
#KotlinTime
 
2:06 PM
@Columbo having read through the 2015 draft standard I don't see any mention of this non-reference-reference type of which you speak (section 5.2.8). I merely see the words "l-value which refers to an object of static storage duration". If I were interpreting this to build a compiler I would expect that to mean a reference. Is there some other text elsewhere that clarifies this? — Richard Hodges 1 min ago
cmon mate
 
user1804599
@Magisch Because it's a C program.
 
huh... named args are a funny concept...
 
user1804599
2:26 PM
no they aren't
 
TIL HK has a TLD in .香港
 
Hello, I was wondering where would be a good place to learn about range v3 (github.com/ericniebler/range-v3)). The documentation (ericniebler.github.io/range-v3) is IMHO not enough to understand how to extend it. There are a bunch of proposals and talks, but I can't find something that looks like a written tutorial or manual. Many thanks!
 
@AmiTavory it's new and experimental enough that I don't think anyone actually wrote a comprehensive guide to it
you can try looking for SO questions tagged and getting whatever you can from the official manual
 
@milleniumbug Many thanks!
 
@AmiTavory you can also browse the examples and tests which are in the repository of the library
 
2:32 PM
@milleniumbug Good suggestions, thanks! Will do those.
 
2:42 PM
yay that was a quick code review
 
I wonder if ++i; ++i; is as fast as i += 2;
It's one of those silly things I don't really consider should have any performance difference...
 
@ThePhD read disassembly or benchmark it
 
nwp
@ThePhD someone measured that 3 increments were faster than adding 3, but that only applies in assembler, for a C++ compiler those should be the same thing assuming i being int
 
sounds trivial to notice
 
Guess I'll bench it later.
 
2:48 PM
Looks like SO just went offline.
But it didn't last long enough to prevent any significant number of bad questions. Oh well...
 
Just came from a talk on quantifying measurement error and how nonius deals with that.
@ThePhD The people at work here asked for this. Get cracking :P
 
@R.MartinhoFernandes I can probably work on it tomorrow, actually, since I just finished my presentation yesterday and tonight is just finishing the creative stuff.
 
No rush, really, just joking.
 
I also dropped Computer Vision like a rock, so. \o/
 
@Borgleader I guess the definition of "real code" seems to differ here.
 
Ven
@rightfold Perl 6 has dependent types. And so does C.
 
Ell
C? How?
 
Ven
int a; int b[sizeof(a)];
 
Nah, compile time dependent types aren't interesting. :P
 
Ven
3:30 PM
what
 
Ell
@Ven isn't that just a parametrized type?
 
Ven
@Ell check the definition of "dependent type"
 
Ell
Where?
 
On wikipedia, probably.
 
Ven
> In computer science and logic, a dependent type is a type whose definition depends on a value
 
3:31 PM
In computer science and logic, a dependent type is a type whose definition depends on a value. A "pair of integers" is a type. A "pair of integers where the second is greater than the first" is a dependent type because of the dependence on the value. It is an overlapping feature of type theory and type systems. In intuitionistic type theory, dependent types are used to encode logic's quantifiers like "for all" and "there exists". In functional programming languages like Agda, ATS, Coq, Epigram and Idris, dependent types prevent bugs by allowing extremely expressive types. Two common examples of...
 
Ell
It doesn't depend on a value
 
Ven
Yes it does. sizeof(a) is a value.
 
@Borgleader I raise you:
-16
Q: How to find hole and hole length in a image taken by camera in android phone

Mamunur RahmanI want to take an image by android camera and find holes and holes length. Please help me How can I do it.Urgent needed. Thanks.

 
Ven
@Mysticial why not just dig one?
 
i'm just here to see how many downvotes this can garner — Cruiser 1 hour ago
Here's a nice title that survived:
-7
Q: I don't know what I'm doing wrong

Emett SpeerI'm not sure what I'm doing wrong with this JavaScript. I'm still very new to it so it's possible that I have just messed up everything. <script type="text/javascript"> $(document).ready(function(){ function emailTrainer(trainersName, userName, domainName){ var tName = tr...

 
3:35 PM
@Ell the same way 3 is a complex number
 
@LucDanton 0 is probably the simplest
 
Ven
I understand it's confusing tho.
 
Ell
Its confusing because in the past @LucDanton told me it was parametrisation and not dependent typing :P
So you two must fight it out
 
Ven
No?
 
@Ell well, 3 is a real number as well as complex
 
user1804599
3:43 PM
@Ven no
 
Ell
@LucDanton yeah
 
@Ell a parametrised type is also a dependent type, although perhaps not a very interesting one
 
Ell
Not very interesting at all
So uninteresting that saying "C has dependent types" is misleading imo
 
@Ell C also has operator overloading (just not user-defined operator overloading).
 
it’s wrong unless you can show some pi-types or sigma-types, and why not showcase one of the usual dependent type hello worlds while you’re at it, too
 
Ven
3:51 PM
@Ell you're just misguided as to what dependent types mean
But yeah it's very uninteresting
 
Ell
@Ven I guess "dependent on a value" is way too vague for me
 
Just yesterday I was handling a series of flags from someone who thought it was ok to bulk-flag their own answers for moderator attention asking for votes. If I had obliged them and downvoted them all for being low quality, that would have been my first vote reversal ever. In the end, I had to abstain. So fret not - 10k users aren't the only ones with this problem. — BoltClock ♦ Feb 24 at 15:45
 
4:09 PM
@Mysticial I'll see your raise and call with a "performance, but I compiled without optimization":
0
Q: Why is array considered better than STL containers?

Bibek Bhattaraiarray vs std::queue: which is better in terms of time and why? I have written one graph processing algorithm in which frontier vertices are stored in std::queue and are accessed using push_back() and pop_front(). When I re-implemented the frontier with array with front and end pointers pointing ...

Okay, those are so easy it's probably cheating...
 
Ell
@Ven it was a joke
Chill
 
Xeo
9
A: How to clear this jump in Egypt - Obelisk of Khamoon

Adam JensenIt appears there are a number of people who encountered the same issue. Possible reported solutions include: Changing the aspect ratio Using manual grab Changing anti aliasing Reinstalling the game After a bit of tweaking with the screen resolution, I was able to make the jump. In my case, ...

lol
 
> Changing anti aliasing
#gamedev
 
FFUUUUCK
CMake 2.8 WHY IS ALL SOFTWARE OUTDATED IN EVERY SYSTEM AAAHH
 
Hmmm...was really thinking I might get a reversal badge, but I don't think it's happening...
0
A: How exactly does C++ runtime use the vptr to choose the right function.Who takes care of this?

Jerry CoffinConsider code something like this: class A { int x; public: virtual void foo() { std::cout << "base::foo()\n"; } virtual void bar() = 0; virtual ~A() {} }; class B : public A { int y; public: virtual void bar() { std::cout << "Derived::bar()"; } virtual void baz() {...

 
4:21 PM
Now I can't use C++11 because even though they added the stupid flag to the CMake file it doesn't fucking recognize the DUMB thing because it sucks and wadjhawdkwad
 
ooh pictures
 
@ThePhD I didn't realize g++ had a "stupid" flag. I'd have assumed it would be -std=turboc++, but that doesn't seem to be recognized.
 
@JerryCoffin I might as well be using -std=turboc++ with this code. The default -std is some C++03 stuff and BUUHH.
The thing is, they SEEMED to want to include the chance to use C++11, but they didn't really check to see if set (CMAKE_CXX_STANDARD 11) actually invoked the C++11 standard flag.
It only works on CMake 3.1 or greater, and they have CMake 2.8 on their grading and build servers, so fFFFFFFFfFfff.
 
@ThePhD With 2.8 you pretty much need to pass the flags manually to CMAKE_CXX_FLAGS, which sucks
 
I have to rewrite all the code now.
 
4:26 PM
@ThePhD What?
@ThePhD What?
 
@R.MartinhoFernandes Code for university things.
 
add_definitions(-std=c++11)
 
Right, here's the problem: the CMakeLists.txt is not something I can control. While I'm given a local, they fix the CMakeLists.txt on the build server, so even if they copy my whole directory and access my CMakeLists.txt, they use their one to make the files and invoke make, not mine.
So they have the bad version with CMAKE_CXX_STANDARD that it doesn't recognize, and even if I fix it locally I have to adhere to what was posted and maybe see if I can bargain for them to change it... for the NEXT assignment.
 
they control the invocation of CMake too?
wow
 
Yeah. Even though my own CMakeLists.txt is available, they seem to use the one on the server, which is why I had to petition for them to add the new standard flag anyhow. But someone on the forum advocated a different solution from the add_defintions(-std=c++11) I did, which was the CMAKE_CXX_STANDARD one and that's the one they used.
 
4:30 PM
Well, bring it up there?
 
I thought it wouldn't matter, but then I checked the version and FUCK.
I am going to, but they don't change the CMakeLists after people start submitting, so I gotta backtrack on this assignment and nuke some unique_ptr's and shit.
And get rid of all the auto...
Mmnn. Eigen::DenseIndex, yey.
 
nwp
do a combined effort and go with auto_ptr :P
 
set(CMAKE_CXX_STANDARD nn) sucks anyway.
 
I don't think these people know / care about that. It's just not the kind of tools they have indepth knowledge of. vOv
 
They use a hardcoded list to generate the flags.
Which means that if you have a newer compiler, you have to either wait for a cmake update or replace it with add_definitions.
 
Ven
4:40 PM
@ThePhD export CMAKE_CXX_FLAGS in some scripts? :c
 
@Ven They don't pick up anything scriptable, unfortunately.
Just the Cxx files it seems.
 
Ven
:| damn
 
Though. I am the one to submit the grade, maybe poisoning the environment variable before executing the script through my machine might work, actually...
So I can just export in the shell and get away with it?
 
Ven
Yes
 
5:00 PM
Buh.
Poisoning the shell with export CMAKE_CXX_FLAGS="$CMAKE_CXX_FLAGS -std=c++11" isn't kicking in.
Guess I'll just edit the code.
 
5:11 PM
I wonder what the energy for the damping force is...
Time to go look this shit up.
 
5:29 PM
....
My TA just mocked me.
Nice.
Always good to have a friendly reminder that I'm A) stupid and B) should work alone on any significant project.
 
5:49 PM
B is probably caused by A
 
Shrug. I'm just being an oversensitive flower, I'm sure.
I'll get over it. :v
Ayyy, a perfectly stable sympletic euler simulation.
... They also didn't add the -pthread fix I posted on the forum for some reason.
I'm... just gonna not help anymore. It's not going anywhere. =/
 
protest loudly then
 
No.
It's not my job to fix their code, it's my job to get a good grade.
And I can just keep my workarounds and other things to myself.
They're not interested.
 
6:14 PM
Segfaults segfaults everywhere...
I'm gonna need to get a VM and just debug this manually with GDB, aren't I?
Wonder if I can set up a GDB server.
Segmenttation fault, core dumped, segmentation fault, core dumped...
 
@ThePhD I sometimes have some of those at work. Sometimes it's tricky.
 
0x0000000000000000 in ?? ()
 
6:30 PM
Hello, I'm in searching of some graph database for an crawler project. Any ideas? My first idea is OrientDB, but i not found an API for this in C++. Orientdb-C seems to be obsolete
 
@ThePhD I would consider running Ubuntu desktop in a vbox. You could even call GDB from QtCreator (running in the vbox), it works pretty well.
 
@StackedCrooked Yeah, that's what I'm setting up while I do GDB on this actual command-line at the side.
 
Xeo
You could also try WSL
 
GDB, IIRC, connects to the GDB Server and THEN the program starts, right?
 
Also, it's often quicker to find the bug using valgrind than gdb.
 
6:33 PM
I.... reeaaallly don't want to valgrind someone else's codebase.
 
I've dabbled with gdb server in the past. It didn't work very well. Maybe I should try it again.
 
Ell
@ThePhD I usually start the program from inside gdb
 
@ThePhD lol
 
Ven
> In Perl 6, it acts much the same way, except that it became much more defaultier.
she's full of shit
 
@StackedCrooked Buh. But I dun wanna. :<
 
6:34 PM
I know what you mean.
 
Have anyone some ideas about newly graph databases for C++?
 
Alright, valgrind caught something. Not a fucking clue what it means, but it caught something.
 
Ven
@fredoverflow claiming something is inconsistent without quoting any such example is retarded
This blog post is terrible and the author should feel bad
 
Time to start googling how to read valgrind output.
 
6:36 PM
@ThePhD Did it crash?
Jump to 0x0 should be segfault.
 
Yeah, the program terminated with SIGSEGV (signal 11)
valgrind can't see any symbols though, and neither can GDB
 
Does this also happen if you don't use valgrind?
 
Yes.
Is... CMake not specifying the -g flag, even though the build is set to CMAKE_BUILD_TYPE Debug ?
 
The trace seems to show only 3rd party stuff. Is any of that the user code? (dl-init.c perhaps?)
@ThePhD Ah.
 
@ThePhD It should
 
6:39 PM
make V=1 will show the actual commands
 
make V=1 doesn't seem to show the commands. Maybe I need make -n ?
Okay. -g is definitely there
 
@Ven shrug It was a funny read...
 
And gcc automatically uses -O0, so.
Where's my symbols?
 
Ven
@fredoverflow oh sure. it can be wrong and funny
I usually really love eevee's stuff. Really. but that one :|
 
Oh, I didn't know she was popular.
 
6:45 PM
Core fuggin' dumped again
Fffff.
 
> by 0x04
why
 
There we go.
Now I've got symbols.
I had to move my invocation to the local directory.
 
        template <typename T>
        struct deleter {
            deleter() : del([](T* p) { delete p; }) {}
            void operator()(T* p) const { del(p); }
            using del_fun = void(T*);
            del_fun* del;
        };
        template <typename T>
        using unique_ptr = std::unique_ptr<T, deleter<T>>;
Came up with this ^ to get unique_ptrs across DLL boundaries.
The idea is to capture the delete function at the unique_ptr initialization site, and carry it across the boundary with the pointer.
 
Wait. Why do you have to do that?
Is it because delete[] called in different DLLs fucks things over?
 
@ThePhD To avoid the broken envirionment of DLLs with multiple runtimes.
 
6:52 PM
Because the delete code in the destroying side may be incompatible with the new code in the creating side.
 
(That Gaby Dos Reis calls a sensible environment. :|)
 
Oh. Right.
 
afaik it's better to avoid deleting in a different dll
 
Wait a second, isn't this information that should be stored with the allocation when you call new ?
 
@ThePhD Which function to call to deallocate? No...
 
6:53 PM
Oh, wait. It just stores the data, not Runtime version deleters and crap.
That's kinda shitty.
Oh well. vOv
 
@ThePhD Basically that is what my code tries to do.
 
@R.MartinhoFernandes std::function would be better but I guess that just delegates the problem
 
See any potential for failure there?
 
@R.MartinhoFernandes oh, so at the point of instantiation code is generated that uses the local destroying code
 
I don't really. And you don't need to cleanup a function pointer, so. vOv
 
6:54 PM
@Puppy Yeah, I'd need an abi::function to mirror it.
 
Is it possible that a type T can be instantiated in both the DLL and in the Application and maybe bust something?
 
@StackedCrooked Yep, then grabs a pointer to that code and it moves around everywhere.
 
Wait, that's a compile-time construct. Nevermind.
Sounds safe in my head, yeah.
Albeit, all your unique_ptrs are now fatter by the size of a pointer.
 
that's pretty irrelevant
 
@ThePhD No way around that.
 
6:57 PM
I feel like we're back to C code where there's a specific delete and a specific free function for a handle you create...
 
yeah
 
Albeit, in C code you didn't HAVE the option of making something on the stack of w/e, so. This is still better!
 
I think that in theory Wide did not have this problem
but alas I basically stopped working on it
 
@ThePhD That would be the hourglass design approach.
 
@ThePhD the delete code is bound to a type and not to a particular instance. so perhaps the function pointer could somehow be a made static member.
 
6:58 PM
no, it is bound to a particular instance.
 
Hey guys, here we go:
 
@Puppy is it?
 
yes.
 
@StackedCrooked It has to be bound per instance.
 
that's the whole point.
 
6:59 PM
Because you can create instances in different DLLs; they would need to have different delete code invoked on them.
So each pointer needs to carry around something to identify the DLL it comes from. There's no way around that. The function pointer for the delete code is the easiest such ID.
 
Hash collisions are a real thing http://imgur.com/gallery/mhP8b #imgur https://t.co/lmMYOETgFZ
nice
 
Hm. This makes me wonder how the initialization and destruction of function local statics works if their creation can be triggered from within different dlls.
 
if you dynamically link to the same standard library DLL instance, you're totally fine to share complex objects between DLLs.
 
Whew.
Okay, I fixed the bugs.
 
it's only an issue if you're not sharing a stdlib.
 
7:03 PM
God that was a lot harder than I thought it should be.
Note to self: valgrind cannot find the gdb symbols of an executable not loaded in the CWD...?
But the symbols aren't even compiled seperately...
My head hurts.
 
valgrind is for noobs
 
@StackedCrooked In general when dealing with this, it's safest to require all statics, function-local or otherwise, to be explicitly initialized and destroyed.
(Typically done by exporting one function that initializes everything and one that destroys everything)
 
typically done by your face
 
> Yesterday, a GitHub file dump revealed all the registered domains listed to the “.kp” country code top-level domain for North Korea. Essentially, it revealed that the hermit kingdom only has 28 websites.
 
my face is a workhorse
 
7:07 PM
@Morwenn GTA V has more than that :D
 
@R.MartinhoFernandes That's why I deeply love news about DPRK :')
 
the democratic people's republic of LOL
 
7:23 PM
I received my album of Progenie Terrestre Pura :D
 
Xeo
Sounds like some third level Final Fantasy spell
 
Well, it does sound a bit like that.
It's black metal vs. ambient music. A bit like Summoning in futuristic deep space.
 
user1881400
Does anybody know, since I don't think C++ has events by default, if events are essentially a goto or if they use the OS in some way?
6
 
user1881400
(I'm actually asking with respect to C# because I'm trying to figure out how events were implemented in that language)
 
what is events meme
 
user1881400
7:29 PM
No I swear :) This question is about how the language itself implements events. Would love an explanation for C++ or C#. I read (or misread, probably) that events use COM or something like that.
 
The word "event" is used for many things.
 
@JoshuaLamusga u w0t m8
 
it sounds to me like you don't have a goddamn clue what the fuck is going on
I suggest you correct that
 
try std::function or boost::signals2
 
user1881400
Nevermind everybody. I think I just got temporarily confused about life or something. Their implementation is pretty obvious.

@milleniumbug This isn't MLG gaming (?)
 
7:35 PM
are you shitting on my dick
 
> Kittens thrown at moving train
 
@набиячлэвэли hot
 
This is the most MLG room on this goddamn site
@Morwenn "hot"ter versions also include "actually" and "all over"
 
@набиячлэвэли Only until the shit cools down, then it isn't hot anymore.
 
@Morwenn Shit has enough bacterial reactions in it to keep it warm for hours
 
7:38 PM
Shit is basically a dead or soon-to-be-dead bacteria graveyard.
Earth might become cold someday too. Earth is basically a huge piece of shit :o
 
@Morwenn But sun, doe
 
@набиячлэвэли Super-dense shit.
 
MAXIMUM DENSITY
DENSITY OVERDRIVE
depression kid.jpeg
 
How did this conversation even start?
Oh right, North Korea.
 
@Morwenn It started with @JoshuaLamusga spouting bullshit @Nooble would be ashamed of not
 
7:42 PM
Ooooh, right.
It'd be fun if Cilk Plus arrays sections made it into C then into C++. I'm pretty sure it would fuck the type system even more in some strange ways :D
 
user1881400
In my defense, I was asking because C# has odd interactions with events and async, prompting me to think that their implementation is different. So I tried asking the C++ lounge because C++ is lower-level, thus you would have a better understanding. However, C++ has nothing to do with the interactions between C#'s events implementation and async, thus the confusion boils down to (A) asking the wrong chatroom, and (B) poorly wording questions.
 
@JoshuaLamusga yeah there's no interactions with async there :D
 
New principle for C2x proposals:
> Application Programming Interfaces (APIs) should be self-documenting when possible
What they specifically mean by this is funnier though:
> In particular, the order of parameters in function declarations should be arranged such that the size of an array appears before the array.
 
hahahahahahahahahhahahahahahahahahhahaha
HAHAAHAHAHAHAHAAHAHAHAHA
 
user1881400
@milleniumbug Hmm, try-catch blocks can't follow through events firing, so once an event fires, you need another try-catch block if you want it to work. That's the specific oddity I'm thinking of. I found the solution some time ago, but was looking for differences in how events were implemented to see why they act strangely. (This is all C# tho)
 
7:49 PM
@JoshuaLamusga I think examining how C# is working by examining C++ is a futile effort, so if your aim is that, then let me tell you that you're wasting your time
 
user1881400
Oh no, I figured that out when I got "u w0t m8" as a response, lol
 
> Feature removal request: consider removing from the standard the ability for macro invocations to span an include file boundary.
 
hah yeah
that'll happen when my boss decides it's worth writing specifications
 
@Morwenn link?
 
7:54 PM
@Morwenn oh wg14, not wg21 :)
"Regarding our relationship with C++, the committee is content to let C++ be the “big” and ambitious language. While some features of C++ may well be embraced, it is not the committee's intention that C become C++."
 
@TemplateRex Yup, I sometimes have fun reading C proposals. Apparently, the biggest new feature for C2x that people seem to like is the ability to specify the underlying type of enums, C++ style :p
@TemplateRex Even better:
> Most users of C view it as a general-purpose high-level language. While higher level constructs can be added, this should be done only if they do not contradict the basic principles.
 
@Morwenn I'm curious to watch the talk by Sanks that he gave yesterday at CppCon, how to communicate with C devs
 
Apache helicopter slams nose-down into sea during exercise in Greece http://on.rt.com/7pv1 https://t.co/gHIYRbBreB
 

« first day (2167 days earlier)      last day (2787 days later) »