« first day (1930 days earlier)      last day (3017 days later) » 

4:00 PM
well, it's a short s rather than a long s
but close enough
 
@thecoshman so you pronounce github as jithub ?
 
jizzhub
 
Ell
@KhaledKhnifer No
gist
dʒɪst/Submit
noun
noun: gist; plural noun: gists
1.
the substance or general meaning of a speech or text.
I'm awful at oneboxing
 
template<class MetaObjectSequence, template<class> class Criterion>
struct filter {
    template<size_t Size = MetaObjectSequence::_size> struct _count
    : add<Criterion<at<MetaObjectSequence, Size - 1>>, _count<Size - 1>> {};

    template<> struct _count<0>
    : integral_constant<size_t, 0> {};

    template<size_t Index, size_t Off = 0> struct _filter
    : eval_conditional<Criterion<at<MetaObjectSequence, Off>>,
        eval_conditional_c<Index == 0,
            at<MetaObjectSequence, Off>,
my new filter adapter
 
@KhaledKhnifer I don't say github the same as gist, gist is an existing world said with a more j sound like 'jar'
it's a soft g for gist, a hard cock g for git/github
 
4:05 PM
my years of learning English are for nothing .. were the letter pronunciations rules all made up by English teachers
 
Ell
also I just found the error
 
see, everyone is making progress
 
Ell
the error was I was passing the function back to itsself instead of the original callback
 
notice how people conflate <native language> teacher with literature teacher
to a non-english person, an english teacher teaches you english, so pronunciation, business situations, etc. to a english (or american) person, the english teacher teaches text analysis, story structure, poesy, art history, etc.
 
@Rapptz Fucking blew my sol Presentation out of the water (in the good way!). The framework is also looking amazing compared to all the others out there, even the other C++11 ones (Selene, lua-intf, etc.). /cc @Borgleader @jaggedSpire
 
4:21 PM
@ThePhD Link or it didn't happen
 
I also grilled Lundi a bit. Sorry kbok and Bartek ;~;
@набиячлэвэлиь It will actually be on the Video Network, but.... that's usually only available to people enrolled in the University. :<
 
@ThePhD The framework, dammit
 
@набиячлэвэлиь Oooh.
@набиячлэвэлиь Here you go.
The original repository is here, as Rapptz is the original creator.
I forked it to make huge changes, write the documentation, etc. as part of this class.
 
Stupid Czech music instrument shops they put stuff in their catalogs, you can buy them online, but you can't try them out. How the hell am I supposed to buy a piano like this? /cc @sehe
 
Ven
Stupid Cinch music instrument
 
4:25 PM
"Sorry we have it in our warehouse but there is no room for them in any shop" - "Can I come try them out in the warehouse" - "Sorry, not possible".
 
Ell
@ThePhD cool. Was it graded?
 
@ThePhD Awwwwwwwwwwwwww yisssssssssssssssssssssssssssssssssssssssssssssss :D
 
I guess there are popele who buy a € 5k instrument just like that
 
Ven
@AndyProwl you can try my piana
 
@ThePhD Will you keep working on it or are you done for now?
 
4:27 PM
@Ven why would I
 
@AndyProwl same here, mostly
@AndyProwl word of mouth, YT. Basically
 
shite
can't feel the keys on YT
 
:( so you combine info, indeed. It's not nice. There are some shops but they're rare, far, and don't have everything ready to play
 
maybe I should consider travelling to some big shop in some big city abroad just to try it out, and then buy it here
 
@grunk coliru.stacked-crooked.com/a/bef088aca081f1ac - I don't see it. Can you SSCCE it? Or can you confirm this exact thing breaks on your platform? (In that case, state your name, rank, OS and versions :)) — sehe 6 secs ago
@AndyProwl As if it they would have it.
As if you could make up your mind on the spot.
I can't
 
4:34 PM
trying it out would help a lot
as for not having it... really? I mean, even in (say) London or Berlin?
there must be huge shops there
 
Those are the two exceptions. But if you want to find them, they might have moved to the industry or suburbs
 
that wouldn't be a problem for Berlin
London... eh
 
At least, none of the big piano traders are in the big cities in the Netherlands anymore (I was shocked to find this out, because I went to walk there, 45 minutes, and both the shops had vanished)
 
this mission is getting harder every day
 
@AndyProwl I know you're not a fan of London, but if you need to be here for something, you're welcome to come crash on my sofa here
 
4:38 PM
@TonyTheLion :) Thanks
I will first try and see if I can find something in Berlin
if not, I guess London is my last chance
 
4:50 PM
sehe are you familiar with TypeConverter in .net?
 
@TonyTheLion <3
the only things that crash in your appt are ppl, not programs :P
 
@Borgleader You want to come crash on my sofa as well?
 
A bit of a detour ;)
 
