« first day (1080 days earlier)      last day (3861 days later) » 

12:08 AM
@Mysticial Its quite interesting. My approach for mallocing and freeing memory each time is keeping the system safe under load spikes but it is leading to overall sluggishness of the Windows GUI. It works but I can feel the computer suffering.
 
Deallocating huge chunks of memory can cause Windows to freeze for a few seconds.
It's a known problem I see all the time on my 64GB machine.
 
@Mysticial It also takes it a bit to dellocate the memory according to the Task Manager. seconds after my thread is done writing the file and has called free. It appears they are still occupied... Its quite weird
 
12:21 AM
@Mysticial Doesn't happen on Linux?
 
@Borgleader Not that I'm aware of.
But I don't do as many tests on Linux. So even if it did, I haven't noticed.
 
12:33 AM
NTFS sucks.
 
What is Redmine?
 
helllooo
 
Oh, we are back on filesystems? Yes, NTFS is horrible.
 
1:00 AM
What happens if you delete an object inside itself?
 
You mean delete this?
look it up
there are a million questions on it
 
Doing that.
Seems to not blow up.
 
1:16 AM
Does anyone know what std::system returns on Windows? 0 on success (all commands, logical ANDs, etc.) and a non-zero value otherwise maybe?
 
@Borgleader Not google advertising, I assume?
 
it was on 9gag so no
 
Either onion or 4chan, or some another random dumbass.
 
@Tuntuni what compiler?
 
1:19 AM
@Nican actually it was probably red forman
 
@Pawnguy7 MinGW 4.8.1
 
Ah. No idea. Not that I would know if I used the compiler, either, but I imagine it makes a difference. Maybe you can find documentation somewhere.
 
@Tuntuni Don't use std::system (the value is implementation defined)
 
Hmm, well I assumed what I just said above and I see it works (found 2 erroneous files already).
@Rapptz I know I shouldn't but boost::filesystem::create(_directory)_symlink doesn't work for me.
So I'm invoking mklink and I'd like to know if it failed somewhere.
 
or.. read the docs.
[Note: Some operating systems, such as Windows, require symlink creation to identify that the link is to a directory. Portable code should use create_directory_symlink() to create directory symlinks rather than create_symlink() -- end note]

[Note: Some operating systems do not support symbolic links at all or support them only for regular files. Some file systems do not support symbolic links regardless of the operating system - the FAT file system used on memory cards and flash drives, for example. -- end note]
 
1:26 AM
I've checked Boost.Filesystem src and it seems my _WIN32_WINNT isn't high enough.
Yeah, I did.
I added a check for file/dir.
Still fails.
 
I've been trying to fix this bug for 7 hours
I quit
 
wow
that's a long time
 
yeah
I'm annoyed atm
 
Maybe you will feel better after you fix my bugs.
 
no
 
1:27 AM
haha
 
meh
 
> Seems to not blow up.
I spoke too soon.
 
M-m-my program w-works.
YES
 
Mine doesn't :\
 
Well, the first part does. Let's test the 2nd part.
 
1:31 AM
Don't do delete this.
Any fucking sane answer on SO would have suggested that
 
Aw fuck, the 1st part doesn't really work. Damn it.
 
@Rapptz I was hoping I could do it quick and dirty. I guess I was wrong.
 
Maybe use std::shared_ptr and std::enable_shared_from_this.
 
I was doing the Screen thing again.
But in a small one file project.
I thought I could use a global variable, and change it from within.
I guess I can use the return value.
 
sigh ._.
Why won't this work
 
1:38 AM
Define this.
 
the bug I've been working on for the past 7 hours.
 
Your right. Not as if I could have fixed it :D
 
Might be better to revisit my older approach of grouping expressions.
 
greetings infidels
 
hi
 
1:43 AM
hello
 
welp
 
wow
 
