« first day (841 days earlier)      last day (4109 days later) » 

5:05 PM
is it useful to store the hash code of an element when inserting it into a bucket slot?
i mean, different hashs may end up in the same slot when the modulo operation did it
but if i store the original unreduced hash code, the "op==" operation first only has to compare the hash code of the bucket slot
does that pay off? or is the memory overhead not worth it?
 
user784668
Benchmark it.
 
if conversation in this room has stalled, may i please ask a question?
 
@JohannesSchaub-litb It often pays off. You can do better though. For example, create a (say) 64-bit hash. Use the top 20 bits to pick the hash bucket. In the item entry, instead of storing all 64 bits, store only the 44 bits that weren't used to determine the hash bucket.
 
std::copy_if(v.begin(), v.end(), new_v, []{ ?? == 5}) How do I get access to contents of v inside the lambda?
 
@user1690130 Yes. You just asked a question though, so if you insist on asking whether you can ask, you'd probably better ask if you can ask two questions.
 
5:13 PM
Hello
I would like to ask a meta question.
 
go to meta.stackoverflow.com
 
How can you mark a question on so so that you get notification when an answer comes?
 
@JerryCoffin ah nice
 
@DavidFrank you always get notified.
 
user142019
 
5:14 PM
@JerryCoffin i will think of that when I'm going to optimize it
 
you don't have to do nothing
 
@TonyTheLion Only in case of my questions
 
user142019
Star it.
 
@Zoidberg Ok, thanks
 
this ^
 
5:15 PM
... If I don't fix this bug
 
@DavidFrank there is an rss for every q, also favorite is an option
 
I can't progress.
And I haven't been able to fix it for TWO WHOLE DAAAYS
What if it stays like this forever? q________q My team will be so upset with me.
</crybaby>
So, how's everyone doing?
 
@JohannesSchaub-litb Not that you probably care, but there's an (expired) patent on this in the US.
 
@ThePhD Then you're doing it wrong.
 
... Bleh. Sorry.
 
5:17 PM
@JerryCoffin lulz
 
any perl users? :)
 
@JohannesSchaub-litb FWIW, I'd say it's one of those relatively unusual ones that's honestly clever enough to merit a patent -- especially when you consider the timing (i.e., that it was ~30 years ago). I should probably add that I may be biased though -- I've been personal friends with the inventor for years.
 
@JerryCoffin ohh nice
 
man this is bothering me... how do games make the "smooth" feeling camera?
Normalizing vectors and all of that makes it so jagged
 
@Crowz My guess is you need some speed interpolation.
 
5:22 PM
@AndreiTita I don't know what that means... but I'm assuming wikipedia does!
 
Is there detailed search on so?
 
@Crowz No idea if that's going to help you or not because I don't know your specifics but generally speaking camera smoothness is achieved by implementing acceleration and speed for the camera rather than snapping it around.
 
Another question -- C++ has inheritance, right?
9
 
@Crowz even, multi
 
user142019
 
5:26 PM
@bamboon how would I do an equivalent to "extends" in C++?
@Zoidberg dude I am just starting this
 
user142019
class D : public B {};
 
@Crowz std::is_base.
 
@Crowz class DerivedClass: public BaseClass and PLEASE get a C++ book, this is very basic.
 
user142019
@DeadMG No he means like in J*** where you do class D extends B.
 
orite
 
user142019
5:27 PM
He's Javanoob.
 
@JerryCoffin Good point
 
@Zoidberg It's true... but in my defense, it's what they teach at all schools
 
user142019
Don't go to school and problem solved.
 
Zoidberg's answer to everything: don't listen to the adults!
 
Does any place actually use java for anything real?
 
user142019
5:29 PM
School is an utter waste of time.
2
 
user142019
@Crowz Google uses it a lot.
 
@Zoidberg No, you're just not old or bright enough to detect its usefulness.
 
Yeah my school is kinda a joke
 
@Crowz Does Android count?
 
user142019
Imagine you die at an age of eighty, and went to uni for four years. That's one twentieth of your life wasted.
 
