« first day (2293 days earlier)      last day (2647 days later) » 
00:00 - 17:0017:00 - 00:00

5:02 PM
wtf... someone upvoted this?
1
A: AVX, SSE sums are slower than gcc autovectorization

JeppeSRCIt has most likely to do with branch prediction (read Why is it faster to process a sorted array than an unsorted array? for a more detailed explanation ). On my i5-4200U I get this when processing 100000000 doubles in this order AVX, SSE, SER. AVX 807 ms 0.123916 GFLOP/s SSE 215 ms 0....

 
@Mysticial maybe the OP who doesn't know any better?
 
It's not the OP who upvoted. OP hasn't been on in an hour.
 
Don't you know all performance problems can be explained with branch prediction now? SO taught me.
 
@Mysticial s/the OP/someone/
Really, it's your fault. You made branch prediction popular on SO :D
A small price to pay for upvotes.
 
@Borgleader
 
Xeo
5:08 PM
lol
 
Links for your enjoyment:
http://meta.stackoverflow.com/questions/342245/who-made-brad-larson-a-moderator
http://meta.stackoverflow.com/questions/342246/is-moderator-for-an-account-fixed-or-it-keep-changing
http://meta.stackoverflow.com/questions/342247/suddenly-im-getting-down-votes-in-every-post
http://meta.stackoverflow.com/questions/342250/can-i-stop-specific-moderators-influence-over-my-account
 
welp that was Brad Larson’d deep into the ground
 
nwp
@wilx It doesn't even need to be you doing it. If you watch a video and then show it to someone else the second time watching will seem much faster.
 
@Mysticial click it
 
Chronostasis (from Greek χρόνος, chrónos, "time" and στάσις, stásis, "standing") is a type of temporal illusion in which the first impression following the introduction of a new event or task demand to the brain appears to be extended in time. For example, chronostasis temporarily occurs when fixating on a target stimulus, immediately following a saccade (i.e., quick eye movement). This elicits an overestimation in the temporal duration for which that target stimulus (i.e., postsaccadic stimulus) was perceived. This effect can extend apparent durations by up to 500 ms and is consistent with the...
FOUND IT
FUCK YEAH
I AM INVINCIBLE
 
5:20 PM
if (current == VOID && lookahead.kind == CLOSE_PAREN) {
    next()
}
@rightfold ^ Guess what I implemented today, easiest feature ever :D
 
Xeo
void f(void)?
 
correct
For the moment I handle void f() and void f(void) the same, which is technically incorrect, but who cares.
 
say you’re doing C++, but going slow :)
 
lol
Hm, is ~0 signed or unsigned?
 
ScY
-6
Q: C++ Using Structures . Please help me with this

Naveed MalikFile System You have to implement a file system that should have the following specifications. On the execution of your code your console should display the following options to the user. 1. Create a new file. 2. List & view existing files. 3. Copy file from windows (.txt). 4. Copy file to window...

 
5:26 PM
wow dat wall of text
 
@fredoverflow apparently signed, if I read it correctly
 
ScY
Does this site have a lot of trolls or am I missing something?
 
/cc @Borgleader ^^
That one is even worthy for @Puppy.
 
nwp
@ScY You are missing something. Most of those trolls are real people who want to do the right thing.
 
some get a bit tired and jaded from seeing the same things pop up again and again
 
5:31 PM
@ScY Are you talking about stack overflow or the lounge?
 
ScY
@fredoverflow Stackoverflow.
 
Well, it appears a lot of people mistake stack overflow for a helpdesk...
 
@Mysticial Alright, I'll ask. Why do you have 3,952 notifications?!
 
@GManNickG Because of this ^
 
@fredoverflow WHAT'S UP
I am making Scheme R7RS with my team
 
5:34 PM
What does R7RS mean, is it a robot from Star Wars?
 
@GManNickG I have no idea what you're talking about. :P
 
@fredoverflow Revised^7 Report on the Algorithmic Language Scheme
The 7th edition
basically
 
So your team is watching you implement Scheme? Cool.
 
@fredoverflow No, I am making it with the team, as in, I'm leading the project !!!
 
Wait, this sounds serious. Who is funding this project?
University project or real world?
@VermillionAzure I have never tried implementing Scheme, what are the challenges?
 
5:42 PM
@fredoverflow So, it's my senior project for school and I have a medium size team helping out
@fredoverflow Basically, it's a simple grammar compared to other complex languages but still has very complex features... macros, closures, etc.
 
@LucDanton I like that article (if that's what you meant, also if that's not what you meant).
 
@ScY Yes, it has a lot of trolls. But also yes, you're undoubtedly missing something as well.
 
