« first day (1846 days earlier)      last day (3103 days later) » 

6:00 AM
it was a joke
underflow etc
 
Oh, sorry. Went right over my head :P
I'm new to audio stuff, and was confused by what you said, but took it seriously haha
How embarrassing
 
> gcomb: a minimal framework for elegantly manipulating infinite streams of data
fuck off hipster there's no such thing as infinite streams of data
 
@GregorMcGregor when will background radiation turn off?
 
When it stops paying the energy bill
 
6:31 AM
@GregorMcGregor you mean that Intel optimization guide?
 
dang I want a nice&easy convention for construction when it involves variadicity
I’m loving aggregate syntax for non-variadic things i.e. struct foo { bar x; qux y; };, with a possible fallback on actual constructors if/when I need to but it doesn’t work for variadic
@ScottW yeah
 
@ScottW Learn you a Haskell for greater good or something?
 
i.e. there’ll be a tuple or tuples at some point so aggregates are right most of the time
@ScottW nah sorry
I knew OCaml already
I learned a lot from the Wiki and discussions etc. for the more Haskell-specific stuff
@ScottW Well, I don’t know what is or what isn’t a Haskell tutorial for begginers here
 
Office 2016 will have a JavaScript API
omg
 
@GregorMcGregor at last
 
6:35 AM
Goodbye shitty Excel VBA macros?
 
@ScottW Yes it's popular
@ScottW Scheme too
Also Erlang for concurrency but it's ehhhhh
 
@ScottW I enjoyed Real World Haskell very much, dunno if it’s the sort of stuff you’re after
whereas 'Learn you…' didn’t really do much for me
Sadly RWH feels somewhat… bitrotten these days
@ScottW SICP is a great beginner book on programming, and happens to take a FP approach to it
(I know you’re not a complete beginner, but it’s a great book)
that’s it really
after all these years and all those books
I do wish I had started with a book that is similar to SICP, but one that mentions and uses type theory too
all the great books I read on type theory are not that programming-oriented, and it felt weird to really only learn about types that late in the game
In any case god bless INRIA & OCaml
 
Real World Haskell is better
@LucDanton That book is a meme in /g/.
 
@Rapptz it’s from /prog/
well, probably
 
@LucDanton amen
 
6:47 AM
m8 /prog/ has been dead for a while now
 
@Rapptz it’s still from /prog/
 
it's still dead
 
you’re still McBain
you still suck
 
no jealousy pls
 
I am bored of Python.
 
6:52 AM
you too can learn
 
I feel like I've said this before.
But I mean it now
 
You didn't mean it before? I feel cheated.
 
7:17 AM
Apologies :p
 
7:36 AM
Hi lounge
 
7:57 AM
So... You only give a number (2^32) and then wonder about size ("I can have this big size?"). Now you start asking about performance. Memory doesn't consume CPU at all. You're not doing anything witth it, so performance is irrelevant. — sehe 1 min ago
 
> Memory doesn't consume CPU at all.
 
Makes my point clear at OP level I guess
 
> I can have this big size?
 
Oooh yeah bby
 
dang extended aggregate init cannot come soon enough
 
8:02 AM
I agree
I remember a day where mentioning aggregate init would be frowned upon
 
8:23 AM
@GregorMcGregor yes, you can be big & beautiful
We will still love you when you are 180kgs.
 
@chmod666telkitty I'm sure he wasn't thinking about this when saying that :p
 
OK, if penis jokes are bad, how about vagina jokes?
Do you know any? :)
@ScottW Damn! I just walked right into it, right? :)
@ScottW Night.
 
> I have a following code:
what does it follow
 
user1804599
Cool, comparison operators are non-associative in PHP.
 
Ven
8:37 AM
ahoy
 
You can't abbreviate the error there. The error says "error: no matching function for call to X" and you manage to put less than the interesting half of "X" — sehe 6 secs ago
 
@Ven Ahoj.
 
@Ven Is your name Michael?
 
Ven
@Rerito no. but still an archangel.
 
Coz I had a coworker who would always greet us with "ahoy"
 
8:41 AM
@Ven Hi Raphael / Gabriel
 
how do I Nieblerify something like std::get which has both std::get<0> and std::get<int> forms
 
@LucDanton Nieblerify?
 
I think he means Nieblerize
 
@Default Turn into a Niebler
 
8:43 AM
never heard of that :) what is it?
 
@LucDanton don't think you can
 
@Rapptz yeah I’m looking at the bigger picture here, e.g. do I split those two different operations into two different names or namespaces or something
 
heyo
 
then there’s get for variants etc.
 
@LucDanton thanks
 
8:49 AM
I don't get the ODR hack that he does.
 
