« first day (1316 days earlier)      last day (3649 days later) » 

These are annoying. The next as well
 
> Garbage collection is essential to modern programming!
> Garbage collection is silly, who needs it!
3
Wanna vote with stars? :)
 
@FredOverflow yeah, but in relation to reclamation schemes in lock free data structures
 
> GC is also important to certain high-performance and highly-concurrent data structures, because it helps solve advanced lock-free problems like the ABA problem better than workarounds like hazard pointers.
@sehe interesting
 
user1804599
GC or GTFO.
 
9:02 PM
what else would he want it for. This is c++ after all
 
hmm
 
@rightfold GTFO then ;)
 
for unused function warning, is it necessary to say which function is unused right away, or just give a source location and let the user look it up?
 
Everyone GTFO.
 
@sehe some are really dumb
 
9:02 PM
@DeadMG "Function foobar is unused."
Don't force the user to check the code, tell him everything you know so you are useful :P
 
@JohanLarsson how do you even find the patience? 1.14 made me stop
 
@Griwes Hmm, I got that far, but of course, if there are several overloads named foobar, it's annoying to specify the full overload used.
 
Oh yeah. I'd prefer the compiler to throw the signature at me.
 
user1804599
And syntax highlighted plix.
 
@rightfold Can do easily but not on the CLI :P
 
user1804599
9:05 PM
Why not?
 
user1804599
Any decent terminal emulator supports colours.
 
@DeadMG Sure you can, you just need pretty printers.
 
@rightfold Pretty sure that Windows does not emulate a Linux terminal.
 
Windows has some silly "set color" calls.
 
user1804599
Windows’ piece of shit thing also supports colours.
 
9:06 PM
If you wrap them nicely, it gets usable.
 
it does, but seriously, who the fuck cares.
 
Users!
Why did Clang get so many users in the first place?
 
certainly not because of coloured diagnostics.
 
Compiler errors and their awesome formatting!
 
user1804599
@Griwes Xcode.
 
9:08 PM
Never underestimate the power of presentation.
Not sure if "presentation" is the word I was looking for.
 
user1804599
UX.
 
hmm
it's actually pretty annoying to spit out the full overload
 
@sehe dunno, I regret starting though
 
@sehe I stopped at 1.03.
 
user1804599
It’d also be nice if long type names were pulled through some code formatter.
 
9:11 PM
the thing is clearly totally pointless, it's nowhere near as fun as the JS code game we had earlier
 
flappy turd?
2
 
no, it was that one with the mazes
 
@DeadMG mintty, and many others
 
user1804599
@sehe fapping hurts
 
probably a hint that you fapped too much
 
9:13 PM
@rightfold you're doing it wrong
 
ooh
or I could just ... use the fucking analyzer to tell me what the type is.
gee, you'd almost think I had a compiler as a library right here to use freely.
 
use the fucking analyser to tell you about having fapped too much?
 
user1804599
It’s a fucking analyser, not a fapping analyser.
 
that's why I was confused
@DeadMG try using the fapping analyzer instead
 
9:23 PM
Cant figure out why (or by whom) cmath is included...
or why its fucking up
damnit bison
 
not unreasonable for them to include Standard headers.
 
is the compiler -i (output from pre-processor) flag still around, or did that die in the 1980s?
 
Yeah maybe but I don't see why it would cause syntax errors in the standard headers
 
ah, the heady days when every program was either built from hello.c upwards or else from cc.c downwards
 
@ClickRick I think it is g++ -E or something.
 
9:27 PM
thank god they're gone.
there are still flags to get preprocessed output but I doubt it's still -i
 
_STD_BEGIN
using _CSTD abs;
> Error 4 error C2061: syntax error : identifier 'abs' c:\program files (x86)\microsoft visual studio 12.0\vc\include\cmath 23
=/
 
nevermind
 
