« first day (1984 days earlier)      last day (2965 days later) » 

Xeo
5:00 PM
1 message moved to bin
Read The Rules™ or you will have bad luck for the next 30 minutes.
14
 
Brussels under attack. Obama on a tourist trio in Havana with his family. Says it all.
Head over there for lols and burns. And fox :)
 
We have those two files that define the same macros, but differently. Inclusion order matters. Of course shit hits the fans when I'm the one doing the merge.
 
@sehe Jesus fuck.
@Xeo Add "This applies every time you read or not read this message."
 
Xeo
@R.MartinhoFernandes nah, that'd be mean. Also, too long. I think.
 
> LINK : fatal error LNK1000: unknown error at 0047D429; consult documentation for technical support options
 
5:04 PM
lol
 
Xeo
@slaphappy gg
 
Error codes must die.
 
@marcthiessen It says Obama can't predict specific future events or travel through time. Can you?
lol
 
user5428937
why was my message removed ? i need ask
 
user5428937
*it answerd
 
5:05 PM
try asking in the ncurses room
 
@sehe He's a special kind of stupid isn't he?
 
He's affiliated to Fox News.
 
T460p to be released on April 5th, apparently. Hmm. I wonder how many times that'll be changed again.
 
user5428937
oh i didnt know there was one though. This is a question though about how to link ncurses with gcc.
 
@slaphappy C nurses? Where :)
 
5:05 PM
so the "paid to be stupid" kind
 
@Borgleader How can you tell? :D
 
@slaphappy The "our political beliefs say that smearing onto others is more powerful than not hiding stupidity".
The sheeple will think you can't be stupid, because you don't even try to hide it. #TrumpEffect
 
@AaronGill-Braun guess what?
 
user5428937
wga
 
user5428937
*what
 
user5428937
5:07 PM
what is?
 
up arrow edits
 
lol it's literally there
 
@AaronGill-Braun Then ask it on the Questions part of the site and use the and tags or something.
 
user5428937
thanks
 
;_;
 
5:08 PM
> LINK : fatal error LNK1105: cannot close file '專ࢳ斘ࢳork\git\rwa-log
it gets better
 
Xeo
stop before it's too late, you already got zalgo knocking on your door.
 
Ven
fuck I hate debugging deadlocks in C++.
 
s/ in C++// ?
 
looks like compiler expletives to me.
專斘ork
 
> ࢳork
 
user406009
5:12 PM
@Ven Log everything.
 
user406009
Everywhere
 
Ven
right. I'm gonna get through it, I swear.
 
@TonyTheLion Yeah, I'm from BE
And no I wasn't near the terror
My brother was on his way there though
Was scary for a minute this morning. Called him, wasn't so scary anymore.
 
ah ok
 
5:28 PM
He did turn around :o
 
@Ven I believe in you.
 
Ven
Got it \o/.
why the fuck does my mysql restart automatically.
fuck you os x
 
This game turns out to be a bit more challenging than I had expected.
 
user1804599
Hi!
 
user406009
5:44 PM
@ReousaAsteron That's how games always go.
 
user406009
Dealing with all that state can be hard.
 
Hello all
 
@TonyTheLion ...and apparently you weren't on one of your (rare?) visits back to the mainland either.
 
@Lalaland It's a pretty simple game though, it's just that I'm never sure which way to go when implementing something new.
It's like there's all those ways I could go
I guess it comes with experience
 
@JerryCoffin Indeed. I don't go near Brussels anyway when I go to Belgium.
 
5:47 PM
@TonyTheLion Yeah, cause it's an armed camp, right?
 
@Lalaland It goes like 1. Should I make it an array? Nah just two ints. 2. Wow I need more ints, shoulda made it an array.
 
@R.MartinhoFernandes It's worse than Bagdad, I swear!
 
@R.MartinhoFernandes A slight exaggeration by Mr Trump.
 
It's a warzone!
 
In normal circumstances, not today
 
5:49 PM
We should drop (military) bombs on it until all them terrorrists are gone!
ugh
sorry
Now, I agree there is a problem in some parts of Brussels
But it's no worse than Paris, London or similar and larger sized cities.
 
And you can't solve the real problem at a city level.
 
user406009
@ReousaAsteron What type of game are you trying to make?
 
Integration, true integration, of different cultures starts everywhere.
 
@TonyTheLion Trump exaggerate? Couldn't possibly be!
(Well, to be honest, exaggeration is pretty rare for him. Why exaggerate when you can tell lies with no relationship to the truth at all?)
 
5:50 PM
And is an as of yet unsolved problem.
 