@Rapptz as far as I’m concerned the unnamed namespace is completely superfluous
@Rapptz Do you mean the __static_const bit?
 
yea
 
every begin in the program will refer to the same __begin_fn—if that weren’t the case you could write programs with UB
how that UB is achieved is a bit handwavy in the standard though, I don’t recall off the top of my head how you do that
 
user1804599
Are there USD coins?
 
Declaring a global int a[1 + (foo() == bar())]; where foo and bar are defined in separate TUs and return &begin, perhaps
 
user1804599
8:54 AM
Oh, yes, apparently.
 
@Elyse what do you mean? Yes Amaerica has coins... but only for cents afaik
 
user1804599
Only ever seen bills.
 
user1804599
@thecoshman Up to $1.
 
oh, so they do have a $1 coin, in current circulation?
 
user1804599
Yes.
 
Ven
8:57 AM
is there some kind of .wait() on some mutex in C++? That basically just waits until the mutex is unlocked, but doesn't lock it
 
user1804599
@Ven { std::lock_guard<decltype(mutex)> lock(mutex); } locks it and immediately unlocks it.
 
user1804599
Huh?
 
Ven
wait
 
user1804599
It's behaviourally equivalent to waiting until it is unlocked and then not locking it.
 
user1804599
Just possibly less performant.
 
Ven
8:59 AM
performance is pretty big :/
 
user1804599
Sounds like you're doing it wrong though.
 
weird name for a dick
 
very descriptive name though
 
user1804599
 
Ven
@Elyse use case: before I make a query, I need to check if someone is modifying the connection pools. When I'm calling "refreshPools", I want to acquire said lock, and block queries until I'm done with the pools
so performance is a pretty big deal
 
user1804599
9:02 AM
Do you want to lock the entire pool?
 
Ven
yea
 
user1804599
Maybe you want a single-write, multiple-read mechanism?
 
Ven
yes
 
user1804599
If so, try a shared mutex.
 
Ven
it's a per-instance mutex, though?
 
user1804599
9:03 AM
Readers acquire shared locks, writers acquire unique locks.
 
user1804599
@Ven instance of what
 
@Rapptz My bad, for reference variables you need to force internal linkage via static or an unnamed namespace, constexpr won’t cut it unlike as with object variables
 
Ven
@Elyse of my "poolManager". everything goes through that. there's a query method
 
user1804599
Depends on what you want to synchronise.
 
@ScottW that would be awesome in winter, we will be like this:
 
Ven
I'll write pseudo code
 
user1804599
If you want to synchronise per pool, have a mutex per pool. If you want to synchronise the set of pools, have a single mutex.
 
@LucDanton oh it's a reference
 
Ven
@Elyse no no, I want the synchronize the set of pools
 
@Rerito he doesn't want to be love when he eats too much maccas and becomes obese?
 
9:06 AM
@Rapptz yeah it’s two-level ODR-violation prevention, isn’t it lovely
 
user1804599
shared_mutex mutex;
set<pool> pools;

void write() {
    std::unique_lock<decltype(mutex)> lock(mutex);
    // write pools
}

void read() {
    std::shared_lock<decltype(mutex)> lock(mutex);
    // read pools
}
 
blame Chandler for that one, not Eric
 
CHandler
 
it's awful
lol
 
@Rapptz would template<typename X> constexpr X constant {}; sweeten the deal? it’s what I use
well, together with the internal linkage references I mean
 
9:07 AM
Yeah, but could he cleanse Saidin? — WannabeCoder 17 hours ago
^That. Is. Brilliant.
 
user1804599
And nobody gets it. Good job.
 
That's the brilliance.
If you don't get it, read some books.
 
nice implying we're all retards here
 
I'm quite sure some of you get it.
Those that have read The Wheel of Time.
 
Ven
9:10 AM
@Elyse you're probably right
 
user1804599
As always.
 
@GregorMcGregor still made me chuckle
9/10
 
@GregorMcGregor if we are all retards, what is cat doing here?
 
All the hinein-interpretation is amusing. The question speaks of "create something on any kind of memory". The guy/girl is not inventing a VM. — sehe 15 secs ago
That question...
 
user1804599
@Ven std::shared_mutex is C++17 though. I don't know how to do it in C++11/C++14.
 
Ven
9:12 AM
@Elyse actually, no
 
@JohanLarsson heard of fluent assertions?
 
Ven
@Elyse The issue here is that you can't run queries in parallel, that's not what I want.
 
@chmod666telkitty That's an interesting question, it sounds like having more context would help us answer it well. Can you tell us more about what you are building?
 
@sehe For unit tests?
 
