« first day (1146 days earlier)      last day (3817 days later) » 

4:00 PM
@MartinJames Nice your pipes to save the CPU.
 
@rightfold "pipe" is also French slang for a blowjob.
 
user3010322
@EtiennedeMartel Is there also a "ride the pipe" expression, then?
 
@JerryCoffin LOL! My CPU's are fine - the average CPU use of my PC apps is <0.5%. I can barely get it above 2% with a heavy load-test with 128 clients.
 
@EtiennedeMartel thank you for spreading culture around the world~
 
@MartinJames Well of course "PC apps" would already act nice to everybody around them. Write some politically incorrect apps and see what happens though...
 
4:04 PM
I give blowjobs as part of my work.
I blow into flowmeters sometimes to spin'em up and see if they're registering on the system.
 
JBL
^I come back and what do I see ?
Priceless.
 
Sigh.
Why can I not see values of things on release :\
 
JBL
Mandatory Magritte.
 
user3010322
@Pawnguy7 Optimized out.
 
4:07 PM
It is the return value of a function.
I feel there is a way to find it.
 
user3010322
The compiler on release is free to rearrange everything it wants to.
 
user3010322
It's also probably doing overly aggressive RVO and in-place construction.
 
user3010322
You'll never see those variables again.
 
Hrm.
 
@ThePhD that should be a meme
"Overly aggressive RVO"
 
4:08 PM
Yaeh - that's why I use a pile of temporary locals - easier for debugging and the release versions blow 'em away with the optimization.
 
Problem is, this runs too slow on debug.
 
user3010322
Well that's a shame.
 
anywhore
time to sleep, good night
 
user3010322
Already?
 
@user7236293 no
I just got in come on
 
4:10 PM
@ThePhD 1am
 
user3010322
I just woke up. :c
 
you wanted me.
 
@BartekBanachewicz i forgot why
 
or something from me
 
I don't know what to do with this AI.
 
4:10 PM
@user7236293 come on
 
user3010322
Luul
 
If I make them kill themselves less, they get deadlocked.
 
user3010322
Troll'd, to the end.
 
@Pawnguy7 use a DFS and find a longest possible way using dynamic programming
the most dumb method that works
 
Well.
I have multiple snakes at once.
I don't know how to get reasonable avoidance of obvious confrontations.
Because they both avoid it.
 
user3010322
4:12 PM
<3
 
user3010322
encoded_string now only takes ranges, and no longer deals with iterators or pointers.
 
user3010322
either char arr[n] or buffer_view<TChar>& n;
 
2 mins ago, by Bartek Banachewicz
@Pawnguy7 use a DFS and find a longest possible way using dynamic programming
 
@Pawnguy7 Change it into a driving game? Sounds like roundabouts should be easy:)
@BartekBanachewicz Why would he need a long journey to buy furniture?
Put another way, what is DFS?
 
JBL
Depth First Search.
 
4:17 PM
@MartinJames what
 
Oh.. something about depth searches..
 
Depth-first search (DFS) is an algorithm for traversing or searching tree or graph data structures. One starts at the root (selecting some node as the root in the graph case) and explores as far as possible along each branch before backtracking. A version of depth-first search was investigated in the 19th century by French mathematician Charles Pierre Trémaux as a strategy for solving mazes. Properties The time and space analysis of DFS differs according to its application area. In theoretical computer science, DFS is typical used to traverse an entire graph, and takes time O(|E|), line...
 
@JBL OK, got it :)
 
I fail to see how this alone fixes my problems.
 
@BartekBanachewicz Thanks:)
 
4:18 PM
The AI I have now is decent at singleplayer.
 
@Pawnguy7 each snake will act on its own
 
Not sure what else they would do.
Consider this.
 
That must be difficult 'cos the tails of other snakes may temporarily block some route that used to be the best one.
 
then you'd need to heuristically look ahead in time
 
The only somewhat decent approach to this I found was pretending squares they can reach are solid.
 
4:20 PM
and try to predict the future
 
