« first day (1762 days earlier)      last day (3200 days later) » 

user1804599
7:09 AM
Hello.
 
Ell
Hi @elyse
I am very happy today
 
Also I got a partial scholarship for my master, so it's fairly cheap for me.
 
user1804599
Why?
 
user1804599
Because I joined Lounge<C++>?
 
Yes
 
user1804599
7:19 AM
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.4/include/g++-v4/cstdio:120:11: error: no member named 'gets' in the global namespace
  using ::gets;
        ~~^
 
user1804599
I hate this fucking shit.
 
morning
 
Wonder what happens if white T-shirt gets a text message?
 
safety first I see
I'm arguing with a guy who says "Italy has few programmers? Not a problem, we need to eat in the first place so we need more farmers.. not programmers"
 
user1804599
@JohanLarsson +1 for paying attention in physics class.
 
7:24 AM
I guess, but they still en up in the negative due to weak typing
 
@JohanLarsson Instant natural selection
 
4chan is on the left
 
@JohanLarsson he becomes weightless?
 
@MarcoA. looks shopped
(I can tell by the pixies)
 
@JohanLarsson that border also seems to be rather thin
 
7:26 AM
@StackedCrooked maybe, my feeling is he could walk away while reading it.
@StackedCrooked border == ladder?
 
@StackedCrooked border: 1px dashed stool
 
I mean the ridge they are standing on.
 
I don't know English enough.
 
np
The profiles are clearly not designed for that load
Buckling and collapse could happen.
But looks like it should be enough mm^4 to me
 
Xeo
7:30 AM
mornin
 
moaning peeps
 
no need to moan
 
Hey @Tony, what's up?
Didn't you talk about changing jobs last time?
 
not much, same shit different day
@Mr.kbok yea I did
 
Yes and I sent him a mail and he never replied
what a brit
 
7:33 AM
@MaiLongdong no you did not
 
I never got anything, otherwise I would have answered
 
Oh. I guess typo in the address then perhaps? :/ I'll check
 
97% ram and 99% swap... I don't think this VM has enough POWER
 
7:35 AM
@MaiLongdong lol fail
@TonyTheLion Is the new one better?
 
@Mr.kbok I talked about it, didn't go no further
 
@Mr.kbok it's not shit yet, which is nice :P
 
@TonyTheLion oh, alright
 
user1804599
ugh, fucking shit
 
scatophile
 
Ell
7:39 AM
Oh what a beautiful moaaaning, oh what a beautiful gayyy
 
user1804599
Boost was built with libstdc++, but libstdc++ doesn't work with C++11 because it has using ::gets; in it and gets doesn't exist anymore.
 
@MaiLongdong scataphobe
 
@khajvah "just"? What more do you want to achieve?
 
@MaiLongdong If you do send me something, let me know on here that you did, so I know to look out for it
 
@Ell GUESS WHO IS THE HAPPIEST GUY IN THIS LOUNGE RIGHT NOW
:D
 
7:42 AM
@Mr.kbok Deep theoretical knowledge in a field that I will choose?
 
@khajvah you can't achieve "knowledge"
 
@Mr.kbok I want to learn about stuff that I like.
 
@TonyTheLion Yep, I'll send when I get home
 
I don't see how that isn't being a programmer
 
@MaiLongdong ok cool
 
7:43 AM
Tony is having a bad day
 
user1804599
You can use -Dx=y to define a macro.
 
user1804599
How can you make it so that that macro is also used in system headers?
 
@Mr.kbok Programming is not the ultimate field of Computer Science.
Plus, I might study Mathematics.
I am still deciding.
 
Ell
@Columbo I THINK YOU'RE SUGGESTING ITS YOU BUT THAT CAN'T BE CORRECT BECAUSE IT'S ME
 
@Ell AHHHHH FUCK OFF, YOU :PP
 
7:46 AM
What are you guys taking
 
Ell
Computer Science & Electronics (MEng)
 
@Mr.kbok drugs
 
user1804599
Oh, I can put the macro in a header and use -include.
 