@fredoverflow I have no funding, because about 0 funding is required. Because it's an undergrad project, it's basically on our own time for credit/benefit/no-credit-at-all-so-just-pleasure/experience
 
@sehe I do enjoy when you bring up that sort of stuff and I wanted to reciprocate
 
Myself I've never taken that separation seriously for precisely the reasons stated. Of course I trust "above LOD" sooner but that's about it.
@LucDanton Ah. Thanks. I do like it. I don't usually expound it in excruciating detail myself, but enjoy reading thoughts thought by others who do :)
 
5:47 PM
@VermillionAzure Most people don't seem to realize that the syntax part of implementing a language is almost trivial compared to all the rest.
 
@fredoverflow Well... I mean the parsing isn't exactly easy either
@fredoverflow Surprisingly, Scheme is not 100% context-free. But just implementing the parser can be a hassle
 
Isn't it just S-expressions plus a bunch of special forms?
 
@fredoverflow Yes... But macros might also complicate things. I haven't looked too much into it.
 
What are some examples of Scheme not being context-free?
 
@fredoverflow Quasiquote, apparently.
 
5:48 PM
Well, leave out macros for now and get the basics going first.
 
@fredoverflow ...Except macros are required to easily implement the derived expression types.
> The following grammar for quasiquote expressions is not
context-free. It is presented as a recipe for generating an
in nite number of production rules. Imagine a copy of the
following rules for D = 1; 2; 3; : : :, where D is the nesting
depth.
@fredoverflow So in order to have let, cond, and, or, when... and so on... We gotta do macros.
 
@R.MartinhoFernandes Thank you. Interesting.
 
@Mysticial holy wtf
@Mysticial LOL
 
@fredoverflow That....depends. For something like Scheme or Smalltalk (minimal syntax) it's certainly true. For something like C++, code generation is certainly non-trivial, but any way you look at it, the parsing is seriously non-trivial as well.
 
6:05 PM
@JerryCoffin Okay, C++ may be one of the few exceptions.
But semantic analysis is probably still way more complex in C++ than syntactic analysis :)
 
@fredoverflow Undoubtedly. But even Mount Everest doesn't make Aconcagua small. There are definitely larger, but it's still the highest mountain in the western hemisphere or the southern hemisphere.
 
6:20 PM
Hm, I never measured how much of skorbut is parsing...
11% if you don't count all the AST nodes
 
user1804599
@fredoverflow False.
 
user1804599
The latter includes the former.
 
Let's just agree that C++ is horrible, from a language theory perspective.
 
Hey so um
 template <typename... Args>
    Tree(Args... args) :
        this->data(std::forward<Args>(args)...) {}
Does that look funny to you?
 
What's the error?
 
6:26 PM
warning: unused parameter 'args#0
Which... I don't really understand, because
 
user1804599
 
user1804599
Using this symbol as a prefix operator is ugly. :(
 
Tree<DummyDataNode> root("root");

  DummyDataNode(std::string str) :
        data(str) {}
I mean, I don't see anything wrong with this...
Maybe it's the &&??
 
this->data in a member initializer list? this should issue an error immediately
 
Shouldn't that be Tree(Args&&... args) or something?
 
Xeo
6:28 PM
@VermillionAzure yes. std::forward needs && on the args
Also, what @milleniumbug said
 
@milleniumbug Why should that be an error? Without it you can't reference a member in the parent in the initializer list.
assuming both are templates
 
not in a member initializer list though
...wait what
 
What is "reference a member in the parent in the initializer list" supposed to mean?
 
Xeo
@Mysticial err, you can't init parent members in your init list?
 
the syntax goes member_name(whatever), the this is implicit, even in templates, because there's no ambiguity - it's either a base class type name, or a member name
 
6:31 PM
Oh I see.
 
I need to dereference the shared_ptr...
 
oh god.
 
@VermillionAzure You didn't show us any shared_ptrs...
 
@fredoverflow Oh yeah, this->data is a std::shared_ptr<T>
But T is a variant type so... uh...
OH MY GOD YESSSS
 
6:34 PM
@Mysticial Oh no, they're talking about it going on the outside
And they're correct it gave me an error
 
@Mysticial note that you didn't do this->foo(this->field)
 
oh
 
Anyways, I believe it works now.
 
At least the compiler stopped barfing :)
 
6:41 PM
If you could emit only one compiler error, which one would it be?
int main(void)
{
    a = 1;      // complain here?
    b = 2;      // or here?
    return 0    // or here?
}
 
@fredoverflow The first you encountered.
 
