« first day (1624 days earlier)      last day (3549 days later) » 

09:01
In case I scared you too much: you might get an answer if the question is interesting enough (and the learner's attitude is detected!). I think you'll be fine. You can read the rules if you want to know more
Yes, thank you. Do not worry, I was not scared.
sehe you use skype?
I don't see how that's relevant :)
Just asked, i want to work for me ;) I pay :)
Small thnigs.
I have enough work as it is. This would easily be considered spam, by the way
I'm going to grant you ignorance, but age is only half an excuse here. We've had plenty teens here with proper judgement :)
:) I understand what you mean.
lol I feel terrible for laughing at that
Browsing through my list of screenshots. Found this interesting quote.
What worries me is that I don't remember the quote or taking the screenshot.
but 2^inf -1 is no different to 3^inf-1
@StackedCrooked That looks flawed. Firstly the "sum" is contrived (the bartender wins nothing by pooring them "at once") and secondly it should be more like Σ(n:₀ →∞) 2ⁿ is uppose
@chmod711telkitty sure it is. you can't quantify it, but you can qualify it
anti-anti-jokes are sometimes funny even though they don't make sense at all
09:16
Glad to have entertained you then
you should make a multireddit
combining antijoke and antiantijoke
keeps you on your toes
user1804599
09:30
Hi.
ᴉH
user1804599
@StackedCrooked RACIS… oh wait
@Jefffrey isn't 2.3-2.8 like terribly old?
user1804599
@orlp lol, imagine that were not the behaviour.
09:40
2.8 is more than two years old
user1804599
user1804599
Dat launch.
What launch?
user1804599
Dat launch.
@райтфолд is that anal leakage?
user1804599
09:45
lol
@Blob Sure, but note that this is my first "serious" recursive-descent parser, so it's probably terrible in many ways.
Do you guys ever suffer from androgynous circumlocution?
user1804599
@FredOverflow Needs more backtracking.
I usually use Dynavect vectorized triple-coding to solve that.
And a manifold sculptor for dimensionality reduction.
user1804599
Alright, time to add structure types so I can hack around with vtables and typeinfo. :D
09:48
@райтфолд No sane language needs backtracking.
user1804599
@FredOverflow Never said you need it.
@FredOverflow then you don't like haskell
recursion is basically backtracking
user1804599
It's easier to write a parser that does a lot of backtracking.
@orlp I meant no sane language needs a backtracking parser.
@райтфолд parser or lexer?
user1804599
09:49
Instead of doing lookaheads you just try everything until it parses.
user1804599
It's easier to understand.
are you talking about the parser or the lexer?
user1804599
Parser, but you can write a lexer in the same way.
I don't know
Backtracking lexer? Can you think of a real world example where this would be necessary?
09:50
there's like 50 million different parser generators
but all the ones I looked at suck
user1804599
I prefer one_of(\&use_decl, \&proc_decl, \&main_decl) over given (peek()) { when ('use') { use_decl() } when ('proc') { proc_decl() } when ('main') { main_decl() } default { die "fuck" } }.
@orlp Have you looked at ANTLR? What is your target language?
@FredOverflow my target language is C++, and I want to use my own lexer
basically I want a parser generator that doesn't generate 1000+ lines of boilerplate
Which parser generators have you tried already?
user1804599
@orlp Here, a lexer in but a few lines of code which is simple, easy to maintain and easy to understand: github.com/mill-lang/mill/blob/develop/millc/lib/Millc/Lex.pm
09:52
@orlp Spirit :) (just ignore the includes. they're not generated :))
@sehe since when is spirit a parser generator?
@райтфолд I already have a good lexer
user1804599
:[
@orlp Since when is it something else (talking about Qi part of the lib)
that doesn't use fucking regex >.<
@райтфолд What is .pm?
user1804599
09:53
@FredOverflow Perl module.
Perl 6?
@sehe I thought it was a parser, not something that generates a parser given a grammar
user1804599
No, Perl 5.
user1804599
You can use it for Perl 6 but people tend to use pm6 for that.
ah the good ol' .cpluspluseleven
09:55
@orlp ... what grammar would it parse?
user1804599
If they use pm, they typically start with use v6; so the Perl 5 interpreter will fail with a readable error message instead of a syntax error.
@sehe the grammar you give it
@sehe you give a parser generator a grammar in BNF, and it spits out a parser for that BNF
is github being DDos'd again? I can't reach some pages with a 503
I wasn't aware that spirit could do that
@MarcoA. ye, china
@orlp You feed it rules in an eDSL (similar to BNF) and it spits out a PEG parser for those rules
user1804599
09:56
damn ddosers
user1804599
Backtracking is the best thing ever.
@MarcoA. china put XSS in baidu (chinese google), everyone in china that uses baidu unwillingly helps DDoS github
user1804599
It's really underrated.
It's also really expensive.
09:57
@orlp I read it. I just wonder "why"
@MarcoA. censorship
user1804599
@orlp But GitHub is so communist!
@райтфолд In fact, I'd say the opposite. Backtracking is a nice last resort, but it kills performance and invites side-effects bugs in parsing
they want to block the great firewall circumventions github hosts
@orlp so the great firewall didn't suffice?
user1804599
@sehe Good thing I don't care about purrformance as long as it's fast enough!
@MarcoA. they specifically target 2 repos that provide tools to work around the great firewall
user1804599
@FredOverflow lol "actually three great walls."
@райтфолд the effect of badly anticipated backtracking is vastly underrated !
@райтфолд I think Larry Wall is the funniest language designer ever.
09:59
Key to this is the observation that backtracking almost always serves to enable brute force search
user1804599
@FredOverflow I like Joe Armstrong as well.
The Erlang guy? Na, don't like him that much.
user1804599
@FredOverflow And Andrei Alexandrescu.
I don't think he's funny. At all.
user1804599
That guy.
09:59
He's just pretty good
@райтфолд I wouldn't like to share an elevator with him.
@sehe Larry, Joe or Andrei?
user1804599
@FredOverflow Why? Afraid of ellipses and dot dot dots?
@FredOverflow Clearly, Andrei (follow the arrows/context)
@райтфолд I don't know, he's just weird. What's his agenda?
user1804599
No idea.
user1804599
10:01
Rich Hickey is also a funny guy.
I forgot about Rich!
user1804599
And Odersky appears in funny pictures.
0
Q: Error expected ',' or '...' before numeric constat

Cosmin Iovanabout 2-3 working days to sort winrar converter based LZO key. Ok, I did codes etc .. Initially the code was written in codeblocks, the beginner. Now I am so to migrate to gcc49 on cygwin. In codeblocks it works. In gcc49 i use : -std=c++11 as flags. Now when i try to compile i get this error ...

10:01
NEEDS MOAR JPEG
come into my elevator boys
it's safe here
user1804599
SPJ is more of an enthusiast than a funny guy.
His graph of average programming language lifetime is pretty funny, though.
user1804599
Guido van Rossum isn't funny at all.
user1804599
After Rob Pike, Anders Hejlsberg is the least funny of all.
user1804599
Rob Pike is grumpy and serious.
user1804599
Like James Gosling.
user1804599
@MarcoA. lol
10:05
@MarcoA. lol is that the github DOS? :)
@райтфолд You like James Gosling? ;)
user1804599
No.
user1804599
@FredOverflow It's the MS-DOS.
But he gave us the JVM!
user1804599
Gosling is awesome!
That looks like library code. Where is the code you have written? — FredOverflow 2 mins ago
The code is written in c++. — Cosmin Iovan 35 secs ago
?
10:06
Yep in c++.
user1804599
Today I want this to compile and run:
user1804599
use std::io;
proc greet(name: String) { io::writeln("Hello, " ~ name ~ "!"); }
MAIN { greet("rightfold"); }
user1804599
Which means implementing parameters and string concatenation.
user1804599
@FredOverflow top kek
@CosminIovan I don't get it, are you writing your own standard library?
@райтфолд Did you steal ~ from D?
user1804599
10:08
@FredOverflow No, I cloned it.
user1804599
If I had stolen it, D wouldn't have it anymore, which would be weird.
What does the i in idup stand for, anyway?
user1804599
"immutable"
that's where the error is ... as informed by the compiler, but the real problem is likely to be in his own code </my5cents>
user1804599
10:09
It returns an immutable duplicate.
Webzen belong codes.
user1804599
The difference between immutable and const is that T can be cast to const T but not to immutable T unless T is already immutable.
user1804599
So you need idup.
I just inspires me in them does not steal.
user1804599
@FredOverflow In Haskell, adding an element to an immutable hash table is an O(n) operation. In Mercury it's O(1)!
10:12
@райтфолд How?
user1804599
@FredOverflow You can guarantee at compile-time that nobody else knows about the argument you pass to a function.
Move semantics in FP? I like it :)
user1804599
So the function can just mutate the hash table and return the same hash table, but it looks like it's immutable from the outside.
user1804599
HashTable = hash_table.new(),
HashTable2 = insert(HashTable, "a", 1), % pseudocode
% cannot use HashTable anymore, only HashTable2
user1804599
WTF is with the starboard.
10:17
I had a really hard time parsing that title.
@райтфолд What do you mean?
user1804599
Lots of not-funny crap on it.
So you deleted the not-funny crap?
So nobody knows what the problem is my question? :)))
hi guys
Doesn't the chat have a spam/harmful link filter?
10:23
what spam ?
@CosminIovan The problem is we have no idea what your problem is.
Anyone understands this:
If you have 3 processors and 3 threads would take time x, then 4 threads would take time 1.5x ???
What is that "One Direction" thing and why does it use only 1 dimension?
why 1.5 ?
1.333333 ?
* and not 1.3333 ?
@libjup That would make more sense to me.
10:25
@FredOverflow ok :) then we agree on that :)))
Yes :)))))
@VictorLopez The songs are all one-dimensional
@Puppy 3d audio is really good for end-user experience, no doubt about why Zayn did leave 1D.
@VictorLopez Do we have 3D audio yet?
FredOverflow Look again on my question, edited
10:29
@FredOverflow no actually wouldn't it be factor 2?
Because one thread can only be computed by one processor; and if you have three processors but four threads you have to wait until the three threads are done... and then you have to wait the same time for the fourth thread to be done by one processors while the other 2 are idle...
I edited the file and put all pastebin
@libjup Interesting. Is this homework? Can you post the exact assignment, verbatim?
it's not basically homework; but I stumbled across this presentation from University of Washington: homes.cs.washington.edu/~djg/teachingMaterials/spac/…
see page 22
The example with the 12 units of work probably explains it, but I have lost interest in the problem by now ;)
@libjup maybe I'm missing context
only looking at page 22
but what it says there is just bullshit
10:39
X X X | X X X | X X X | X X X

