« first day (1432 days earlier)      last day (3509 days later) » 

6:00 PM
FADD - ops:1
right.
 
latency - 4
 
[i feel pretty privileged to be helped by a 243k streetcret user]
 
Execution unit - FADD
 
user1804599
This is how I invoke clang:
 
user1804599
clang++ test/**/*.cpp -I ~/libcxx/include -I include -I deps/catch/include -std=c++1y -Wall -Wextra -Werror -pedantic -llua -lboost_system -ferror-limit=1
 
6:01 PM
@nightcracker FDIV - ops: 1
 
user1804599
Same error with -std=c++11.
 
Oh wait I see.
You don't have a sol::constructor instance
 
DIV - ops: 79
right.
 
@BartekBanachewicz latency - 4, unit - FMUL
 
TBH
you've made me realise something really glaring
 
6:02 PM
FDIV - latency - 11, 25
 
there should be an easier way to define these 'modules' lol
 
@nightcracker DIV - latency - 24
 
user1804599
@Rapptz /me sucks your dick
 
@BartekBanachewicz also you seem to confuse ops for cycle counts
 
rightfold would have sex with everyone here if he could
 
6:03 PM
@BartekBanachewicz Reciprocal throughput is what you need
 
@mouse I wouldn't take it as meaning too much--I'm probably more certain than anybody else here that SO's rep system means...damned little.
 
@nightcracker why don't you benchmark some real world code instead
 
@BartekBanachewicz if you provide said "real world" code
 
user1804599
@Rapptz Yep.
 
6:03 PM
mmk
 
Ell
what does sol lua function call syntax look like?
 
and we're talking about a top of the line superscalar processor here optimized for flops
 
user1804599
auto asio = lua.get<sol::table>("asio"); asio.set_userdata(io_service); doesn't do anything, though.
 
Ell
I'm wrapping with JNI right now and I want to know how you've done it :P
 
user1804599
asio.io_service is still nil afterwards.
 
6:04 PM
most CPU's have very underdeveloped floating point units
 
def test_bug_should_be_able_to_use_variable_more_than_once(self):
    self.backend.dump('__test__', { 'test': 'test', 'bug': { 'a': '${test}', 'b': '${test}' }})
    result = load('__test__', self.backend)
    self.assertEqual(result['bug']['a'], 'test') # this actually thinks the interpolation is looping around :allears: I'm dumb
murkdown really good
 
@JerryCoffin Sometimes I'm stumbled to see quite fantastic answers that have 0 votes, I'd be bummed as a dev that just spent probably an hour typing that, trying to get a sparkly Carreer 2.0 or w/e profile
I mean to me, the popularity of a Q/A site like SO is credited to the fact that
 
"Woman's hair got caught in a chicken feeder machine, removed skin from her face and scalp."... what did I expect to see :S
 
You get reputation that makes you look smart
 
Eh I don't know if I can detect a loop
 
6:07 PM
excellent answers on obscure questions are doomed @sehe
 
@nightcracker nobody cares apparently
 
user1804599
Oh wait I never call the code. :D
 
Oh okay
I was writing some equivalent code to see what was up
 
@BartekBanachewicz but basically, unless you have other things to do at the same time that don't depend on its result, FADD is 4 times slower than ADD on haswell
 
@Ell are you wrapping a lua binary using JNI? What's wrong with ports like 'LuaJ'
 
6:09 PM
LuaJ is a completely different thing
> unless
 
Ell
@mouse I'm wrapping a C library with C++ for scala
 
@thecoshman a scalp?
 
@TonyTheLion it's on reddit, go hunt if you want
 
@BartekBanachewicz hint: in the places where it matters (loops) you do not
 
6:10 PM
@thecoshman I'm ok
 
oh no an interpreted language will be slower than handwritten assembly what do we do what do we do
 
@Ell What do you mean?
 
I want out of this discussion.
 
you mean getting a Lua function and calling it C++ side?
@rightfold Neat.
 
user1804599
Time to eat!
 
6:11 PM
@rightfold Do you have a test timeout setting in the driver, because otherwise testing event loops is probably not a good idea :v
 
Ell
@Rapptz yeah, but I think I just found an example now :)
 
user1804599
@CatPlusPlus Yeah I know.
 
user1804599
I should configure that.
 
@BartekBanachewicz you asked for a citation, I gave you one
@BartekBanachewicz if you didn't want to discuss it, then don't ask to
 
@nightcracker I know. It was fun (thanks), but then I've realized I really don't care
 
user1804599
6:12 PM
Translating Styx bytecode to Lua will be fun.
 