the macro is nothing (I used resharper's "Substitute macro call" feature)
 
$ more lol.c
#define OHAI int main() {
#define KTHXBYE return 0; }
#define VISIBLE(x) puts(#x);

OHAI
VISIBLE(lolcode in C)
KTHXBYE

$ gcc -E lol.c
// ...lots of boring stuff...
int main() {
puts("lolcode in C");
return 0; }
@ClickRick yup, it's the -E option
 
user1804599
I like how -E emits preprocessing directives.
 
9:33 PM
as long as it tells you where something got included from, you're on the home straight
 
@Borgleader Seems to me like somebody's been defining macros they shouldn't be.
 
eating champignonworst
 
welp, never before have I used catch(...)
well actually I think I have in some other places
 
@DeadMG I used to think catch(...) was pseudo-code :)
 
it's horrifyingly real
 
9:38 PM
pah, amateurs - having to type three dots rather than use the single ellipsis character provided for the purpose! (ICL System/4)
 
user1804599
It’s a variadic catch clause.
 
I'm sure you can get treatment for it though
 
Warning: Unused function .x() at main.wide:6:1-6:3
Warning: Unused function .x(int32.lvalue arg) at main.wide:7:1-7:17
Warning: Unused function .x(auto.rvalue arg) at main.wide:8:1-8:18
 
@DeadMG Trick is finding out where
Oh fuck me...
bison outs .c so it was compiling it as C >.>
 
ah yeah
it does that.
 
9:42 PM
I actually forget its a C AND C++ compiler
 
there's a command to change the filename and another one to make it generate a C++ skeleton that's marginally better than the C one.
they might have updated the C++ skeleton to be nicer too
oh shit drugs time, I shoulda taken em ten minutes ago
 
Well I did --language=C++
I might have to change the extension in --output
no clue what the skeleton does though
 
the skeleton is basically some glue code around the tables that provides the interface
 
user1804599
Hmm.
 
now I have an unused function warning, aren't I a big boy.
right.
 
9:55 PM
warnings are what #pragmas were invented for
 
not in my language, bitch.
 
Someone got tolllld
 
not the first time
first time was by some bell ringers...
 
user1804599
Lexing’s gonna be a bitch.
 
lexing is pretty fucking easy
unless you do something like Haskell's user defined operators or C++'s angle bracket or other context sensitivity
 
user1804599
9:58 PM
Not gonna be very difficult indeed.
 
user1804599
I predict the main trouble will be automatic insertion of end-of-statement tokens.
 
user1804599
Basically newline followed by operator would not insert it, newline followed by non-operator would.
 
split at new lines, spaces and (), [] and a few other things. shouldnt be so hard
 
@rightfold :lol: are you implementing buttscript
 
user1804599
Unless the previous token was a comma ;_;
 
9:59 PM
make the fuckers put full stops. that'll soon shut them up
 
Inserting EOS tokens is dumb
 
user1804599
@CatPlusPlus No.
 
yeah... inserting EOS tokens is dumb.
either make the user insert them or don't require them, simple as that.
 
user1804599
@CatPlusPlus I have no idea how else to do it, without making the parser a complete horrible mess.
 
Do it the Python way: ignore NL tokens inside parentheses, treat them as EOS otherwise
 
user1804599
10:00 PM
No.
 
right.
 
user1804599
x
|> f
 
then use semicolons or something
 
full stops. semi-colons are so passé
 
@rightfold Syntax error
 
user1804599
10:01 PM
Uh, no.
 
user1804599
That would be horribly moronic.
 
full stops remind me of PROLOG.
and that just makes me want to burn you in the fires of a thousand suns with a nuclear bomb
 
If someone wants to insert NL inside an expression, they can parenthesise it
 
and COBOL before that
 
user1804599
@CatPlusPlus Hurray let’s parenthesise almost all function bodies. No.
 
10:02 PM
... then use a grammar that doesn't require expression terminators.
 
or the Tcl way: "it's an EOS if an EOS would be valid now, otherwise it's just whitespace"
 
@ClickRick Do you ever say anything but "Holy shit, 40 years ago, I liked that time period"?
 
Uh you have single-expression function bodies and statements and you don't want complicated parsing
 
there was 50 years ago, if you'd rather
 
Right
 
10:03 PM
nah
we could focus on this time period.
 
