« first day (2171 days earlier)      last day (2763 days later) » 

1:28 AM
RIP, I lost my deal for a $59 dollar a night bed since I didn't have hte money to order
It would ahve only been 179 dollars. Now the trip looks like it's gonna be closer to 300ish.
 
 
1 hour later…
2:55 AM
Hello....hello....hello....is there anybody in there? Just nod if you can hear me. Is there anyone at all?
 
nope
 
Floyd ^^
 
@Aaron3468 You are hereby awarded one utterly meaningless internet point.
 
I will cherish it forever
 
@Aaron3468 I believe the correct phrasing is more like: "I will cherish it deep in my heart until the end of ti....ooooooh look, shiny!"
 
3:00 AM
Here's the entire file with that fucked up placement new: github.com/Mysticial/DigitViewer/blob/master/Source/PublicLibs/…
 
@Mysticial So much pain and difficulty over an unnecessary pair of parens. Seems to me this would make a good subject for a blog post (if you're not so sick of it you'd rather just forget it immediately).
 
After seeing that guys talk in CPpCon 2015 about having an owning array, It hink I sort of agree with him.
array_view is a tad limit. Just like string_view is a tad limiting. What I want is an adapter that can take a container, and takes on the semantics of that container.
Which would allow me to decide between backing the array_adaptor with owning or non-owning container / range.
 
That's where it helps to conceive the container as an instance of an interface, and slicing/views as another instance of that interface
I know there are a few languages that can implicitly do that, and you can roll-your-own as well
 
3:17 AM
I guess I'm writing array_adaptor, then.
Or contiguous_adaptor.
 
Hey just a question
What is the difference between an adaptor and an interface?
 
@VermillionAzure An interface specifies a set of functions that can be called (and parameter/return types for each, etc.)
 
An adaptor (usually) means it connects two different things or makes one easier to use. Interfaces are the part of an object that you manipulate from outside (functions, fields, etc)
 
But an adaptor is a connection or naturalization of one object's interface to another's right?
hence, adaptor?
 
An adapter is a class that provides the specified interface on behalf of some existing class with the correct basic functionality, but not expressed in the way required by the interface.
 
3:21 AM
Yeah.
 
@JerryCoffin e.g. so if I have a DataSet class that is going to be fed into an analysis machine or functor that requires a PCADataSet, I need to use a PCADataSetAdaptor?
 
@VermillionAzure For example, a coffee machine's interface might expose a button letting you turn it on and off. An adapter might allow those buttons to automatically be turned on/off at certain times so your coffee is always ready in the morning
 
So it goes: DataSet -> PCADataSet -> InterfaceToFunctorThatNeedsPCADataSet
 
Slow down there, Java.
 
@Aaron3468 This sounds very much like some type of manager object
I should probably pick up Design Patterns by Gamma et. al.
I'm beginning to look up what Berkeley uses for their classes
 
3:22 AM
A rather simple adapter would be a monopod for a camera; it makes it easier to pan, but doesn't really change the fact that you hold the camera
 
@Aaron3468 Hey what school do/did you go to again?
 
I'm attending University of Alberta. Most of my coding experience comes from many years of working on hobby projects.
 
Interesting. Major?
 
@Aaron3468 Not (IMO) a very good example. A monopod significantly changes the camera's capabilities. An adapter is usually just about expressing existing capabilities in the form required by the interface.
 
OCaml is an adaptor around an algorithm that makes everything intensely more difficult to understand. :v
 
3:26 AM
@JerryCoffin e.g. int3ToTuple(int a, int b, int c) -> tuple<int, int, int> ?
I think I get it now
 
@JerryCoffin Fair enough. I don't really see it as significant, but its relative to perspective. You've got a very concise definition though
 
@VermillionAzure Yeah, that seems like a more reasonable example, other than the minor detail that adapters are more typical in inheritance-based than template-based code.
 
@VermillionAzure Another common one is expressing a binary tree as an array, or the other way around
 
Hm.
Perhaps I'll do something with this
 
@VermillionAzure I'm majoring in comp sci and operational research
 
3:31 AM
@Aaron3468 What's operational research?
 
arias and all that jazz
not jazz though
 
It's a field where you use mathematics, statistics, and programming to determine efficient ways for businesses to use their resources. For example, if a factory makes 10,000 sheets of copper a day, it's very costly to through away or recycle unused pieces after cutting them. An operational researcher can do number-crunching to determine the ideal way to cut with absolute minimum waste (or make a program to do this)
 
So I ran into one of these on display: newegg.com/Product/Product.aspx?Item=N82E16833320244
It scared the shit out of me at first.
 