5:30 PM
@LightnessRacesinOrbit unless you're going to a big, very good school... it is kinda a waste. I learned half the stuff I know on my own, and look at how mediocre my skill is haha
 
@Zoidberg Only if you squander those four years
 
user142019
If you can't do software development before year one, you can't do it after year four either.
 
School is the best time of your life and you'll realise that when you've grown up
 
seems to be now way to upload a pic from my phone. :( Anyway, haz cat.
 
@Zoidberg What a complete load of nonsense.
 
5:31 PM
My ~elite~ CS education
 
@LightnessRacesinOrbit It's difficult to squander them when they have no potential.
 
user142019
It's the worst time of my life so far.
 
user142019
When I had a job was much more fun.
 
the only things professors can do is waffle on about theoretical shit and you'd be lucky if it's even tangentally related to any actual problem you face.
even if it's in the same area, it's useless.
 
Unless you go into academics.
 
5:32 PM
you people are weird
 
user142019
Also, you don't decide what I find fun and what's IMO a "good time".
 
I'd give almost anything to get to do those undergraduate years again
 
@LightnessRacesinOrbit What/
 
and yes, school is kool
 
you will never have as much opportunity, socially
 
5:33 PM
it's difficult to say that paying several thousand pounds a year for university is justified when the lecturer doesn't lecture on any topics relevant to actually producing software, by and large.
@LightnessRacesinOrbit Fuck social opportunity.
 
Socially I don't mind it
 
"waste of time" if you're holed up in a library 24/7 like a dork
 
I mind EVERYTHING ELSE
 
I went to university to make programs, not friends.
12
 
5:33 PM
@DeadMG Apparently it's more about friends / contacts, though.
2
 
42 seconds CMake/make/clang vs 32 seconds Ambrosia/Clang.
 
If not for friends I'd quit by now, because everything but the social component is absolute shit
Which is probably why you two quit already :v
 
I love the generalisations coming out of this
 
Hey hey, I haven't quit. D:
 
I mean puppy and Zoidberg
 
5:34 PM
You two just go to remarkably poor institutions, it seems
 
user142019
Lounge<C++> where everybody drops out.
 
Oh.
Lounge<Dropout> : ~When school is for friends and not for programs.~
 
that doesn't really qualify you to declare that "school is an utter waste of time"
besides, you may be good at self-learning but most people are not. that makes school one of the most important things in society
 
user142019
There should be very strict numerus fixus and much more profundity.
 
@Zoidberg Wat.
 
5:36 PM
My university is in ~top 10~ in the country
 
@LightnessRacesinOrbit Might be some truth to that. I enjoyed my Uni time in the UK much more than at home. However I still think that the current schooling system is pretty much broken.
 
user142019
@ThePhD I don't want to go to school to learn things I already know for what, four/five years?
 
The education is still shit
 
@Zoidberg Yeah, that's the thing that bothers me most about school.
 
user142019
Oh wow I learnt UML in school how useful.
 
5:36 PM
@Zoidberg You think you know. If you open your mind you might discover that you haven't learned everything yet.
 
The amount of cruft you have to wade through to get to the interesting, useful things.
The things that'll allow you to make great leaps and strides in a direction.
 
user142019
@LightnessRacesinOrbit Besides the UML bullshit, there hasn't been any topic I didn't yet know.
 
There is also the meta element: you are learning to learn. sometimes it doesn't really matter what the example material is.
 
Elite MS Access education
 
user142019
In fact, I correct my development teachers almost every week because they make noobmistakes.
 
5:37 PM
@Zoidberg So far. You're not qualified to assert that you have nothing at all left to learn in future from it.
 
@CatPlusPlus Someone proposed to me that MS Access was how I should do databasing.
 
UML theory for SCIENCE
 
Sounds kinda like you're an annoying know-it-all in class. No offence.
 
lol
 
user142019
I am.
 
user142019
5:38 PM
I love being annoying. :D
 
btw "know-it-alls" don't know it all. They just think they do
hopefully you'll grow out of it :)
 
user142019
Except I am right all the time.
 
Yeah it's Zoidberg
He's insane
 
I think I need to look at shader outlines for my fonts. Some colors blend too much into the background. Meh.
 
5:39 PM
No, I am right all the time. That means you can't be.
@AndreiTita oh shi-
 
You're both scrubs
 
OK. Arch Linux is cool again.
 
user142019
Arch Linux has always been cool.
 
Can't wait to get my rPi.
And slab Arch ARM on it
 
user142019
@rubenvb You can because you're doing it right now.
 
5:39 PM
@LightnessRacesinOrbit I've seen it done... but I'm crap with GLSL.
 
I really don't know what's so exciting about RPI
 
user142019
IT'S CHEAP
 
Ell
hmm. Java doesn't have functors does it? o.o
 
@LightnessRacesinOrbit I've seen course materials from very reputable institutions, like Stanford in the US, and it was still abysmally bad.
 
@CatPlusPlus It's a ~€50 ubercool media center and file server.
 
user142019
5:40 PM
@Ell Java has ArrayList. One example of a potential functor.
 
this €50 is with power and case and remote.
 
@AndreiTita Do you just want a single-pixel outline?
 
@DeadMG I will agree that the quality of software education is generally very very poor.
 
@rubenvb Oh yes now I'm definitely interested
 
@DeadMG But there is more to "school" than learning Java
 
5:40 PM
and you get to test your code on ARM.
 
@ThePhD Yeah pretty much.
 
Fucking English
 
@AndreiTita I can help you, then. But it'll be HLSL.
 
5:41 PM
You're a cat. You can't enjoy raspberries.
 
hmm, what sense does it make to provide an "erase(Iterator begin, Iterator end)" function for unordered containers?
 
It's like my dream to test my code on ARM
 
is there any usecase other than .erase(.begin(), .end()) ?
 
@DeadMG lol!
 
@JohannesSchaub-litb range iterators?
 
user142019
5:41 PM
I don't enjoy school.
 
@JohannesSchaub-litb Only as much sense as it makes to expose iterators for such containers at all.
 
user142019
So it's a waste of time.
 
Exams can go die in fire
 
the items are stored in insertion order. IIANM.
 
Exams are the worst.
 
5:42 PM
@JohannesSchaub-litb That is, you're already exposing a pseudo-ordering. It's an abstraction leak that's already there. erase(Iterator begin, Iterator end) just continues that.
 
user142019
I didn't even go to last exam.
 
I wish more classes were project-based.
 
@LightnessRacesinOrbit hmm with exposing iterators one can iterate through all elements
 
user142019
It was about UML.
 
but for erasing, one can provide .clear()
and don't need .erase(itbegin, itend)
 
5:42 PM
@Ell Depends on what you mean by functor
 
user142019
Do I care I get 1/10 for not going.
 
@LightnessRacesinOrbit oh
 
Ell
@CatPlusPlus Yeah, what I actually meant to say was, does java have operator ()?
 
@ThePhD Cool. But I'm going out atm. I think I have an example written in GLSL somewhere, but if I can't make sense of it, I'll ask.
 
user142019
I'm quitting anyway.
 
5:43 PM
@Ell No
 
@LightnessRacesinOrbit so it is there just to implement some Container concept that requires it?
 
@JohannesSchaub-litb You may want to erase a subset in one go based on observations made during an iteration, e.g. "erase the last 5 elements I visited". It's tenuous, but not much more so than anything else you could come up with using iterators for unordered containers.
 
user142019
@Ell Java, being the worst language ever, has no operator overloading.
 
@AndreiTita Going out?
What're you, social?
 
user142019
I think there is some interface called Runnable or something whatever. It probably also sucks.
 
5:43 PM
@LightnessRacesinOrbit ok i can see how .erase(it, next(it)) may make sense :)
 