@mouse The "gamification" probably doesn't hurt, but I'm not sure it's responsible for (even close to) all the site's popularity. I spent years on Usenet (with no rep system) before SO existed. Main reason I now spend more time on SO is simple spam reduction.
 
@Ell auto f = lua.get<sol::function>("name"); f.call<return_types...>(args...);
I think there was a specialisation for void functions
 
user3010322
There is.
 
@JerryCoffin You're a saint.
 
user1804599
Bounded channels will be interesting to implement in Lua.
 
6:14 PM
ah yeah, it's operator()
f(args...) and f(sol::types<return_types...>, args...)
 
user3010322
If you do f.call<void> it should work too
 
@mouse Not at all (I'm a God. Sacrifice virgins to me or send me money).
 
user3010322
But it's probably easier to do f(args)
 
btw
do you wanna help with documenting
 
user3010322
Only if you answer me about whether or not we should do copy-everything for set/get or if we should keep perfect-forwarding semantics.
 
6:16 PM
@Rapptz Obviously not--I just said I'm not a saint! :-)
 
user3010322
Because right now the API is actually inconsistent with how it handles things.
 
user3010322
set_function copies always, unless you std::ref
 
Ell
template<class... ArgsT>
void operator()(ArgsT... arguments) {
}
^what is arguments here? a parameter pack?
 
user3010322
But lua.set will treat an l-value as a reference and hand it through directly.
 
Haskell room needs more people. :S
 
6:17 PM
Ugh fucking Django with its dumb flat app namespace
 
@ThePhD I guess use std::ref.
It's explicit
 
user3010322
FIXIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIING
 
@Ell Yup.
 
user3010322
I actually have no idea how to write good docs.
 
@BartekBanachewicz Haskell people need more room.
 
user3010322
6:18 PM
I don't know if it should be comments,a nd then auto-generated from comments, or...
 
@JerryCoffin seems spacious around me :P
@ThePhD yep, that's the easiest way
 
@ThePhD Use Sphinx
 
@BartekBanachewicz You may have enough room to use Haskell, but you might be better off moving just a little ways north...
 
already using sphinx
 
Look at e.g. Django docs for an example of Good Docs that are not a goddamn API dump
 
6:22 PM
@JerryCoffin there's water there!
 
@BartekBanachewicz Exactly!
 
Lots of room!
 
user3010322
Well, I don't know how to play with Sphinx.
 
Structure is important
 
user3010322
6:22 PM
So someone will have to teach me.
 
Comprehensiveness is important
 
look at the docs branch
 
user3010322
Or I can just figure it out.
 
Oh
I didn't push it
lol
 
user3010322
+1
 
6:24 PM
 The import of `Data.Vect.Float.Instances' is redundant
   except perhaps to import instances from `Data.Vect.Float.Instances'
lol :D
 
docs subdirectory
 
@Rapptz woah is this private
 
user3010322
@Rapptz Ooh. Makes sense.
 
you have to see raw files
 
user3010322
I am.
 
user3010322
6:30 PM
The .rst, right?
 
Yeah.
It uses restructured text with some Sphinx specific things.
It's not too hard.
 
user3010322
You edit those by hand or do you do some-parts Sphinx, some-parts hand-like?
 
I wrote all those files manually
 
user3010322
Ah.
 
which is why I'm sick of writing docs
 
user3010322
6:33 PM
Heh.
 
Ell
template<typename... Ret, typename... Args>
typename return_type<Ret...>::type call(Args&&... args) const {
    push();
    stack::push_args(state(), std::forward<Args>(args)...);
    return invoke(types<Ret...>(), sizeof...(Args));
}
I wish I knew how that worked :P
 
Variadic templates!
 
a rare snippet of when sol's code was clean
 
That is not a pretty piece of code.
 
For what it's doing, I'd say it is
 
6:36 PM
it's beautiful.
 
user3010322
Well, we don't use MSVC anymore.
 
user3010322
We can probably got hrough and eliminate a bunch of redundancies in the code
 
user3010322
(like sol::table::get, and it's related functions)
 
@Ell What part is confusing?
 
What sane person would expect `stack::push_args(state(), std::forward<Args>(args)...);
` in a free context?
 
6:37 PM
Ah th rjfjfjrueiejzkaoebrkxosnskvuens
 
@CaptainGiraffe What?
 
You're implying we're sane here.
 
user3010322
Robor Malfunction.
 
Ell
@Rapptz I guess I don't know what std::forward does. But I haven't looking into variadic templates enough to attempt to find out
 
Perfect expression of how I feel right now.
 
6:38 PM
@Rapptz This is nonsensical without a scope.
 
Ell
I'm writing my own function wrapper atm, and I need to pass java a jvalue* for arguments. I'm currently trying to think of how I can do that
 
@CaptainGiraffe What do you mean?
do you mean stack::push* shouldn't be a free function?
 
@Ell look up perfect forwarding (RE: std::forward)
 
I'm perfectly sane.
 
@Rapptz As written call is a free function.
 
6:40 PM
I'm just drunk on exhaustion.
 
no it isn't
it's a member function
the only free function in that snippet is stack::push_args
 
@Rapptz Oh carp. Please tell me how.
 
It's const, therefore it must be a member function.
 
Ell
so basically I need to take a parameter pack, transform each value in it, and put the resulting values in a std::array
 
mainly because I wrote it
so I would know :v
 
6:42 PM
haha, best argument ever
 
Ok, I should have seen the const. Oh carp
 
It was easy to miss to be fair
 
I put some water heating to make tea but now I don't want it.
 
I'll have it
Send it over
 
Ell
ooh yay what I wrote compiles :p
 
6:44 PM
@OMGtechy Ask for the Tea, not the water silly
 
@Ell yaaay :D
@CaptainGiraffe dammit >.<
 
@Ell cgcg
looking at C++98 emulated variadics made me really appreciate C++11 variadics.
 
@Rapptz were you peeking in the VS2012 headers?
 
no, boost
 
ah yes... it's amazing how much code they bypass when they actually have variadics
 
6:47 PM
@Ell FWIW, I posted a fairly succinct answer using a variadic template some time ago: stackoverflow.com/a/17311013/179910. Pretty much everything except the variadic template usage is sufficiently trivial that it keeps it fairly easy to concentrate at that one subject.
 
this question is awesome
23
Q: Why would clipping a wire cause a bomb to explode?

ominous onionThere are a lot of movies and video games that depict defusing bombs, most of which boils down to picking the right color wire. Something like this: Now, that's a part I don't understand. simulate this circuit – Schematic created using CircuitLab I'm not very familiar with circuitry ...

 
@JerryCoffin I'm still waiting for someone to get clever and do compile time typesafe printf
 
so that's apparently a triangle
 
It could be a REALLY thin one
 
6:49 PM
@Mgetz C++14 makes it easy
 
@JerryCoffin That is a really good answer in my opinion. At the very least a +3 despite being attached to a -0 question.
 
I think C++14 also adds literal operator templates.
 
Ell
@JerryCoffin thanks :)
 
Which would make it 100% possible
 
@Rapptz so the caveat there that I forgot to mention was: in relation to the format string.
 
6:50 PM
?
you mean -Wformat?
cause that's what I meant
 
basically but not compiler checked
 
@Mgetz "compile time typesafe printf" - Yeah, I think world peace would be nice too.
 
nvm on literal operator templates
wtf
 
@Rapptz I thought that was c++17
 
Clang and GCC support it
 
user784668
6:53 PM
yay Clang
 
yay GCC
 
user784668
Exceptions on 64-bit Windows, finally!
 
VS will support it by 2025.
 
user784668
@Rapptz Surely you mean 12025
 
@Mgetz A complete "printf" that supports width, precision, sign, base, etc., is a decidedly non-trivial task (even as a normal variadic function). Parsing a string at compile time is non-trivial as well. Methods are known for both, but I wouldn't hold my breath for somebody to put it together into working code.
 
6:54 PM
Someone should collect these predictions so we can laugh in ten years.
 
VS has always been at war with Eurasia.
 
Ell
I'm not sure how to transform c++ values to java values
 
Man, I'll be old in ten years. I hope I'll be wise by then.
 
Ell
I think just a single function with overloads might do. But probably not
 
@R.MartinhoFernandes In ten years you'll still be almost a child.
 
6:55 PM
@Ell If it is --> Java, they have very nice tools for that now.
 
I won't be me, I guess.
I'm not me from two years ago.
 
We change every day!
 
@R.MartinhoFernandes You won't be the you that you are now (I certainly hope not, anyway).
 
user784668
@Rapptz Speak for yourself, I'm immutable!
 
What's that supposed to mean!
 
6:56 PM
I don't mean atoms or whatnot.
 
My mutability is immutable.
 
In Lord of Light, Zelazny has a nice little bit about our mutability (taken to rather a more extreme than usual, of course).
 
Oh. I'm holding that right now.
 
Is Zelazny scifi or fantasy?
 
@Fanael hi hi hi
@CaptainGiraffe fantasy I think
 
6:59 PM
@CaptainGiraffe Lord of Light is sci-fi. Would be harder to call the Amber series (for one example) sci-fi though.
@R.MartinhoFernandes That book? Really?
 
user784668
FUCK
 
user784668
IT WORKS?
 
user784668
yes
 
@Fanael yes; we couldn't reproduce if it didn't
 
user784668
@BartekBanachewicz ha ha
 
7:00 PM
am I turning into @Jerry?
 
user784668
clang++ x.cpp -Xclang -fseh-exceptions -o a.exe
 
Ell
I wonder how I should indicate the difference between byte and char in c++... Maybe just a function that returns a Byte class with just a char member
 
apparently this line is some thing
 
dear cp users i broke my ipod
 
@JerryCoffin Thanks. I'm an Asimov fan. I like out of world Aliens. I'm afraid I have read everything there is to read... Philip.K.Dick (love it) Burrougs (Love the Barsoom). I'd take any suggestion
 
user784668
7:01 PM
Now to make Clang assume -fseh-exceptions by default.
 
@Fanael Not tremendously well. There's a reason why it's an option.
 
I've asked librarians, and even the guys at "The Sci Fi bookstore" in Stockholm.
 
@CaptainGiraffe Quite a bit of Heinlein's stuff is good (especially early stuff), but it's more about people than aliens. A lot of Zelazny is about people, only they're mostly at least somewhat superhuman. FWIW, I also rather like David Weber and F. Paul Wilson, but of which include at least a few aliens here and there but are really mostly about humans as well.
 
@Fanael My Clang 3.5 won't recognize -fseh-exceptions. Are you using trunk?
 
user784668
@Puppy Yes.
 
7:07 PM
maybe they fixed those last bugs then
 
Are you stalking me?
Sep 5 at 18:01, by R. Martinho Fernandes
Only one book too many! Success!
 
@JerryCoffin Thanks. I've read most of Heinleins stuff too. Starship troopers stands out because of the odd movie =)
 
Twas the book too many there.
FFS, why is the pic rotated.
 
Fahrenheit 451. Paper will burn.
 
7:09 PM
@R.MartinhoFernandes I see. Cool. And no, I'm not stalking you--I'm omniscient.
 
Ah, not rotated.
I win.
That fat one at the bottom of the shelf is The Chronicles of Amber.
 
@R.MartinhoFernandes You have triumphed over Murkdown! Congrats.
@R.MartinhoFernandes Also excellent (even if he does cheat in places).
But in the end, I really prefer Lord of Light. It's truly a great book, IMO.
 
coliru down for anyone else?
 
back up now
lol
 
user3010322
7:18 PM
@Fanael They... they did it?
 
4
Q: What's with the word "sardonic" in sci-fi?

ThePopMachineOK, this is going to seem to be either a ridiculous question or there is something there. I have noticed that Asimov is a huge fan of the word "sardonic". Maybe it's just that I notice it because I wouldn't normally use this word. Maybe it's just that sci-fi stories lead to greater likelihoo...

 
ermahgerd I'm being attacked by a cuddly dog
 
@Puppy ...he said sardonically. :-)
 