X X X 1 Time unit
X X X 1 Time unit
X X X 1 Time unit
X X X 1 Time unit
-------------------
4 Time units


X X X X | X X X X | X X X X

X X X 1 Time unit
X 1 Time unit
X X X 1 Time unit
X 1 Time unit
X X X 1 Time unit
X 1 Time unit
-------------------
6 Time units
@orlp reffering to the 1.5 factor as bullshit or to the rest of the slide ?
actually, it's not bullshit
he's intentionally proposing a dumb algorithm
no, it makes sense
You have no power here, servant of Morgoth! You are nameless, faceless, formless. Go back to the void from whence you came!
I was just not aware he's making a toy example for a bad soluion
@orlp ok :D
I think we could use this line on the newbies who ask homework questions here without doing any research but harassing the loungers here for answers
10:42
@chmod711telkitty are you referring to me ?
if you are indeed someone who ask a homework question here without doing any research
no xD I was genuinely interested in a discussion on a slide I found :P
@FredOverflow Now you know about YMIR? and Webzen?
@CosminIovan I don't think that would change anything. Have you tried removing the underscores from your template parameters as suggested in the comments?
Yes but, when i remove says: It's not declared in this scope
:)))
10:47
Did you remove them everywhere, not just in one spot?
I removed only at that function
Remove them everywhere and try again.
You are not supposed to start identifiers with underscores. That's reserved for the standard libraries.
now i try
465
Q: What are the rules about using an underscore in a C++ identifier?