user1804599
@Ven Why can't you?
 
Ven
9:13 AM
@Elyse because you locked?
 
@GregorMcGregor I am building a shed
 
@JohanLarsson I dunno. I have heard of it. And I expect it to be more or less what you have there
 
user1804599
@Ven You can have multiple shared locks at once.
 
multiple shared cocks
 
Ven
why did you drink, sehe
 
9:13 AM
@sehe Not quite in two ways, what I have there is for input validation:
 
@rubenvb we were all 13 and nerdy once
 
Ven
so early in the morning
 
I told my good friend I was building a house, but she insisted that it was a shed
 
user1804599
The rules are like the aliasing rules in Rust.
 
@TheForestAndTheTrees Oh you crack me up.
 
9:14 AM
But I was not nerdy when I was 13
 
user1804599
With shared mutexes, there are three possible scenarios at any point in time:
1) 1 unique lock, 0 shared locks
2) 0 unique locks, 1 or more shared locks
3) no locks at all
 
Ven
@Elyse you're using "lock" in both cases. I want "read" to be callable from as many threads as one'd like. but I want write to prevent any further read until I'm done
 
> HelpfulNewb answers the question literally, giving BaffledNewb what amounts to bad advice, and missing an opportunity to help him understand the big picture.
Should be "And gives the helpful opportunity to miss the big picture", no?
 
user1804599
@Ven yes, that's what this does.
 
user1804599
You cannot acquire a shared lock when a unique lock is being held.
 
user1804599
9:15 AM
It will block.
 
user1804599
See four-line message above.
 
Ven
@Elyse ok, nice. i'll read a bit more on shared & unique
 
user1804599
You can have at most one unique lock at a time. You can have any number of shared locks at a time. You cannot have both a unique lock and a shared lock at the same time.
 
Ven
@Elyse ok, so I can't be write()-ing while someone is read()ing, is that correct?
it'll wait for the queries to be finished
 
user1804599
Precisely.
 
user1804599
9:17 AM
And vice versa.
 
user1804599
And only one write at a time.
 
Ven
seems perfect for my use case!
 
user1804599
If it turns out too slow look into ring buffers and ask @StackedCrooked.
 
Ven
yeah, that might very well be too slow, I can there's quite the overhead on the locking :/
 
@sehe ok, now i get it. It depends on syntax, you are right. Bu still you can compile it with any compiler. You just get an syntax error :D — clsbartek 56 secs ago
Watch out, guys - we have ourselves a class bartek over here
 
9:19 AM
@Ven did you try it?
 