Have fun with your EOS insertion, it worked very well for JavaScript
 
like, 2010+
 
user1804599
@CatPlusPlus How does Haskell do it?
 
Don't forget to account for commenting the implicit EOS out :v
 
@rightfold It has an expression grammar that does not require terminators to be disambiguated, afaik.
Lua does that too.
 
user1804599
10:05 PM
Do notation.
 
Do notation does the same thing Python does afair
Maybe with bit more complex logic, don't remember
 
user1804599
Whokay.
 
user1804599
Let’s see.
 
Eh, no, seems it has implicit continuation with increased indentation level
 
man
I don't know why people bother with that shit
it's much more reliable to just use semicolons
 
user1804599
10:10 PM
Semicolons are ugly.
 
not as ugly as implicitly inserted semicolons.
 
user1804599
Never had trouble with that.
 
user1804599
I like how Go does it.
 
erm. does auto s = make_shared<T>(); thread_pool.submit([s] { /*code*/ }) guarantee that s is captured, even if /*code*/ doesn't use it
(I'd think so, under the as-if rules, since the ctor/dtor aren't trivial)
 
wtf is a dotx document
google drive can't open it
 
user1804599
10:12 PM
@AlexM. Word template?
 
^ I suppose
 
rename to docx and try again
 
Probably
 
no, it's a dotx file, but for some reason google drive won't open it even though the word icon shows up there
 
yesterday, by sehe
(is the unconference still in about a month?)
 
10:13 PM
> A DOTX file is a Word Open XML Document Template, developed by Microsoft.
 
@sehe I'm not actually sure what the wording is for lambda captures. You might want to check that. I'd think so, but you'll have to check the Holy Standard itself.
 
It's in about a halfmonth
 
user1804599
Hmm.
 
@DeadMG Nah. I'm just gonna go with my common sense: the dtor cannot be elided. ("What would happen if you manually wrote the functor class?")
 
user1804599
Camelcase, hyphens or underscores. ;_;
 
10:14 PM
so I can only open this in microsoft office
 
user1804599
They are all nice.
 
THANK YOU PROF
YOU'RE GREAT
 
Fire him
 
she could have used a normal document showing us an example for the documentation instead of this crap
but no
 
10:14 PM
finally after tons of practice I managed to get the trill right: clyp.it/r2yeez5q
 
@sehe I would
 
does it work if you rename it to .zip and then extract the useful bit by hand and open it with something "normal"?
 
@ClickRick you can just ask for a link, you know. this gets tedious pretty fast
 
I don't have Word here, or I would have
 
@nightcracker woot. E-minor prelude. I love it. The trill is quite modest here though. And everything is an octave high
 
10:16 PM
@sehe it is one octave high, true
 
I'll ask a colleague to open it in word and export it for me
 
@nightcracker sounds a bit... silly to be honest. Why is it high?
 
@sehe however it's nocturne 72 no 1, not an etude :P
 
@nightcracker I said prelude. My bad
 
oh prelude
the reason I played it high is because my microphone picked up the low really really bad
it became just a garbled mess
 
10:18 PM
for a HCI professor, the number of steps she made us go through just to submit a fucking project is baffling
 
wow. That's pragmatism
 
all of the other profs are fine with either mailing the project or showing it in the lab
 
@AlexM. it's a barrier to admission
 
but no, she wanted us to use wikispaces and make a fucking forum on it where we could talk happily about shit no student cares about
guess what, nobody is talking about anything
 
@AlexM. o
 
10:20 PM
@sehe Yeah, but I feel that there's no guarantee that the Standard says that by-value captures are included if you don't use them.
also, how's this for you: I'm hanging out in LLVM chat helping their newbies with their questions.
 
I realized I do "use" it. The destructor invokes the member destructor.
@DeadMG I don't believe you
 
seriously.
three in the last hour.
 
@nightcracker so, do you live some happy place where you can play at this time of night :)
@DeadMG a serial killer
 
needs to be 5 to count as a "serial" killer
 
oh really. I should be going then
 