@Lalaland cplusplus.com/forum/articles/12974 Dungeon crawl one
I was storing the X`Y of the player in two ints, then added two more for previous positions, then I thought I could use std::map to keep them all sorted out
 
my promotor's feedback on my public thesis defence presentation: you need to make it more formal. Small puns and jokes not allowed.
That man is so friggin' dry.
 
He's the joke
 
@Lalaland TicTacToe was probably harder though, took me a while to figure out how to make that AI work lol.
 
His presence in a room makes your skin crumble.
Why did I choose him four years ago?
 
5:53 PM
@rubenvb Apply low-power hits with a tiny hammer
 
@JerryCoffin The worst part is that people fall for all the nonsense he spouts
 
He'll fall apart
 
I'll just bear with him for 2 more days.
Then it's all over
over
 
@TonyTheLion You mean Mr Mrs. Drumpf?
 
@TonyTheLion Yeah--this I truly don't understand (but probably at least in part because I don't want to).
 
5:54 PM
Mr. Schtrumpf
3
Why has this joke not been made yet?
 
user406009
@TonyTheLion To be fair, his positions do tend to benefit his supporters.
 
user406009
Free trade and NAFTA for instance do have some really harmful effects for some people.
 
Oh my god it's brilliant
 
@Lalaland Yes, but he also changes his positions more often than his underwear
 
I wish I had some level of photoshop skill
 
user406009
5:55 PM
And illegal immigrants do suppress wages for lower income workers.
 
Anyone feel like smurfing trump's face on a schtroumpf?
aka smurf
Anyone smurf like smurfing Trump's face on a smurf?
ANYONE???
 
user406009
@TonyTheLion Yes, but I think it's important to understand that some people are voting for him because he is the only one showing even an iota of interest in the plight of poor, relatively uneducated people in the face of globalization.
 
user406009
People aren't just voting for his hair.
 
@Lalaland He does at least attempt to address a few points that most other (at least federal-level) politicians have apparently completely ignored. Unfortunately, he mixes ever ounce of sense with several tons of nonsense and dreck.
 
I would have hoped people aren't just voting for his hair
 
5:57 PM
You know what makes Krita so good?
Selection can start outside the canvas.
 
user406009
I'm just saying that the "solution" for dealing with Trump is to deal with the issues he brings up.
 
I'm not saying he has no points at all, he does have some valid points, but he also spouts a whole load of nonsense, hatred and bigotry in between the few things that he has said I can agree with
 
user406009
People without college educations are losing real wages.
 
user406009
Their standard of living is falling year by year.
 
user406009
This sort of thing needs to be dealt with.
 
user406009
5:58 PM
That's how you convince people to not vote for Trump.
 
I fail at listening to Trump. I should. Maybe then I could rightly go against what he said.
 
Hmmm, using std::map vs using std::vector + enum?
 
@Lalaland All quite true. They've basically fallen in the crack, so to speak--the Democrats like to deal with welfare cases who've been flat-broke for generations now. These, however, are people who've been gainfully employed and either lost their jobs or had to move to relatively menial labor, and (quite understandably) don't like it--but also don't want to become welfare cases, or anything similar either.
 
@ReousaAsteron is this a question
 
@ReousaAsteron Doesn't seem like a sensible question.
 
6:02 PM
Oh, nvm then o-o
 
user406009
@ReousaAsteron It doesn't really matter. Use the std::map for the sake of simplicity.
 
@ReousaAsteron vector+enum class will be a cast-fest, plain enum has other notational drawbacks.
But yeah, map is handier.
Then you can have holes in the sequence.
otherwise you'd need to check for empty value or something.
Use an unordered_map!
 
Thank you!
 
hashing on int's should be like, a no-op, right?
 
user1804599
@rubenvb No.
 
6:03 PM
@ReousaAsteron A vector is like an array--it stores a number of items, all of the same type. A map stores a key of some arbitrary type (as long as they can be compared) and with each key, some other data (of essentially any type you want).
 
user406009
@JerryCoffin You can use a std::vector and an enum as a sorta hacky version of a map when the keys are fixed and small though.
 
user406009
Which is what he is thinking of doing.
 
user406009
(Although with fixed keys, you can also use a std::array)
 
user1804599
enum class E {
    A = std::hash<int>()(0),
    B = std::hash<int>()(1),
    C = std::hash<int>()(2),
};
 
user1804599
This is great, assuming (lol) constexpr hash.
 
user1804599
6:05 PM
Then std::hash<E>() can be the identity function.
 
@Zoidberg it could be, no?
 
@Lalaland Not sure I follow what you're saying. Do you mean a vector of structs with some member of the struct (an enum, in this case) being used as the key?
 
user1804599
If you want shitloads of collisions, sure.
 
user406009
@JerryCoffin Yes.
 
@Zoidberg wait, what?
std::hash returns a size_t
that value is equal for equal inputs, right?
 
user1804599
6:06 PM
Yes.
 
user406009
@rubenvb If you directly use the integers, it is possible that you may run into bad patterns.
 
user1804599
The value is not necessarily equal to the input.
 
@JerryCoffin Basically std::vector<int> position and enum { posX, posY, posZ }; the enum serves the purpose of navigating the std::vector without having to memorize which index serves what purpose.
 
user406009
If you hash the integer keys, you can have good performance regardless of input.
 
user406009
(Or at least, the bad cases are much harder and less likely to construct)
 
@Lalaland what do you mean by "bad patterns"?
 
wtf onebox for gists
 
user406009
@rubenvb Integers that people use are not randomly distributed.
 
user406009
Like if they are id numbers, they might start from some high index and then increment one by one.
 
who says a std::hash needs to be randomly distributed?
 
6:07 PM
@ReousaAsteron Okay--that can certainly work (but mostly requires that you keep the enumeration contiguous).
 
user406009
@rubenvb Random distribution helps because it spreads the load across all the hash buckets.
 
@Lalaland how does that help anything at all?
 
user406009
@rubenvb Hash maps perform badly if many keys are accidentally mapped to the same bucket.
 
@JerryCoffin It's probably not worth it since I'll only have a few elements, I can only imagine std::map has horrible performacne compared to std::vector or std::array on the large scale though.
 
@Lalaland but let each bucket be one entry and... done?
 
user406009
6:10 PM
@rubenvb You get the bucket by taking a modulus of the hash.
 
From wiki: "Ideally, the hash function will assign each key to a unique bucket""
 
@rubenvb That's just a horridly inefficient bitmap (i.e. not using bits).
 
user406009
@rubenvb But you can't do that because there are more possible keys than buckets.
 
user406009
By the pigeonhole principle, there must be some overlap.
 
user406009
Better to have that overlap be random than a function of the input data.
 
user406009
6:12 PM
For a lot of things, worst case time is an important factor.
 
@Lalaland how does mapping a 32-bit int to a 64-bit size_t produce any overlap?
Note: I don't know how a hash map works.
 
user406009
@rubenvb There aren't actually 2**64 buckets.
 
@rubenvb You want 2^64 buckets?
That's going to take more memory than your machine has, even if each bucket is 1-bit.
 
user406009
@rubenvb How a hash map works is you do hash(value) % num_buckets to get the bucket for the value.
 
Is it always such a simple operation?
 
6:14 PM
@rubenvb It's always some form of "select a certain number of bits from the hash".
 
it's not necessarily modulus
 
ok
 
So the hash bits should ideally have equal variation.
In cryptography, the avalanche effect refers to a desirable property of cryptographic algorithms, typically block ciphers and cryptographic hash functions. The avalanche effect is evident if, when an input is changed slightly (for example, flipping a single bit) the output changes significantly (e.g., half the output bits flip). In the case of high-quality block ciphers, such a small change in either the key or the plaintext should cause a drastic change in the ciphertext. The actual term was first used by Horst Feistel, although the concept dates back to at least Shannon's diffusion. If a block...
 
@milleniumbug inb4 multiply by pi and take seventh, nineth, fourth and sixty-third bit
 
so the ideal int mapping would depend on the integer input.
 
user406009
6:15 PM
@rubenvb Yeah, but something which looks random is usually good enough.
 
So, a linear congruential rng seeded with the value would work?
 
user406009
@rubenvb Yep. In fact that's a common hashing style of technique.
 
ok
TIL
kinda
now I need to get back to my presentation before time runs out
fuck it's already past 7
3-4 hours including dinner
aaaargh
I'm out.
 
user406009
@rubenvb Good luck!
 
cya
 
6:17 PM
A perfect hash function for a set S is a hash function that maps distinct elements in S to a set of integers, with no collisions. A perfect hash function has many of the same applications as other hash functions, but with the advantage that no collision resolution has to be implemented. In mathematical terms, it is a total injective function. == Properties and uses == A perfect hash function for a specific set S that can be evaluated in constant time, and with values in a small range, can be found by a randomized algorithm in a number of operations that is proportional to the size of S. Any perfect...
 
@набиячлэвэлиь integer_part(fractional_part(k*std::hash<T>()(key))*hash_map_capacity) with k being a known constant
 
@rubenvb Any (meaningful) hash has to depend (solely) on the input--that is, the same input must always produce the same result from the hash function.
 
user406009
@JerryCoffin You can always add some tuning parameters to the hash function, store them in the hash map, and pass them in on each invocation.
 
that would essentially mean creating new hash functions at runtime
 
@rubenvb Not for most types of keys, no. A linear congruential generator requires that you have the ability to multiply the key by some number. Trying to multiply a string doesn't make much (any?) sense. I suppose you could treat your string as a big-num and multiply that by the constant for your LC PRNG, but it would be a pretty ugly way to handle things.
 
user406009
6:27 PM
@JerryCoffin Well, I think he was talking about the idea that multiplying and then adding makes some psuedo random output.
 
@Lalaland As long as it remains permanent for any particular hash table, sure.
 
Today at work: « lol, I'm busy, find some tickets you understand and fix them ».
Quality supervision.
 
@Lalaland Yes, if you start with something that can (easily) be multiplied. In many cases you don't (and in some cases, there's no obvious conversion to a type that does support multiplication either).
@Morwenn Staying out of your way and letting you get the job done. That's actually a skill many supervisors never seem to learn.
 
@JerryCoffin I agree, but the project is huge and I hardly know how it is organized.
When you have to crawl among ~400 open tickets and you mostly don't understand what they are about, you generally want a bit of guidance before diving into nowhere :p
 
@Morwenn I'd place at least 3:2 odds that in the end, it's mostly not organized (big projects rarely are).
 
6:31 PM
There is some organization at least.
> Showing 362 changed files with 770 additions and 9,292 deletions.
 
remove warnings :P
it's usually a good way to get started imo
 
@slaphappy It's JavaScript.
 
ah lol I forgot this isn't a c++ job
well, you still have a checker right?
 
Not sure.
Anyway, it was a mere blitzrant. I have to go, and cirrectly organizing the interface with ExtJS is far more bothersome than picking random tickets to solve.
See you lateR.
 
user1804599
6:48 PM
lol extjs
 
Ven
^
 
19:53
waiting for the build to finish so that I can deploy and go home
visual studio hangs
fml
 
user1804599
Yummy ice cream
 
I asked for "Build" but it's doing "Clean" for some reason
some asshat added the clean step as pre-build step
 
nice :v
how long does a full build take? :/
 
6:57 PM
it depends
The official source code repository is owned by another team, who sucks real bad at managing this
 
Ven
Y u no go home?
 
So to build their stuff you need 1h15m
 
Ven
Go home
 
We made our own build system in parallel, so our builds take 45min
 
Ven
Your gf is waiting
 
6:59 PM
But to build official versions, you need the official way of building, so you wait
 
user1804599
genderfluid
 
who
@Ven Massive regression tests are scheduled for tonight. Slots are scarce, so I need to submit by binary now
 
user1804599
gf
 
freedom
I am now on holiday
 
how
 
Xeo
7:05 PM
@Puppy I'm not :(
 
the deployment script is broken
fuck that shit
 
Xeo
although it's only a 4 day week, so just tomorrow and Thursday left
that's something
also 4 day weekend
 
I am not at work again until next Thursday
 
Me neither. I learnt today that Friday was target and hence off
I would've felt pretty bad showing up to work only to see that no one was here
okay now I fixed it, let's wait for the 2.5kb/s transfer on the nexus
 
7:30 PM
heads up all, rewriting everything in Rust is the new hotness
 
user1804599
SQLite is one of the most used libraries on the world and it has only a single open bug report.
 
user1804599
Which is about a mistake in the documentation.
 
so how come that's not fixed yet??!
:p
 
user1804599
Not because it isn't written in Rust.
 
user1804599
SQLite is what happens when you infuse competence with discipline.
 
user1804599
7:44 PM
Simple API, 100% branch coverage, power failure tests, race detectors, Valgrind, it has it all.
 
If only it had a database there too
 
What do you mean by 100% branch coverage?
 
every branch is 100% commits
 
As opposed to git branches tracking non-commit objects?
 
user1804599
@Prismatic all branches are executed. Coverage tools typically measure lines and so wouldn't catch g() in f() && g() when f() is false.
 
7:56 PM
So they have coverage of every single possible code path? That sounds cray-cray
 
Check this out:
0
Q: boost::adaptor::filtered core dumps with boost::range_detail::default_constructible_unary_fn_wrapper "Assertion `m_impl' failed"

capsI get an assertion failure inside boost::range_detail::default_constructible_unary_fn_wrapper when I run this code. The assertion appears to be checking that the functor has been initialized inside the filter object. #include <boost/range/adaptor/filtered.hpp> #include <iomanip> #include <iostream

 
@Prismatic If one uninformed person asking a silly question makes the subject of that question "the new hotness", then SO nominates C#, C++, JavaScript, PHP, Java, Python, jQuery, etc., as "the new hotness" hundreds of times a day.
 
It wasn't the question, it was the I heard that Rust's security is nearly invincible
 
@Prismatic Okay, substitute "idiotic, unsubstantiated claim". Makes no difference.
 
You just don't get it Jerry
 
7:59 PM
@Prismatic I guess when it comes to "the new hotness", I ever did.
 

« first day (1984 days earlier)      last day (2965 days later) »