Roger LipscombeIt's common in C++ to name member variables with some kind of prefix to denote the fact that they're member variables, rather than local variables or parameters. If you've come from an MFC background, you'll probably use "m_foo". I've also seen "myFoo" occasionally. C# (or possibly just .NET) se...

only odd number of underscores are allowed
10:53
@FredOverflow I don't know, do we have 3D audio?
@VictorLopez Well, my speakers fill my office with sound.
@StackedCrooked Like, really good audio? or just audio?
I thought today's pizza was ping-pong chat.
     /\  ______________ \
    /::\ \ZZZZZZZZZZZZ/\ \
   /:/\.\ \        /:/\:\ \
  /:/Z/\:\ \      /:/Z/\:\ \
 /:/Z/__\;\_\____/:/Z/  \:\ \
/:/Z/____________\/Z/    \:\ \
\:\ \ZZZZZZZZZZZZ/\ \     \:\ \
 \:\ \     \:\ \ \:\ \     \:\ \
  \:\ \     \:\ \_\:\ \_____\;\ \
   \:\ \     \:\___\ \ \_________\
    \:\ \    /:/ZZZZ\:\ \ZZZZZZZZ/
     \:\ \  /:/Z/    \:\ \  /:/Z/
      \:\ \/:/Z/      \:\ \/:/Z/
       \:\/:/Z/________\;\/:/Z/
        \::/Z/____________\/Z/
         \/ZZZZZZZZZZZZZZZZZ/