<3
It sucks that nice people like @Borgleader are so far away
 
@ElimGarak Do any of these topics sound interesting to you? /cc @Borgleader @ScarletAmaranth
These are all the "rendering" papers we have to look at an maybe present on February 8th. I can pick one and present on it, but even after an initial reading I'm not sure if any are too exciting and wanted any initial thoughts or feelings you guys had?
 
4:57 PM
My feeling on it is that I'm clueless
 
If I don't pick one from these, the next 2 sections of the course are "Deformable Simulations" and "Fluid" and "Sound".
 
Ven
is "overloading ::to_string" the right way in C++ for users to propose to-string conversions? :P
 
Write adl::to_string and let that handle it.
 
@Ven "Right" may be open to interpretation, but it certainly seems like an obvious one.
 
namespace adl {
template <typename T>
decltype( auto ) to_string( T&& var ) {
    using std::to_string;
    return to_string( std::forward<T>( var ) );
}
}
Now you get std::to_string if it exists, or some adl variant if that exists.
 
Ven
5:02 PM
My question was: is that considered "the" thing to do?
 
It's the only standard-pluggable way to. The other way is working with operator<< instead.
Albeit operator<< is more questionable, since that's technically more "serialization" driven...?
 
@ThePhD Uff, generalization of lambert's reflectance model is probably the "mother of them all" :) (I'll look at the link that goes with it, give me a moment)
@ThePhD this would even fit right into my raytracer, it looks pretty nice (but I am biased, the entire thing is based just on lambertian's cosines)
@ThePhD also math seems simple enough, that's a plus; just the idea of the model is pretty interesting, I really like that one
 
@TonyTheLion <3
 
@Borgleader Steam claims you just started playing Portal 2?
 
@MadameElyse I'm afraid C++ evolves faster than I would be able to implement it ;)
 
5:17 PM
@TonyTheLion yeah, lunch break
 
@MadameElyse the former
 
@Borgleader ahhh that makes sense.
 
@ThePhD itd be nice if i could actually click on the links ;)
 
I think I know what I'm going to contribute next in github .. I'll write String Utilities for Arabic
 
@Borgleader Oh, sorry.
 
5:22 PM
@Ven if it comes to that I’d rather rely on ADL than pollute the global namespace
 
Ven
@LucDanton sure
 
@Borgleader dropbox.com/s/23kj2l23dxoxa8e/paper_list_rendering.pdf?dl=0 /cc @ScarletAmaranth @ElimGarak
 
blocked by work internet, well shit
ill just uh, type them in
 
... From dropbox?
For realsies?
 
I went trough the trouble of typing in the generalized lambertian model into my browser :P
 
5:24 PM
shall copy the others here too?
 
no thanks, ill read this one first :)
 
@Ell there isn’t a need for it, EqualityComparable usually covers both operators (as it should). It’s not so in the current standard but I’d chalk it up to carefully avoiding overspecification. I’d expect it’d change if/when we have actual concepts.
 
I remember Stepanov was proposing something along the lines of generating != from == and all that stuff for relational operators but the (somewhat retarded) committee said it was too restrictive; I can't imagine != being anything else than !(==) (and neither could Alex), but hey vOv
 
5:34 PM
@ScarletAmaranth expression templates is the usual culprit
big_sparse_matrix[foo != bar] sort of deal
 
yeah but this just supports to hack-ey nature of the entire template machinery :-\
I am slowly getting tired of writing C++ :(
 
@ScarletAmaranth I’m fairly sure it’s the same in other languages which support that sort of thing
 
@ScarletAmaranth Write Rust instead
 
yeah maybe "that sort of thing" is just plain wrong :)
 