Xeo
> AiProtection
That thing looks like a hivemind base.
 
@Xeo Exactly. And a giant spider.
 
3:39 AM
eh, you get used to what it looks like after a few mice sacrifices
 
Haha, I can see that. Pretty serious looking heat dispersion
 
@VermillionAzure Research into operational amplifiers.
 
@JerryCoffin kek
@JerryCoffin -R2/R1 DONE
 
@Mysticial I own one of those, it is mounted on a wall in front of me right now.
 
3:45 AM
Oh geez... I wouldn't be able to live with a giant spider next to me.
 
(btw my main complaint is that it has no mounting holes, I had to rig something up)
 
Why would it need mounting holes? It has fucking legs!
 
So it can dangle those legs off a ceiling (or, in my case, the wall)
 
Xeo
Meeting C++ and #CppCon share 14 speakers this year.
huh
 
When do you apply for Meeting C++?
@Mysticial 4/10 would try to crush in fright in the middle of the night.
 
4:02 AM
You can hear these bump in the night...
 
Xeo
4:15 AM
> So expect the announcement of future Meeting C++ conferences at the end of march. The call for papers then lasts about 6-8 weeks, followed by the voting.
 
Got it.
 
4:39 AM
Cripes I'm dirt poor again.
Traveling is SO expensive. =/
 
4:59 AM
where did you travel to?
@Aaron3468 scary stuff
 
5:28 AM
nobody ever talks about mario 2
 
@StackedCrooked why would we?
 
6:06 AM
good $ time gentlemen
@Mysticial hello mate
i'm into intrinsics again, this time around for the master thesis. sadly the x79 mobo is taking long time to ship, wish there was some avx here right now
@ThePhD experience as well impressions and meetings may be worth 1000x the money you've spent, though ofc that money doesn't grow on trees.. i'd say, earn even more and travel again :)
 
@iksemyonov muh wallet ;~;
 
but now you got smth to tell kids about :p
"when i was young and c++ was at standard 11, we got together one day to discuss variadic templates.."
@ThePhD ^
@Mysticial sadly you're away when i might ask you an asm question
 
6:42 AM
@iksemyonov who are you
 
6:56 AM
OCaml is driving me fucking crazy.
 
@ThePhD Then staph!
 
@wilx required for skoool
 
sounds like a compiler class
 
It is.
I just can't fucking read this code.
That's the most frustrating thing.
This is like when I first tried to learn Managed C++.
Agh. I need to read through more tutorials I guess.
Ffff.
 
A lot of really bad syntax structures came out of that time, for example TCL
 
7:06 AM
Like the syntax just isn't fucking clear.
 
@VermillionAzure just an msc student ^^
 
Even to someone who's already been a programmer.
It just does NOT make sense.
 
This is why nobody should use OCaml :-)
 
Hmm, when I have looked at OCaml, it did not seem that bad syntactically.
 
7:26 AM
@LucDanton rip
anet going down the drain
@LucDanton is that... a lens flare?
 
@iksemyonov what
what is that
 
Masters of Science.
 
7:43 AM
@VermillionAzure masters degree
2 years
 
@iksemyonov Yes, but in what?
MSC is ??
 
@VermillionAzure msc is masters of science or maybe master of science
in computer science - computer graphics
 
@iksemyonov I see
What does that have to do with, though?
Computer graphics?
 
yeah just called computer graphics, it's a little bit of everything
 
@iksemyonov What does that involve?
I'm looking to get a Masters and a PhD eventually so yeah
 
7:47 AM
actual cg like raytracing, sci viz, opengl etc., some software design, some optimisation, computer vision
but i live and study in Russia so
 
@iksemyonov Oh you're Russian?
 
may be helpful, may be not
i am
 
Prove it DOTA style
 
> cyka blyat
Haven't heard of this meme?
Just a joke XD
 
7:49 AM
never
but there is omre to Russian language than that, just in case
 
hilarious
 
not to mention how rich the foul language is
 
more american cliches please
 
@iksemyonov I'm just making a cheap joke in non-ironic irony
you can now slap me for faux pretentiousness
@iksemyonov But to continue
So you do 3D graphics algorithms and computer vision?
Have you done work with Vulkan yet
 
learning that, yes
 
7:52 AM
How is it?
 
nope, i've yet to learn opengl to be honest, i prefer stuff like raytacing and scientific viz
 
@iksemyonov "Scientific visualization"???
 
all sort of rasterization is a mystery to me, while i understand raytracing pretty well
yes, sci viz, google that up; basically VTK/paraview kind of stuff
 
