« first day (960 days earlier)      last day (4005 days later) » 

user142019
12:00 AM
> Comic Sans MS
 
Ell
Oh my god
I can't believe what I saw just now
 
Thats right, zoidberg. Deal with it.
 
Ell
Somebody star that
Not that! The code in comic sans!
 
user142019
No.
 
user142019
FU.
 
Ell
12:01 AM
I can't really tell whatrs causing the issue with your code though @pawn guy sorry
 
Also. If I omit the constructor, it still runs. Just... not graphically.
So, the issue is somehow the static part, is my only guess. I am lost.
 
Ell
Yeha
 
I guess it is time to make another visit to beg laurent for help :D
Anyway.
I had an idea.
For a screensaver of sorts.
 
user142019
 
It is made of blocks like this.
Anyway, I was thinking, what if you could make a screensaver where the terrain generated was based on user scripts?
Say, be able to get and set color in a rectangular region, basically.
I just... have no idea how you would be able to do that. Any ideas?
Or is it a really bad idea?
 
12:18 AM
That bad? :\
 
Ugh power outages
 
hi lads
 
morning
 
it's 2:33 AM here
 
same here
that counts as morning doesn't it?
 
12:34 AM
it's more night IMHO
 
ye it does feel like night
 
You are new though, why are you here?
 
Does it matter why he's here?
 
it matters to me
 
Ya know, I think I've realised that when my maths book says "Check this:", they don't mean "how cool is that:" but more "interesting exercise left to the reader:". I prefer my version however.
 
12:44 AM
Thats because math is not cool :P
 
I desperately need to drink.
 
@Jeffrey cola, and I got here by accident
 
@FlorisVelleman I meant alchol...
 
C# is kinda cool
Especially the fact I am just rebuilding an app from disassembly
 
@BartekBanachewicz the amount of ways to implement getters and setters seems like programming php
 
12:51 AM
@FlorisVelleman what
that's so unrelated it hurts
Why are you even talking about PHP
 
@FlorisVelleman Thats statement is so wrong I dont even know where to start
 
PHP hurts by definition
 
@BartekBanachewicz guess what I managed to do?
 
(said by one that knows PHP pretty well)
 
@Pawnguy7 dunno. tell me
 
12:54 AM
I managed to make SFML not work again, somehow. Although... well, I don't know what the error is, so I guess I cannot be thankful it isn't a linker error.
 
I don't know how I do this :\
How is Minicraft going?
 
@Pawnguy7 I am focused on C# disassembly atm
actually I need some help with this
 
@BartekBanachewicz hi
 
Can't help sorry
 
12:56 AM
hi, whatever
@Jeffrey hey, I need a way to use WinMM.Midi and Win32
 
That is the, ehm... I forget what it is called.
 
that's what disasm gave me, but it doesn't build
 
Also, what do you think of this idea?
 
@BartekBanachewicz I don't even have the bronze badge on those things...
 
@Pawnguy7 pretty funky. I don't know what I should think
@Jeffrey ok, one step forward
 
12:59 AM
s/forward/back
 
Do I need to tell you what to think? :D
 
no, I mean I made a step :)
@Pawnguy7 I am not sure what you expect as an answer
 
oh... good :)
 
@BartekBanachewicz To my last comment or the idea?
 
the idea
 
1:01 AM
@Jeffrey It's quite amazing. I really do feel as if IDE was trying to help me
which is quite uncommon
almost as if it feels my pain
I wish I had that feeling with C++
2
 
VS C#?
 
> error| default template arguments may not be used in function template friend declarations
I'm glad GCC warns in my small testcase but I wish it had for my program :(
 
@BartekBanachewicz We should make a good C++ ide lol
 
yeah, we desperately need a good IDE for C++...
 
@Pawnguy7 yup
@Borgleader It's harder than you would think
 
1:04 AM
VS with Visual Assist X is pretty good but it could be better
 