Nah I'm going to have dinner with my folks (free food).
 
Also @AndreiTita dl.dropbox.com/u/17644642/PixelOutline.fx (With copious comments).
 
Free food is always good
 
@LightnessRacesinOrbit hmm i see
 
@ThePhD: You spelt "neighbours" wrong.
 
5:44 PM
@ThePhD Fugly indenting
 
Cry about it. :D
 
@ThePhD Cheers.
 
naughtbars
?
 
>Go to exam to improve grade just to go hang out abit at the college with mates
>3 am, decide that I might aswell study abit to improve, since I'm going to the exam
>study relaxedly from 3 to 8am, exame at 9h in the morning
>Get 181, highest grade in entire college
Why bother studying? So strong...
 
@ThePhD alignment with tabs ----> I shoot you in the face
 
5:45 PM
@LightnessRacesinOrbit But I like tabs. :D:D:D
 
user142019
@ThePhD Tabs -> die.
 
@ThePhD You should love them for indentation, and hate them for alignment.
 
espouse them?
 
@ThePhD mistake
 
Isn't that like, becoming their spouse?
 
5:46 PM
You're everything that's wrong with people who can't indent
 
You want me to marry tabs? <3333
 
user142019
Tabs in codebase = I kill you. Except for idiotic things like Makefiles.
 
