« first day (1143 days earlier)      last day (3820 days later) » 

user3010322
8:00 PM
I only made one change.
 
user3010322
Between those 2 functions. And it automagically started working.
 
no, it still doesn't work
it's just not as obvious.
 
Xeo
That doesn't make sense.
 
Looks like UB.
 
yep you didn't change anything
 
user3010322
8:00 PM
No, it works exactly as it should.
 
user3010322
I checked the stack. The return values are fine. The registers are fine. ESP has the value it should.
 
if now it works is probably because for whatever reason a dangling ref to a stack is now alive for long enough
 
no, it's fucking BROKEN.
 
@chris-l and I quote: "It is possible to run 8086 code under i386 Linux using an emulator, `elksemu', also included in this package." Also, bcc came with TASM.exe if memory serves. This was a full-featured speedy assembler. I loved it more than MASM. But! That was then :) — sehe 35 secs ago
 
Or whatever pop_call returns is doing funky shit in its destructor.
 
8:01 PM
it's just that it's not broken in an obvious way anymore.
@EtiennedeMartel Still wouldn't matter.
 
user3010322
@EtiennedeMartel Close. Here's a hint: pop_call is returning void.
 
@ThePhD How is this thing building?
 
dude, its still broken
 
user3010322
WELCOME TO MSVC LAND.
 
user3010322
WHERE INSTEAD OF TELLING YOU YOU'RE RETURNING VOID TO A AUTO VARIABLE,
 
user3010322
8:02 PM
WE SMASH YOUR STACK INSTEAD. :D
 
@ThePhD is this true?
 
use msan
if msan says you have a dangling reference to a stack variable
then it is still broken
 
Xeo
This may sound harsh, but I believe in MSVC more than I do in the Derpstorm
 
user3010322
That's fine.
 
Xeo
So, got an actual SSCCE?
 
user3010322
8:03 PM
Let me try to make one.
 
Xeo
Also, I think people thought the first function was the old version, and the second one the new version.
Seems to be the other way around, though?
 
user3010322
The first function is new, second is old.
 
user3010322
That's probably contrary to the way most people think...
 
Xeo
That's prolly where Etienne's confusion came from
 
8:06 PM
@cv_and_he Though I don't have too much time :/ I suppose I'd be interested in the YX-problem here. It's always a bit smelly if you go and duct-tape an existing parser onto "slightly" different grammars (smells like a PHP situation). If the original parser was in Spirit, I'd prefer to make it support two versions. Otherwise, seek and advance could be enormous accelerators (i.c.w. raw[]) — sehe 28 secs ago
Spirit that smells like PHP can't be good for the soul
 
@Xeo Oh, right.
But who writes samples in reverse chronological order? Except raving psychopaths?
 
@ThePhD Why? That shouldn't compile
 
user3010322
That's raving lunatic to you, my good sir.
 
user3010322
@sehe Oh, it compiles.
 
lololol
inb4 they claim c++14 features
 
8:08 PM
@sehe oh, should probably get some cream or something for that blue
 
Xeo
@ThePhD Must be a regression - doesn't in 2012
 
user3010322
A serious regression.
 
@thecoshman ew. I don't want to know what you do to smurfs
Ooh. Microsoft: watch out. The phantom has just given you the stern look. Now it's serious.
 
@ThePhD Doesn't compile in either 2012 or 2013 for me.
 
Xeo
CTP?
 
user3010322
8:09 PM
because auto return types are not a feature of 2012 or 2013, it's a CTP thing.
 
user3010322
 
that is not healthy
 
Xeo
2013 CTP, yup
Same behaviour without auto return type?
 
I have VS 2013 now :D
 
8:11 PM
It's contagious. See your physician.
And complete the treatment, or the symptoms will recurr
 
I need a R# shot! :P
 
user3010322
@Xeo Partially:
 
user3010322
 
@sehe How ya been you old Polar Bear, you?
 
Xeo
@ThePhD Wtf it allows return in a void function
 
8:12 PM
Right, auto return types.
 
user3010322
Shrug.
 
Xeo
Prolly because it deduces r as void or someshit
and return a_void_func(); is perfectly legal
 
user3010322
It shouldn't try to clean up r, though
 
Xeo
Just report it and be done
 
Thrash that stack
So, wait. Derp was right for once?
 
8:13 PM
meh
 
(Also, in my head @ThePhD looks like this).
 
less a case of "Derp was right" and more a case of "Derp was wrong but the compiler was also wrong".
 
user3010322
What's wrong with its eyes. D:
 
fun fact: even Wide can reject that code.
 
@sehe WiDS?
 
8:14 PM
@ThePhD That's Derpy for you.
Actually, it was an animation error that led her to be cross-eyed. The fandom jumped on that as "cannon", and the creators decided to roll with it.
@DeadMG Yeah, keep stroking that cock.
 