@Xeo Fun use of decay: friend auto operator+(Iterator lhs, Difference rhs) -> decltype( decay(lhs += rhs) );. Too hard to put SFINAE logic in a friend so I'm refactoring it in +=.
 
@BartekBanachewicz There was some guy who made a plugin for sublime text and clang. looked promising, but he dropped the project :(
 
@Borgleader slapping a clang plugin on ST is not an IDE
 
No but its a start
I mean iirc it would compile the code as you wrote it
and you can compile inside ST
thats a good start
 
1:14 AM
meh
that's much worse than vim can do
 
What do you expect from an IDE?
 
I used to have game ideas... they abandoned me :\
 
oh my fucking god
it compiled
and I think it works
 
@BartekBanachewicz :)
 
that "Invalid updater" is good thing I guess.
 
1:26 AM
Wanna see me IRL?
3 years ago?
 
Not particularly, but whatever.
 
rainbow?
 
I was into LSD at that time
That's me on wine
 
Fun times, huh?
 
1:38 AM
One of the best nights of my life
 
I take it you remembered it, then :D
 
Xeo
Gaaaah, killed Wall of Flesh 6 or 7 times by now, and still no Sorcerer Emblem >_>
Talk about dropluck
 
What's that one do? Reduce mana consumption and/or improved mana regen?
 
@Pawnguy7 Fire, marshmallows and wine... how would you forget?
 
@Xeo Terraria?
 
Xeo
1:40 AM
Ya
@LucDanton +15% magic dmg
 
ooo that's the stuff
 
Xeo
It's the boss that enables hardmode and is the hardest boss until then
But he just won't drop the magic stuff. :(
 
Might want to move on to hard mode content, makes that stuff obsolete no?
 
Xeo
Eh, I'm gathering HM resources right now
problem is that pre-hardmode weapons suck tremendously against hardmode enemies
Waterbolt is only keeping me alive because of the knockback, penetration and bouncing
I basically spam the whole screen until everything is dead, which takes a while if the enemies have a shitton of defense.
 
@ScottW im good. incompetent programmer, but good
 
1:44 AM
I bet I am more so.
 
Xeo
@LucDanton Also, +15% dmg isn't really made obsolete until hardmode bosses
And maybe not even then
 
I've been staring at the Intel design for weeks now and I can't fucking start working on my game engine
 
I am incredibly good at using libraries badly.
 
ISTR to recall I used mana oriented gear for the longest time, for longer spamming rather than improved damage.
 
Xeo
I have that too
 
1:45 AM
Don't exactly recall the spell(s) though.
 
I want to start on a small part but I can't stop seeing the whole
 
Xeo
Mana Flower, -8% cost. Cobalt Armor, -14% cost, reforge on Waterbolt, -14% cost (and +18% dmg)
My problem isn't mana (as I can just chug potions indefinitely), but dmg :/
 
Might have been a problem with mana potions at the time actually. Then again there were two of us so perhaps the challenge is different.
 
yesterday, by Xeo
Terraria
 
Xeo
1:49 AM
@LucDanton I think mana pots triggered the potion cooldown in earlier versions
But they removed that to make magic characters more viable
You might say that they're too viable now :P
 
... yeah that definitively rings a bell :s
 
Xeo
obtw, 1.2 is coming out in (hopefully) July
After nearly a year of abandonment
 
@ScottW The hardest part for me is I've never worked on a project of this scale before and not on a multithreaded one either. This engine is both massive and multithreaded. I'm starting to think I might have aimed too high =/
 
Tbh I've been heartbroken with respect to Terraria ever since our very own 'Operation Fuck the World' resulted in world corruption + the game eating the saves without warning (with .Net trace to boot) :/
 
Xeo
Owch
What was that operation?
Destroy everything?
Flooding the Underworld?
 
1:51 AM
 
Xeo
> I'll kill those elephants. I'll kill all those fucking elephants.
lol
 
const is weird for single pass ranges.
 
Xeo
Guess I don't know enough about Dwarf Fortress to understand the pictures :s
 
