« first day (1500 days earlier)      last day (3450 days later) » 

7:00 PM
ANTLR API is taken straight from hell
 
I have yet to observe any generators that generate acceptable code.
 
Bison is okay
 
@Puppy Acceptable as in performant?
 
no, just as in, readable, type-safe, flexible API, etc.
 
I'm shocked that generated FSM code might not be readable
2
 
Xeo
7:04 PM
@Puppy Parsec~
 
I want this ebay.co.uk/itm/…
I used to like that game as a kid
I want it on my shelf
 
@Puppy yeah Parsec is totally nontypesafe and inflexible
unless you meant "for C++" in which case ha ha fuck you ha ha.
 
I'm off to RPG session say mean things to Puppy while I'm not here.
 
ok
 
7:09 PM
@Xeo Aren't parser combinators terribly slow? Do they provide error recovery?
 
oh noe
 
You were gone again?
 
yes
 
Yeah for about 35 minutes. Travelling from office to hotel. Now in bar.
 
7:11 PM
@LightnessRacesinOrbit Welcome back :)
 
LRiO's life in the lounge is measurable in quits/second
 
more like victims/second amirite
 
younorite
 
Xeo
@FredOverflow Ever played around with Parsec?
it's good
 
I still want reply-to and star power from mobile chat
 
7:13 PM
@Xeo Is that the Haskell library? Then yes, but it's been a while.
 
the SE android app is still improving but it is currently impossible to view question revision histories, or to comment on closed questions.
had to go back to chrome with sadness
the app's mechanism for upvoting/flagging comments is great; i'd love to see that for chat
 
Xeo
@FredOverflow ye
 
... none of you cares, right?
 
> Thanks for accepting my invitation. As I said in my previous message, we have an open position for...
there was no previous message
 
7:17 PM
ah fuck the app wont let me obtain a link to a comment tho. fuck you so devs and your "second-class citizens" diatribe. so devs are "second class citizens" and their mums too amirite
 
try harder spambitch
 
> I can also attest to the fact that ANTLR v4 is now powerful enough and fast enough to compete well with handbuilt parsers. E.g., after warm-up, it's now taking just 1s to parse the entire JDK java/* library. impressive
 
the new blackberry looks really neat software-wise but it's so damn ugly cdn.arstechnica.net/wp-content/uploads/2014/11/…
jesus christ
 
Just 1 second? Unbelievable.
 
Why is it so hard to believe?
 
7:20 PM
the blackberry classic (far right) looks neat tho phonedog.com/shared/images/2014/9/…
 
parsing is not a very intense activity.
and furthermore
parsing is very easy to increment
 
posted on November 24, 2014 by Herb Sutter

(this is an echo of what I also just posted on isocpp.org) I wanted to add a few more things to my meeting trip report. I updated the trip report in-place, but for those who want to see the “diffs” I’ll also post just the new parts here as a standalone post: There were 106 […]

 
so the fact is, there's basically no need at all to parse at a high speed.
more useful is extensibility, error recovery, readability and suchlike things.
 
what even is less.
> Both options will do just fine as I see it, but other than design related arguments, what are the differences? Is any option better than the other? Are there any performance or optimization issues?
lol.
0
Q: Difference between private static members and having them in the cpp file

Nitzan TomerLet's say I want class A to have a variable and a function that are available to all instances but only to them. I have two ways of doing that (or are there more?): Have them as private static members: class A { ... private: static int myInt; static void myMethod(); ...

 
7:29 PM
> Adopted N4086, which removes trigraphs. Yes, we removed something from C++… and something that was inherited from C! But wait, there’s more…
> Adopted N4190, and actually removed (not just deprecated) several archaic things from the C++ standard library, including auto_ptr, bind1st/bind2nd, ptr_fun/mem_fun/mem_fun_ref, random_shuffle, and a few more. Those are now all removed from the draft C++17 standard library and will not be part of future portable C++.
Wow
 
user1804599
maan
 
user1804599
> Load average: 2.06 2.23 2.97
 
what is that, your average T2O in seconds?
 
His average fap time in seconds.
 
@rightføld On a quad core that's ~25%-50% idel
 
user1804599
7:40 PM
@sehe dualcore.
 
user1804599
But a few minutes ago the website was immensely slow.
 
user1804599
htop showed 100% CPU usage for both cores.
 