Tiny keyboard on mobile sucks :(
 
I wish I could do masters without finishing my bachalors
 
7:48 AM
children please, some of us have lives to moan about.
2
 
9
Q: Can I get a discount on my flight for not being fat?

CaptainCodemanIf I weighed 120kg I could check in 20kg of luggage for free, getting 140kg transported for my ticket price. But if I weigh 70kg, I'm 50kg lighter and yet pay the same for the same luggage limit; and pay excess charges if my luggage is say, 25kg and exceeds a 20kg limit. So what I pay for trans...

/cc @Bartek For your mom
 
Ell
@Columbo I forgot what uni you're going to. It's either Oxford, Cambridge or imperial right?
 
Rich kids
 
@MaiLongdong in other words... why can't skinny people get carried around like the superior race we are?
 
@khajvah I have ~$250 in my account.
 
7:52 AM
@Ell Cambridge, now that I got my STEP grades
 
Ell
Noooice
 
Could've been Imperial (shivers anxiously)
 
Ell
Lol
 
@Columbo what you going to study?
 
@edition I love how you edited from $200 to $250 like that even matters :D
 
7:53 AM
haha.
 
you guys not in uni yet
I feel so old :(
@edition meh I wish
 
Man I wish I could go back to uni, that was a the sweet life. doing a few hours work a day and money to do so.
 
Hey, why does Richard Stallman complain about the flaws of capitalism, when he probably gets decent research funding?
 
How are those incompatible?
 
7:58 AM
@thecoshman They won't do that in Oxford
 
@MaiLongdong didn't see that
 
@Mr.kbok that's what she said
 
@edition he doesn't need funding, he feeds off himself
 
@edition So you can't have research funding without capitalism?
 
eww
 
7:59 AM
@edition lol stallman
 
Ell
@edition you ninny
Research isn't just a socialist thing
 
Capitalism is flawed no matter what.
Socialism is better.
 
Communism for the everyone in last place!!
 
I vote for an intelligent mix of all those systems
 
0% of each
 
8:00 AM
American style capitalism is just as bad as russian style communism
 
user1804599
How do you write a binary file in C++?
 
user1804599
I have a char array and just want exactly that data in the file.
 
std::cout << "A binary file"
 
:<
 
@MaiLongdong It is more of a socialism in Europe, I like that.
 
8:01 AM
@elyse read?
 
user1804599
No, write.
 
Hmmm I don't know
getline perhaps
 
@elyse github.com/wilx/signals-lib/blob/master/include/signals-lib/… -- Prototype of a library that will do my signal handling in dedicated threads. This shit is complicated. :)
 
> hxx
hipster
 
@elyse fstream?
 
user1804599
8:02 AM
Last time I checked, fstream gave a fuck about newlines and locales.
 
oh.
 
@elyse Streams have read()/write().
 
user1804599
Guess I'll just write exception-throwing EINTR-retrying wrappers around POSIX APIs.
 
Ell
Volunteerism FTW
 
@elyse fwrite could work, albeit not nicely.
 
8:03 AM
@elyse If the file is opened with std::ios_base::binary, it is does not mangling of the data.
 
@elyse use ostream::write sigh
 
user1804599
@Ell Volunteerism in a time where there's a shortage on jobs and many people are jobless is an awful thing.
 
Ell
I shouldny have mentioned, I'm too happy to talk politics
 
std::ofstream res_file(filename, std::ios_base::in | std::ios_base::out | std::ios_base::trunc);
res_file.write(response.c_str(), response.length());
 
@Ell We are happy to destroy your happiness!
 
8:05 AM
inb4 LRiO comes and starts shitting on universities.
 
user1804599
wait I'm almost done
 
What should I put in a switch case that is supposed to never be taken? Something like abort("This should not happen") ?
 
throw a logic error or simply std::terminate?
 
@MaiLongdong Throw some undefined behaviour thing in.
 
I want the program to terminate with an error message
 
8:12 AM
throw
 
assert
 
myeah assert, thanks
 
Aren't you afraid of NDEBUG being defined?
 
Should be fine
 
Let's write some CSS.
 
user1804599
8:20 AM
@MaiLongdong assert(false);
 
user1804599
Compilers recognize it.
 
assert(isdonglong)
 
user1804599
And stop complaining about reaching the end of a non-void function without returning.
 
user1804599
Maybe I'll use Poco.
 
user1804599
> Files are always opened in binary mode, a text mode with CR-LF translation is not supported. Thus, the file is always opened as if the std::ios::binary flag was specified.
 
user1804599
8:23 AM
Its API seems to be designed by somebody who understands that files store bytes, not text.
 
user1804599
It still inherits from ostream unfortunately but I can't find anything better.
 
user1804599
Also throws exceptions.
 
user image
3
 
user1804599
lol
 
bar<c++>
 
8:35 AM
@Mr.kbok That's Bartek, doing some Haskell.
 
@MaiLongdong Maybe throw std::logic_error("author fails logic");?
 
user1804599
ugh fucking shit
 
user1804599
Poco::FileStream only throws exceptions on opening.
 
user1804599
You still have to enable exceptions after creation.
 
@elyse If it is a true stream, you can set the exceptions yourself...
 
8:40 AM
@khajvah He actually had a few people contributing to his project, including me
 
user1804599
Well then, apparently no good stream library exists.
 
There are very few good C++ libraries
Most people are so accustomed to using crap that they end up thinking Qt is good
 
Qt is good for GUI.
 
> UBIGORABITS
ubi go rabbits? u big-o-rabbits? UB: I go rabbits?
 
user1804599
I should write an I/O stream library.
 
8:44 AM
UB: Igor a bits
 
@LucDanton hot
 
@khajvah PyQt is better.
 
@elyse You should! And make it awesome!
 
Or maybe it’s about Igor 'abits.
 
Ell
Isn't boosts sink/source library good?
I.forgot
 
8:50 AM
 
A 0 field.
 
user1804599
 
hahaha p4merge got confused and is offering me the shittiest diff ever
 
Did SO change it's design
the chat look different
 
I want fs backends
liek sqlite does
 
8:56 AM
@Morwenn I should try it one day.
 
@khajvah It's basically the same, except that it uses the dynamic type system instead of QVariant and the native str/unicode instead of QString. Also, there is no moc.
 
user1804599
Buffering can be built on top of this; it must not be forced upon every stream.
 
user1804599
Same goes for newline conversion and other horrible stuff.
 
user1804599
Formatting need not be baked in.
 
@Morwenn I never understood the point of QString in any ways.
 
8:58 AM
Hello
 
Hello
 
user1804599
Like, newline_converting_writer(std::move(file_writer))
 
Does anyone have any app ideas? I need to make an app in swift for an assignment.
 
@khajvah I guess that it's mainly used to support encoding as well as usual string operations.
 
@Mr.kbok pls expand
 
user1804599
8:59 AM
@Sachin an app which encourages the user to consume more alcohol and hard drugs.
 
@elyse
-_-
 
user1804599
^_^
 
na seriously
 
is this layout ok?
 
no
 
user1804599
9:07 AM
No.
 
user1804599
it's different hence awful
 
@edition are you fooking daft?
 
@MaiLongdong boost::filesystem, except zips or win32
 
@thecoshman I'm bored, since I have given up on a previous C project, with MIDI input, etc.
 
9:09 AM
@khajvah what is it? :D
 
user1804599
@Mr.kbok Luckily Boost.FileSystem has a FileSystem concept! Oh wait haha no it's monoltithic shit relying on global state!
 
user1804599
Use Java. It has a FileSystem interface.
 
@Sachin Install Gentoo!
 
Yeah but java is shit
 
@khajvah what is Gentoo
 
user1804599
9:10 AM
better than C++ vOv
 
@Mr.kbok Not as shit as C++.
 
@Sachin a GNU Linux distribution.
 
audible sigh
 
sigh
 
@edition how does it work?
 
9:11 AM
it has a linux kernel, to begin with.
 
@Sachin It clears your soul.
 
@Sachin Usually it doesn't
 
lol
 
@khajvah how will that help me come up with a good app idea?
 
@Sachin First, you have to clear your soul and then throw away Apple products.
 
9:13 AM
@Mr.kbok Java is the best!
 
@Mr.kbok oic
@edition GNU/Linux? Same GNU that made GNU/JavaScript? (Stallman?)
 
@MaiLongdong Yes momotapa
 
@khajvah Its a bloody swift assignment :C
 
@Sachin Where do you study?
 
@khajvah at school
 
9:17 AM
@Sachin High school or college?
 
@khajvah high school
 
@MaiLongdong what @elyse said.
 
@Sachin What year?
 
@edition why lol
 
Bipolar much?
 
9:22 AM
@ʎǝɹɟɟɟǝſ oh good for him, he found his code.
 
@Mr.kbok I want layerred I/O à la C#
 
@ʎǝɹɟɟɟǝſ I presume, do to the lack of info, he simple didn't know where his code was, thus couldn't describe the problem or show it to us.
 
@edition Delete it.
 
9:26 AM
@khajvah I did.
 
user1804599
Go's I/O library is superb.
 
Ccr
gre xm next month. starting vocab, thts torture. i wish i could just include it inside my head :P
 
@elyse the library is fine except that Go is bad
 
type ReadCloser
type ReadSeeker
type ReadWriteCloser
type ReadWriteSeeker
type ReadWriter
type Reader
lol
 
Abyx speaks the truth
 
9:31 AM
@ʎǝɹɟɟɟǝſ nothing wrong with that.
 
user1804599
Abyx has abyxmal opinions.
 
Even C++ does that right
 
@ʎǝɹɟɟɟǝſ lol no
C++ IO library is bad. like really bad.
 
Those types don't need to exist. Just make a generic algorithm that uses Read, Write, Close, Seek as methods
 
@ʎǝɹɟɟɟǝſ Go has no generics.
that's why it sucks
 
9:32 AM
lol
 
user1804599
Those are interfaces.
 
@Abyx What do you mean by C++ IO library?
 
user1804599
Interfaces are implicitly implemented in Go if you have the required methods.
 
which?
 
@Abyx Why is it bad?
 
user1804599
9:33 AM
Just like concepts with templates in C++.
 
@edition <iostream>
 
@edition uhm... the standard one
 
user1804599
@ʎǝɹɟɟɟǝſ It does too much.
 
oh, thanks.
 
@ʎǝɹɟɟɟǝſ it doesn't separate interfaces properly, like Go IO lib does
 
9:34 AM
right
 
user1804599
It forces buffering onto everything, forces formatting support onto everything, does newline conversions, does some stuff with locales, doesn't handle errors like errors are normally handled in C++ (exceptions), has incomprehensible names for methods.
 
What's the most promising language of 20xx?
 
@ʎǝɹɟɟɟǝſ D.
 
user1804599
A good C++ interface would have at most three methods read, write and seek, throw exceptions on errors, and do nothing to the data implicitly.
 
it's still promising
 
9:35 AM
Was there a language subset for GPU's?
 
@edition C++ AMP
 
@ʎǝɹɟɟɟǝſ Red
 
I sound stupid.
 
Tabs vs spaces?
 
user1804599
@MaiLongdong newlines
 
9:38 AM
@Morwenn Is that dynamically typed?
 
user1804599
@ʎǝɹɟɟɟǝſ Vlinder.
 
union [a b c] [d a hello 123]
== [a b c d hello 123]
god
 
@ʎǝɹɟɟɟǝſ Reminds me of set theory.
 
@ʎǝɹɟɟɟǝſ Yes, except its dialect Red/System if I'm not mistaken.
 
phabricator vs gitlab
 
user1804599
9:41 AM
fapricator
 
@MaiLongdong clearly it's graves you should be indenting with
 
the Red language looks interesting.
 
Thanks for the help guys
 
@Morwenn lies
 
Really appreciate it
 
9:43 AM
@elyse I kind of like the way Boost.IOStreams does things.
 
@thecoshman I don't know this programming language.
 
user1804599
Cut off a limb and count the rings — Rory M Aug 5 at 13:24
 
user1804599
@wilx It immediately loses at inheriting from C++ I/O stream classes.
 
@Morwenn vOv it has ¬ as the indentation character and forgoes curly braces for blocoks
 
Ell
@elyse streams don't do.buffering do they?
I thought streams just did formatting
 
user1804599
9:44 AM
Interfacing with a horrible library shouldn't use a relationship as tight as inheritance.
 
user1804599
Wrap them instead, in an ad-hoc fashion.
 
@elyse I do not think they do that necessarily. They define concepts and you can use those concepts in C++ IO streams but it is not required, IIRC.
 
Ell
I thought streambufs did buffering
 
@elyse boost is based on the premise that it should extend the stdlib, so it won't wrap it
 
it concerns me that I understand less of the functioning processes of modern hardware, compared to the 18 year olds of the 1980's.
 
9:46 AM
@thecoshman On the other hand, you have plenty of nice literals.
 
of their own hardware
 
@Morwenn fuck is the keyword when you want to throw an exception, good functions give zero fucks :D
 
how do I simplify if (a && b || !a && c)?
if (a ? b : c) looks weird =\
 
@thecoshman There are no keywords.
 
user1804599
@Mr.kbok then it's broken by design
 
9:49 AM
@Morwenn :O
@Abyx I'd keep it as that, it's easier to read what is going on IMO
 
user1804599
@thecoshman merde
 
I can't build a modern x86 operating system from scratch like Linus Torvalds.
 
user1804599
x96 is from the future.
 
x69
 
x86 is very inefficient because it doesn't use a power-of-two number of bits (unlike x64)
 
user1804599
 
user1804599
Ze zuipen te vroeg.
 
@MaiLongdong They used the 22 extra bits and put it into the GPU
@elyse It's not broken, it's just bad
 
user1804599
Breaking Bad
 
The Linux kernel was based on Minix?
 
Linux Minx
 
user1804599
9:56 AM
Linux is a Unix clone.
 
Xeo
@Abyx if (a){ if (b){} } else if (c) {} :P
Duplication is fun!
 
user1804599
I like switch (true).
 
user1804599
else if sucks.
 
Xeo
But seriously, I think the ternary one is fine
 

« first day (1762 days earlier)      last day (3200 days later) »