user1804599
It wants to fuck you.
 
@Mysticial have you ever gotten significant speedups/slowdowns from using LIKELY and co?
 
7:25 PM
I have no idea what "sardonic" even means
 
"from the planet Sardon".
 
@Puppy Doesn't matter. I was just crossing the threads streams.
 
Ell
@rightfold I don't think this is possible
 
@sehe To be honest, I don't find it easy on either medium.
 
Adjective: sardonic (comparative more sardonic, superlative most sardonic)
  1. Scornfully mocking or cynical.
  2. Burke
  3. Disdainfully or ironically humorous.
e.g. @Puppy in a nutshell
 
user1804599
7:29 PM
Lekker sardientjes eten.
 
@R.MartinhoFernandes lol
 
dude seriously spamming not good
kill it kill it now
 
Wait. "They" is completely borked.
 
@R.MartinhoFernandes lol
 
7:30 PM
A closed subgroup of a Lie group is a submanifold.
 
I bet they parse wikitext with regexes
 
@R.MartinhoFernandes thank you.
 
user1804599
@BartekBanachewicz TIL.
 
@BartekBanachewicz Bunch of Lier's, if you ask me (and obviously a closed subgroup of a Lie group is still just a bunch of lies).
 
0
Q: "define:" oneboxing is still not quite ok