10:23 PM
I need chocolate to calm down
yummy chocolate
I have this (beware of tasty overload): cronicadeiasi.ro/pictures/images/heidi_florentine_4.jpg
 
I'm using kernel32.dll for a project of mine in the console. I'm attempting to render a character, specifically ASCII 219. What code page would I need for that?
 
the brown things are caramelized almonds
 
capital U circumflex?
 
Right now I'm using code page 437, and whenever I try to render that certain character I get "?" because it's unrecognized.
 
lol noob.
there is no ASCII character 219.
and that value has many possible characters in many possible code pages.
you can't have a 1-byte >127 non-Unicode character value that unambiguously represents anything, ever.
hell, even if it's Unicode a single byte is of dubious purpose above 127.
long story short: this is not a problem you can fix by setting the codepage.
 
10:27 PM
@Grey what character are you after?
 
define "character".
codepoint? grapheme cluster?
 
@ClickRick █
part of the extended ascii codes I think
 
describe it
 
Solid ,Thin, but Tall Rectangular Box.
 
@sehe You are correct. Been a while since I read that part of the standard, but the closure is required to have a corresponding data member for the entity captured by copy, and the entity is used to directly-initialized the data member.
 
10:30 PM
this is pointless.
 
sounds like a block graphic of some description
 
@TannerSansbury Hey :/ Thanks. And nice to see you here
 
you need to fundamentally change your understanding of what a string is, and then get some Unicode, and then you can think about solving your problem.
you can't just slap a codepage on it... all that does is cause more problems and the world moved on at least fifteen years ago.
 