But then they never go near each other.
 
@Pawnguy7 what
 
What I do right now is, find all the squares other snakes can reach.
And they are negative points depending on how close they are for that snake.
 
58 secs ago, by Bartek Banachewicz
then you'd need to heuristically look ahead in time
seriously I feel like I'm talking to the wall
or maybe like you're talking to yourself
 
I am not positive what you mean by using a heuristic for that.
 
4:23 PM
@Pawnguy7 unless you are a fortune teller, you can only guess what will other snakes do
 
Yes.
 
@Pawnguy7 Of course, why not?
 
@Pawnguy7 that's why heuristic.
 
Are you saying trying to predict where they will go.
Or what to do with the information?
@Jefffrey Not sure. Anyway, I was thinking I could actually have animated tiles (water) and such things.
 
@BartekBanachewicz heuristically you say?
 
4:37 PM
@Pawnguy7 yup
 
And... probably work on making things a bit better transition wise.
I did some primitive ones in snake, but... not that great.
I don't know what everybody has that I don't.
But it seems they always make it visually appealing at the same time.
 
experience?
skill?
personal hygiene?
just throwing out some suggestions here
:P
 
Good morning?
 
I'm really classing this as more of an "evening"
 
Oh, right.
Anyway, I don't think it is skill or experienced related.
 
4:50 PM
@DeadMG You don't say?
 
Even people making snake using goto still have more visual appeal.
 
@Pawnguy7 Add pictures of women in bikinis as the background. :-)
 
Mine doesn't even have a background :\
 
@Pawnguy7 That might account for some of the lack of visual appeal.
 
Yes.
How do people do it with premade backgrounds though?
If you want to resize it.
 
4:53 PM
@JerryCoffin @tony will pay good money for that
 
Google gives me those free
 
@Pawnguy7 Start with a big picture, size it down. If you're using a 3D API, set the appropriate picture as a texture bound to the background rectangle.
 
user1804599
@EtiennedeMartel same in Dutch.
 
@TonyTheLion shut up and pay the man
 
user1804599
Lekker stijf piemeltje pijpen.
 
4:56 PM
lol
 
@EtiennedeMartel most things are English slang for something. So why don't you suck my traffic cone!
 
@Pawnguy7 where did you nick originate from?
@rightfold Dat zou jij wel lekker vinden eh :P
 
user1804599
Nee.
 
@TonyTheLion he's the second youngest of eight brothers on his team.
 
4:58 PM
... vOv
 
> Same applies to plurals. The word "Wort" (word) has two plurals depending on whether it's words in a dictionary or an extended meaning.
@Xeo?
 
Xeo
"Worte" and "Wörter", I'd guess?
 
@R.MartinhoFernandes huh?
 
@TonyTheLion "chessguy" didn't work on a chess website.
 
Non English I assume :S
 
5:00 PM
Also, I think I realized something.
Snake doesn't have to be deadly fast to be fun.
 
Xeo
"Mir fehlen die Worte" and "Alle Wörter auf der Seite ..."
 
@Pawnguy7 has to be fast enough to prove a challenge
 
@Pawnguy7 oh right
so you like Chess then?
 
@thecoshman As I commented once before, people managed to do that when they were writing it in interpreted BASIC on a 4.77 MHz 8088.
 
These are the current duration (in seconds) per move.
And at this moment are capped at 0.1.
 
5:04 PM
hmmmm
 
Maybe I should stretch it a bit more.
 
@JerryCoffin ... I don't believe I said anything to the contrary
 
@thecoshman any idea for a lower cap?
 
