« first day (1497 days earlier)      last day (3455 days later) » 

4:00 PM
@thecoshman They have crappy bandwidth from what I've read, so they can't 100% replace belts
 
If you use a proper compiler, with warnings turned on, it will warn about such dodgy code, for example gcc and g++ with the -Wall option say: warning: left-hand operand of comma expression has no effect [-Wunused-value]Sam Watkins yesterday
 
But for stuff that takes forever to do like science
 
Hehe, I'm not the only one using terms like "proper compiler" to refer to not-MSVC.
 
Or personal supply
@BartekBanachewicz lol you don't know Xanadu?
 
discofingers.com Not dicsource related. I was sad.
 
Ell
4:02 PM
AAA?
 
Almost Anonymous Alcoholics
 
3 hours until I get home and start eating my pizza
the pain is unbearable
 
> Factorio uses its own layer over UDP...
> ... to avoid desync issues...
 
Such an awesome view of Santiago.
 
4:05 PM
@AlexM. i have no food in and not enough time really to go out and get any between work and going out tonight. and i dont even really wanna go out. blergh
SHREDDIES IT IS
 
I wonder what Ubisoft did to make Far Cry 4 use the third core in any >= 3 core machine at 90%+ and leave the others almost unused pretty much all of the time
despite this, the game also seems to refuse to even try to run on 2 core machines lol
 
@LightnessRacesinOrbit lol
 
@TonyTheLion they're only the best thing in the history of things
 
@AlexM. What's the "third core"?
Are you sure it's not just that the OS ended up scheduling it on that core?
 
No I'm sure the programmers deliberately check if you have 3 cores and set the affinity to always the third
 
lol "Germany doesn't have a minimal wage yet BUT IT SURE WINS"
 
0
Q: const is the cancer that is killing my C++ programs. What happened this time?

Failed Software DeveloperI have a class that is like class HtmlRover { public: HtmlRover(const std::string::const_iterator &, const std::string::const_iterator &); ~HtmlRover(); // ... private: /... std::string::const_iterator _curIter; const std::string::const_iterator _offend; /... }; and...

Dat question title
 
When did England invade Portugal?
There's this "Every Country England Has Ever Invaded" map, and it included Portugal in it.
 
@CatPlusPlus nah, belgium does
 
4:24 PM
A what
Anyway this data is grossly inaccurate
 
@R.MartinhoFernandes IIRC that map is grossly inaccurate, it's more of a "has England/Britain/UK has troops here since 1000AD" map.
 
Yeah, that explains a bit. But deploying troops to help an ally against a common enemy hardly counts as an invasion (the Peninsular War).
 
Dammit people changing funny titles!
Because now "cancer" is not "PC"
WTF
What is this world coming to.
 
@rubenvb What.
 
I was just talking about this yesterday.
@R.MartinhoFernandes se question linked above
The dude changed the title.
 
4:29 PM
You have a weird definition of 'funny'
 
At least two other people agree with me.
But that's besides the point.
It's the fact that someone on the internet believes the word "cancer" cannot be used on a professional programming site.
 
Hello mates
 
@R.MartinhoFernandes all the time? it's something that happens to plenty of people too
 
0
Q: Implementing generic network client/server data synchronization system

Vittorio RomeoI want to develop real-time networked (multiplayer) games using C++14. The network model I want to use is very similar to Quake 3's network model. It is a client-server model with an authoritative server. Both the server and the client store a game state that keeps track of all game objects' dat...

Very well formatted, but sadly, broad as hell. Too bad he put so much effort in it.
 
they could force it to be scheduled on the same core I guess
 
4:32 PM
I have a quick squestion
 
to avoid cache misses or w/e
but I really don't think it's the OS's fault here that it keeps scheduling N threads on a single core and leaves the other 11 untouched
 
If there's nothing to schedule on other cores then it doesn't matter which core gets the thing
 
I am implementing binary search but I keep getting a segmentation fault and I have tried to reason through but it makes no sense to me. Is it a stack overflow that I am experiencing?
bool search(int value, int values[], int n)
{
	// An implementation of binary search
	if (n < 1)
		return false;
	int middle = n / 2;
	if (value == values[middle - 1])
		return true;
	else if (value < values[middle - 1])
		return search(value, values, middle);
	else if (value > values[middle - 1])
		return search(value, values, n + middle);
	return false;
}
 
@CatPlusPlus yeah, which is why I'm saying it's the game's architecture that causes this constant usage on a single core
 
4:37 PM
Thanks @Griwes. I suppose I should just use a loop as this is certainly not a language too fond of recursion like Scheme is
 
@RonaldMunodawafa ...you clearly did not understand.
 
@Griwes don't be so rude
 
@LightnessRacesinOrbit lol
 
@RonaldMunodawafa probably. did you write out all the execution steps?
 
You are saying I should post it as a question. I get it though I think it will be closed
 
4:38 PM
Where is the Rules link? :/
 
@RonaldMunodawafa There's nothing wrong with asking for a discussion in chat. Indeed, when we close certain questions, we recommend it. You just have to fight a bit with the people who don't like you asking questions at all.
 
@RonaldMunodawafa Probably, it's a horrible question showing you didn't even try to debug the problem.
 
The problem is with this line --> return search(value, values, n + middle);
that n + middle
@Lightness yes I did
 
Hi there! Welcome to the Lounge. This is a self-service venue, but you may find that some services (such as sarcasm, irony, bad jokes, non-self-loathing and general ungentlemanly reparté) are provided free of charge (subject to terms and conditions). Please study our entry conditions before engaging in any questionable activities. Cheers, and enjoy your stay! (Or, y'know, don't.)
 
Gee what could be wrong with that
 
4:40 PM
@RonaldMunodawafa n - middle?
maybe with a +1 or -1 in there somewhere
 
I think it is only fair if I step people through my reasoning of choice for what I did
 
If you look at the method/function instead of taking a starting point as an argument like most functions I have seen I realised that
start + end / 2 = middle + arraylength / 2
middle being the middle value of the given array
 
middle index, surely
I don't know what you mean by start and end; neither appears in your function.
 
lmgtfy: debugger
Spoiler: Bob didn't read the rules and died.
18
Meh
 
4:46 PM
@CatPlusPlus you pinned that yourself, didn't you
 
Why wouldn't I pin it myself? (tbh I don't remember if I clicked it)
I probably did
 