user1804599
May have to upscale anyway.
 
user1804599
@Xeo that's not a parser generator.
 
user1804599
It's a combinator library.
 
Xeo
7:42 PM
oh, right
he said "generator"
 
user1804599
Though arguably you can write functions that generate Parsec parsers. :P
 
user1804599
@sehe And this is only 42 visitors. It'll be around 1k at the end of the year. :<
 
user1804599
As in, 1k at once. Not 1k total.
 
@rightføld vuurwerk
 
user1804599
JA :D
 
7:51 PM
 
My inner self is telling me not to star that image, even if I want to.
 
My too, but i dont care ^^
 
*mine
 
Sorry. Thank you.
 
-5
Q: I think I might have become addicted to this site

DickWhat is my best legal recourse? Is there a good attorney I can contact specifically? How can I get off here and get to work were I was supposed to be hours ago? also Am I not allowed to delete my stack overflow account? Why don't they put a link to do so? How long does it take for them to answer...

 
8:03 PM
Hmm, I have to agree with poster. stackoverflow.com/questions/27112147/…
 
user1804599
@CaptainGiraffe I agree with this poster.
 
user1804599
 
@rightføld Sry my dns blocks all facebook related stuff.
 
user1804599
ahahah
 
user1804599
noob
 
user1804599
8:11 PM
 
Xeo
 
It's not the size of the cock that matters, it's what you do with it.
 
Xeo
well...
 
(Though having a large one makes it easier)
@Xeo This looks way too precise.
Probably staged.
 
Xeo
ye
still funny to imagine that happen
 
8:13 PM
Yeah, I mean, that John guy is probably the hotheaded type who will rush in without giving the other guy any time to explain himself.
 
user1804599
@EtiennedeMartel if it's too small the only thing you can do with it is pee.
 
there is a medical condition called micropenis iirc
 
@rightføld This is an offputtingly nonallegorical comment.
 
dumb question; for a string of length k, what is the best way to determine the possible number of permutations it can have?
 
pfft help vampire
suck someone else
 
8:19 PM
@corvid Dumb! or k! Whatever you prefer. If your string has a lot of similar characters you might need to do it over.
 
it can only be 0 or 1
 
try rand()
 
user1804599
randebiel()
 
guaranteed to give the right answer 50% of the time
 
user3010322
Meow.
 
8:23 PM
you never come here anymore except when you want help :(
it le saddens me
 
@corvid You are confusing !idiot with idiot!
 
user3010322
Woof.
 
How friendly.
 
to whom are you referring?
 
@corvid Use permutations
 
8:25 PM
@Jefffrey alas, must do it by hand
 
Oh well. Fuck you too.
 
@corvid You are looking for the factorial, wikipedia it.
 
"Hey, can you help me?"
"We miss you."
"Forget that help; I'm out."
 
you're great, guys
 
Did corvid shut down gravatar?
 
Ell
8:32 PM
evening
 
fuck man
some other dude in this game is named "Puppy".
I'm gonna kill that guy right now.
 
Ell
@EtiennedeMartel lol wat
where did this come from?
 
@Xeo 404
Also the "not delivered" message is clearly homemade
 
@Xeo hehehe
@rightføld yes, what's up?
@corvid you are so incredibly accurate in your descriptions, no wonder you can't come up with the solution. "it" can be 0 or 1. Really
 
8:48 PM
The docs for std::array says I can't have a std::array<double, N> with a few hundred thousand elements, unless embiggunating my stack. Is this covered in the standard?
 
Xeo
No, because implementation defined
 
@CalvinSmith Touché. I was, however not talking about the code, but rather about the text it should be able to "correctly" operate on :) — sehe 12 secs ago
 
@CaptainGiraffe Appendix A IIRC. Also new array<double, 1024> problem solved
 
Ell
@Griwes lol
 
8:53 PM
This is one of the best ones I've seen up to date.
Still, the very best one so far is this:
 
Xeo
Ohey, I already found one positive thing about Factorio before even downloading the game
No stupid password restrictions!
 
Ell
Hahaha
 
Xeo
Also, my name wasn't taken
that's a bonus
 
@sehe Seems that 23.3.2.7 covers my question. A is the grammar summary.
 
@Griwes I have no clue what that is supposed to be about/portray
@CaptainGiraffe There's an appendix with minimums for implementation defined limits
 