I DO, TABS. I DO. <3
 
user142019
FU
 
user142019
5:46 PM
Tabs are ridiculous.
 
But wow, Firefox is overkill.
8-spaced tabs. o_O
 
i agree that tabs should be banned
 
user142019
They make no sense in a monospace fonts.
 
There is no such thing as an "8-spaced tab" in code
Code does not define the rendering width of tabs
Viewers/editors do.
 
5:47 PM
Tabs are bad
 
user142019
Tabs are terrible.
 
@Zoidberg wtf?!?!
 
Tabs are great for indentation.
Every so often, I get lazy and align with them too. :D
 
Tabs are the worst
 
in my c++ implementation a warning diagnostic will be ouput if the input file contains a TAB character outside of strings
 
5:47 PM
@DeadMG that is what they say on reality tv all of the time
 
You're the worst
 
you people are bizarre
 
Ell
hmm. I found if (r.a(localObject = System.getProperty("appdir"))) in some java, and localObject isn't declared in that file. That means it's a global?
 
user142019
@LightnessRacesinOrbit everything is same width (you know what I mean; no pedantry) yet tabs may be or may not be. And they're not equally wide everywhere. It's horrible.
 
A globallocalobject.
 
5:48 PM
Java has no globals
 
Ell
hmm. then I don't know where that has come from
 
I used to think that only newbies used space-indentation, because they just didn't know programming yet. This is kind of unsettling: seasoned developers (and Zoidberg) hating on tab-indentation. I just can't understand why you'd think that. Were you abused as children?
 
I'm not sure why someone didn't just say "All tabs are [this] wide" and be done with it.
 
user142019
@LightnessRacesinOrbit You're a noob.
 
Press the magic key in IDE that takes you to the declaration
 
user142019
5:49 PM
Tabs are fannoying.
 
@Zoidberg What are you talking about? That tabs may be rendered with whatever width you please is a good thing. Separate format from function, dude.
 
user142019
@ThePhD Those are called spaces. They're always one space wide.
 
No, it's not a good thing
 
user142019
@LightnessRacesinOrbit no it's terrible.
 
You get one tab per indentation level. It's semantic, it's atomic, and it's unbound to presentation. How can you not like that?!
 
Ell
5:49 PM
is it eclipse or netbeans where the font is bodged on linux?
 
