« first day (1548 days earlier)      last day (3626 days later) » 

user1804599
15:01
Steampunk is terrible. Let's pick a different theme instead.
@sehe I don't need to read it that thoroughly to see the effort put into a high-quality answer!
Probably not a great place to throw this in, but.... I have a project in mind where it would be important that most users are only able to create one account each. In other words, the website should be (somewhat) able to resist sybil attacks. Would using SMS verfication codes be a good solution? I'd just save all seen phone numbers, and not allow sign-up for phone numbers already on the list...
lol , that reminds of time when i once wrote this clever clever piece of code and was so proud , as i stood in front of client to hear wall of praise but all he said was "The Matrix Module is now satisfactory, Moving on, this class..."
user1804599
How about medieval times.
user1804599
Not quite as fascinating, though.
15:05
med-evil times , yeah fascinating
What you think of a online sort of RPG game called "Suckoverflow"
based on stackoverflows "game"
sort of like forumwarz
user1804599
I think it would be a terrible game.
why?
have you played forumwarz yet?
user1804599
No.
Care to try? , it is the one of the different ideas i found on web
user1804599
No.
15:12
okay :/
user1804599
user1804599
I want this fucking shit.
user1804599
Sans tomato.
where the hell even you got that pic?
user1804599
/b/
15:15
"You, my good friend, are a loser.
You’ve never accomplished anything in your life. You’ve wasted your precious youth playing stupid games, chatting about inane nonsense and looking up perverse animal porn.
You are, in a word, pathetic."
maybe too harsh
@sehe ah beautiful
right then.
so just FunctionSkeleton and UserDefinedType left to go.
then I can start failing 256 of 256 tests.
user1804599
@AbhishekGupta And I'm still better than you are.
@рытфолд you get that was a joke quote , right?
user1804599
@BartekBanachewicz what's up
user1804599
15:23
I make a video game.
user1804599
It's fun.
@рытфолд what kinda game?
user1804599
RPG.
Xeo
Xeo
oh gawd, why did you change your name
rip mentions
user1804599
I got sick of non-arrow replies.
Xeo
Xeo
15:24
lol
it's rightfold, why wouldn't she?
user1804599
People still manage to do it.
Xeo
Xeo
ahaha
yeah
just typing @ brings up a list of names starting with not-so-easy-to-type characters :D
and you're first
user1804599
:c
user1804599
dammit
Xeo
Xeo
15:25
so just go back to your old name
user1804599
I'll do that in a month.
Xeo
Xeo
also, sometimes a non-direct reply and just a mention makes more sense
@рытфолд Isn't there still that trick with registering on a new SE site, changing name, and applying that to all profiles or something?
user1804599
I don't think it is there anymore.
user1804599
The "apply to all sites" button is gone.
user1804599
So about the video game I'm thinking of making it 3D.
user1804599
15:27
The 2.5D kind of 3D.
some pic?
what is it about?
i was kinda part of a game development team once, we wrote the engine from scratch , it was a great pain though
user1804599
Fuck 3D; too difficult.
user1804599
2D it is.
is it web based?
user1804599
No.
15:35
ah cocknuggets.
turns out that for ABI compliance I need to know more than just the arguments to the function for code generation.
might think about changing my ABI so that you don't.
user1804599
@Puppy cocknuggets sound delicious
ah wait
I can query LLVM for this information if I know if I'm a member function or not.
user1804599
@Puppy ITT puppies are member functions.
user1804599
I once found this sprite set with over a thousand sprites.
user1804599
15:42
It was incredibly nice.
user1804599
It was CC0 too.
15:53
opengameart.org
user1804599
I want the exact same pack.
user1804599
I don't know where I got it from.
if it's "incredibly nice" and CC0
it's on opengameart.org
user1804599
It were 3000 sprites.
15:55
@sehe, yes of course, my point was that the pairs have a different type, and are thus not convertible.
user1804599
As for characters this looks good: opengameart.org/content/700-sprites
user1804599
@AlexM. No.
@рытфолд It would be more interesting to me if you actually planned, developed or finished anything properly.
user1804599
lol
TIL std::tuple and std::pair on std::bitset is painful.
user1804599
15:56
Not gonna happen.
your projects are a miserable stream of failures
at first it was funny, but there's seriously nothing interesting in 10-LoC code pieces that do nearly nothing
I should get my troll to use pathfinding and attack me somehow
it's very hard for me to want to do it
it was easy in the holiday
but now after 8 hours of work all I want is to play games
user1804599
I found a bunch of good stuff.
@orlp Just finished PE 215, 40ms
@BartekBanachewicz Rightfold needs your approval or interest to do shit just about as much as I do. There's little purpose in telling her how disinterested you are.
user1804599
16:01
Oh cool, Terminal uses a visual bell if the sound volume is set to 0.
@AlexM. my life :(
people ask what my hobbies are and I'm like "ummmm. Stack Overflow chat and Halo 4? When I'm not getting mortalled at the pub"
I think if I had no job but lots of money I'd be slightly more inclined to do my own impressive programming projects
Ell
Ell
@BartekBanachewicz wtf man
I had a good run of four months or so back in the Uni days
Ell
Ell
what did you write? (or attempt to write)
Boy I'm so unfit
it was gonna be amazing despite the fact that I had next to idea what I was doing
I was basically learning everything about 3D graphics as I went along, and I was also pretty much learning C++ at the time
Ell
Ell
16:15
Woah, @LightnessRacesinOrbit started Kyrostat: youtube.com/watch?v=knw6cG5fM0w
VS is so much nicer than MonoDevelop
@Ell Nope, definitely me.
Ell
Ell
You started it?
I thought no code was written
it was my very first C++ codebase.
I had things like IRefCountable in there.
Ell
Ell
woah it even has getters and setters
like I said, my very first.
Xeo
Xeo
@Ell 8FPS, whee
@Xeo All hand-written software shading, with no space segmentation whatsoever ;p
I decided to transition away from only knowing Lua when I first went to university - so this stuff dates back to like, Oct 2009 or so when I didn't know std::vector.
Also the video recording dropped it by about 10fps
Xeo
Xeo
16:24
> namespace Wide {
just noticed that too
yep, there's some old Wide stuff kicking around in that repo too.
suppose I should fix myself some breakfast
Xeo
Xeo
so should I
the original purpose of the language was to replace Lua for that codebase.
Xeo
Xeo
16:25
I've been having a very healthy diet today with chocolate mousse, a banana, an apple, and some sugary snacks
I should stop doing that
Ell
Ell
My average speed cycling is 12.5mph or 18.3kph
how terrible :(
I'll be at 20 at least by summer I hope. If I cycle every day.
@LightnessRacesinOrbit breakfast? :P
what time did you get up?
hmm
that code is a lot more modern than I expected.
I must have touched it up at some point.
in 2012 apparently.
I have a commit, and then two "Initial Commit" commits, lol
Ell
Ell
I always find it odd how I wrote significantly more code when I knew less than I do now - and I don't mean due to writing more succinct code now
I generally find that I write less code because the code I do write is more flexible.
I found a shitload of places in Wide where I basically ended up with manually implemented lambdas.
turned out that although in theory, the interface had many functions, in reality, the vast, vast majority of uses were just one of those functions with captures.
so now even though I've added features since then the codebase has shrunk.
because there's less bullshit in it.
@Puppy sure, that's the excuse
Ell
Ell
16:31
@Puppy I think this is the case really
hmmm
according to my reading of this code, you can only call a delegating constructor with one parameter...?
Ell
Ell
I mean when I was a beginner I wrote a fancy Pong in ruby, with special balls with different effects and that
oh wait, I recall that I generally broke multi-argument constructors.
Ell
Ell
but for some reason I implemented a file browser in it :L
lol
Ell
Ell
16:32
It was for saving and browsing games
who saves a pong game I have no idea
but I find it funny that I wrote a file browser for pong
Pong, Enterprise edition?
Ell
Ell
seems like it :P
though there were no singletons or factories :P
so more like Pong Enterprise Lite™
you disappoint.
I never did Singletons but I did have factories.
I do still have factories from time to time but not dedicated factories- the factory part is almost always just incidental.
@Ell about 3.30? :)
Ell
Ell
fair enough :P
16:42
im trying to write a simple qt knock off. one thing that always confused me was events vs. signals and slots. for those that understand the difference well enough; do you think i ever need to expose events to a user of the library? or are signals and slots good enough
@mbgda: Yes. IIRC either Sutter or Meyers vaguely agrees with this as an observation in hindsight, though I can't find the relevant blog post at the moment. — Lightness Races in Orbit 2 mins ago
can anyone help
@Ell Ping!...........................................................................‌​.................................................................................‌​......................................................Pong!
I'm not sure if you would really call it a factory, but I sometimes like to have a data structure that represents all the options you want for something, that you then pass into a constructor or factory function (or use a 'make' method). It's mostly just for when creating the object directly could get rather tedious
@LightnessRacesinOrbit Not sure about Herb, but Bjarne mentions rval() in TCPL 4th Edition
EMC++ mentions rvalue_cast
speaking of which (EMC++), is the claim that volatile does not prevent reordering (according to the Standard) correct?
1.9/8 seems to imply the opposite
@AndyProwl Does it?
It seems to imply only that the as-if rule doesn't makes sense for volatile objects, but is re-ordering ever prevented at all without the as-if rule?
16:54
@LightnessRacesinOrbit It says "Access to volatile objects are evaluated strictly according to the rules of the abstract machine". The way I read it, that means access must be performed in program order
I think you're jumping to a conclusion there
you're not considering what those strict rules are
@orlp Aaaand, just solved PE 265, 194ms
@MohammadAliBaydoun You wrote the code in 194ms? dafuq are you made of =/
@LightnessRacesinOrbit well, conforming implementations are required to maintain the observable behavior (1.9/1, as-if rule), and observable behavior includes access to volatile objects (always according to 1.9/8)
@Borgleader Hopes and dreams!
16:58
@AndyProwl It somewhat does and it somewhat doesn't.
@Borgleader Maybe it stands for megaseconds.
volatile reads/writes must be performed in source order, but they are unordered with respect to regular reads/writes.
user1804599
ALLAHU AKBAR! :(){ :|:& };:
memory barriers apply to all reads/writes.
user image
5
lol
user1804599
16:59
SUSPICIOUS FLESHLIGHT
@AlexM. lol.
so volatile does not prevent re-ordering if you were trying to use it as a thread-safety thing (which obviously you weren't because it can't be used that way)
SUSPICIOUS RUSSIAN LOBSTER
@AlexM. They should keep an eye out. Next thing you know he'll turn himself on.
@Puppy ah, I see. Then the claim in EMC++ is correct
user1804599
17:01
@MohammadAliBaydoun ЛОЛ
@AndyProwl It depends on whether he meant re-ordering w.r.t. each other or re-ordering w.r.t. regular reads/writes. So it's a bit of a subtle thing. But the general gist is that you cannot use them as any thread-safe anything, and as long as that's the idea being put across, I wouldn't complain too much.
user1804599
Ok I know how to do the camera-follows-player stuff.
user1804599
Just (.translate g (- (:x player)) (- (:y player))) before drawing everything! <3
@Puppy Yep, I was aware of the fact that volatile cannot be used for thread-safety. I didn't know - or rather, overlooked - the fact that volatile r/w operations can be reordered w.r.t. non-volatile r/w operations. The example he gives is about reordering w.r.t. regular read/writes so that's okay.
@рытфолд Gratz.
@AndyProwl Yes, that's quite fine and totally to the point.
i wish there was a general guideline to knowing when its faster to copy data vs. use a shared ptr
also if I recall, there is no guarantee of atomicity on volatile reads/writes, so you could get tearing or other undesirable effects, even if the re-ordering constraints were enough.
lol faster
indeed there is no atomicity guarantee
@Pris I think you're asking yourself an inappropriate question. Using shared_ptr vs doing a copy is more a matter of semantics than one of performance
Ell
Ell
17:09
I don't know why people get the impression volatile is useful in multithreading
it never occurred to me that it would be
mostly because the same keyword means different things in other languages
I never used volatile
never had the occasion
and also because C++ articles in the past suggested that
user1804599
@Ell Because it is in C# and Java.
Ell
Ell
@рытфолд Oh right
user1804599
17:10
@Ell Because some resources falsely say it is.
user1804599
@Ell Because it is in MSVC.
Ell
Ell
I thought java used synchronised
user1804599
That's more like a mutex.
@Ell M$ VC f****ed it all up :-( ...
fuck MS
2
17:11
@AndyProwl well you can have the specific scenario where there's data you can duplicate and send out, or send a constant shared_ptr to the data instead. one incurs the overhead of multiple copies, the other incurs atomic ref overhead
@πάνταῥεῖ Not really. Intel are the ones who designed their ISA that way. As far as I know, MSVC's volatile guarantees merely reflect what x86 is capable of.
@Puppy I've been reading an answer or comment yesterday, that MSVC introduced it as a non standard extension.
@Pris you need a shared_ptr only if you have to pass ownership - and in that case, consider unique_ptr first - and if you use your type with reference semantics rather than value semantics. It seems to me like a remake of the question "when should I pass by value and when should I pass by reference/pointer?", but with shared_ptr in it (which I find inappropriate).
@πάνταῥεῖ \NO!\
they wouldn't do that
@πάνταῥεῖ They did. And they did it because x86 supports it that way for free, essentially. They don't implement anything special on top of Standard volatile. They merely added the guarantees x86 gives them for free.
user1804599
17:26
I have a bunch of images with magenta meaning transparent.
@πάνταῥεῖ It's sort of an extension, but I don't see anything non-standard about it. It simply defines behavior in some cases that the standard says are undefined behavior, which would make it a conforming extension.
Ell
Ell
it's implementation detail isn't it? versus non conforming
I don't see a problem with an implementation permitting code that is not Standard-conforming to have meaning.
every implementation does it all the time.
g++ has many, many extensions- probably more than MSVC.
Ell
Ell
Of course if you want to write non cross platform code then it's fine
precisely.
allowing Standard-conforming code to have a different meaning than the Standard meaning is a very different bucket of fish, though.
17:31
Fcuk non-intel
they target ARM now too
Oh.. I like ARM.
Fcul all the other shit, then.
Mebbe I should goto bed.
user1804599
Woo $ for f in ./**/*.{png,PNG}; do convert "$f" -transparent magenta "$f"; done shiny.
Ell
Ell
@Puppy I can kind of see a problem where people implement stuff as extensions instead of pushing for it in the language, but usually it ends up helping towards that effort
user1804599
ImageMagick is so fucking awesome.
17:35
@Ell Many language features started out life as extensions.
@рытфолд Is that a texture loading library?
Ell
Ell
@Puppy yeah exactly (that was the latter point)
user1804599
@Nooble No, it's an image manipulation tool.
there's a C++11 feature listed as supported by VC6.
user1804599
I had a bunch of sprites with magenta signifying transparency so I made them really transparent by removing the magenta in 1 LoC.
17:36
extern template definitions I think
Ell
Ell
won't modules solve that?
what, extern template definitions?
maaaaaaybe
fact is
the only C++ feature subject to as much dicking around, objections, revisions, and infinity proposed designs none of which make any progress is Ranges.
@StackedCrooked That is pretty cool.
17:49
"Usually, the most practical approach is to adopt a 'guilty until proven innocent' policy, whereby you use overloading or universal references instead of pass by value unless it's been demonstrated that pass by value yields acceptably efficient code for the parameter type you need."
^ I don't like that
Fucking hell
@JoachimPileborg What do you mean by "no difference"? Let me assure you that UB does make a difference. Tell me again what happens if you call [pPromptDlg](int&) {delete pPromptDlg;} twice. — Columbo 39 secs ago
It's the same guideline Herb gave at CppCon
I think it's the definition of premature optimization
user1804599
user1804599
Dammit. :(
user1804599
Sprite set y u no transparent.
17:50
@AndyProwl It's bullshit. Meyers doesn't know much about universal refs, unfortunately.
@Puppy It's Herb, too
they're both on efficiency crack.
user1804599
Herb's high on herbs.
they must compulsively micro-optimize everything in sight, regardless of the fact that it'll give them 0.000001% performance.
if that.
@рытфолд: Seriously, WTH is this nick name?
17:51
which is weird since Herb's always been the one warning everybody about premature optimization
user1804599
@VáclavZeman Привет, камрад!
@рытфолд I cannot read that. :(
user1804599
Good.
@рытфолд is trying to dodge non-arrowed replies.
but it's totally ineffectivel
user1804599
17:53
Ok so I have no idea how to do this.
I want rightfold back!
user1804599
I don't want to edit all the sprites manually, but I cannot process them mechanically either.
@VáclavZeman "Hello comrade"
@JerryCoffin Ah.
why can't you process them mechanically?
user1804599
17:54
Some parts are white and have to be transparent, yet some parts are white and don't.
рытфолд also thinks 'y' is a good substitute for 'igh'
I would expect the API to provide a way to specify what color means "transparent"
user1804599
@CatPlusPlus It's good enough. :P
then you'd use that color for transparent parts
you can process them mechanically and then manually review them I think
17:55
Hint if you're using colour-based transparency, then you can't use that colour for anything else
user1804599
I'll just process them manually and lazily.
user1804599
So I'll only process images once I need them.
How about use a real alpha channel
it seems that as a baseline, you can start from the outside of the image and then mark as transparent everything that has the same colour that is touching the outsid eedge.
user1804599
@CatPlusPlus Yes that is what I'm about to add to this sprite set I downloaded.
17:56
@CatPlusPlus But it can be fun to see this violated. Saw a TV weather reporter who wore a necktie that was apparently pretty close to the same color as their green-screen. Was pretty entertaining seeing the weather map showing up "through" his chest.
Swhat happens when you steal assets
user1804599
It's CC0. :v
Ell
Ell
pass by value should be the default shouldn't it?
user1804599
Make immutable the default and you won't have to care about that.

« first day (1548 days earlier)      last day (3626 days later) »