That would be the return statement, because it is a syntax error.
 
> a.c:1:10: void as a function parameter type is hipsterish [-fpermissive]
 
sure
except in C which I'm not so sure about, since you need to resolve identifiers due to that whole context sensitivity thing
 
I'm wondering if it would be more intuitive for users to see the error with the smallest line number first.
 
6:44 PM
@fredoverflow I was very careful with the wording. I didn't say the first you detected. The first you encountered was the lack of a declaration for a, whether you detected it as a problem at that point or not.
 
@Puppy In the syntax phase, I have a fake symbol table that only distinguishes between two 'types': MarkerIsTypedefName and MarkerNotTypedefName.
@JerryCoffin Maybe I should have phrased the question differently. What would beginner want to see, the "missing declaration" or the "missing semicolon" error?
 
missing declaration
 
@fredoverflow I think the missing declaration.
 
I'll put it on my TODO list :)
 
missing semicolon is too.. erratic
you add the semicolon and then above it you get a new error -> any part of your file could have unknown errors
 
6:48 PM
@Morwenn oddly not in C because last I checked they still allowed non-parameterized functions
 
if you only ever gain errors below the thing you changed, you can mark your progress
 
@Puppy very good point
 
@Mgetz I know, but I wanted to mention a line where there was no actual error :(
 
so I think that "lowest line count" is a fine heuristic in this case
 
@Morwenn I'm actually looking up if the old K&R syntax is even still valid
 
6:50 PM
Compilers tend to complain about it.
 
I don't think so in general, but I think the (void) form had a lot more longevity
 
@Mgetz I believe so--int main() { ... still defines main as a function that can be called with any (or no) parameters.
 
Yeah, (void) is still interesting in C.
 
@Morwenn Why would they? void foo(void); declares a function that takes no arguments, whereas void bar(); declares a function that takes an arbitrary number of arguments.
 
dumbest shit ever
 
6:51 PM
@JerryCoffin what I'm trying to figure out is it deprecated, or is it still officially supported
 
@Puppy agreed :)
 
@fredoverflow It would be: Error: `a` is not a previously declared variable (lvalue)
 
@fredoverflow I was thinking of the old K&R variable declarations, but maybe I didn't understand the messages above :p
 
Why would they even do that...
 
You know, the old int foobar(int a, int b) int c, d {}
Or something along these lines.
 
6:53 PM
int add(x, y)
int x; int y;
{
    return x + y;
}
 
Yeah, that :D
 
@Mgetz It's listed under future language directions: "The use of function declarators with empty parentheses (not prototype-format parameter type declarators) is an obsolescent feature."
If I'm not mistaken, however, C89 said the same thing.
 
@JerryCoffin so they might remove it, but.... they don't want to update old code
 
meh
are C standard updates even a thing now?
or did people finally decide to implement and use C99?
 
also they still do allow K&R style declarations
 
6:57 PM
@Puppy they seem to keep doing them, though I'm not sure how many people are really paying a lot of attention.
 
but they have some interesting behavior semantics
> Here int a, b; is the declaration list for the parameters. The difference between these two definitions is that the first form acts as a prototype declaration that forces conversion of the arguments of subsequent calls to the function, whereas the second form does not
 
@Mgetz They still even allow separate parameter/declaration lists: int main(argc, argv) int argc; char *argv[]; { ... (or is that what you meant?)
 
that reads to me as if you call int max(a, b); without int parameters fun things may happen
 
@JerryCoffin it was part of what I was getting at. I was more curious about int f() vs. int f(void)
but K&R plays into that
 
6:59 PM
@Puppy Some features of C99 seem to often be used nowadays. Not all of them though.
And niche compilers don't implement most of them.
 
like msvc? ;p
 
MSVC only made a C89 compiler because it wasn't too hard after the C++ compiler, but it wasn't their intention to do more :p
Even though they've started adding features these last years.
 
@Morwenn that may change now that they are basically rewriting their C++ compiler
 
Anyway, C2x is starting to gather DRs and features.
Even though the new proposed features are mostly backports of small C++ features, and some parts of the Decimal TS (which is a good thing considering that C++ intends to adopt it too at some point).
 
the entire C spec is a DR
6
 
7:06 PM
Hehe
I remember that there was a DR to remove an « atomic types don't decay » joke from C11.
IIRC there were proposals for enum wololo: int, for __has_include, and for array sections.
Also proposals to remove void trololo(int wala[static 8]) and to remove Annex K.
 
@Morwenn enigma vibes
Which is to say. Porn vibes
 
wat
Haha, and they still haven't fixed _Generic.
 
Why would they. It will be C anyways
 
I'd say that knowing whether _Generic decays before matching or not matters a bit. GCC and Clang had a different behaviour wrt that since it was left unspecified.
 
that's a very cool word and phenomenon. But I don't think accounts for what @wilx was asking about (it's not individual frames that seemed much longer, it's the whole pace/rhythm).
I experience that effect and it has to do with focus.
I have that a lot when playing music in "meditative" pace, and then at pace. I can play the very complicated stuff with a lot of focus so that I can "see" minute details otherwise lost at that pace. This gives /me/ the impression that the pace is not too high. Then when I listen to a playback I notice it's too fast for my own taste.
 
7:15 PM
@sehe Interesting.
 
I also observed that this plays into jazz improvisation A LOT. When I'm very focused and "free" to improvise, I'll frequently think I played a very calm, spaced solo with a lot reflection. And then when I listen back I don't notice the spaces all that much (I rather think it sounds like a solo I didn't improvise, and someone else played it)
It's this mode of focus that make me play any solos that are worth while at all, really. The other times I might "pull of" interesting stints, but the end result will hardly ever be a unity.
 
@sehe Maybe you simply use shitty recording software ;)
 