eeeeh maybe I spoke too soon, no reason you can’t have a vectored/broadcast ! that makes !(x == y) behave as expected :/
@ScarletAmaranth why?
 
5:37 PM
I wonder how std::rel_ops got into the standard
 
@milleniumbug in my opinion the committee has a soft spot for certain forms of cleverness :/
 
Having boost::operators in the standard would be way better
 
@LucDanton initially, I had this vision that sacrificing some clarity by allowing hacks is a spiffy idea (to, say, get some expressivness), then I started minding some bullshit like irreflexive operator==, recently I've been starting to mind basically all inconsistencies I even artificially create in my head even if they don't really occur noramlly in code
 
@ScarletAmaranth uh when I said that sort of thing I meant indexing a matrix by a matrix of bools
 
@LucDanton oh ^^
 
Hello, Lounge.
 
if I license my work with Apache License 2.0, can someone include my library in their project & NOT be forced to publish their source code or license their work with a compatible library or anything .. anyone ?
 
Aaaaaaah, and now I'll have to benchmark merging algorithms.
New project incoming: cpp-merge.
 
@Morwenn Nice! I've already decided what to do next .. Arabic String Utilities
 
5:49 PM
That sounds interesting but hard.
 
@Morwenn well, I'm an Arabic native speaker
 
@KhaledKhnifer that's not why it's hard
 
Yeah, but are you a native UTF-8 speaker?
 
FUCKICODE
 
@Morwenn what's hard about UTF-8 ?
3
 
5:53 PM
Famous last words :)
 
What isn't?
Just ask robot.
 
well I'm not gonna go over the whole Unicode things, I'll be looking into ones related to Arabic
 
user1804599
UTF-8 is incredibly simple.
 
Said nobody ever.
 
user1804599
It's a simple serialisation format for sequences of code points.
 
5:55 PM
UTF-8 is ez pz
 
user1804599
You can implement encoders and decoders in few lines of code.
 
FUCKICODE sucks
 
You know you're fucked when you've got 4 different ways to compare strings.
 
user1804599
UTF-8 doesn't give a shit about string comparison.
 
user1804599
Are you confusing UTF-8 with Unicode?
 
5:57 PM
by the way also .. trim(string) is not really a simple thing to do in Arabic :)
 
@KhaledKhnifer If you're not sure what the license means, you probably don't want to use it. Lacking a specific reason to do otherwise, I'd use the Boost license.
 
@MadameElyse Probably confusing it with how we use it.
 
user1804599
There are only two places where you want to use UTF-8: when converting text to bytes, and when converting bytes to text.
 
@MadameElyse Three (also storing or transmitting bytes that represent text).
 
user1804599
If you have to deal with UTF-8 elsewhere, you are bad at abstractions, and therefore you are bad at programming.
 
6:01 PM
I'll be working on C++, on which I'm going to probably use the wide char stuff & string traits
 
@ThePhD My top 3: "A Markov Chain Monte Carlo Technique for rendering scenes with difficult specular transport", "Energy redistribution path tracing", "Optimally Combining Sampling Techniques for Monte Carlo Rendering"
 
@Morwenn too ambient to be music for me
or well, something that I actively listen to
 
There's no such thing as « too ambient ».
 
@Morwenn 4′33″?
 
6:08 PM
@orlp The orchestral version is so great.
 
@Morwenn beautiful music .. playing music can never be perfect by robots, the hands of the musician almost seem to cast their soul & emotions into it
 
@KhaledKhnifer Yeah, it's something you need to feel.
 
user1804599
 
@Morwenn that actually is how I resolved my problem with Autism, it opened the door to empathy
 
6:17 PM
Ew~
 
@Morwenn what? it's good
 
I wonder whether there's anything I like about it :/
 
this one then?
beautiful
 
Ell
6:30 PM
oh awful :V
 
That one time when you want the one-past-the-end iterator but you work with a forward_list.
 
I've ended up with FreeBSD license .. which only require attribution
 
user406009
@KhaledKhnifer The four clause one or the newer ones?
 
user406009
The four clause one is a bad idea.
 
@Lalaland actually I'm revising currently, this website is quite useful choosealicense.com/licenses
 
user406009
@KhaledKhnifer Yeah, that site only has the newer BSD ones.
 
Ell
there is a four clause one?
 