@DeadMG According to the great prophet Mohammed (praise be his name) and Allah (all praise be to Allah) you shall be cursed unto the seventh generation for having addressed one such as myself who as submitted his will unto Allah's as an infidel!
 
it really worked this time
AWWWWWWWWW YEAAAAAAAAAAHHHHHHHH
 
infidels ... indeed, we have been unfaithful to your dog
 
1:47 AM
@JerryCoffin I see.
 
Who was it that didn't like my braces?
 
@DeadMG I can tell you're trembling in your boots.
 
the ones I'm not wearing?
sorry, grumpy today.
 
Just between you & me, kz ... I have to admit I have commit issues ... but it scares me that I could be committed to heaven or hell for eternality. That is , for ever and ever and ever!!! There is no escape, you can't even commit suicide!!! How scary is that?!!
 
Apparently, if I don't return a pointer, it returns nullptr.
 
1:53 AM
congrats!
 
@Pawnguy7 Failing to return from a non-void function is UB.
 
I imagine so, yes. In this case, nullptr.
I still don't know why they let it compile in the first place.
 
that would be solving the Halting Problem
 
I don't understand how that applies here.
 
for an arbitrary function f, you're asking the compiler to prove something about that function
but whether or not it returns before the last statement isn't provable.
 
1:58 AM
In which cases does it not return?
The only thing that comes to my mind is, say, std::exit, or abort.
 
the case in which you let it drop off at the end.
also exceptions.
as well as stuff like exit().
the core issue here is that the compiler cannot know if f() throws or exits the process.
 
@Pawnguy7 You did delete this?
Evening
 
I hadn't considered that. Perhaps you can syntactical require it? If it reaches it, it is expected, and if it doesn't, no harm, correct?
@Jefffrey technically, I did delete pointer_that_is_global_variable which happened to be equal to this.
I know it is bad, I just wanted to get it done.
Want to see most recent progress?
 
Yup.
 
Or, try?
 
2:02 AM
Is it more than a file long?
 
Nope, still a file.
I plan to keep it that way.
 
@Pawnguy7 The real question is, what damage is done by forcing the author of the function to write it in such a fashion that the compiler can prove that it does, in fact, return?
 
Ok, then let's try.
 
for example, by inserting dead return statements.
 
2:04 AM
@Pawnguy7 What's with the terribly pointless random wrapper?
 
Seems easier to me.
@DeadMG I think you lost me.
 
I'd say to be more accurate, you simply altered the API so that it mimics the Java API.
 
And C#, yes.
 
which is an excellent reason to burn it before it spreads
 
But hey, it is a lot better than my old random utility.
 
2:06 AM
quite probably
but on the other hand, the Standard already designed a new random utility for you- <random>.
 
Still seems more readable to me.
@Jefffrey thoughts?
 
@Pawnguy7 Don't use Random:: before a member function name of Random if you are declaring it inside the class.
It always gives me compilation errors.
 
@Jefffrey that was due to laziness. I copied just the implementation.
I will fix it.
 
> test.cpp:909:5: warning: delete called on 'Screen' that is abstract but has non-virtual destructor [-Wdelete-non-virtual-dtor]
Wow, never seen this kind of warning.
 
well, the compiler's quite right.
 
2:10 AM
It doesn't have any destructor.
 
performing such a thing will cause UB.
 
Why so?
 
@Pawnguy7 Well, I gotta ask, why?
 
@Pawnguy7 you need to specify a virtual one anyway (leave it empty).
 
@Pawnguy7 Because you deleted an object through the base pointer, that was of a derived type, where the base class did not have a virtual destructor. That is undefined behaviour.
 
2:12 AM
@DeadMG Perhaps this: the ranges have to be declared on their own line before use. In this way, they don't, and I can use them about identically inline.
 
@Pawnguy7 Hmm, it gives me a white window.
 
your naming scheme is inconsistent.
 
@Pawnguy7 Use a temporary.
 
random_range, setSeed
pick one
 
I noticed that myself.
 