@Xeo Elephants, dwarves, and pain.
 
Xeo
> I think they're starting their own little town in there, elephants and goblins living together in peace and harmony, joined only by burning hatred for dwarves.
I like the writing.
Wait, is that a group map, handed around from player to player?
 
1:57 AM
Ye. Called a succession game.
 
Xeo
ah
 
I ragequit before learning that interface :\
 
Xeo
> I've declared today a national holiday.
@Pawnguy7 There's a "texture" pack available with actual images
 
That would probably help, but I was still confused.
At the time time, as I hear it... it is really cool. Like, I love the idea that you can play a past world at a later date, and it makes the history for you.
 
Xeo
Oh boy, those elephants
> After a few months of being pricked by whatever crossbow bolts I can forge, the two remaining elephants keel over and die of blood loss. Victory!
Holy shit, just how durable are those things?
 
2:04 AM
Well the elephants were in fact tuned down in later updates.
Come to think of it, input ranges for which reference is in fact a reference type are more awkward than input ranges for which it's not.
 
Xeo
Are there single-pass ranges where it makes sense for the values to actually be references? Not taking caching like in std::istream_iterator into account.
 
You know the expression "a picture is worth 1000 words"?
 
I suppose they could compute a reference to some object somewhere, but at most once?
 
Xeo
Sounds... weird
 
ye
istream_range<int>(some_stream) | transformed(ref(some_array)[arg1])
 
2:10 AM
nobody?
 
Xeo
@LucDanton hm
 
@Pawnguy7 yeah
 
You know the expression?
 
Xeo
that seems really weird
 
does anyone here knows german?
 
2:13 AM
Well anyway, I was trying to get together an example of it in terms of the web.
 
I'm not complaining because as it turns out it's a happy coinkidink for the two possible results of concat: either you're a single-pass range or a non-reference reference range, or you're not. Resp. yielding a value_concat_range or a reference_concat_range which, given that outcome, I'm likely to rename single_concat_range and forward_concat_range.
 
@Pawnguy7 yes, I know the expression
@Pawnguy7 what does that mean?
 
Well
You know how, in terms of network traffic and how long it takes to get to you.
Images are a huge part of a website in that respect.
So, I was trying to demonstrate that point with some statistics based on a common saying.
I just... don't know how.
 
@Pawnguy7 I don't agree so I don't know either
 
2:28 AM
You don't agree?
 
Images are 10% of a websites. Maximum. IMHO
 
Xeo
Somehow, I can't stop reading that boatmurdered story, although I should be either sleeping or playing Terraria right now. :s
 
Imo the quality of the writing goes down after a while, I either never finished it or I don't remember how it concludes.
 
@Jeffrey What is the rest?
 
Content, community, respect, user experience, jQuery and SEO
 
2:32 AM
We seem to have different criteron.
 
> converting to 'std::__debug::vector<int>' from initializer list would use explicit constructor
It's not just std::forward_list? I'm so confused @R.MartinhoFernandes
 
user1182183
hm anyone can give/link/make a simple example on how to use variadic templates to create functions which accept a variable amount of arguments?
 
I'm guessing that having int& as the reference for a single_concat_range isn't too much of a feature.
 
user425495
I'd be grateful to any c++ gurus with an answer to stackoverflow.com/questions/16879246/…
 
user425495
I asked in chat a bit ago, just got around to posting the question
 
2:44 AM
The moment of truth: I'm going to swap the implementation of concat_map by deferring to concat and map.
Tests pass!
 
I hope you're not serious about parsing HTML with regular expressions. — chris 11 secs ago
 
user1182183
isn't html just kind of fucked up XML? and you don't pares XML with regex...
 
I forget why that is.
 
Well, I made it a link when I found the question.
 
user1182183
can I access variadic template arguments with index []?
 