@sehe Thanks. Hoping to frequent here more often. (:
 
@DeadMG I understand this. I'm trying to find the point where I can help him to catch up
 
10:31 PM
@TannerSansbury That'd be nice. Did you try to talk to me about spirit a few weeks back?
 
which specific character he's failing to handle doesn't really matter.
 
@sehe Yeah. I ended up figuring out a solution after reading through countless spirit questions that you had answered. (:
 
user3010322
It's the upside-down smiley face.
 
user3010322
Run. <_>
 
@TannerSansbury hehe. That's nice enough, I suppose. Spirit can be confounding. I just like it because I'm well-versed in it :|
 
10:33 PM
@DeadMG I can't change the way the cmd was designed
 
it supports, at least somewhat, UTF-16 output.
 
user1804599
Is the term “proper subtype” used similar to “proper subset?”
 
auto x = f();
How can I express the type of x?
std::decay<std::remove_reference<decltype(f())>::type>::type?
 
template<typename T> T x(T t); decltype(x(f()).
 
@DeadMG so, why is "slapping a code page" on it, not a step to solving the problem?
 
10:36 PM
@Grey Because in order to handle codepage data properly, you need to know the codepage it came from.
if you don't know the codepage you can't just put an arbitrary codepage in it and get out the correct output.
and even if you find the correct codepage, codepages are not Unicode and do not support actual textual operations.
 
but the initial question said "render"
 
and even if you did find the correct codepage, dealing with codepages manually is akin to freeing your memory manually- it's so hideously error-prone practically nobody gets it correct.
not to mention that the C and C++ and Windows libraries all handle this in an incredibly bad way.
 
@sehe student home :D
 
nice
 
@sehe because you said you liked it, I did it at the appropriate octave and did some touching-up (still terrible quality) in audacity on the full version up to where I can play it
 
10:39 PM
Oh. Should've mentioned this earlier. I'm using C#. I came here because the C++ lounge had the greatest population of users that had actually used kernel32.dll rather than any other chatroom.
 
> greatest
nailed it
 
there's a reason Unicode was invented and it's because codepages suck horrifically and are a non-solution unless you're in France and just want a-with-accent on top of ASCII.
 
@sehe hah
 
user1804599
> actually used kernel32.dll rather than any other chatroom.
 
sigh.
 
user1804599
10:40 PM
kernel32.dll is not a chatroom.
 
you know practically nobody here does that, right?
 
@rightfold lol
 
@rightfold it's a planet
 
never mind.
I'm closing this tab now.
 
www.kernel32.dll - I should register for that tld
 
10:41 PM
@nightcracker nice; are you delib. working with a metronome? I mean, that's very very useful, so if that's on purpose, I won't comment :v
 
@sehe yes
 
good
 
I know it sounds very monotome in rhythm
 
I find that amusing. There must be no WinAPI programmers here.
 
Nailed it again
 
10:42 PM
I like to learn it proper first and then do variations once I'm comfortable
 
@sehe I'm being very sarcastic
 
@nightcracker Ah. I'm never patient enough. If I can't make music "on sight", I probably won't study it much
@Grey I'm not
 
@Grey I use WinAPI if I feel like cutting my eyeballs with razor knives a few millimeters at a time
 
Ahahahaha someone tries to use non-ASCII character in Windows console subsystem how adorable
 
:/
 
10:44 PM
@sehe though while doing the actual recording I wasn't using a metronome for obvious reasons
@sehe pretty surprised I still stayed on rhythm so well :P
 
it's the force of habit
 
hrm. I wonder how Console.WriteLine does it and manages to get it to render
 
practise with it, you'll program yourself to play as though it's there
 
Protip console subsystem is shit and don't use it
 
Damn it. People warned me about it, and I didn't listen. Typical me.
 
10:47 PM
@Grey there's a C# room too
 
this is the lounge room
 
@AlexM. noonelikesC#
Anyways, thanks for the reality check.
 
awww my boa is all snuggled up in his "pond", and my python is out and about having a wander around - it's usually the other way about
 
are you tarzan?
 
you're thinking Mowgli
 
10:55 PM
guys, is "YOLO" religiously controversial in hinduism?
 
YOLO is a great concept from any POV e.g. "I wore my seatbelt today YOLO"
 
I had a peanutbutter sandwich #YOLO #420 #thuglive
 
so, I was really happy that I was feeling sleepy a few hours ago because that meant I could sleep normally for a change
yeah sure, I got in bed at 21:30 and woke up at 23:40 feeling all fresh and ready to work
 
@nightcracker yolol
i saw that. It's ok IYOLOLAM
 
user1804599
IANAYOLO.
 
11:01 PM
I was going to say "I'm sure there has to be someone on this planet to find that offensive"
 
[Nope] http://t.co/HLxknjBKQZ
2
 
people in C++ try to avoid auto completion they like to use their memory instead of getting help. — SSpoke 36 secs ago
 
Nobody has ever asked this
Searching internet too hard
Ugh
 
If the host of Dirty Jobs put on fleece clothes, it'd be called Mike Rowe Soft Wear.
dat. pun.
 
11:27 PM
my two week old mouse pad already shows signs of wear where I'm normally keeping my palm
ugh
 
is wilw like wilx?
 
whos wilx?
 
youtube's place on the homepage where it shows stuff you watched before is the best feature ever
whenever I can't think of a song to listen to I check out that
 
how so
ah
 
@Borgleader It's @VáclavZeman's alternative handle
@AlexM. I agree. Though I also have a habit of obsessively Liking and Favouriting such stuff, so I can always find it.
 
11:36 PM
oh, no, wilw is wesley crusher
 
Well, until some knobhead removes the video. Lost access to most of my favourite Kalafina tracks that way :(
@Borgleader oh yes
 
11:57 PM
Hiiiiiiiiiiuu
OMFG I can cook.
 
@DusanPlavak Well, here's a demonstration using Asio's async capabilities. Ironically, it handles 25,000 concurrent client connections on a single io_worker thread for me, so you could actually remove the mutex on connections. (Adding more io-worker threads reduced throughput and increased CPU load). I tried with for a in {1..100000}; do nc localhost 6767& done | uniq -c (run the server as root with e.g. ulimit -n 1024000 or your linux box might restrict the connections) — sehe 1 min ago
 
That vodka was really good, though.
 
Time for beds
@R.MartinhoFernandes Oh.... kind-a detracts from the previous statement :)
@R.MartinhoFernandes Hi
 

« first day (1316 days earlier)      last day (3649 days later) »