Ven
"You can compile Ruby with GCCgo. It'll just syntax error"
@Default no. I just know by experience that mutexes incur a level of overhead, and that this function is a pretty hot callsite
@Elyse if only I had C++17 :[
 
user1804599
Boost has shared mutexes.
 
user1804599
boost::shared_mutex.
 
Ven
I'm on the docs. Will try to figure it out
@Elyse even then, shared_lock in boost is C++14 :/
 
user1804599
> BOOST_THREAD_PROVIDES_DEPRECATED_FEATURES_SINCE_V3_0_0 lol
 
user1804599
9:23 AM
@Ven why aren't you using C++14
 
Ven
@Elyse $platform doesn't support it
 
@Elyse Why is Earth not a perfect sphere?
 
user1804599
@Ven lol Windows
 
user1804599
@rubenvb Because it has mountains.
 
@sehe Wait, is Bartek gone again?
 
9:25 AM
@Elyse Mountains aside.
 
user1804599
@rubenvb Because it has hills.
 
are languages always backwards compatible
 
@Columbo missed the username?
 
@sehe Oh, he isn't. nvm
 
@Elyse local puny elevation differences aside.
 
Ven
9:26 AM
@Elyse oh no, I'd love to have windows.
 
user1804599
What is your platform?
 
user1804599
Mobile? :D :D :D
 
can i ask a mysql question
 
user1804599
Whatever buks your kake.
4
 
Ven
9:40 AM
@Elyse not even. some old shit the client uses
 
@fredoverflow and this is how it always feels:
@Christian.K thanks man! It worked. — sardeep lakhera 44 mins ago
 
I don't have it yet but am I going to have to learn another language?
 
user1804599
18
Q: How to check if C++ compiler uses IEEE 754 floating point standard

Rusty HorseI would like to ask a question that follows this one which is pretty well answered by the define check if the compiler uses the standard. However this woks for C only. Is there a way to do the same in C++? I do not wish to covert floating point types to text or use some pretty complex conversio...

 
user1804599
oh very nice!
 
I have the mysql jar library though
 
9:41 AM
@GettingNifty and thatsssss... bad?
 
No I guess I got that far.
 
user1804599
And it can be used in static assertions.
 
user1804599
> Copying a NaN may change its bit pattern.
 
You know that floating point actually floats the decimal automatically if you were to use a value scanner right? I never understood what people are changing it or converting it for..
Storing it as a double, I believe also masks it repeatedly.
 
9:47 AM
Trying to show you but I keep getting ddosed or something
they should just call it a temper tantrum
 
It's nice of you to consider that our confusion might have to do with poor explanation :) — sehe just now
 
Voluntary trepanation is a thing, and not for suicidal purposes.
 
hi @sehe
 
People are nuts.
@GregorMcGregor ikr
λ canonical $ read "[R, U]"
R U R' U'
λ
Woot.
 
@R.MartinhoFernandes wut
I suppose maybe for medical purpose (pressure relief?)
 
9:56 AM
@R.MartinhoFernandes for what then?
ISTR it was used for some illnesses back in time
But nowadays?
 
Claimed medical benefits (aka pseudoscience).
Increased brain blood volume and other such things.
 
Earlier today I made the mistake of going on reddit and on the frontpage was a link to wikipedia claiming that "Two copies of allele KJHKSHD make a terrible disease but 1 only gives protection against <list of many fatal illnesses">
 
And ofc everyone in the thread was like "oh wow that's amazing really blabla"
Then I read the wikipedia article and it said that these were only hypothesis with no experimental confirmation
10/10 would reddit again
can you please not post videos in here
particularly not twice the same one in a row
 
It didn't send
 
10:03 AM
are you a politician because you're blatantly lying
 
user1804599
@GregorMcGregor No, the other way around.
 
user1804599
GettingGeschifty
 
Not half as old but twice as dirty
Don't say that that's naughty
My bad alter ego he's so bad
 
yes, bad at programming
 
10:06 AM
also bad at trolling
 
I'm slowly GettingCancer
must be the asbestos
 
would you rather be nifty at GettingCancer?
how could they be so sure it's asbestos?
 
Causes asbestosis
Having asbestosis and cancer increase your chances
 
to about 4%
 
@chmod666telkitty Asbestos has been heavily studied and processes that cause harmful health effects are now well-known.
@chmod666telkitty "This is inconclusive evidence" doesn't imply an absence of conclusive evidence.
It's dishonest to imply so.
 
10:17 AM
It is like glass shards when air borne and your lungs can't break it down, just makes you more susceptible to cigarette smoke and cancer by like 900%, builds up fluid until you call the 1 800 number
 
13 per million
0.02 percent of all U.S. cancer cases.
 
@Rerito how's the yoga? asking for a friend.
 
lol, I just got a spam email titled "my REAL opinion on yoga"
 
10:34 AM
I can never be too sure when people are playing with me. Just like I can never be too sure whether people know I am playing with them.
 
hey bby u wanna play w/ me ( ͡° ͜ʖ ͡°)
 
very few are as blunt as you :p
 
@Mr.kbok yes
 
user1804599
I want my optimiser to use multiple return values when you return tuples and leave boxing to the caller if it needs it.
 
user1804599
Problem is polymorphic funcitons.
 
10:37 AM
dispatch through virtual verbols that reduce the overhead of swap-by-default bits
 
@GregorMcGregor cool, get on steam at 8 UTC
 
yes that's 4 am
one of those rare times i'm not at work
 
@GregorMcGregor best time to play
 
You must got a lot done at work
1k messages a week
impressive
 
10:41 AM
Actually no, very little
My productivity reaches levels that compare favorably to your IQ
 
stubble
 
is that an insult?
no its not.
ah, I see
 
user1804599
I can represent I/O actions by nullary Lua functions.
 
Nularry Wall
 
pls stahp
 
user1804599
10:44 AM
Then function unsafePerformIO(action) return action() end!
 
when I say sometimes I don't know whether people are playing with me, I don't mean people I know, like you guys.
My life is freaking strange
 
Well at least you know we aren't playing with you which is good
 
when I went through my old emails to clean my mail box up, I found a few that I don't know how to interpret ... maybe I should think less and just delete
 
try to change the encoding maybe
 
user1804599
Problem is if you don't know the definition of f. Maybe you did let f = x : (int, int) -> (int, int) before, where x : forall a, a -> a.
 
10:57 AM
@Mr.kbok So far it's good
Used it for programming mostly for now
 
user1804599
Maybe I'll only do the optimisation after inlining.
 
thanks for the enlightenment, your few words have massive increased my IQ by 50 base points, I think I can do primary school maths again </sarcasm>
 

« first day (1846 days earlier)      last day (3103 days later) »