@GamesBrainiac can't make my mind up. I could die of old age or hibernate. Both look appealing. But I'll probably end up hibernating like every other year. 'Coz I'm lazy.
 
user3010322
@Rapptz My primitive code tests say my work is done on sol
 
user3010322
GOIIIIN' TO SLEEP.
 
TIL you cannot resize a sprite in SFML. You can only scale it. :/
 
user3010322
Skiggity Scaggity Scalin'.
 
8:17 PM
Rumours have it Wide cures cancer.
But we don't care. Because it embraces c++. That's too high a price.
7
 
Laurent says: "Come on, it's just an extra division".
 
Division!?! But game development!
 
Is scaling different than resizing?
 
yes
 
What differs?
I don't think I have done either of them.
 
8:19 PM
Resizing imply specific size dimensions, while scaling just multiply the current size by a factor
 
Ah.
 
Scaling is resizing
 
@Jefffrey So resizing is scaling internally, but you need to calculate it yourself?
 
sprite.resize(30, 30); // sprite is 30x30 pixels
sprite.scale(0.7, 0.7); // dunno what sprite is in pixel because it depends on the texture size it was created with
 
8:20 PM
sprite.resize(0.7 * sprite.width, 0.7 * sprite.height0
 
Too bad there's not sprite.width and/or sprite.height method.
 
iow stop being pedantic, these two operations are not different
 
Pretty sure there is.
 
@MohammadAliBaydoun Multiply by the inverse.
 
Well.
You can get the size of the texture.
 
8:22 PM
Hello.
 
Or, get the bounds of the sprite - getLocalBounds(), getGlobalBounds().
 
There's only sprite.getTextureRect().getSize().width and sprite.getTextureRect().getSize().height
 
Making scaling a core operation is silly
 
Everything is silly in SFML, including me using it.
 
What is it you are trying to do precisely?
 
8:22 PM
Resize the sprite in an intuitive way?
 
Why is it being resized?
 
I say: why the fuck isn't there a sf::Sprite::resize(sf::Vector2f) or whatever member function?
 
@sehe I've been around for like 2 weeks, getting un-swamped sure does feel nice :) What about the gauntlet?! (I haven't had time even for chess :()
 
I cannot think of when you would want to resize it like that.
 
@Pawnguy7 Because I don't want to create a new texture with the dimensions I want for a specific sprite.
 
8:24 PM
So you have multiple sizes of the same sprite.
 
Also an extra hello to Puppy, Cat, Xio aand... Etienne (whose name I may have mis-spelled).
 
Find the difference in size, scale by that factor?
 
@Pawnguy7 Of course, it depends on the size of the grid (for the snake).
 
Oh.
 
my grid cells are always 1x1. :p
and I adjust my view :p
 
user3010322
8:26 PM
Hm...
 
user3010322
I wonder how you return multiple things in Lua script..
 
melak might be onto something here.
 
Well, I have actual images so no 1x1 for me. But yeah the idea for views make sense.
 
You could use a view to scale it for you.
 
@ThePhD return a, b, c
 
8:26 PM
Now only Domagoj needs to come back (again) and we can fail at restarting Kyrostat (again)
 
Alternatively.
 
Domagoj is gone? :)
 
user3010322
@DeadMG How do you store that in the wild?
 
@Pawnguy7 Yeah, that might work.
 
You can make a function manually, since you are only using it in this one place.
 
user3010322
8:27 PM
c = a, b, c ?
 
How have you been Cat?
 
user3010322
Does that just work?
 
@ThePhD a, b, c = f()
 
user3010322
Ooh.
 
@ScarletAmaranth I was going to mock you lack of content on the blog, then noticed the .ie :D
 
8:27 PM
I am thinking the cases where this is done are fairly rare though.
 
@CatPlusPlus I don't recall a first attempt at restarting kyrostat.
 
Most might, say, scale using a view.
That, and Laurent has this idea of keeping it simple, or something.
 
@thecoshman the .ie? anyway, my blog is not empty I think, I have literally had zero free time for the past ~8 months
@thecoshman my blog is noW empty* ^^
 
@ScarletAmaranth your profile links to a blogspot.ie blog, with no posts :P
 
@thecoshman I have no idea what *.ie is but I'll go with it! :)
@thecoshman What happened with the Kyrostat by the way?
 
8:31 PM
@ScarletAmaranth fizzled away
@ScarletAmaranth oh... it seems blogspot takes me from the .com to the .ie vOv
 
@thecoshman See, all your fault! :) Still doing Java in your job?
 
@ScarletAmaranth :'(
 
God damn it. "attempt to call a nil value"
And I have no idea how to debug this crap >:v
 
@Jefffrey where were you proposing these changes?
 
@thecoshman most unfortunate!
@DeadMG have you done anything with the game yourself as locust swarm o' our Brothel C++ failed to do anything after all?
 
8:36 PM
nope.
I haven't worked on that project in years
 
@Pawnguy7 What changes?
 
