« first day (2114 days earlier)      last day (3060 days later) » 

14:03
Hey everybody. I've got a question: when I use trailing return type, as in:

file.h
auto f( );
and i have an impl file, like:
file.cpp

auto f( )
{ return 3; }
In my makefile I compiler main.cpp and file.cpp as separate units.
compile*
And in my main i include the header, but still can't call f( ), my compiler says that i'm calling the function before auto has been deduced. Help!
59 secs ago, by milleniumbug
go there http://chat.stackoverflow.com/rooms/116940/c
KK ty.
14:39
Wat looks tasty.
14:52
You
i'm about to break the 10000 hour rule on watching shit on youtube
maybe i've already broken the barrier
@Borgleader It wasn't a question :p
Wat, we̠t’, wot (Amharic: ወጥ?, IPA: [wətʼ]) or tsebhi (Tigrinya: ጸብሒ?, IPA: [sʼɐbħi]) is an Ethiopian and Eritrean stew or curry that may be prepared with chicken, beef, lamb, a variety of vegetables, spice mixtures such as berbere, and niter kibbeh, a seasoned clarified butter. == Overview == Several properties distinguish wats from stews of other cultures. Perhaps the most obvious is an unusual cooking technique: the preparation of a wat begins with chopped onions slow cooked, without any fat or oil, in a dry skillet or pot until much of their moisture has been driven away. Fat (usually niter...
Next youre going to tell me theres food called where, why, and how?
I don't think so.
> I honestly, always have had that effect. It's a warm numb\dead feeling mainly on the side of the head the phone is located.
My hand goes numb too.

EMF sensitivity is a thing
oh great my laptop charger seems to have died
aaah wait
lol forgot to turn the electricity on
15:08
Sooo... it appears that the C library isn't noexcept by the C++ standard.
@Morwenn I read somewhere that the functions can't be marked noexcept by implementations either. What fun!
@jaggedSpire I thought it was only the case for constexpr but that implementations were encouraged to mark things noexcept when possibe, and that only the standard was conservative.
hm
maybe it is. My memory isn't particularly excellent. Sonuds like time for me to investigate my own claims
hmmm my shift register circuit doesn't seem to work
15:12
I hope you'll forgive me if I have breakfast first, though. :P
@jaggedSpire Please do, I'm too lazy to double-check :D
fucking hell
that was stupid
i was trying to find a library with a cmake script, as usual
the makefile set the lib to libsfnul.so
the script looked for libSFNUL.so
:|
user406009
@ChemiCalChems All C++ build systems seem to suck.
user406009
Other languages do this so much better.
@Lalaland this was the authors fault, but yeah, they suck
user406009
15:17
Switching to Rust is like a breath of fresh air.
yay it werks
user406009
@BartekBanachewicz What is this shift register in?
ok so Arduino's SPI actually looks useful
@Lalaland what do you mean?
user406009
Like are you building something out of transistors or something?
see link above
user406009
15:20
Oh, working with an existing component cool.
user406009
@BartekBanachewicz You see, this is the issue with networking latency :P
user406009
Clearly we just need to rewind time so that comments appear right when the author wrote them.
:P
that actually happens sometimes (here I mean)
ok this is fucking stupid
altough one thing I'm not getting
15:21
much like you
is that why the pinout I found earlier seems to be wrong
much like you
@Puppy possibly, but if build systems weren't as oddly designed, even i could understand them
doubt it
ueh it doesn't make sense
are they like starting to count pins from 0 or what
15:23
question: where is a binary supposed to look for shared libs?
doesn't it look in its pwd?
maybe thats the problem...
wait
nah, that's not it
oh wait fuck
the example here doesn't use the SPI
:/
god damn it
so i have to manually link them or what?
user406009
@ChemiCalChems On linux, the path is LD_LIBRARY_PATH
user406009
On windows, who the heck knows?
@Lalaland yeah, i've looked that up
my best option is to set the rpath to the exe's directory
user406009
15:28
@ChemiCalChems If I was you, I would just use boost::asio directly.
@Lalaland the problem would remain, i'd still have to do this rpath bullshit for the boost libraries
user406009
Nah, they statically link.
user406009
It works very well.
user406009
No shenanigans at all in my experience.
static linking is cool, but i couldn't get it to work with sfgui at all
i don't know why
but rpath works now
now the question remains, will the -Wl,rpath,. shenanigan work on windows?
or does windows look for dll in the current dir?
yep
so i only need the -Wl shenanigan on linux, which is nice
15:31
@ChemiCalChems might want to read about $ORIGIN
@LucDanton i'd did so too, but fucking rpath works, so don't fix it if it aint broke
and i don't even need that on windows
do read about it
15:34
@LucDanton its the same approach
contemplates making Alex/Rapptz confusion joke
contemplates retiring it
but instead of using $ORIGIN, i'm using . and that's it, signifying the current dir
unless, wait
so what happens if you start the executable from somewhere else? (sheesh, that’s like the second result on $ORIGIN)
@jaggedSpire Even though the aforementioned Alex account disappeared? :p
15:35
@LucDanton that's what i was testing
thanks
lol
i just thought about that when i said unless, wait
@Morwenn they were both orange-haired pictures with the orange in roughly the same place!
it made for anarchy
nice nice nice
it works now
fucking weird shenanigans
only for linux though
windows looks for dll in the executable directory
@jaggedSpire I remember, but since there's only Rapptz left (except most of the time when I don't see him), there's no confusion possible.
Unlike Bartek/Kretab.
15:38
yeah, I've realized that, which is why I'm contemplating retiring it. It makes less and less sense as time marches forth.
I'm mostly on Discord now
We noticed :(
I spend all my time ranting about how std::future sucks.
user406009
@Rapptz That's why all the cool kids use folly::Future
I'm not gonna use folly::Future.
Or std::future.
15:42
wtf is folly again
Facebook's lib
ooooh
I've been on an origami kick and I just found this
@Borgleader A mountain hut in France:
@Morwenn inb4 its your house
15:44
@Borgleader I'd have to travel ~1000km to see mountains that high.
Or I'd hav to be high myself.
user406009
@Morwenn don't trust anyone under 14,000 feet, we used to say back home
15:46
(on t-shirts, as a joke, but still)
there were also "I've been the highest person in Colorado!" t-shirts you could purchase if you summited the tallest mountain in the state.
user406009
@jaggedSpire Was this before or after they legalized pot?
Years before. I was in middle school when I first became aware of it.
Other states merely found the pot jokes. Colorado was born in it, molded by it.
I suppose it should be them though
since it's a plural
though it looks like medical marijuana was legalized in CO in 2000, which...doesn't make a whole lot of sense to me, because I distinctly remember the "medical" industry booming as if from nothing when I was in high school.
and I entered high school in 2006.
@Rapptz hookers & blackjack etc.
probably not :(
I'd laugh at all the stores that suddenly appeared with a green cross as part of the logo
15:55
I'm not good enough to make my own future.
ah-hah! It was legalized for medical use in 2000 but with some restrictions. Those restrictions were lifted in 2007 after an organization called Sensible Colorado sued the state and won.
and recreational mj was made legal in January the same year I graduated from college.
And now you're not allowed to drive anymore?
Listening to Macintosh Plus. It's really out of this world.
I believe they threw out testing for THC in the blood, since it lasts so much longer than the high.
also, I've never consumed, but no ones believes that anyway
I suspect most of my classmates in high school thought I was stoned on a daily basis
ah, sleep deprivation
16:01
xD
Sleep deprivation might be arguably worse for your health than THC.
user406009
I just hope the legalization vote passes in California.
@ThePhD I believe I told you that straight into face enough times. I tried to be delicate, but I guess you can't take criticism in any shape or form.
user406009
The drug war is a huge waste of time and kills millions for no good reason.
oh god
I just remembered: once, in history class I was staring at my hands and had the amazing revelation that skin is actually transparent. Naturally I immediately stated this in an amazed tone of voice.
my poor history teacher, to his immense credit, announced that that was what a non-sequitur was and continued teaching
LOL
I just profiled my project and FilterInputStream.available takes up 40% of the time spent
What did I do wrong
16:08
apparently, used FilterInputStream.available
Exactly
Well, dating sucks.
Great minds think alike!
I imagine so
@Lalaland That depends on how you define "good". If you're a pharmaceutical company that sells ineffective anti-depressants for high prices, persuading the government to keep lower-priced, more effective drugs from wiping out your business probably seems like a really good idea.
16:13
I ditched her on a second date just few minutes ago.
She was into horoscopes and had some purse (?) dog.
@Columbo Used FilterInputStream. More to the point, you used Java.
Horoscopes are a total show stopper for me.
@JerryCoffin I have to use Java. They force me to.
They do horrible things with me.
user406009
@Columbo There is always JNI.
@Columbo D:
user406009
16:14
The escape hatch.
@Columbo Time for a new job.
I think dating was better abroad. Not necessarily because anything else, but the lacking of internet access definitely forced me to date more ... I think ...
@JerryCoffin I'm in Uni.
Ell
Ell
@Columbo java 8 isn't so bad
@Columbo Time for a new school.
16:15
@JerryCoffin I think Cambridge is quite alright
But having to use Java does suck a little
ooooooh
I literally spent a couple of Friday night in an internet cafe as sadness of the things goes
@Columbo Not if they force you to use Java.
Ell
Ell
@Columbo why are you using available?
@Telkitty I suspect you being a girl and a foreigner abroad makes it a lot easier. :)
16:15
@Ell I wanted to read integers until there are no more. Now I wrapped the thing in a try-block and catch EOFException.
I think I'm doing it wrong, though.
Ell
Ell
Me too.
@JerryCoffin Well, what else would they force upon us
Hardly C++ :/
Ell
Ell
You should read into a buffer
Sensei Ell
Ell
Ell
Stop reading when you get less than expected
16:16
@wilx when I was abroad, I was there for 3-6 months, not some one night standard thing
teach me the ways of the Java programmer
@Columbo You'll have to call him « sensei » first.
Ell
Ell
Use this method to fill up a buffer
@Morwenn Every time?
Like "Sensei, teach me, sensei!"
Ell
Ell
In a loop until its all filled up
16:18
@Columbo Yup, and you'll have to make him notice you.
@Morwenn I feel so worthless right now
For not knowing Java
Kinda ironic
@Columbo You should feel worthless for having to use it instead :p
@Morwenn Ma'am, yes, ma'am!
As much as I want to talk about quitting the internet, I don't think it's ever going to happen. Internet to me is like water to a fish.
Ell
Ell
Actually @Columbo, are you using java 7 or 8?
16:20
@Ell I suppose I'm using 8.
So, I'm done implementing my total, weak and partial less/greater functions for floating points. Too bad I didn't find any way to separate quiet and signaling NaNs.
I believe they support it in the test system.
Ell
Ell
What does your input data look like?
@Columbo Even that would be preferable to Java. But a Lisp or almost anything derived from ML would clearly be acceptable as well.
@JerryCoffin They did teach us ML.
We use it still.
The problem with C++ is its beginner unfriendliness, IMO.
Java is a bit better in that respect.
16:22
@Columbo So why in the world would you get within 100 meters of anything related to Java.
@JerryCoffin Because ML is a functional language?
Ell
Ell
@JerryCoffin they like to teach multiple paradigms
@Columbo I don't think so--its friendliness is an illusion.
@Columbo And?
Ell
Ell
We did java for OOP, C for imperative and Haskell for functional
@JerryCoffin See @Ells response.
16:24
@JerryCoffin Yeah, but C++ lack of friendliness is hardly an illusion.
Ell
Ell
And JavaScript for dynamic type system
when I started studying at uni, we started with C before we went into C++
@Ell Java isn't a paradigm, nor does it actually follow any paradigm closely enough to be worth teaching, learning, or using.
@Khaled.K You should've skipped the C part
@JerryCoffin Jeez, you really do have some hate towards Java, no?
I mean, completely comprehensible, but still
Ell
Ell
@JerryCoffin but OOP is a paradigm which java is strongly associated with
16:25
More than C++, btw.
Although "everything needs to be in a class" is not OOP, but bullshit
9
Ell
Ell
Yeah
@Columbo No, not hatred. Not any more than I hate a rock that's sticking out the ground in the backyard. I recognize that it needs to either be removed entirely or smashed into dust, but I feel no hatred in my heart while deciding between the two and carrying out that decision.
7
oooooh
You cold hearted motherfucker.
wow, that kind of opinion
16:27
His name ain't Coffin for no reason
@Morwenn Countdown to flag starting now...
10
9
8
7
6
5
4
C-C-C-COMBA BREAKER!
Fuck, I got it wrong.
NOOOOOOO! you beat me to it :P
16:29
1?
Wait a minute. I have stronger tools than mere flagging.
Jerry C++offin
why settle for C when you can C++
that could be with a question mark
with a question mark
no, it doesn't have quite the same meaning as I'm reading it
it's like "Jerry, C++ often?"
7
16:32
@Khaled.K Not as often as I probably should.
user406009
Anyways, Java is not that bad. There are much worse languages.
user406009
Java is bearable.
user406009
At least there is static typing.
user406009
Now, PHP on the other hand ...
@Lalaland ...is not a language.
16:33
@Lalaland You mispelled terrible :p
user406009
@Columbo I'll never forget that shitty Java OOP class I had to take.
user406009
It was just so hilariously bad.
user406009
I did learn one really important lesson though.
user406009
When it comes down to it, the boss (or professor) in this case is the boss.
user406009
At some point you just have to submit.
16:35
@Lalaland Is this sexual?
I'm just asking
@Lalaland ...or find a new (school | job)
only if you think Java is sexy
Java is about as sexy as me, and that's a statement
@jaggedSpire Hmm...somehow reminds me of Heinlein's line that "even a cockroach is attractive to another cockroach."
TIL Justin Bieber is actually totally able to play drums, the guitar and the piano. Not half bad.
user406009
16:37
@JerryCoffin It's called never taking a class with that person again. Going through whatever workarounds necessary.
Still having a hard time imagining who'd find Java sexy though.
@JerryCoffin I was contemplating adding "you twisted maniac" to that statement
@JerryCoffin Somebody who has never seen anything better? :)
user406009
@JerryCoffin Well, the garbage collection in Java is somewhat legit.
user406009
Also, there are some cool ideas with Java serialization.
user406009
16:39
Like if you have it configured correctly, it will send the Java bytecode across the network when you send the object.
user406009
So you can send a Runnable across and it will all work properly.
that sounds like a possible security issue
@Lalaland That's not part of the language. The JVM is actually semi-decent.
user406009
(Ignoring possible security issues)
user406009
In C++, you can sorta try to play tricks with dynamic linking and dlopen or whatever.
user406009
16:40
But it's not quite as simple and painless.
@jaggedSpire I believe the JVM does its normal security checks on the received object, just like it does on an object it loads from a file (keep in mind that even though virtually nobody even considers using it anymore, a large part of the original intent for Java was applets).
@JerryCoffin ah, that sounds reasonable
user406009
I think Java also does packaging and dependencies in a much more sane manner.
user406009
It's really easy to "just add a jar" to your project.
user406009
Of course that leads to abominations.
16:43
@Lalaland Dijkstra once commented that APL was "a mistake carried out to perfection". Java is a MistakeCarriedOutToPerfectionFactory.
@JerryCoffin Pre-generics Java just sucks but I do not see a mistake there. Java with Generics is a mistake though.
The Java generics are just terrible.
the mistake is in pre-generics Java existing at all.
a language like Java, C# etc cannot work without generics.
user406009
Well at least they realized their mistake and tried to fix it.
@wilx I see an ocean of mistakes there (with omission of generics or something similar as a starting point, but dependence on a horrible misunderstanding of OOP, arrogance and condescension toward users, etc., ad nauseam).
user406009
Unlike some other languages (cough Go cough)
user406009
16:50
@Puppy Most languages with static typing eventually seem to need generics.
user406009
C++'s generics are really odd though. The whole duck typing for generics really sets them apart.
templates are a different beast to generics
back at uni, we were supposed to do a project on OOP, there was a big UML diagram full of relationships, I mixed it with generics, the compiler seemed to not work, maybe that just gave it a heart attack
Yeah, templates are more like a more rigorous preprocessor.
Generics IIRC have a runtime component to them.
that's not really what it's about
user406009
16:55
@ThePhD Depends on the implementation.
it's about the fact that generics are constraint-based and templates are duck
user406009
^

« first day (2114 days earlier)      last day (3060 days later) »