@RonaldMunodawafa That sounds wrong.
(start + end) / 2 = middle, no?
Oh god. You mean without parentheses?
 
@R.MartinhoFernandes Is this sarcasm?
 
Hope yes
 
4:59 PM
cheers Herb Sucker
 
I shall remain silent on the matter and collect stars from both parties.
 
@CatPlusPlus you might encourage it
 
... would be nice to know if there are reasons I should ignore what that guy says.
 
Encourage what
 
Can't star I'm a car
 
5:00 PM
holy crap one of the websites here gave away 120GB Kingston SSDs for $25 for a short while
 
@CatPlusPlus 'it'
 
dang, I'd have bought 3 or 4 and then I'd have sold them lol
 
@BartekBanachewicz o_0
 
@caps his faith in AAA is reason enough
 
@LightnessRacesinOrbit So, "almost always auto" is NOT good practice, then?
 
5:01 PM
@caps it depends on who you ask :)
 
:(
The question saddens me.
 
FWIW IIRC even Meyers fell out with Sutter over this
or was that summat else?
 
@caps It's a joke. But I'll have you know that I am capable of joking with stuff I agree with and with stuff I disagree with.
 
always auto is a good practice
 
5:02 PM
yes
 
Ell
@LightnessRacesinOrbit that was taking vectors by value or something
 
That sentence didn't have enough "with".
 
@R.MartinhoFernandes FWIW, I am still stuck in C++03 so I won't be able to use auto in any fashion for a long time.
 
@Ell oh yes
there you go more evidence that Sutter should be ignored
@caps you can use auto just fine in C++03
 
@caps Good practice is what makes your code better, not what some self-appointed important person told you
 
5:03 PM
@LightnessRacesinOrbit You know what I meant.
 
@caps BOOST_AUTO, IIRC.
 
@caps dammit
@CatPlusPlus Good practice is what will make your code better in a majority of cases after you've chosen to use it consistently across your codebases. And that's not so simple to gauge.
 
@LightnessRacesinOrbit the "even" is because they are friends or because Meyers also proposes bad practices?
 
Ell
man why is this javascript so frickin slow
 
@caps the former more so
 
5:04 PM
I don't use Boost and don't need it since like 2 years
 
it's an unusual example of two C++ heavyweights so vehemently disagreeing
 
@BartekBanachewicz This is not some AA meeting.
 
@BartekBanachewicz here's a chip
@R.MartinhoFernandes it's an AAA meeting
 
The only issue is optional but boosts one is retaeded anyway
 
> retaeded
you were saying?
what's wrong with boost::optional?
 
5:05 PM
@LightnessRacesinOrbit It's autological.
 
@R.MartinhoFernandes "What is the saddest thing you can think of?"
 
@CatPlusPlus So I'm just supposed to know on my own what makes my code better? And what I will still feel made my code better in 2, 5, 10 years?
4
 
Everything
@caps lol
 
@LightnessRacesinOrbit "more so?" Is this a subtle implication I should throw "Effective C++" in the bin?
 
I literally can't think for myself
 
5:07 PM
Oh god, this whole thing is depressing.
 
Ell
who thinks this looks grim? i.imgur.com/uRMKY5q.png
 
If I accidentally flagged an off-topic question with the wrong site, should I raise another custom flag saying the correct one?
 
@Ell It's C++ so that's by design
 
Ell
@APerson just flag everything
(I'm kidding)
 
...
 
5:09 PM
Flag everything, you won't flag everything that needs to get flagged anyway.
 
Ell
Why is there a chef on the committee? youtube.com/watch?v=7P536lci5po
 
@caps not at all
@caps you're overanalysing my remarks
 
@LightnessRacesinOrbit kk
 
lol I'm on the board.
 
5:11 PM
@Ell He's not on the committee. He's going to grill the committee.
 
@LightnessRacesinOrbit Thanks!
 
In binary search, we have what is commonly referred to as the starting index and the ending index of an array for search where the value of the middle index of the subarray is tested if it is the value being sought
 
I had a network lasp
 
@RonaldMunodawafa yeah but yours doesn't. your start never changes.
what is a network lasp
define: lasp
 
5:16 PM
you had a brain lapse
 
#define lasp lapse
spelling mistakes
 
Ell
Woo free 30 day prime trial
 
The Mentalist! one week two days @ScartletAmaranth
 
Amazon keep offering me those trials
 
5:19 PM
@Lightness the reason my start never changes is because
start + end / 2 == middle + end / 2 where the value > the value being tested
 
lol parens again
 
(start + end)/ 2 == (middle + end) / 2
 
Yes when start is middle then start is middle. Except the middle changes otherwise you're staying in one spot
 
Exactly
 
5:25 PM
So good job on that inspector
 
You're moving the end without moving the start and you end up checking further and further middle values until you run out of your stupid array hth
Why am I rebuilding my factory again send help
 
user1804599
hiiiii
 
user1804599
iron where are you
 
who?
 
5:30 PM
@RonaldMunodawafa binary search mate. if your value to find is in the top half of your resultset, then your "start" needs to move to the middle. work it through on paper
 
Let me do just that
 
user1804599
Yaay. Iron.
 
user1804599
Far far away.
 
Make trains
 
I wonder when we'll get a good enough alternative to paper and pen
 
5:32 PM
If we only had devices that could record text and drawings
 
no, something that grants you the same speed and precision that you have with a pen on paper
and is just as easy to carry around and use
 
it's called a "tablet"
 
user1804599
@CatPlusPlus I just started world lol
 
Ell
tablets as useable as paper aren't as easy to carry around as paper
 
and it's much easier to use because once you've drawn on it, you're not stuck with your valuable effort on a bit of dead tree.
 
5:34 PM
@Puppy the screens are usually smaller than an A4 sheet of paper and the touchscreen precision isn't that huge
 
@AlexM. Yes, but once you've drawn something on paper, it's nearly useless in comparison to having it on a tablet.
you cant send it to anyone, you can't back it up, you can't post-process it, it's vulnerable to infinity forms of damage
 
Right, so clearly useless.
 
yep
 
and you can't turn your pen and paper into a browser or a gaming machine
 
it is
but I'd still follow an algorithm's steps on a piece of paper
and not on a tablet
 
5:35 PM
crazy man
anyway I'm done for the day so see you all later
 
I like how you argue its uselessness by listing use cases for something else.
 
@Puppy scanners don't exist
 
Tablets can't be used to hold beans.
 
I'll try a graphics tablet on the PC to see if it's just as comfy to draw things
maybe then I'll cease my take paper -> draw -> throw paper away cycle, at least at my desk
 
inb4 no it's not
 
5:37 PM
I dunno people seem to draw really precise things using tablets
as long as I can make my sketches and diagrams very quickly (i.e. draw them as I would on a piece of paper, not navigating GUIs with the mouse), I'm happy
 
Ell
michael wong laughs a lot
 
I didn't even get the cheapest tablet I could find, in hopes of getting some decent quality out of it
 
@Alex my ultrabook has pen support
 
@R.MartinhoFernandes that looks really awesome but goddamn $1k
 
5:41 PM
1100 dollars, only US.
 
it's definitely something I'd like to have though
 
Men, you can get a cintiq in that price
Used one, but still
 
is the cintiq that big?
and slim?
 
@AlexM. Sadly, it doesn't hold beans properly.
3
 
5:44 PM
They go up to 24"
 
that digital paper thing looks really amazing, especially since it's so slim and can easily fit in a bag where you'd normally fit A4 sheets
 
jolla.com for the actual site
 
You can fit a surface pro 3 there too, and it's 10 times more useful
 
except the touchscreen is probably not as accurate
 
Windows PC tablets and ultrabooks are the thing
@Alex pen doesnt use touchscreen
Neither it does on my yoga
 
5:45 PM
well whatever the screen is
 
Uh it's not whatever
It's regular cintiq-like matrix
 
Surface Pros are underrated by those who love ChromeBooks and iPads
 
lol Chromebook
 
Well chromebooks and iPads are completely different things
 
that fade-in-like delay is kinda meh
 
5:47 PM
It's e-ink.
 
Do they even exist now?
 
Exist what
 
They combine disadvantages of tablets with disadvantages of notebooks.
chromebooks
 
Ah those. Yeah, they are cheap
 
I don't like that delay on the digital paper thing :(
 
5:48 PM
You can buy one in the price of an ultrabook power adapter @milleniumbug
 
on the brighter side though, apparently with a daily usage routine, the digital paper's battery lasts for a month
 
1 min ago, by R. Martinho Fernandes
It's e-ink.
 
Chromebook fans advertise Chromebooks as good alternatives to my Windows and Ubuntu laptops but when I try to even compare the Surface Pro to their Chromebook they go on to say the Chromebook is something special
 
don't cal lit that
 
here's a comparison between Surface and DPaper youtube.com/watch?v=LyTwNHDJwHY
 
Xeo
5:49 PM
whee, playing SpeedRunners against the devs
(they suck!)
 
It seems no one is interested in Jolla
 
They are two different things
 
My point is: I don't see the point of having Chromebook
 
you're the only one talking about Chromebooks
 
Surface is a useful and powerful device, and that Sony paper is a gimmick
 
5:50 PM
Oh
My bad
 
@BartekBanachewicz now that's a very strong claim
 
here comes blue science pack automation... so nearly there
 
@BartekBanachewicz It's more like an experiment, which is why they don't even offer support and don't talk about it much.
 
Gimmicks are usually marketed to hell and back.
 
5:51 PM
Jolla looks interesting
if I had spare cash I'd buy it
 
I definitely see something like DPaper to become an alternative to paper in the future
sure, a tablet does more stuff
but if you only want to write, you'd rather trade that extra stuff for a more appropriate writing experience
 
@R.m true
 
Music sizes, small to large: rock, house, country, world.
 
@Alex like digital pen? I don't get you
 
digital pen?
 
5:53 PM
If piracy does not storm your product, you do not have a great product
 
How do you pirate hardware?
 
@alex aka surface pro 3 or yoga
@r.m Chinese
 
Piracy and plagiarism
 
@BartekBanachewicz They pirate the things that have visibility, not the great ones. (well, there might be some overlap)
 
@RonaldMunodawafa thank for msg very usful!!!!!!
 
5:55 PM
They piggyback on someone else's marketing, not quality.
 
@BartekBanachewicz tell ya what
 
I'll go to the store and try out a surface pro
and see how it feels
 
No one is going to buy counterfeit... Blackberries? What's the crap phones no one wants these days?
 
I never actually tried one
 
5:55 PM
Canonical's tablets don't feel too good
 
Well do it. I would own one if not for the fact I needed a new machine fast
 
but I don't see it being very different from the other tablets out there
 
Ell
What is the point of having an ISO standard?
 
Otoh my yoga is p amazing too
 
because yeah, it looks like a normal tablet to me
 
Ell
5:56 PM
versus a standard with no membership fee?
 
@alex what other tablets have you tried?
Hey Scotty. Buy factorio.
 
@BartekBanachewicz a samsung galaxy note thingy (not sure if I played enough with the stylus though) and an iPad
 
Which iPad?
 
I think it was a first generation mini
or maybe 2nd gen
 
@AlexM. Was this meant to be sarcastic
 
5:57 PM
That is a huge difference
 
yeah it was pretty old hardware
 
iPhone 6+ is like a small tablet
 
Yeah well and samsung are shit
@Stacked phablet vOv
 
I hate Samsung as a company
 
@RonaldMunodawafa It's mutual.
 
5:58 PM
@RonaldMunodawafa but you love them as friends
 
Samsung makes great components and shitty end user devices
 
I knew you had something to do with samsung
 

« first day (1497 days earlier)      last day (3455 days later) »