user142019
I want my code to look the same everywhere (except for font and color, which don't matter).
 
@Zoidberg Are you ready to begin making actual arguments? Or are you just going to repeat your senseless mantra?
@Zoidberg Why? Why indentation width but not font and colour?
 
Because~
 
Tabs are bad for alignment, but really good for indentation. I usually like to align using [tabs to indentationlevel] + [remaining in spaces].
 
user142019
Because indentation matters much.
 
5:50 PM
Who are you to get to decide how I view your code? Code is content. How it's presented on my computer is none of your business!
In using spaces you force a certain rendering on me. It's disgraceful
 
My code is 100% tab-free
 
user142019
If I were to design a language tabs would be syntax errors.
 
Death to all \t
 
I thought you were designing a language, and I thought it didn't work
 
why isn'T the accept rate public anymore?
 
5:51 PM
@JohannesSchaub-litb It is, isn't it? It's just not displayed on questions.
 
user142019
@JohannesSchaub-litb see Meta Stack Overflow. There was a post about it somewhere there.
 
If I were to design a language, the first tool I would make would replace all indentation with tabs and all alignment with spaces.
 
Ell
@JohannesSchaub-litb causes more trouble than good apparently
 
149
Q: Let's stop displaying a user's accept rate

BartMy feature request (or anti-feature-request perhaps) is the following: Let's stop displaying a user's accept rate. For those of you who know "Fawlty Towers", the whole issue of a visible accept rate and our behavior towards it starts to feel like "Don't mention the war!". We generally seem to ...

 
I would make a base syntax style that doesn't completely suck.
 
5:52 PM
@ThePhD yeeeees
 
That way you could change if, if you wanted, with the tool.
 
user142019
lol tabs in Haskell would be funny.
 
I'll probably do it for my scripting engine when I make it to there.
 
@Zoidberg Yes, indentation does matter. One "indentation character" per indentation level makes a fuck load more sense than some arbitrary 18-year old douchebag deciding that you should instead get a randomly-chosen multiplier.
 
BUT I CAN'T BECAUSE D3D IS A LAAAME.
 
5:53 PM
douchebag!
I love that word
 
user142019
Four spaces indentation or die.
 
@Zoidberg But I like five... :c
 
I'm actually going to stop talking to you about this now, because you are making me angry
 
user142019
Unless you're using weird languages like Haskell or Lisp.
 
You are harmful
 
5:53 PM
Mostly because
 
user142019
I like harming.
 
user142019
It's my hobby.
 
Harm yourself
 
if ( stuff ) <--- five spaces to the first letter
 
user142019
5:53 PM
No that hurts.
 
Aligns pretty nicely.
 
if (stuff), you scrub
 
Spaces!
 
user142019
eww spaces inside parens.
 
Is it common for games to use 3D K:D trees?
 
5:54 PM
I don't trust tabs, I had too many problems with external tools botching up in presence of tabs
 
Spaces make it easier.
@CatPlusPlus Is that the tabs fault, or the tools fault?
WHO'S TO BLAME HERE?!
 
Ell
@LightnessRacesinOrbit easy now, we all just have to learn to tolerate zoidberg
 
@ThePhD me
@CatPlusPlus poor meow meow
 
@ThePhD Tabs
 
Horrible. :c
The tool commits the crime but we blame the victim in all this: Tabs.
WELL SOMEONE HAS TO STICK UP FOR TABS, AND THAT'S MEEE.
 
5:56 PM
\t shouldn't even exist
 
user142019
@ThePhD BOOM HEADSHOT not anymore.
 
If you ever send me pullreq with tabs inside I'm going to laugh at you forever~
 
>__>
Hides Kyrostat progress.
 
user142019
I've heard some people defend tabs with the argument that "you don't have to hit space or backspace four times" hahaha.
 
user142019
inb4 never heard of editors.
 
5:57 PM
 
i use 3 spaces because it is prime
 
The problem with fixed-width spaces is that I usually have to have my editor or tool run through it to change the spacing to something I like.
 
user142019
I use three spaces in reStructuredText.
 
If I use tabs, I just change the editor's tab setting.
 
user142019
And in Ruby I use four spaces because fuck the conventions.
 
user142019
5:59 PM
And in Python I use four spaces because PEP 8.
 
Last night my laptop locked up for the nth time (it does so randomly every few days)
 
user142019
And in Haskell I align then indent four spaces.
 
user142019
And in Lisp I do whatever Vim does when I hit the tab key.
 
I finally decided to check the event viewer, turns out the last event to happen at around the time of the lockup was related to the "Customer Experience Improvement Program"
 

« first day (841 days earlier)      last day (4109 days later) »