user1182183
2:57 AM
template<class T, class... Args>
//DWORD base_address, offset1, offset2, ...
T* ResolvePointer(Args... args)
{
	T* variable = args[0];
	try
	{
		for(unsigned char start = 0, end = sizeof(Args...); start < end; ++start)
		{

		}
	}
	catch(...)
	{
		variable = NULL;
	}
	return variable;
}
 
user1182183
..
 
make_tuple and get<>?
You can't do it in a for loop, though.
 
user1182183
@chris hm, I don't understand? : o
 
Actually, Andy wrote something to iterate through them, and Boost Fusion has something as well apparently.
 
@Xeo Do I enforce that the predicate of filter is invokable as const, or do I invoke it as non-const for a non-const filter_range?
 
3:13 AM
@Xeo Say, is it still the right time to talk ranges? :p
 
Xeo
Uhm
 
is this valid- void f() { return x(); } and x is void x() {return;}?
 
@ShuklaSannidhya Yes.
 
@LucDanton can I return the return value from a void function (which is nothing)...
 
Xeo
@LucDanton Theoretically, a filter shouldn't change the the range, but I had some situations before where a mutating functor to remove_if turned out to be the most elegant solution
 
3:15 AM
Oh um that's not the issue (you'd call cbegin or equivalent). It's the functor mutating itself, not the iterated elements.
@ShuklaSannidhya If this is the same question, then same answer.
 
@LucDanton thanks.
 
Xeo
Hm, well, I think I also had that situation once - I think. Which, to be honest, at this time of day doesn't mean much.
 
Actually what I wanted to talk about is single-pass ranges/rvalue ranges, because I've given some pause for thought (rereading the iterator requirements helped as well).
Because you can dereference an input iterator any number of times, weirdly enough.
 
Xeo
Ah, the caching is enforced, huh
Now that you mention it, I do remember reading about that and looking inside the stdlib iterators
 
And I'm not sure if I should take this for granted, or actually code despite this to cater to those kind of ranges (i.e. it's a bit dumb to compute and return the same item twice).
On the one hand I would probably like to write any future single pass range with a non-ref reference, so it'd be nice not to dereference too many times, but OTOH I'm afraid that this could lead to a 'split', like how concat_range is split into a single pass and a forward version.
(There could also be better than single pass ranges with non-ref references, and any 'single' traversal of those would benefit from the former situation as well.)
E.g. I'm kinda torn on what reference type to use for interval(a, b) .
 
Xeo
3:24 AM
Hm. Okay, I'm afraid I'm not up-to-par for discussing range stuff right now. :s
 
Xeo
Just thinking about it kinda makes my head hurt.
 
user1182183
//DWORD base_address, offset1, offset2, ...
template<class T = DWORD, class... Args> T* ResolvePointer(Args... args)
{
    std::vector<T> params = {args...};
	T variable = params[0];
	try
	{
        auto it = params.begin();
        ++it;
		for(; it != params.end(); ++it)
			variable = (*((T*)variable))+*it;
	}
	catch(...)
	{
		variable = NULL;
	}
	return (T*)variable;
}
 
user1182183
thehell why is msvc++11 giving me errors here?
 
Xeo
Shoo shoo!
 
user1182183
3:25 AM
missing tagname..
 
user1182183
enum type error redifinition..
 
Xeo
VC11 has no initializer lists
Also, ugh, C-style casts
 
user1182183
@Xeo how elese I am going to access adresses at specific offsets? it's not like C++ has features to access certain memory locations?
 
Xeo
reinterpret_cast?
 
user1182183
@Xeo never used it..
 
user1182183
3:27 AM
how's that better than a normal cast? :P
 