@Jefffrey you did one in the past, I thought. Or this scale thing.
I have been curious for a while why setSize* takes sf::Vector2f, and setPosition* takes that and float, float.
Getting in the way of my laziness for quite a while.
 
user3010322
@Rapptz The following works for sol, and prints out everything you'd expect it to, including multiple return type: pastebin.com/s4Jbjnht
 
user3010322
There's some work that needs to be done with respect to making sure you can bind to polymorphic lambdas and overloaded functions by specifying your own stuff, but that's trivially workable at this point, I believe.
 
@DeadMG You're still at wide? (I'd say Wide C to tease you but I shall refrain from doing that)
 
8:39 PM
indeed I am.
 
user3010322
std::tuple returns are automatically parsed to lua's multi-return paradigm, and multi returns from lua work with std::tuple just as well in C++. The next step is binding classes dynamically from Lua to C++, and aligning typenames and shit, but I'll leave that to you.
 
user3010322
Good luck, and have fun. I'm gonna make myself a sandwich. :D
 
@Pawnguy7 Oh, ehm. Let me think.
Oh yeah, it was about moving the view. I wanted window.view().move(...) instead of sf::View view; view.move(...); window.setView(view).
Laurent was probably right back then.
 
Am I incorrect in thinking setSize() should have float, float?
 
@ScarletAmaranth lol. niether have I. in years. Looks like it's not happening soon: I switched jobs and find myself swamped to new degrees (trying to establish myself a bit. weakness of mine)
 
8:46 PM
argh, help guyse :( is there any reason why switching an .exe project to a .lib project would make linking some dependency .libs not work?
 
@Pawnguy7 I think so. I would expect it to.
 
But... it doesn't, does it?
 
setSize of what?
 
@sehe I see, I remember your saying your smaller company merged to a bigger one. Re-switched back to smaller or went even bigger? Still doing C#?
 
Anything I have seen. RectangleShape, say.
 
8:47 PM
@melak47 because they're not... actual dependencies? Are they import libraries? Are they static libraries? Are they intra-solution project references? etc.
 
Mostly that, but I use them a lot :D
 
@ScarletAmaranth Muuuuuch smaller. Doing c++ now :/
 
@Pawnguy7 Yup it doesn't have it and I think it should be there.
 
@sehe import libraries. for example DWMAPI.lib. If I link it to the static lib, and then use the static lib, functions implemented there are unresolved externals :(
 
@sehe Why the "unfortunate" smiley face then o_O?
 
8:48 PM
I am not sure if this counts as a feature request though.
 
@ScarletAmaranth I went from a ~3000 employe company to a ~15 (maybe 20) person crew
@ScarletAmaranth Oh that. It's my semi despondent look. It's an understatement. I'm quite happy with the new job. Except for initial stress levels :)
 
@sehe I see, what lead you to quitting the old job? (if that's not an impertinent thing to ask)
 
@ScarletAmaranth Nothing. Something led me taking the new job, instead. This is most marvelous, IMO. Everybody should get this :)
I was just contact (via SO careers). And despite me not being on the look-out for a job, a number of things clicked. And I always knew I wanted to do more c++ stuff. So there was that. And the fact that it is (in theory) <30minute commute.
 
@EtiennedeMartel Hello :)
 
8:51 PM
@EtiennedeMartel lol. that's... not cheap
 
Yeah, scaling the view instead is much better, thanks! :) /cc @melak47 @Pawnguy7
 
@sehe No way, the SO career thing actually does something?! :)
 
@melak47 Import libraries aren't static libs. They're mere pacifiers for the linker, but the final built PE image must dynamically load the shared libs, or things won't be happy. So, add your "indirect" dependencies to the final PE module (dll or exe) and you should be good?
 
@Jefffrey Do you plan to have some sort of states?
 
@ScarletAmaranth Once. But it worked. And I never did anything on careers. Well, I had the invite. But I just "existed" - without more information than just the automatically generated cruft
 
8:53 PM
@Pawnguy7 For the menu, yes
I'm far from that though
 
Oh?
How far?
 
@sehe Glad to hear that, I'm happy for you! :) I have a careers page with no info on it basically too, I though it's just like this small side thing; even though I have heard that originally, the Stack Exchange folks were planning on that being their main "thing", no clue if that's true
 
@sehe ..but I thought import libs are static libs that contain the boilerplate to load the function pointers from a dll and stuff? why can't I statically link them into a static lib? :E
@sehe pah! I made a new project that's a lib project from the start, and now it works. nyaa nyaa! :p
 
@melak47 I think that's simply not the case. I'm not big on windows, though. Like I said, the way I understood an import lib is two things: (a) the pacifier for the linker/librarian (see before) (b) an implcit instruction to the linker to generate dynamic library dependencies by the name of the imported library
@melak47 now, diff the vc[x]proj files and be done
 
urgh. recycle bin spinning up 3 disks before it opens
 

« first day (1143 days earlier)      last day (3820 days later) »