that one's pretty good
@FredOverflow lol, not using any fucking underscores as a prefix seems to be unconditionally safe. Why do developers insist on walking the perimeters of the roofs of high buildings for no reason?
I mean. FFS, it's like the ever-popular 'I deliberately overstepped the bounds on my array and X happened' questions.
Because the stdlib headers do it that way, so it has to be good practice!1
(I suspect that that really is the reasoning behind it)
And running into trouble with it is relatively rare, so you can do it for a year before things break horribly and then think "but that always worked."
11:03
@Wintermute [sigh]
It looks _kool!
@orlp Needs more Escher, I think. s/\\ \\ \\_/_______/
Hm. And the line below it filled with Zs.
34
Q: Why is the code in most STL implementations so convoluted?

Matthieu N.The STL is a critical piece of the C++ world, most implementations derive from the initial efforts by Stepanov and Musser. My question is given the criticality of the code, and it being one of the primary sources for people to view examples of well written C++ for both awe and learning purposes:...

Why is this for python3
11:16
Are you bored, Freddy, why so many video links?
@MartinJames Apparently, there are many Java programmers using _ member prefixes migrating to C with classes.
@FredOverflow We need immigration control:)
@chmod711telkitty Of course I'm bored. It's Saturday noon and the sun is shining.
Also, I have a diminishing cold.
@FredOverflow It's raining here, and there is no good football on today, (just some internationals). I'm bored too.
@chmod711telkitty Meh.. requires effort.
Is f(i++, i++) undefined?
I can't even be bothered to downvote all the C linked-list questions.
4
Sounds like depression. You should see a doctor.
@FredOverflow yep, but f(++i, ++i) is a much more interesting question in C++11.
11:22
It isn't undefined, right?
not sure
it might be defined.
@FredOverflow I tried to book an appointment, but two of the three docs at the village practice are off with clinical depression.
You should totally ask on SO and reap the rep.
@MartinJames you know what my advice would be ...
0
Q: Is f(++i, ++i) undefined?

PuppyI seem to recall that in C++11, they made some changes to the sequencing behaviour and that now i++ and ++i have different sequencing requirements. Is f(++i, ++i) still undefined behaviour?