@thecoshman No, I don't think you did. I'm just pointing out that (at least assuming you're implementing the same game) managing to make it plenty fast now doesn't seem like it should be terribly challenging.
 
5:05 PM
@Pawnguy7 you probably want to track the players performance game by game
 
@TonyTheLion Did last time I played, anyway. I think I quit playing regularly when I stopped improving.
 
Xeo
Wheee, finally time for Starbound
 
@thecoshman playtesting?
 
@R.MartinhoFernandes Frédéric Dard (under the pseudonym San-Antonio) once wrote a book titled "Ceci est bien une pipe".
 
@JerryCoffin I'm fairly sure I didn't... still, I am not making a snake clone.
 
5:06 PM
@R.MartinhoFernandes "4800 baud digital cassette". Geeze I wish they could make an SSD that fast! :-)
 
@Pawnguy7 no, just don't hard code a certain speed. Have it adapt to the player, as they get better, the game gets harder. Just a suggestion.
@R.MartinhoFernandes ... 1 bit bytes, boom!
 
What if more than one person plays it?
Anyway, here is the current magic number: (-std::log10(x))*0.7 + 1, where x is the length of the snake (which starts at 5).
 
@Pawnguy7 profiles
 
I was thinking of it as an arcade game.
 
@Pawnguy7 oh, then there goes that plan :P
 
5:09 PM
If memory serves, snake was originally an arcade game.
 
Xeo
Ugh, why is this accepted: stackoverflow.com/a/20405814/500104
 
And I already made the highscores.
 
@Pawnguy7 Goes by level -- at level 1, it's slow enough for anybody. At higher levels it gets progressively faster, eventually reaching a point that nobody can hope to keep up.
 
user1804599
@Xeo because it was the first answer!
 
I figured out how @ScottW mind works
 
5:11 PM
@JerryCoffin levels as in different actual areas, or?
 
@Pawnguy7 a lo of games were
 
@Xeo The typical: the person who asked the question is in nearly the worst possible position to judge the quality of the answers.
 
@TonyTheLion needs more rape
 
Perhaps I can have two scales.
 
Xeo
5:12 PM
@JerryCoffin And way too quick to accept it
 
Hi, greetings from egypt
 
@Pawnguy7 you that fat?
 
@Pawnguy7 Doesn't really matter--just start it out slow, and speed up as the game progresses. If the are levels otherwise, do it then. Otherwise, something like speeding it up every N sections added to the snake.
@HforHesham Hello.
 
user1804599
@HforHesham Good morning.
 
Good morning @rightfold actually it's evening here
:)
 
user1804599
5:17 PM
Same here.
 
the new SE looks nice
 
user1804599
Couldn’t agree less.
 
@HforHesham Seems to be somewhat controversial. Some like it, others really don't.
 
I want my drop-down activity summary back!
 
that black bar on SO is too black.
 
user1804599
5:19 PM
YOU RACIST!!1
 
yep I am
 
we will get used the new interface
 
I haven't even got a name! I'm just an avatar.
 
user1804599
You’re called Vim now.
 
Oh, I'm so happy about that:(
 
5:21 PM
@Abyx yes this bar is too black
i think they should allow the user to select his color
 
They already do that, but they make the assumption that all SO users are black~
 
@HforHesham As Henry Ford (reputedly) said, "They can have any color they want, as long as it's black."
 
@MartinJames for some reason I read it as "I want ... black!"
 
I like 'em black baby c;
 
user1804599
I like it grey.
 
Xeo
5:31 PM
Fuck yeah, time for some Starbound
 
@Abyx LOL NO! I hate the black bar.
 
@Xeo starwhat?
 
Anyway, I think I lost the essence of what snake is.
It isn't moving 20 times a second and dodging a wall.
 
@rightfold Technically, it isn't quite black (color number 0x212121, IIRC).
 
It is about planning your use of space.
 
5:33 PM
@JerryCoffin On my monitor, it may as well be 0x000000.
 
@MohammadAliBaydoun Hello From where?
 
@HforHesham Beirut
 
hala
 
@MartinJames Perhaps I could advise that you get a better monitor and/or dimmer lighting? :-)
 
5:34 PM
@MohammadAliBaydoun Um from egypt
 
@HforHesham I know, I read the chat transcript above~
 
poll: why mingw is bad?
 
0x212121 is about 0x000000 away from "too black for SE"
 