@iksemyonov Cool!
I never knew it even existed
Why is that? ugh
I feel like... my undergraduate computer engineering/CS program is sort of behind...
Although our computer architecture just switched to ARM assembly from MIPS... I dunno
@iksemyonov What was your BSc in?
Or BS?
 
whatever, it was actually bs
in small letters.
 
7:55 AM
@iksemyonov Uh... okay...
 
wasted time, though it claimed to be about CS as well
 
I'm looking to go for a Master's in CS for compilers, static analysis, programming language design, that sort of thing
However I want to take a more psychological bent to it TBH
I'm not sure what to do here...
@iksemyonov Is it possible to do a Bachelor's at the same time as a Master's?
 
nope, only sequentially
 
@iksemyonov Oh no
 
it's quite limited
 
7:57 AM
I mean I'm going to get a BS in Computer Engineering
 
though you can change your path between bachelors and masters
 
But I want to get a MS in CS and then try to do some psychology or sociology clases on the times
I'm not sure what to do
 
understand what you want and what your'e gong to do in life and to get a living
plan 2, 5, 10 years - the further the more rough but still
 
@iksemyonov I already have a good plan of what I want to do
 
try to plan in family and such if applicable
 
7:58 AM
But I'm quickly learning that what I want to do requires a lot more than just one subject
 
better not what you want to do, rather what you want to be
how you see yourself in 5 years
 
@iksemyonov I know I have a plan with that already
 
Ven
Hi
 
@Ven Yes, I am from HI. How are you?
 
@Puppy Once I have read somewhere that they use nonsensical IPs in TV shows so that they do not accidentally use real IP address of some real person.
@Ell I did not get past the obvious election rant. About 25 minutes in. :)
 
Ven
8:08 AM
Between a rock and a C++ codebase.
 
@wilx What is the private address range
 
Ven
IP de classe C
 
8:33 AM
How the IETF are approaching security nowadays: /ht @RichSalz https://t.co/dtYmS18Wf9
^ What does this all mean? See the picture.
 
8:52 AM
I think someone is trying to argue for the ability to downgrade to obsolete protocol versions to do shady things that the protocol doesn't support anymore.
And by "trying to argue" I mean they simply put scare quotes around "downgrade" and "obsolete", as if that made them devoid of meaning.
 
Is there some sort of free face generator like those in games? I want to try to reconstruct a face I used in EVE ONLINE before they upgraded and lost all of it.
@R.MartinhoFernandes I see.
 
user1804599
@ThePhD show code
 
Ell
9:07 AM
@wilx there was no election rant
He briefly mentions voter behavior as a way of explaining the reaction to his c++ article when his audience is c programmers
 
@Ell Really? It seemed to me he was referring to elections... OK.
 
Ell
He was - but it does turn out to be relavent
 
@R.MartinhoFernandes It's the "magical" power of "quotes".
 
9:24 AM
HOLY SHIT
Dude why does my combinatorics formula work wtf
> Five distinct numbers are randomly distributed
to players numbered 1 through 5. Whenever two
players compare their numbers, the one with the
higher one is declared the winner. Initially, players
1 and 2 compare their numbers; the winner then
compares her number with that of player 3, and so
on. Let X denote the number of times player 1 is a
winner. Find P{X = i}, i = 0, 1, 2, 3, 4.
 
nwp
@VermillionAzure isn't it just 20% each?
 
@nwp No
Because the probability of future winnings depends on the past picking of the number
e.g. picking 5 for the 1st player means he wins all future rounds...
but that occurs only 1/5 of all the possible permutations
meanwhile, picking 3 means that P1 can lose on the 2nd round with a chance of 2/4 since 4 and 5 are above 3
 
nwp
ah, right, the players are not ordered by their number
 
@nwp The players are in a fixed order, but the numbers are random distributed
 
How can I erase this '«'
from a string?
 
9:34 AM
@QuicoLlinaresLlorens ???
 
when I do it appears a strange symbol like a ?
 
@QuicoLlinaresLlorens This is super vague
What encoding? Language?
 
Xeo
@VermillionAzure The numbers themselves are not limited to 1 through 5, right?
 
nwp
@Xeo you can just assume they are, doesn't actually matter
 
9:35 AM
@Xeo It doesn't matter. What matters is that the set of possible generated numbers is well-ordered, and I am specifically choosing that no two numbers are the same
And a well-ordered finite set is mappable to the natural numbers and is therefore countable and also finite
Therefore, I can just say they are 1,2,3,4,5 without changing the nature of the problem
 
Sigh.
S I G H.
 