2:13 AM
also
 
I cannot remember why at the moment.
 
I checked the reference for <random>
 
@Pawnguy7 Nope. I don't have the font file.
> Failed to load font "arial.ttf" (failed to create the font face)
 
Oh. Right.
 
2:14 AM
Ignore me, I keep trying to read engine(distribution).
 
I blame SFML not having a built in font.
 
Still complaining about the minor inconvenience of providing a font?
 
anyway, all I'm saying is, your class offers no functionality that could not be done through some simple free functions.
 
Does OS X come with arial?
 
not complex ones, simple ones
 
2:15 AM
I hope so.
 
@Pawnguy7 Yes.
 
plus, you totally could use a temporary here.
there'd be nothing illegal about uniform_int_distibution<int>(0, 1)(engine) != 0.
 
@Pawnguy7 Fixed.
 
Can't you use uniform_int_distribution<bool>?
 
What are the controls?
 
2:17 AM
@DeadMG Oh. There isn't? You can do it Java-style, ala new Object().stuff()?
@Jefffrey arrow keys
 
@Pawnguy7 Of course there isn't. (except the whole new thing, obviously).
 
if I do std::string(blah blah), it is just an expression that produces a std::string object.
and you can perform any action with it that you could with any other std::string object.
 
@Jefffrey I don't understand.
 
@Tuntuni Dunno.
 
2:19 AM
@Tuntuni No
 
> Yo man it's like a fucking spaceship up in here!
I don't know these controls!
But anyway, can I shoot?
 
Not yet.
 
I think it has to be > 32-bits or something
 
Or die.
Or anything really.
 
so anyway
 
2:19 AM
Last thing I made was the green things.
Which sometimes decide to go through walls.
Next plan is to make a death/win screens.
 
all I'm saying is that the job of encapsulating uniform_int_distribution<int>(0, 1)(engine) != 0 might warrant a free function, but certainly not a class.
 
Then add them to it.
 
I don't have much plans for the game currently.
I was thinking, add a blue safe zone where you start.
And a red zone on the other end to reach.
Note the generation, both of shooting things and blocks, is quite temporary.
If the square doesn't move, you spawned on a block.
 
Blue zone + timer + actual death = playable game
 
2:22 AM
So. Anyone wanna help me figure out why this thing doesn't work? :(
 
@Rapptz What?
Oh, I forgot, he plonked me.
lol
 
@DeadMG I think at the time, I was thinking of two things. First, the seeding, though I guess you can just make one on the spot.
Second, srand and rand are global, as were my old functions. I figured this would fix it.
 
@Rapptz What thing?
 
@Jefffrey you like what I outlined?
 
also
 
2:24 AM
@Pawnguy7 lol
 
your nextDouble() method uses uniform_real_distribution<float>.
 
@DeadMG Remember that ctrl & w idea I had yesterday?
Well it breaks when you do more complex things like (ctrl & w) | k etc
 
@Rapptz Yep.
 
@DeadMG good catch. I bet you I c&ped there.
 
I've been trying to figure it out for ~7+ hours
 
2:26 AM
@Jefffrey If you are ever bored, the green squares have a habit of going into the walls.
 
@Pawnguy7 what did you outline?
 
@Jefffrey the safe/win zones.
 
also
your random_range function is totally bugged.
 
Do tell.
 
well, your intention is to return a number [lower, upper], right?
 
2:28 AM
@Pawnguy7 yup, I like them.
 
@DeadMG depends. random_range or irandom_range?
 
@Pawnguy7 random_range. I haven't looked at irandom_range yet.
 
@Jefffrey Ok. Should the player shoot? (probably in the direction of the mouse)
@DeadMG random_range was [min, max) I believe.
 
ultimately, that's irrelevant.
 
What is?
 
2:30 AM
it doesn't matter whether the upper or lower bounds are inclusive.
because you set the bounds wrong.
 