0x000002black0x000004SE
 
Once you go black, you never go back.
(I'm obviously talking about coffee here)
 
user3010322
5:36 PM
Coffee is nasty, and I've tasted it, so
 
Xeo
Starbound, Humans and Robots ("Glitches")
2
 
@EtiennedeMartel LOL
 
@JerryCoffin It's settings are fine for all the other stuff, YouTube, VLC videos etc. I'm not fiddling with my monitor because of some unwanted, eye-straining, fugly pseudo-random tweaking of one blog site header:)
 
@ThePhD It's an acquired taste. That is, it's poison, so you have to convince your body that it isn't before you can like it.
 
Xeo
lol'd at the gender selection
 
5:37 PM
@Xeo yeah
 
user784668
@rubenvb how do I file a patch for MinGW-w64?
 
user1804599
@Xeo lolcool
 
..or adding any JS tweaks.
 
@MartinJames I suppose I'm being egocentric -- I fancy myself a photographer, and like to think it's good to be able to see the finest gradations in colors and such.
 
5:40 PM
@Pawnguy7 I like having Penis cross sections in the bar too
 
@MohammadAliBaydoun Those are fingers. Trust me, I know my penises.
 
Huh?
 
@MohammadAliBaydoun Hmm. the bar is not wide enough.
 
Wait, scratch that.
They are heads.
But they're not penises.
I'm a penis expert.
 
Nicholas Cage heads, to be precise.
Not sure where that concept came from.
 
5:41 PM
Oh hey, they are heads ;o
 
Snakeheads
 
how to change the bar's color
 
@EtiennedeMartel Looks like I need to study penises more.
 
I'll never land that job if I can't tell the difference between Nicholas Cage's head and a penis :<
 
5:42 PM
@MohammadAliBaydoun There are probably more interesting ways to spend your time.
 
@MohammadAliBaydoun You need to find out if the interviewers are Cage fans or not.
Hungry.. kitchen.
 
user3010322
@JerryCoffin Like, for instance, the study of vaginas and penises together.
 
@ThePhD I advise that this be approached more as a lab exercise than classroom study--practice, practice, practice!
 
Or better yet.
But really, it looks pretty terrible with anything non-black as is.
 
@Pawnguy7 s/ with anything non-black as is//
 
user1804599
5:49 PM
Yum, lack of space before full stop.
 
user784668
@rubenvb alternatively, could you use your connections to get this patch through: gist.github.com/Fanael/7810014 ?
 
@JerryCoffin that too. Just, the issue isn't only the background color (black vs basically-but-not-exactly-black).
 
user3010322
Hm.
 
user3010322
I need a range interface.
 
user3010322
@JerryCoffin Say, what do you think of doing something like data[ 2 ] on a range? Do you think it should jump from the beginning of the range to the "second" item? Or should it move from it's current position (say, if the data range was at 5, it'd end up at position 7) ?
 
user3010322
5:54 PM
/cc @R.MartinhoFernandes, because he might be interested in this.
 
user3010322
Also @DeadMG, because he talks about ranges alot.
 
@ThePhD pushing the range forward with the operator[] is a bad idea honestly
@ThePhD data[2] -> obviously sometimes returns like 7th element
 
user3010322
@ScarletAmaranth I'm trying to discover what it would mean to have ranges be forward, backwards, and random-access.
 
user3010322
And what that interface would look like.
 
@ThePhD that's all nice and dandy, but your interface needs to be consistent with "everything else"
 
user3010322
5:56 PM
@ScarletAmaranth Random-access is done by operator[]
 
user3010322
in "everything else" (vector, array, etc.)
 
@ThePhD you would also ruin the: for (int i = 0; i < range.size(); ++i) { range[i] something } kind of thing if your operator[] would move the range forward
 
user3010322
@ScarletAmaranth Okay, so should it return a pseudo-range then?
 
@ThePhD yeah, I said it's a bad idea to make it push it forward, not to make it a random access iterator really
 