user406009
@Ell The main problem with that design is that if one side gets clogged up, the other side will also be.
 
user406009
And it is somewhat difficult to balance production/consumption.
 
@Lalaland I think I'm gonna go with MIT, same stuff & simpler
 
6:49 PM
@KhaledKhnifer Now, you're getting somewhere (specifically: getting really close to the Boost license).
 
@Lalaland BSD is meh
 
what Boost license has to offer ?
 
if you include a BSD library into your program your binary must produce the license in some way
 
@orlp reminds me of Victor Borge
 
if you're on chrome
chrome://credits/
 
6:52 PM
@KhaledKhnifer Simplicity (among other things). boost.org/users/license.html
 
@orlp one of the rare cases where the shred is an obvious improvement :)
 
@sehe yeah it's beautiful
really complex rhythms, dissonance and microtonal music
 
user1804599
> Int63 returns a non-negative pseudo-random 63-bit integer as an int64.
 
user1804599
y u no 64-bit integer as a uint64
 
why 63 bit, why not 64 ?
 
Ven
6:58 PM
github.com/lampepfl/dotty/issues/897 ITT Scala doesn't learn from its mistakes, and tries to reinstate auto-tupling
 
@MadameElyse A better (IMO) question would be why not an Int61 that returns a 61-bit pseudo-random integer as an int64. The advantage here would be (much like with 2^31-1) that 2^61-1 is a prime.
 
@MadameElyse like int64 doesn't specify that there will a sign bit, also if it's only a 63 bit randomly generated, then who set the sign bit
 
user1804599
	var bytes [16]byte
	for i := 0; i < 4; i++ {
		quartet := rng.Uint32()
		for j := 0; j < 4; j++ {
			bytes[i+j] = quartet & 0xFF << j
		}
	}
	bytes[12] = 4
	bytes[16] &= 0x1011
 
user1804599
Is this a good UUID v4 generation algorithm?
 
7:08 PM
no
bytes[4*i+j]
 
user1804599
Oh, right. :P
 
user1804599
I should do i < 16; i += 4.
 
and quartet & 0xFF << j is just messed up beyond repair
 
user1804599
Why?
 
ok, what if j = 1
 
7:09 PM
Wow, I just fixed a bug I had for a while and I don't understand how my testsuite managed not to catch it.
 
user1804599
Then bytes[i + 1] = quartet & 0xFF00.
 
wtf internet
@MadameElyse ok, we're getting somewhere
what is the range of the expression quartet & 0xFF00
and how are you going to fit it in a byte?
 
user1804599
Oh right I should (quartet >> j) & 0xFF.
 
well
that brings us to the second bug
0xFF << 1 == 0xFF00
really?
 
user1804599
0xFF << 1 == 0xFF00 is pretty sure true.
4
 
7:12 PM
what is 0xFF in binary, mate?
 
user1804599
Oh, of course.
 
star for shame
 
user1804599
It's a bitshift, not a byteshift.
 
user1804599
Ah, wait, I got it.
 
bytes[i+j] = quartet & 0xFF << j
legendary line ladies and gentlemen
3 bugs on 1 line
 
user1804599
7:13 PM
		bytes[i+0] = quartet & 0xFF
		bytes[i+1] = quartet & 0xFF00
		bytes[i+2] = quartet & 0xFF0000
		bytes[i+3] = quartet & 0xFF000000
 
that's 4 bugs
 
user1804599
How?
 
we've already been over this one 1 minute ago
 
user1804599
idgi
 
4 mins ago, by orlp
what is the range of the expression quartet & 0xFF00
4 mins ago, by orlp
and how are you going to fit it in a byte?
 
7:14 PM
@MadameElyse Perhaps bytes[i+1] = (quartet & 0xff00) >> 8; ?
 
user1804599
Oh, right.
 
@MadameElyse no... 100
 
mate what are you drinking
 
user1804599
		bytes[i+0] = quartet & 0xFF >> 0
		bytes[i+1] = quartet & 0xFF00 >> 8
		bytes[i+2] = quartet & 0xFF0000 >> 16
		bytes[i+3] = quartet & 0xFF000000 >> 32
 
that's 4 bugs
 
user1804599
7:15 PM
How?
 
precedence
 