nwp
So P(0) = 1/5 [you drew the lowest number] + 1/5 [you drew the second lowest number] * 3/4 [you didn't face the lowest number person first] + 1/5*2/4 + 1/5*1/4 + 1/5 * 0/4 = 0.5
that seems awfully high
 
@nwp Well, the problem defines X as P1 winning i times
So what is P(X = i) for {0,1,2,3,4}?
@nwp Yes, but it's true.
 
nwp
I got P1 winning 0 times with a probability of 0.5, doesn't seem right
 
@nwp But it's correct
 
nwp
9:41 AM
probabilities are weird
 
It's the same as choosing 1 out of the 5 numbers, denoting it as k, and then multiplying that by the number of remaining numbers in the set greater than k for k = 1 to 5
@nwp But you see the problem I'm encountering is that if I get the complement of one of the intermediate conditional probabilities, they can be negative
But it doesn't matter because the only time it occurs is when it's multiplied with a 0
 
val find : key -> 'a t -> 'a
I see 'a for returns and arguments all the time in OCaml
What the fuck is that display supposed to mean?
What the fuck is 'a?
 
And no fucking tutorial explains it
It's just
littered
through OCaml's type signatures
and function signatures
Maybe it stands for anonymous argument??
 
> A type variable name always begins with an apostrophe (the ' character):
 
9:54 AM
But not for bool, integer, float, etc.?
 
Ven
It's like generics
@набиячлэвэли nice try :p
'a list is like template<class a> class list
And '_a means it's a placeholder (first use will decide the type)
Monorphic thingies.
 
helo yes am monorf
 
@Ven interesting
So it's OCaml's form of denoting parametric polymorphism?
0
Q: Combinatorics/Probability - Why does this equation work?

VermillionAzure Five distinct numbers are randomly distributed to players numbered 1 through 5. Whenever two players compare their numbers, the one with the higher one is declared the winner. Initially, players 1 and 2 compare their numbers; the winner then compares her number with that of player 3, a...

Wanna help me?
 
Packed 600MB of documentation down to 17.7MB
 
@набиячлэвэли algorithm?
 
10:07 AM
@VermillionAzure tar + BZ2
 
@набиячлэвэли Ah, but it is slower I see
 
...remind me again why we can't specialize member functions inside class definitions? :|
 
Can anybody help me deletting strange symbols from strings plz?
 
Interesting... so today I've learnt about bzip and BWT
@QuicoLlinaresLlorens No idea what you're talking about
 
The problem is that I try to erase «, but it doesn't do it well
you can test by yourself what is my problem
in that repository is the code needed
 
10:19 AM
@VermillionAzure What is slower?
Can you stop deleting messages if they're a part of ctx :v
 
@набиячлэвэли BZ2, right?
Slower than LZMA and deflate?
At least that's what Wikipedia says
From what I understand it just does more
 
@VermillionAzure Slower than deflate for sure, what uses LZMA?
 
Ven
@Griwes MSVC can :P
 
@набиячлэвэли 7z
@набиячлэвэли It also appears to be the compression method used in certain repositories
 
Ell
it tends to be LZMA2 now
 
10:35 AM
@Ell Isn't that just a different implementation?
 
Ell
No
oh wait
> LZMA2 is a simple container format that can include both uncompressed data and LZMA data, possibly with multiple different LZMA encoding parameters. LZMA2 supports arbitrarily scalable multithreaded compression and decompression and efficient compression of data which is partially incompressible.
 
Ahhh so it's the container
just like gz i think
 
gunzip ftw
 
Ell
@VermillionAzure sort of.
 
@VermillionAzure Isn't gzip deflate?
 
10:43 AM
@набиячлэвэли yes but gzip is a format that just uses deflate
 
Ell
when you compress with LZMA2 you get a higher ratio because you can separate out bits which require different parameters - I think that's the idea anyway
 
user1804599
10:53 AM
 
user1804599
Fairer benchmark this time. :)
 
user1804599
From 3000 to 1500 µs is nice.
 
user1804599
@ThePhD it's a type parameter.
 
user1804599
val find : key -> 'a t -> 'a
// is like
template<typename a> a find(key, t<a>);
 
user1804599
Except that the body of find can't inspect anything about 'a. It's completely opaque. This makes it impossible to special-case types and therefore makes it easier to reason about all code that uses the function.
 
user1804599
10:58 AM
Fuck templates.
 
Xeo
Could do the same in C++ with an empty concept and enforced concept checking (i.e., only calls stuff provided by the concept)
Although in C++ you'd prolly have it as Regular at least, cuz move / copy n stuff.
 

« first day (2171 days earlier)      last day (2763 days later) »