user3010322
Like a proxy object.
 
user3010322
5:58 PM
That represents what's at [i] ?
 
@ThePhD it could, but that's the point, it should represent what's at [i], not what's at i + some_state
@ThePhD " (say, if the data range was at 5, it'd end up at position 7) ? " with " data[ 2 ] "
 
@Pawnguy7 lol
 
@ThePhD data[2] looks to me like it should refer to an absolute position.
 
@JerryCoffin high five
I feel that's one of the (many) major major mis-designed when they decided to decay arrays into pointers
array[2] is always the second element
 
user3010322
Hm.
 
6:01 PM
but you can increment a pointer somewhere, and then do pointer[2]
 
user3010322
Okay.
 
user3010322
That makes sense.
 
user3010322
The reason I'm asking,
 
pointer[2] will do + 2 * sizeof(gief_type(*pointer)), which is not what an array should do
 
user3010322
is because I'm going to be making Stream and then applying a range concept on top of that.
 
user3010322
6:02 PM
The, uh, bad thing is, I don't know how I would do something like seek
 
user3010322
seek is usually done from the current position, not the absolute position
 
yeah, but you don't use operator[] for that sort of thing, you roll with +, -
 
user3010322
Hm.
 
user3010322
Make sense, I guess.
 
again, arrays -> pointers differences
arrays should have their beginning constant so that operator[] always does BEGIN + stuff
operator[] will do

current_random_state + <- see this plus? this plus is evil here if the state on the left hand side is NOT constant
 
6:05 PM
posted on December 05, 2013 by Eric Battalio

Did you watch Charles Torre's discussion with Ale Contenti, Tarek Madkour and Herb Sutter at the Visual Studio 2013 Virtual Launch last month? The team answered a number of questions from Charles and the community on topics ranging from refactoring to...(read more)

 
user3010322
Lol.
 
user3010322
I think this is the best cast I've made to date. :D
 
@ThePhD If a doctor told me this, I would feel confident, with you that just scares me ;)
 
user3010322
@Borgleader But it's so purdy!
 
6:09 PM
casts are bad, they make code compile!
 
user3010322
Oh. I need to beef up my UCD generator...
 
user784668
@ScarletAmaranth Cats are bad, they make code!
 
@Borgleader oh, only NOW do I get your joke, that's a good one
 
user1804599
Hi.
 
6:33 PM
I'm feeling like using std::function everywhere now.
 
user1804599
Use templates.
 
what
 
god damn it
 
user1804599
haha
 
i have 4GB of ram now
 
6:34 PM
that's plenty
 
my roommate ordered a new motherboard and a CPU and forgot new RAM
@Jefffrey what? that's barely usable at all
 
I've 4GB and I'm ok with that.
 
user1804599
I have 4GB of RAM and it’s more than enough. vOv
 
I have 6GB and I desperately want more.
 
user1804599
I can use it to chat in Lounge<C++>, run Z shell, run my text editor and listen to music. What more do I need?
 
6:35 PM
6 is a funny number
 
@Jefffrey my PC boots up on 2.65GB
 
Well, I have 12:)
 
so seriously, 4GB feels useless
 
user784668
Kids these days.
 
... they don't have enough of anything.
 
6:37 PM
4GB? my chrome tabs are currently eating almost as much :)
 
I regularly use more than half my 12GB when running VM's.
 
@Fanael not my fault software takes so much
@Jefffrey the racing game I've been playing lately takes around 2GB
 
user784668
@BartekBanachewicz Not their fault, if the software tried to use less it'd be a premature optimization
 
so seriously it's just how it is today
@Fanael so no point saying that 4GB is enough when it is not
 
Back in my days, coding just required a piece of stiff paper and good will, not Gigs of RAM.
 
6:40 PM
@Jefffrey ... w/e
 
32GB is more memory than anyone will ever need on a computer..
 
just like 640k.
 
..or something like that.
 
So hum. How would you guys express: Object X has limited side effects on Object Y?
 