@wilx I'm tempted to conclude that you may have an above average ability to focus
 
@sehe \o/
 
@fredoverflow I never¹ record my own improvisation [ ¹almost ]
@wilx Really. When focused on a job my mind gets this "physical" sense of in-the-groove. I can sort of feel it stay on track. It's like "curbing" the thought process, and eliminating as many sources of noise as possible (often by drowning it out). Just the fact that nothing occurs that surprises me make me feel "at rest", though others note that I'm very productive at those times.
This is a gift and a curse for me. I think I feel I'm not able to focus at all, if I don't reach that zen. So, I subconciously trained reaching the zen all my life
 
7:27 PM
Anyone know the power usage of a modern CPU running at 100% all the time? (Without any kind of power-saving settings enabled.)
 
@StackedCrooked It is part of the spec for the CPU. Look it up for your CPU model.
It can be anything from few Watts to 150W, IMHO.
 
Ven
7:39 PM
Helo
 
7:49 PM
@Ven <3
Sometimes.
 
Ven
:O
what did I do wrong? :(
 
What? xD
 
Ven
why "<3 sometimes"?
 
Because I'm grumpy sometimes. I can't guarantee a constant love to anybody :o
 
Bah. I want to upgrade my PC but that costs money. :(
 
7:52 PM
Anyway, back to lucky star.
Ugh, Flash update ç___ç
 
@StackedCrooked E.g., AMD FX-9370 Procesor 8-Core, 4.4GHz (220W)
 
@Morwenn How about you guarantee constant apathy towards everyone?
 
Interesting.
 
@fredoverflow I could consider doing that, but I don't care about them enough to bother.
 
@wilx I suppose that's all cores running at the same time?
 
7:55 PM
@StackedCrooked I guess.
 
@fredoverflow Nah, I feel bad when I don't like people at all.
 
Main feature of C that is not part of C++: Comprehensible error messages. Main feature of C++ that is not part of C: Destructors. — IInspectable 28 mins ago
/cc @Mysticial
 
@wilx So, that's good, because now you can prove you want it before you buy something you didn't actually want
 
AMD FX-8350 looks yummy. Too bad I would have to upgrade the whole box.
 
@Borgleader E_NOCANDO is all you need
 
8:04 PM
@wilx I have one of those. Great for compiling code, shitty for everything else.
 
@Mysticial What's everything else?
It would still be an improvement over my current Phenom II X4 at 3GHz.
 
@wilx Anything that needs sequential performance. Anything that needs floating point. Anything that needs fast memory.
That first category pretty much covers 90% of the things.
@wilx Can you wait until March to see if Zen is any good?
 
@Mysticial I can probably wait few more years or until the current PC just dies, given it is running 24/7/365.
I think I have replaced PSU twice and graphics card 3 times since I bought it in 2010 or such.
But the CPU is still going.
 
@Borgleader lol
 
@Borgleader Error messages are totally comprehensible. You just have to spend a few years getting accustomed :D
 
8:16 PM
Forget the error messages. Just go to the first line where there is an error and make up the error message yourself.
 
I have to admit that I had trouble understanding the error message when I forgot the template in decltype(container_aware_adapter<Sorter>{}.template operator()<true>(std::declval<Args&>()...))
 
@Morwenn Yeah, some of them are nasty.
@Morwenn Also, yuck!
 
Yup.
 
Hmm, or I could just update BIOS and find some Phenom II X6 instead.
 
or get a real job and buy an i5
 
8:28 PM
@JerryCoffin Can you explain what issue NATs have with UDP
 
@Mikhail Dude. I have a real job. It is just that even real jobs here do not pay as well as those over in the more western Europe or the USA.
 
I understand that they are problematic when address information is in the payload
But that has nothing to do with UDP AFAICS
 
@Columbo There is no persistent connection and no connect/disconnect protocol. Hence NATs have to heuristically or on time out tear down the NAT mapping they create on first packet.
 
@wilx Why would they have to tear it down? Can't they just use a LRU replacement scheme?
 
@Columbo Sure. But if you have many different UDP "connections" and just a single IP you might soon get out of ports.
It is not that it is impossible, it is just more PITA than with TCP. IMHO.
 
9:12 PM
int size = 8 / 8.0f; -- the mind boggles. — Kerrek SB 26 mins ago
7
 
lol
 
> WINDOWS 7 USERS: To ensure proper functionality, you must disable User Account Control ("UAC") via the Windows Control Panel before launching the game.
C&C3 doesn't fuck around.
 
user6438653
@VermillionAzure Oh, yeah, that's cool. I may be able to help with some parts.
 
9:32 PM
@EtiennedeMartel "windows 7 users: Please inject yourself with ebola before launching the game"
 
> There was a unanimous vote that the feature is ugly, and a good consensus that its incorporation into the standard at the 11th hour was an unfortunate decision.
 
no
 
Great job WG14.
 
@Morwenn now I'm curious
 
@milleniumbug void foo(int array[static 8]);
 
9:39 PM
yeah that's bad
also I don't see the point, sizeof isn't different
 
@Morwenn wat
wat does the static actually mean?
 
AFAIR "you're expected to pass an array or a pointer to the first element of an array with size n or more, or you get UB"
 
@Puppy It's a hint that always at least 8 elements will be passed.
 
a hint?
 
9:41 PM
yes, a hint
 
AKA more gratuitous UB since compilers generally don't use it for optimization.
 
type of array is still int*
 
this sounds impeccably useless
 
it is
 
It's not just a hint, if the array isn't at least that size, the behavior is undefined
 
9:42 PM
@Columbo Typically you want them to tear it down. If you visit a web site, then walk away from the computer for a while, you don't want your computer to accept a packet from that web site an hour later just because you haven't done anything to fill the router's connection table for a while.
 
another way to do a hint: for(int i = 0; i < 8; ++i) array[i] = array[i];
 
Apparently, GCC still doesn't even issue warning if you pass a fixed-size array with a smaller size.
 
no need for useless features
 
There's a proposal to remove it (and also to remove [*]) for C2x.
 
Eh, I like the idea of __assume
 
9:44 PM
or maybe array[7] = array[7]; is enough
okay, no
that one is UB when the array is 8 elements or more, but not initialized
so it's not strictly equivalent
 
@GManNickG There was a proposal to add such a mechanism to C++, but for some reason it used the keywords true and false instead of a somewhat simpler [[assume(...)]] solution.
 
4 messages moved to #!/bin/bash
1 message moved to #!/bin/bash
whoops, the wrong bin
 
lol
 
@milleniumbug Sweet tits.
 
10:02 PM
It wasn't me :|
 
Looks like [[assert axiom: ...]] from the contracts proposal is the proposed standard-compliant __assume.
That would be nice.
 
That's a photoshop. Obviously it was my anti-abortion sign. Fuck WHO :)
 
10:31 PM
I find it interesting that Trump is actually trying to deliver on his promises.
Also, somebody please kill me from mercy. This coughing is killing me. Also, the parents who let their kid die on pertussis because they did not give him/her any antibiotics should get capital punishment.
 
10:55 PM
@Morwenn The contracts people should troll everyone and not provide [[assert axiom: aligned(ptr, N)]] or equivalent.
 
user1804599
@sehe lol countries not in the top five by human development index
 
Ell
@Griwes where is the proposal for this?
 
vOv Prolly in a mailing.
 
Ell
It's sad. I googled "c++ contracts proposal" and there are proposals 10 years apart :(
 
11:13 PM
retrofitting it onto C++ is hard
 
@Ell so, pretty much what the doctor asked when you reported having contractions: "How far apart are they?"
 
11:27 PM
What is up
Wow it's dead
 
11:40 PM
trump is fine - all these free entertainment news he brings to the rest of the world at US's expense, but hey, they voted him in ...
 
lol contracts
You mean SUPER-meta template ultra programming?
 
00:00 - 17:0017:00 - 00:00

« first day (2293 days earlier)      last day (2647 days later) »