Xeo
It says what it does and is less permissive.
A C-style cast can be anything
(and don't call it a "normal" cast)
C-style casts are just hideous to look at in C++ when you have better tools available to document the intent of the code
 
Ah, I think I know what I want to express. Scrapping forward traversal altogether makes composing ranges easier IME: the sole purpose of forward iterator as a concept is to 'bless' things like resumable or simultaneous traversals. But it's not as useful for ranges because a source can e.g. allow simulatenous traversals of the single pass range it produces (i.e. more than one can be active at any time). @R.MartinhoFernandes.
 
user1182183
VC++11 does not support template<class T = DWORD, class... Args> T* ResolvePointer(Args... args) ? :/
 
Xeo
Not without the Nov CTP
And even then you only get buggyadics.
Also, wtf are you expecting to catch in that code?
Or rather, what are you expecting to throw?
 
user1182183
@Xeo access voilation
 
Xeo
3:30 AM
That's an SEH exception, not a C++ exception
 
user1182183
(eg invalid memory specified by the user)
 
user1182183
YEah SEH is enabled..
 
user1182183
/EHa
 
Xeo
As far as I'm aware, you don't use the C++ exception mechanisms for it (i.e., try/catch)
But __try and __except
 
user1182183
hm, well, weird O_O because without the try catch I do sometimes get access voilation :P
 
user1182183
3:32 AM
ok installing that update lol
 
Xeo
@LucDanton How is it single-pass if you have multiple traversals (even if they are simultaneous)?
 
user1182183
it has initializer list too or not yet? ; o
 
Xeo
6 mins ago, by Xeo
VC11 has no initializer lists
 
user1182183
oh :<
 
Xeo
Nov CTP has the machinery buggily implemented but stdlib doesn't use it
Really, don't use the CTP
 
user1182183
3:33 AM
well should I switch to vaargs?
 
user1182183
:F
 
Xeo
Just pass a vector directly
 
@Xeo You're right. Better wording perhaps: simulatenous traversals of the underlying conceptual sequence it represents, by allowing more than one single pass range it produces to be active at a time.
 
user1182183
hm will try a few things
 
Xeo
@LucDanton I find that wording to only make things worse for me :(
 
user1182183
3:35 AM
however if that update will work... XD
 
Xeo
It likely won't
 
user1182183
nope didn't : /
 
user1182183
why doesn't MS just use G++.. and help develop g++ -.-'
6
 
So e.g. assume integers () = [0..] -- as pseudocode that is, in actual Haskell you'd use integers = [0..] but we're not assuming purity here. You can do x = integers () and y = integers () and obtain two 'single passes' over the integers, the numerical concept.
In comparison you can't reasonably do the same over standard input: every other range would affect any other.
 
Xeo
mhm
but integers () itself would rather be a range factory, not a range itself, eh?
 
3:38 AM
Ye. It's whatever that interface that produes IEnumerable<T> in another guise. (IEnumerator?)
Point being that IEnumerable<T> is closer to single-pass than forward traversal and that doesn't hurt composing ranges, I think (really lacking experience here though).
 
Xeo
@LucDanton Other way around, Enumerable produces Enumerator, no?
 
In the other direction (i.e. adding more degrees of concepts or whatever rather than removing them) lies saveable ranges or whatever it's called in the D world. But I feel that forward ranges is too awkward and too much in the middle.
@Xeo Oh okay.
 
IEnumerable<T>.GetEnumerator() -> IEnumerator<T>
 
So hey reinventing Boost.Range has definitively not been a waste of my time so far.
 
So were gonna get a better boost range? :P
 
user1182183
3:51 AM
hmm when does a function accept a array initializer? like foo({1,2,3,4,5}); ?
 
Also why are you reinventing boost::range?
 
user1182183
@Borgleader me? O_O
 
:9761159
 
@GamErix no luc
 
user1182183
oki
 
3:54 AM
Is there, like, a starter template for a GNU makefile for compiling c++ files to object files and linking?
 
@Kivin Try the many tutorials on the net.
You may want to use CMake though.
 
@MarkGarcia: =S Everything so far wants to have me read a giant tome of text on make. I don't care how it works, I just want something I can copy & paste.
Fast food information :P
 
@Kivin Same here. Want I'm saying is that if you're in a situation where you choose between GNU Makefiles and CMake, most of the time it's better to use CMake esp. when working with larger and cross-platform projects.
Many people, from what I've seen so far, also have a difficulty building with Makefiles.
 
Makefiles are monstrous.
I've seen no fewer than a dozen makefiles that supposedly fit the description of what I asked for, but don't work, and produce annoying and nondescript outputs.
And of course, they all look completely different.
I always end up writing a .sh with all the hand written gcc commands. Good lord.
 
If only IDE project files were that accepted...
 
4:01 AM
Or only if there was a conversion utility for transforming IDE project files into make files?
 
Most of the IDEs who aren't VStudio end up producing (equally monstrous) makefiles anyways :P
 
@Borgleader Yeah...
 
Then again, who am I to complain. MSBuild confuses the hell out of me. Ergo I end up wanting something that builds, not having to learn about something that builds.
 
@Borgleader And you've sparked an idea in me. That would make a very good project.
 
How is MSBuild confusing?
I mean... are you trying to use it outside visual studio?
 
4:04 AM
I can't really quantify that statement at this exact second, since I haven't spent a whole load of time with it.
I got stuck with one on my lap a while back, it wasn't a VS proj file, I don't really remember.
Other than that, VS handles it all deftly and I have no complaints
 
Here's a quick sample makefile with comments:
I've kept it to a simple minimum -- there are a lots of embellishments you can make, but this is probably a reasonable starting point. Just replace the a.cpp b.cpp c.cpp and a.obj b.obj c.obj with the names of your actual src/object files, change your compiler and/or linker flags to suit, and you're pretty much on your way, at least as a starting point.
 
Thanks mate. One question, does ".cpp.obj" mean (".cpp" | ".obj")?
 
@Kivin It's shorthand for "here's how to convert a .cpp file to a .obj file".
 
Would another way to write that be something like
*.obj: *.cpp
Then use the pattern variables like $< and $@ or something?
 
@Kivin Some makes have something closer to that (using '%' instead of '*", if memory serves), but what I've given above is essentially universal.
 
4:12 AM
Cool beans.
 
@Kivin I've used $*, which essentially everything recognizes. $<will usually mean the source file, but some versions don't implement it.
 
Boost 1.54 RC: boost.cowic.de/rc
 
Now that I know about the shorthand, I see why Qt's qmake produces lines like {..\src}.cpp{debug\}.obj:: I guess.
Though the exact semantics of the brackets and the double colon are still a mystery :)
 
@Kivin Yes, like I said, this is only a minimal starting point, not attempting to show everything make can do.
Since I guess I didn't explain it, most of what make deals with is rule. A rule looks like:
target: sources
    commands to produce target
Make looks at file times, and if the target is older than any of the sources, it executes the command(s) you specify.
 
Right
 
user1182183
4:26 AM
is there a `boost::assign::list_of` with some "more usual" sintax? like `, , ,`, I mean, in this examle, convert
`Player[slot].Money = ResolvePointer<int>(boost::assign::list_of(0x00400000+0x008E98EC)( 0xD8+(0x4*slot) )(0xE4)(0x00)(0x4));`
into
`Player[slot].Money = ResolvePointer<int>(0x00400000+0x008E98EC,0xD8+(0x4*slot),0xE4,0x00,0x4);`
or something...
 
4:57 AM
one more weekend stuck at home...least it's the last time for a while that I'll be sitting here with my thumb up muh butt
 
yiz
5:07 AM
I need more intelligent, fit close friends who I can go hiking/camping with
I have close friends, and know inteliigent/fit people who can go hiking/camping with
but no close friends who want to go hiking camping with
My friends are either not fit enough, or think they are not fit enough, or prefer 5 star hotel/shopping holidays
 
5:24 AM
It seems that everyone here is on vacation.
 
It's saturday night, they're out violating something other than their compiler
 
yiz
Sunday afternoon here
 
@yiz Same. :)
 
yiz
I need to get formally dressed and not walking around in the backyard in pajamas
 

« first day (960 days earlier)      last day (4005 days later) »