user1804599
& and >> have the same precedence.
 
mate you should just give up by now man
not in C or C++ at least
 
0xFF is all ones, a single bit shift... oh wait o_0 it's not 0x100 either
it's 0x1FE
 
maybe in whatever language you're writing it is
either way, it's still 4 bugs
 
7:16 PM
isn't 0 & 1 -> 0 ?
 
and we've already been over this one too
 
user1804599
Precedence    Operator
    5             *  /  %  <<  >>  &  &^
    4             +  -  |  ^
    3             ==  !=  <  <=  >  >=
    2             &&
    1             ||
 
/shrug, I assumed C/C++ operator precedence
 
I everyone afraid of barteks?
..umm.. brackets?
 
@MadameElyse either way, still 4 bugs
4*i, not i
 
user1804599
7:17 PM
No, I already did i < 16; i += 4.
 
ah
 
^^ Interesting stuff!
 
k
 
user1804599
		bytes[i+0] = byte(quartet >> 24)
		bytes[i+1] = byte(quartet >> 16)
		bytes[i+2] = byte(quartet >> 8)
		bytes[i+3] = byte(quartet >> 0)
 
7:18 PM
well now you've swapped byte order
 
Ven
:^)
t'as une grosse bit bébé
 
user1804599
Thanks.
 
user1804599
@orlp I don't care; the data is random.
 
@MadameElyse You can also use compiler builtins for that.
 
user1804599
There is no memcpy in Go.
 
7:19 PM
bytes[4*i+j] = quartet >> (8*j);
 
__builtin_bswap16 , __builtin_bswap32, __builtin_bswap64
 
assuming your language has implied truncation
 
user1804599
Hmm, there is unsafe pointer casts. :P
 
user1804599
var ints [4]uint32
for i := 0; i < len(ints); i++ {
	ints[i] = rng.Uint32()
}
bytes := *(*[16]byte)(unsafe.Pointer(&ints))
bytes[12] = 4
bytes[16] &= 0x1011
return bytes
 
every cast is safe
 
7:22 PM
Are the only ways of dealing with variadic parameters recursion or list initialization?
 
user1804599
Hmm, bytes[16] is out of range.
 
what's list initialization?
 
user1804599
Oh, of course.
 
@MadameElyse use a stick
 
user1804599
Also 0x1011 is stupid.
 
user1804599
7:25 PM
0x means hexadecimal, not binary.
 
@orlp So what
 
Xeo
Fuck.
It's half past eight and I haven't eaten anything all day
And it's now way too late to prepare some chili
 
There's not many things that don't require license text to be included
@Xeo womp womp
 
@StackedCrooked by that I meant passing a braced list for some container
 
Ok.
@VillasV you can also unpack with integer sequence
 
7:33 PM
@VillasV no, check out indices and fold expressions
 
user1804599
Implicit repetition in Go's printf when passed arrays or slices is really cool.
 
user1804599
func (u UUID) String() string {
	return fmt.Sprintf("%x-%x-%x-%x-%x", u[0:4], u[4:6], u[6:8], u[8:10], u[10:16])
}
 
Xeo
I need food. What do.
 
user1804599
@Xeo Vla.
 
Xeo
No
 
user1804599
7:34 PM
Then starve to death.
 
I was going to try to implement a variadic function object to sum matrices in a single for loop, but I'm not sure that's possible.
 
@Xeo Burrito.
 
user1804599
I'm tempted to name a function that records records "RecordRecord".
 
user1804599
func RecordRecord(db *sql.DB, record *record.Record) error
 
7:36 PM
@StackedCrooked oh, the indexed with inheritance looks good
 
Got Diagnosed with cholecystitis...Congratulate me.
 
Congrats
:P
 
Well I presume you familiar with this diet challenge ;(
 
@Xeo it's 2:50pm here and i've eaten a full pizza & caesar salad
yay for amerifat
 
thanks obama
 
7:50 PM
It's almost 9 p.m. and I have eaten two small slices of bread with camembert, three cookies and a big slice of cake.
 
I had pad siew for lunch.
 
sturdy potato
 
@EtiennedeMartel That looks rather tasty.
 
user1804599
7:54 PM
hstore is great
 

« first day (1930 days earlier)      last day (3017 days later) »