8:59 PM
@sehe ...the political and economical situation in Europe? lol
 
"lol" makes it an ace
Why the fuck is all the engrish so dumb
 
@sehe In the polandball?
 
Xeo
Okay, but for some reason, the game doesn't accept the password :s
 
in every single frame, of course
 
Xeo
oh wait
 
9:04 PM
@sehe Grab some Polandball 101
 
Xeo
it just doesn't accept my mail, only username
 
I bought Factorio. Good test scores, farewell.
 
Ell
I don't get "the daily clay" though
 
@Xeo Oh boi.
I foresee addiction in your future.
 
Ell
9:09 PM
@Griwes this made me lol & shame
 
hi guys
 
Hi
 
Ell
What window managers do you guys use?
 
xfce4
 
Ell
I might switch to i3 or something more minimal
 
9:23 PM
Windows
 
Ell
I'm on cinnamon. I can't remember what the wm is called
 
window managers? like glfw?
 
Ell
I think cinnamon is the wm or maybe it's the de I can't remember
@Jefffrey like fluxbox, ratpoison, i3, openbox
 
oh shit
schedules big ion engine burn -> it's on the dark side of the planet.
 
@Griwes I don't wanna :|
 
9:30 PM
@sehe That will explain the basics and you will stop being confused :P
 
I don't like those polandball comics.
 
9:45 PM
@Griwes I think I get it. The answer seems to be, roughly "It's dumb because this is a parody cartoon series and specifically aims to be dumb". Well, de gustibus
@Ell mutter I think, not too sure. Long time since I tried Mint
@Ell enligtenment, kwm, unity, metacity etc.
Mmm. actually we're mixing desktop envs and wms there
 
Xeo
hm. Worlds without coal close by kinda suck
Ooh, me likey
 
wow, bristol city council offer a "Granny Annex" form.
seriously, that's what they call it.
 
does it help you annex a granny to yourself?
grannies can cook and clean for you
 
10:02 PM
nah, they're a term for house extensions to house older relatives.
 
Ell
Do you guys have fancy keyboards?
 
no.
 
The fanciest
 
welp, my thermostat also has this manual mode where you just set a temperature and it keeps it at that
it's supposed to be "less complex than the programmable mode"
and is called "grandma mode"
it's my favorite mode even though I'm not a grandma
 
Ell
lol
 
10:03 PM
lol
 
user1646075
@Ell Mine is made of pewter and bone china.
 
Ell
I wonder how I can force myself to learn vim
during summer
 
don't
ah
my council tax bill took a nice hit today
from 490 to 370
and furthermore I don't have to make a payment next month.
 
@Ell been using sublime text 2 lately, I like it more than (g)vim
 
Ell
I feel like the mouse slows me down a lot
@AlexM. I used to use vim very badly
 
10:07 PM
eh
 
Ell
then I moved to emacs recently and still used it badly
 
honestly, I found so far that typing slower can be a real benefit.
 
Ell
so I've admitted defeat and I'm using atom now
 
more typing time -> more time to think about what you're typing.
 
@Ell It's a little buggy and slow, but otherwise very nice
I use it at work sometimes
 
10:11 PM
ah fuck
I lost my Gilly probe.
fortunately I had a spare lying around.
 
my two cents: tried both sublime, vim and emacs.. I find emacs the most powerful and customizable but also the hardest to get right
 
coolio m8
 
@MarcoA. Powerful indeed Emacs is. Vim leads to the dark side. Where did sublime get in to this?
 
I use Sublime Text.
It's my favourite editor.
 
I like sublime text because I get the pretty tree view that I can explore using the mouse w/o any plugins
I get go-to-anything that works without any plugins
 
10:17 PM
it also lets you use your keyboard if you want to
I barely use the mouse
 
I spent a ridiculous amount of money on food.
must control my spending better next month.
 
-using the mouse, well there is your problem right there.
 
it also uses tabs like the... other editors except vim and probably emacs, I never used emacs
 
21 secs ago, by Rapptz
it also lets you use your keyboard if you want to
 
Okay, I've been underway for 11 minutes now to make your sample self contained. And that's not because I'm slow with this. Can you do the honours next time? — sehe 6 secs ago
 
10:17 PM
Quite useful for a text editor
 
ikr
 