R. Martinho FernandesSo, apparently the wiktionary oneboxing feature had a little makeover and now it doesn't just onebox into some ugly dump straight from the page. Except when it does. As you can see, "they" expanded into the garbage format, while the rest was ok.

> 5. it (Cyrillic spelling ит)
Thanks, I guess.
@Mgetz Puppy is Burke?
 
7:39 PM
> The HLearn library uses 6 lines of Haskell to define a function for training a Bayesian classifier; the equivalent code in the Weka library uses over 100 lines of Java.
lol lol lol
 
Welp got 6th Yearling
 
@R.MartinhoFernandes Burke is a puppy, but Puppy may or may not be Burke.
 
Finally had a good coding day
 
Noun: berk (plural berks)
  1. (UK, slang, pejorative) A fool, prat, twit.
  2. berk m
  3. berk m (indefinite plural berkë, definite singular berku, definite plural berkët)
  4. berk m (plural berken, diminutive berkje n)
Adjective: berk
  1. hard, violent
 
Jesus why is it so large
It's Amazon oneboxes all over again
Why can't it be fucking collapsible
 
7:40 PM
Oooooh.
 
And collapsed by default
I hereby ban these oneboxes
 
newtype Bayes labelIndex dist = Bayes dist
    deriving (Read,Show,Eq,Ord,Monoid,Abelian,Group)