11:23
@chmod711telkitty It's bad. Like really bad. I can't even face going to the Vernon Arms and getting ratted.
play kerbal space program
alcohol is a depressant ...
Wow, already closed. I voted to reopen.
@chmod711telkitty Yes, but it's difficult to commit suicide if you cannot walk up a high building, hold a gun or remember where the pill bottles are kept.
what's already closed?
11:26
@Puppy The stupid.
Your question was closed after 1 minute, but I reopened it.
@Puppy I thought the order of evaluation for that is undefined
The order of argument evaluation is unspecified, not undefined.
@FredOverflow You are a moderator ?:)
@MartinJames if you run up a really tall building to commit suicide, you probably get runner's high and stop having suicidal thoughts
11:28
@chmod711telkitty lol
@CosminIovan I don't think so, but high rep users have special powers on SO, as well.
@chmod711telkitty What if you're too fast to stop though?
I keep reading all these stories about how people die climbing Everest
@Pris That does not make it UB.
I'm a little surprised that technology can't save the day and let people scale far more safely
@FredOverflow what if you run up all 80 floors & reach the top, but the door to the top floor is locked?
11:30
You probably die of exhaustion or a heart attack.
@FredOverflow You have skype? :)
No Skype, no webcam, no microphone, no headset, no nothing.
@chmod711telkitty Yeah, how depressing would that be?
You could still call the suicide hotline. "One suicide, please. And make it fast!"
@FredOverflow no clothes either? do you turn up to teach those innocent teenage girls naked?
11:32
@chmod711telkitty What innocent teenage girls?
[note in diary - if intending to run up the stairs of a tall building to commit suicide, take a fire-axe or sledgehammer in case the door is locked]
I would be way too lazy to carry a sledgehammer up to a building. Or to take notes in a diary, for that matter.
@FredOverflow Yeah. Thinking about it, suicide is too much effort. Fuck it, I won't bother.
user1804599
My whitespace regex is beautiful:
user1804599
my $space = qr/[ \n]|#(\((?:(?-1)|.)*?\))|#.*?\n/s;
$code =~ s/^$space+//s;
user1804599
11:34
inb4 MySpace joke
@MartinJames I think it would be safer to go for a cliff since there would be no door or gate to stop you
but then again, that would be more ~effort~
@райтфолд Does that still exist?
Also, I have dependencies. One is outside the office now, squeaking. Walk time, back later..
poor bailey, have to walk martin everyday to prevent him from sinking into a depression
@orlp damn
11:42
@sehe got you hese
@FredOverflow "One suicide by alligator, please. And make it snappy!"
@orlp what does it mean when you reverse my handle?
nothing
you can stop, plro
I just think it's mildly funny
Duc Lanton
11:44
@orlp care to elborate?
Zapptr
user1804599
Alright, nested comments work very well.
Jartin Mames
fightrold
chmod 911
How do you even spell @райтфолд
user1804599
@VictorLopez uh, you just did it.
@райтфолд What? Did I?
f - а - й - т - r - о - л - д
@chmod711telkitty not sure if cookie or dried feces
@райтфолд Nested comments gotta be like the most important language feature, by a large margin.
user1804599
@FredOverflow semicolon insertion is also very important.
@orlp i like those. However mangling names is a bit reminiscent of school yard bullying IYAM. Also, AFAIR it started last night when you were being a bit obnoxious to me in the first place (I ignored you there)
11:48
oh sorry, I didn't realize you associated that with bullying
@райтфолд I don't like things that end in "...colon insertion".
I'll stop
wtf
my browser is doing weird stuff
(disable the keylogger, fixed)
nah I have this vim plugin
on my laptop
@orlp It was the combination with your repeated questions yesterday that I wondered. Which is why I asked. I understand now.
11:50
so I can browse without having to use this obnoxious trackpad
but for some reason the vim plugin kept activating while trying to type in a text box
If you have another question, you ask a new question on SO. You don't prepend it to an old question that was already answered. — FredOverflow 5 secs ago

« first day (1624 days earlier)      last day (3549 days later) »