Ell
@OMGtechy It hasn't been buggy or slow for me
 
I still don't get the point of how vim uses tabs which aren't really tabs
 
@Ell you lucky git, I've used it under ubuntu and windows 7; both have been a bit icky. When it works though...I do like it
 
That's not the part that's frustrating! The school part is frustrating. It's actually great that you have a community that teaches you the right priorities, instead of a bazillion forums repeating the same crappy old C with classes shit for years :) — sehe just now
 
10:20 PM
I do have a lot of plugins for ST3 that I make use of (I even made my own) so it's too late for me to switch to anything else, not that I want to anyway.
 
well, my .vimrc has had 6 revisions for the last 12 years. Not sure if good or bad.
 
Installing cairo takes a life and half.
 
user1646075
@AlexM. vim has tabs. and panes. and pain.
 
So make sure you have done everything you wanted in your life before beginning.
 
@GuruAdrian they're not normal tabs
you have to set some weird autoclose buffer flag or something to make them feel like normal tabs
 
user1646075
10:24 PM
@AlexM. you're thinking panes probably, the split things.
 
no, tabs
 
user1646075
i've tried the tabs but couldn't be assed. Reaching for a mouse sucks
 
user1646075
hmm
 
IIRC closing a buffer in a tab closes it in any other tab where you might want to open it in
or something like that
 
user1646075
@AlexM. setting things is a rite of passage.
 
10:25 PM
also seriously I needed a plugin to get a list of the most recently edited files
and it didn't even work properly
 
user1646075
@AlexM. didn't use it that much. I go the tabs on the konsole. vim in char mode ;-)
 
user1646075
polandball looks like fun. Do they do lots of potato references for latvia?
 
you're too hardcore for me bro
my weapon of choice is the mouse
maybe grandma mode does fit me, huh
 
user1646075
CHARACTER MODE EVERYWHERE
 
user1646075
wtf with the network AGAIN
 
user1646075
10:27 PM
I was thinking just the otherday: you know how python and other languages use significant indenting? I think it's time someone developed a language with significant kerning.
 
user1646075
also super and sub scripts.
 
I think lightness edited an answer today, it was from a guy who wouldn't write anything without the code formatting, even for simple text. He said something like "I can't use variable pitch fonts" or the like
 
text does not have a font.
you can't have text with significant kerning.
only rendering has fonts.
 
user1646075
variables in times roman. Classes in Courier new, keywords in Verdana, and exception handling code in comic sans
 
also significant whitespace was a fail.
 
10:28 PM
@GuruAdrian would your vim be able to handle that
 
it's just curly braces except if you should ever mix tabs and spaces just because your editor was on the fritz that day, your code won't compile.
 
user1646075
@AlexM. in character mode? No, i'd probably have to go gvim!!! OMG mouse WTF?
 
Ell
@Jefffrey not on linux
 
what is cairo
that shitty graphics lib?
 
I vaguely remember cairo being something related to objective c with gcc on windows
it probably comes bundled with something
 
Ell
10:34 PM
@Puppy why is it shitty?
 
"windows
it probably comes bundled with something" Sounds about right.
 
I'M BACK
cairo is a rendering thing innit
WPF for Linux
 
@Ell Just look at the implicit state, global variables, god objects, and suchlike API.
 
sort of
not really
 
no matter how many times I see this, it's still funny a.disquscdn.com/…
5
also gotta get myself ready for the winter sale
 
10:36 PM
@Griwes wtf dude
 
Oh god
 
black friday and steam sale
 
I just looked at the all time to at r/polandball :D
 
10:36 PM
@LightnessRacesinOrbit nazi germans valued generic paradigms
 
This was in the first 3 I think.
 
@AlexM. of course
 
If a library requests a function pointer for a callback function, is there a way to direct the callback flow into an object so I can start working in an object oriented context? I would like to implement the callback as a member function of a class for example, though that is clearly not possible
 
@Casey: He's not marking the function inline; he wants it to be inlined. There is a huge difference. — Lightness Races in Orbit 20 secs ago
backup plz
@salbeira Not really, no
@salbeira and yes it sucks
some APIs allow you to pass at least one type-erased argument to the callback, and you can use that to pack an object context (i.e. pointer to the object) and thus (at the very least) redirect the call to that of a member function
 
C APIs
rip
 