user3010322
What is sizeof( void ) ?
 
user1804599
6:42 PM
An error.
 
user3010322
Well, tits.
 
Undefined question.
 
user1804599
You cannot take the size of an incomplete type, noob.
 
@ThePhD 1
 
is void classified as an "incomplete type"?
 
6:43 PM
But it also gives a warning. For free.
 
and it's definitely not 0, C won't let you pile objects on each other :P (hypothetically)
 
user1804599
@ScarletAmaranth Yes.
 
user1804599
And it can never be completed.
 
Should Object Y do something like y.receive(x) and apply the side effects to self?
 
from whence you came, you shall remain, until you are, complete again -> void is now sad
 
6:46 PM
@rightfold Just like your projects, then.
 
user784668
@BartekBanachewicz stop downloading HD porn to a ramdisk and 4 kB will be enough
 
Or should there be another component that does if (x == ...) // do something on y per every effect?
 
@Jefffrey Don't see why not. I've done it often enough.
 
@Jefffrey Officially, sizeof(void) simply shouldn't compile. gcc has an extension that treats void * as close to a synonym for char *, which makes sizeof(void) act like it's 1.
 
@JerryCoffin wait what, void and void* are distinct types
 
6:49 PM
@MartinJames sounds about right.
Thanks.
 
@JerryCoffin gcc continues to bring these wonderful gifts.
 
@Jefffrey What do you think the alternative should be anyway? modify(Object& o) sort of horrible thing :)?
 
2 mins ago, by Jefffrey
Or should there be another component that does if (x == ...) // do something on y per every effect?
 
@ScarletAmaranth Yes, I know. But (for example) gcc allows you to do pointer arithmetic on a void *. As you know, pointer arithmetic should be done in terms of the size of the pointed-to object, and when you do this, gcc does it as if the pointed-to object had a size of 1.
 
@JerryCoffin Oh, I am blind, je suis desole
 
6:50 PM
I don't know. Design wise, there are plenty of solutions to a problem.
 
@JerryCoffin ah, right, naturally, I though you were still sticking with void though, I was like hold on, my void* have well defined sizes and things
 
@ScarletAmaranth No apology needed.
 
@JerryCoffin Is it too much to expect an error when doing an insane thing?
Then again, with all the other insanity, I guess I shouldn't complain too much.
 
@MartinJames Definitions of insanity vary (widely, it would appear).
 
well, should there be ANY implicit conversion to define semantics of pointer arithmetic on void*, it should be defined in terms of a "conversion" to char*, but it's stupid anyway I reckon
who the hell uses void*s in C++ anyway
(except for university professors naturally)
 
6:53 PM
TIL that void can have a size. If I have enough beer, maybe I can forget about it by tomorrow.
 
@ScarletAmaranth Anybody implementing operator new and operator delete, for one obvious example.
 
@JerryCoffin right, it was more of an exaggeration rather than a strict rule :P
 
@JerryCoffin LOL!
 
@ScarletAmaranth Yeah, I figured--just couldn't resist being myself playing devil's advocate.
 
@JerryCoffin Very wise, indeed.
 
user784668
6:56 PM
@ScarletAmaranth some cases of type erasure
 
Maybe that explains all the 'missing' dark matter - some cosmologist took the size of void.
 
can anybody else please list an extra example of when using void* is just fine? I think I haven't seen enough...
 
@EtiennedeMartel That's the problem with kids nowadays: they lack John Belushi's spiritual leadership!
@ScarletAmaranth I'm pretty sure you've already seen too much. :-)
 
@ScarletAmaranth ..when passing an object as an aux. value through a C-style callback.
 
user3010322
@ScarletAmaranth I do. :D
 
user3010322
6:59 PM
@ScarletAmaranth any implementations
 
user3010322
@ScarletAmaranth type erasure when dodging includes in your header files.
 
@Pawnguy7, Hmm, do you separate game logic and rendering?
 

« first day (1146 days earlier)      last day (3817 days later) »