instance (Monoid dist, HomTrainer dist) => HomTrainer (Bayes labelIndex dist) where
    type Datapoint (Bayes labelIndex dist) = Datapoint dist
    train1dp dp = Bayes $ train1dp dp
 
== English == === Pronunciation === === Phrase === fuck you! Used other than as an idiom: see fuck,‎ you. (idiomatic, offensive, markedly vulgar) Expression to show discontent with the other party, or to show contempt. You dare come here dressed so horribly? Well, fuck you! (idiomatic, dismissive, offensive, markedly vulgar) Go away! Go to hell! Fuck you—I’m not giving you any! You’ve done enough to ruin our outing, so fuck you! ==== Derived terms ==== fuck you Jack, I'm alright fuck-you finger fuck-you lizard fuck-you money ==== Synonyms ==== See also Wikisaurus:go away go fuck y...
 
holy fuck
that's a nice implementation
 
@R.MartinhoFernandes :ironicat:
 
7:41 PM
lol
> ==== Derived terms ==== fuck you Jack, I'm alright fuck-you finger fuck-you lizard fuck-you money
 
Anyway I managed to finish scaffolding stuff
:toot:
 
user1804599
@BartekBanachewicz loljava
 
@BartekBanachewicz I somehow doubt legitimacy of this comparison
 
@R.MartinhoFernandes Who's Burke?
 
@Puppy Apparently an alternative spelling of "berk".
"Berk" means 1) A fool, prat, twit, or 2) berk, or 3) berk, or 4) berk.
 
7:45 PM
 
Very good.
@R.MartinhoFernandes This is terrible.
Where in en.wiktionary.org/wiki/berk does it give meanings 2, 3, and 4 (aka "berk", "berk", and "berk")?
 
I like how my comment about adding audit to kicks was ignored
 
> indefinite plural berkë
makes it look like not English
 
Meta is not terrible at discussion at all
 
user1804599
it's berked
 
7:47 PM
@Puppy lol, it's Albanian.
 
@CatPlusPlus it's a joke that it even has to be suggested
 
Very Good Coding
Though audit messages are a joke in themselves what with being editable and all
 
I'll make another bug report.
(Only because I want to use the word "cunt" sort of legitimately)
 
@CatPlusPlus careful, don't want to get the robot started on that one again :P
 
@thecoshman Bounty expires tomorrow.
 
7:49 PM
@thecoshman Too late!
 
user1804599
@thecoshman He cycles on the wrong side of the roa… oh wait silly England.
 
Ell
@thecoshman I absolutely love this video
 
ok... this is one hell of a desk!
 
@thecoshman Prollly a backlash against the number of cyclists breaking the law and/or getting squashed by heavy trucks. Still, funny:)
 
7:59 PM
0
Q: "define:" oneboxing selects completely bogus data

R. Martinho FernandesI found this weird word, "burke", and decided to check it out. It turned out it was an alternative spelling of "berk". This is what define: berk in chat expanded to: So, according to that, "berk" as a noun can mean "a fool, prat, twit", or "berk", or "berk", or "berk". Wow, who would have thou...

I almost wanted to title it "Why did cunt get replaced with Albanian?"
 
@R.MartinhoFernandes :D
vOv seems fine to me
 
jesus
Entire fucking screen
 

« first day (1432 days earlier)      last day (3509 days later) »