10:45 PM
it is possible.
it's just not simple.
for example, you can JIT a thunk, and many C APIs provide a "userdata" pointer you can use to point to "this".
there are other uglier techniques like exception vomit.
 
@AlexM. my amazing comment already got nuked. wankers.
 
Yes GLFW (what I am working with) actually has a user pointer
Let me read into that for a second
 
@JasonC I wager that's not really my problem. I can only prod and suggest. Curiosity will have to spark on the other side :) (By spelling things out over and over we just remove the incentive to start using search) — sehe 35 secs ago
 
Puppy is too slow
 
lol glfw
you're fucked.
 
10:48 PM
I would just like to take a moment to thank the moderators of this site for nuking both comments (one mine, one someone else's) that pointed out a fundamental flaw with the advice given in the answer. You're doing a great job. Keep it up. — Lightness Races in Orbit 11 secs ago
 
and that's my professional opinion.
 
That's my professional opinion.
Mods are so comment-nuke-happy and it's worst on smaller SEs
 
Until now I really liked GLFW's concept
 
meh photography.se
 
it only lasts a few fucking minutes
arseholes
it's like... why bother critiquing at all
 
10:49 PM
Is this UB:
int x = -1;
x &= ~0x3;
 
I mean you can wrap the GLFWwindow pointers into a wrapper class no problem and manage the state of a window from there in an object oriented context
 
prrrobably.
 
@Mysticial if i were at home I'd check
as it stands.... i'm in a hotel and i'm drunk and i'm in bed and i cba soz
 
0x3 will be a uint, which will be out of the range of int when assigned, so I'm going to guess that will be UB.
 
x & ~0x3 is unsigned and does not fit into an int.
 
10:50 PM
also no c++ to hand
 
but I don't remember for sure.
 
@Mysticial is it the same thing tho?
 
why don't you use unsigned int instead of int?
 
integral promotion probably happens to the RHS - does that drop unsignedness?
 
the bitwise ops may have different rules, since they don't operate on the numerical value per se
 
10:51 PM
prob not tbh
fuck it fine i'll look it up
even though there's no repz in it
 
0
Q: Standard way to limit integer precision

JimmayI want to round an integer, i, down to the nearest multiple of 4. For example: 0 -> 0 1 -> 0 2 -> 0 3 -> 0 4 -> 4 5 -> 4 6 -> 4 7 -> 4 8 -> 8 9 -> 8 The obvious way for me to do this would be: i = (i / 4) * 4; But I have been critised for using this because supposedly it is unclear, and lo...

 
@Puppy Why don't you like it?
 
@Mysticial: Right. Both operands to the & are converted to unsigned int. And then it doesn't fit in int. So it's impl-defined
 
you mean, apart from the fact that the guys who wrote it couldn't achieve the very basics?
 
What's basic for you?
 
10:54 PM
not writing APIs that require that your users use horrible hacks like JITting thunks or global variables to use state.
 
@Mysticial: 4.7/3, 5.11/1, 5.17/1, C++11 all, not in that order
 
JITing?
 
creating a new function at runtime.
 
@salbeira Just ignore him. He is taking your third-party C API and shitting on it for being written in C, as if that means the authors "couldn't achieve the very basics"
 
Ell
glfw doesn't require you to create a function at runtime o.O
@Puppy it opens windows
 
10:57 PM
Though he is right in that from a C++ perspective it would be a very poor design
 
Ell
that's what it's for and that's what it does
 
Up until trying to manage keyboard callback functions in an object oriented context everything worked fine
 
if it opens windows in such a fashion that you have to use globals to apply state to your callbacks, then it's fail.
 
though now I want to use my wrapper classes to manage these callbacks and I am really at a loss
 
Ell
@Puppy how would you do it in C?
 
10:58 PM
12 mins ago, by Puppy
for example, you can JIT a thunk, and many C APIs provide a "userdata" pointer you can use to point to "this".
 
Wikipedia tells me that GLFW is indeed a C library so you can safely ignore Puppy's diatribes
12 mins ago, by salbeira
Yes GLFW (what I am working with) actually has a user pointer
jesus man
 
the problem is that that requires intelligence on the part of the C API vendor which is greater than that exhibited by a caterpillar
 
Ell
@Puppy I'm confused. This is what you want to do or what you don't want to do?
 

« first day (1500 days earlier)      last day (3450 days later) »