Quite possible. I haven't used it yet.
 
you asked nextInt for 0, max, then add min to it- so the result is min, max + min.
 
@Pawnguy7 yeah, why not :)
 
inclusive or exclusive doesn't matter that the new upper bound is way too high.
 
Is there an official way to compute OpenGL projection and "look-at" matrices? I've looked at about 10 different websites, and they all have slightly different versions.
 
2:30 AM
you have to subtract min before.
 
@Jefffrey Ok. Any other suggestions?
 
Better textures.
 
interestingly, irandom_range gets this correct (which just goes to show that you didn't implement them in terms of each other like you should have done)
 
@Jefffrey that requires artistic ability.
 
@Pawnguy7 No. Just downloading abilities :P
 
2:32 AM
@DeadMG in that case, it was a bug I noticed, and I never used the other one.
@Jefffrey Good point. Though I don't really know the look you have in mind.
 
@Pawnguy7 The look you have in mind is what matters, not mine.
 
@Jefffrey You have seen my work. I think in colored squares.
I don't think I have made a project that loads a texture yet.
 
Time for some "Homeland". See you all in 50 minutes.
 
@Jefffrey That's airing now?
 
@Borgleader I think you need a math library like GLM. Or you could regress to GLU.
 
2:35 AM
@Pawnguy7 Make those cubes pixelate like minecraft style or something then.
 
@Pawnguy7 Also, your generate(BlockGrid&) function is totally messed up.
 
@DeadMG Do tell.
 
@DeadMG Nope, I've downloaded borrowed the s03e01 from internet.
 
@MarkGarcia ugh... a whole library for 2 matrices? :(
 
@Jefffrey Minecraft is nature. Mine is... I have no idea.
I planned to go with what I have, sort of like
 
2:36 AM
@Pawnguy7 Well, the core issue is that at the most fundamental level, you never permit the public API to set the data inside the BlockGrid.
 
@Borgleader Well, it's for working with matrices in general. You'll never know you would do more calculations with your matrices.
 
@DeadMG friend function.
 
@Pawnguy7 Why? It's, fundamentally, a constructor. Unless you want to tell me that a map completely full of empty blocks which is now totally immutable is useful.
 
It probably could be made a constructor, yes.
 
simple fact is
if I do BlockGrid b; and then don't call generate, I am going to get meaningless shit back out.
 
2:39 AM
Same for several things.
 
and those several things are therefore also by default horrifically broken.
 
You want a Level or something?
 
fact is, your BlockGrid is a container. It's a wrapper on a container. It should offer a relatively similar interface.
 
Doesn't it?
 
no.
I mean, for one, there's no iterators, indexing operator, or anything that is even remotely consistent with a container.
secondly, it's an immutable container- that doesn't allow you to set the data within at construction time.
how is anyone supposed to set the data in the container to a meaningful value?
they only have two choices- irrelevant noise that's essentially an invalid state, and randomly generated.
 
2:42 AM
It is meant to be randomly generated.
 
@Pawnguy7 That's none of the BlockGrid's business.
 
And it isn't going to be used in any other fashion that it currently is.
That is why it is a one file mess.
I mean, look at the Screens.
There is no way that is good practice.
 
true.
but it was my understanding that you wanted to get away from bad practice, right?
I mean, correct me if I'm wrong here.
 
I do, yes.
 
ok
 
2:44 AM
But I wasn't getting very far, so I switched projects.
 
well let me give you a pro tip
practicing writing code with toy projects, is never going to work if you don't treat them like real projects that really matter.
 
I mean, this has more code than the two week + old project, and it does more.
@DeadMG It wasn't meant to learn design. Though I have learned already - it used to have a BulletManager.
 
hm
 
And now, I am learning more still.
I cannot find the wikipedia article for it anymore.
But I basically sit their endlessly, never able to pick the right design.
This can be explained like this: the other project, which is over two weeks old, does less than this, which is three days old.
And the old project is of marginally better design.
What do you think?
Anyway, while we are at it, I had some design concerns as well.
The reason I did not have the setter public is like that of the screensaver - anything could change it, which doesn't seem very good design.
Also, I pass vectors everywhere.
Take turrets, for example. They should not modify the existing bullets, just add new ones.
 
@Pawnguy7 Not a setter. A constructor.
 
2:50 AM
What do you do?
@DeadMG containing generation parameters?
 
containing whatever you want to use to create the content
but fact is, for an immutable container, the user has to be able to assign it a meaningful value at construction- else they never can.
 
So the main issue here is potentially invalid state?
 
yep.
 
What do you think of the other issue I highlighted?
 
the turrets modifying existing bullets?
 
2:55 AM
Yes. Or at least, the ability to do so.
 
honestly, I really haven't gotten that far
 
Ah.
Anyway, one thing is clear to me: if I sit in endless decision, nothing gets done.
Not the program, or learning.
 
that's true.
 
But when I actually do get stuff done, as with this, I don't exactly use the best design.
 
@Pawnguy7 Here's a suggestion for you. Start by stripping out all the dead code. For example, your BlockGrid container has a getSubset method, but there are no uses.
also, the whole Screen thing, it's not what I would choose to do, but I wouldn't describe it as wrong.
in fact, I seem to recall advising you to use this very design.
however
what I will say is that you've gone way overboard with the member draw() functions.
let's face it, the BlockGrid class is a const boost::multi_array<bool, 2>.
@Pawnguy7 Simply pass in a function or other object that has the right to create bullets, but not add them.
@Pawnguy7 That's why you pass in a const reference.
 
3:19 AM
> Or when the optimist fell of the roof of an office building.
As he passed each floor the people inside could hear him say: “So far so good... so far so good...”
Can someone explain it to me?
 
@Jefffrey The real problem only occurs when he hits the ground, but anybody with a reasonable grasp of reality can figure out the landing is going to be ugly long before they get there.
 
Yeah I thought about something like that. But that is not funny. That was supposed to be a joke :/
 
@Jefffrey Intended as a joke, but honestly not a particularly funny one.
 
I was watching an Homeland's episode and they said that "joke" and everybody laughed their ass off. And I was like :/ "wat"
 
3:50 AM
well you gotta ask yourself who was laughing
some of the characters on that show are seriously fucked up
 
@JerryCoffin he may have been delusional, but his ability to stay clear minded while falling is exceptional
 
@DeadMG Mrs blondie is fucked up. But the actress is very good.
 
I agree
 
 
blog.matthewdfuller.com/2013/09/… He forgot "Learn some social skills"
 
you don't need those :P
 
You are right, we need more coding monkeys.
 
i could use one
 
What do you need developed? :o
 
4:43 AM
0
A: Why does the C++ STL not provide any "tree" containers?

user2828273check out exeray abaxmap and abaxset. it is the fastest tree map and set so far.

^^ Does that count as an answer?
 
Wat is dat?
 
@Nican i'd take it to work
 
Stack Overflow is taking too long to load in mine. Other sites are OK. :(
 
I just got back on chat.
SO and Anime.SE are timing out.
meta.SO seems ok
 
Meta Stack Overflow is ok in mine too.
 
4:50 AM
SO is perfectly fine here.
 
imgur and 4chan are not working for me
everything else is though
 
@ScottW The bad finale of breaking? Who'd want to see that?
 
4chan 503ing on mine. imgur is fine.
 
@ScottW here I am
 
flushing my dns helped
 
4:54 AM
So what could've broken the whole internet like that?
 
Flushing DNS and restarting my browser helped.
@Mysticial My guess is that Google added a header in its responses. vOv
 
How could that break the Internet?
 
Because Google is the internet?
 
You mean HTTP Header right?
 
:)
Or at least is most of it. :)
 

« first day (1080 days earlier)      last day (3861 days later) »