« first day (1371 days earlier)      last day (3595 days later) » 

Xeo
8:00 AM
He was also here yesterday, I think.
@thecoshman I would almost trust AS3 to do that :s
 
So now he thinks he can drop silly questions here. Good job :-P
 
@Xeo well I'm glad someone thinks it's not a silly question :P
@rubenvb I'll drop shit where ever I want god damn it!
 
Xeo
But AS3 is retarded, much more so than Java. So I dunno
 
> Have 3 maps, the first two being map, and the last one being map.
wow such problem!
 
Summary

To distribute binaries on Linux,
Dynamically link the standard libraries
Produce one binary using g++3.3 for older systems
Produce another binary using g++4.0 for newer systems
well fuck
 
8:01 AM
@thecoshman I was talking about the user<not-a-prime> dude from before. Your Java nonsense couldn't interest me less :-P
 
@BartekBanachewicz Debian?
 
@BartekBanachewicz realistically, just build it on current Debian stable and it should work pretty much wherever.
 
user3010322
If this doesn't work
 
Or CentOS or some other lame old stable distro.
 
user3010322
I will be EXTREMELY upset.
 
user3010322
8:02 AM
Btw @Xeo So suddenly the dropdown and the whole system works flawlessly after I register an account. <_>
 
user3010322
Dirty, cheap bastards.
 
Xeo
haha
 
user3010322
@StackedCrooked Can you confirm that shit worked?
 
user3010322
I swear, if I sent money to the wrong place...
 
Wow
Thanks man! :)
 
user3010322
8:04 AM
I'll take that was a yes.
 
user3010322
Never want to use Paypal ever again.
 
user3010322
0/10 would rather kill myself.
 
Hello!, I'm having a little trouble trying to solve an issue in C++, could you provide some insight? in it?
Also... is the first time I'm using the chat, so maybe this is not the right place, but I already posted it in SO and got no answers...
 
user3010322
Wow, the service is also noisey.
 
user3010322
8:07 AM
Sends an e-mail everytime you do anything.
 
ah sweet hot muffins at work
 
user3010322
"You registered. You added a card. You removed a card. You tried to delete your account."
 
now my desk smells like a bakery
:3
 
user3010322
"Thanks for registering. Thanks for verifying."
 
8:07 AM
mmmm
 
user3010322
7 e-mails.
 
my mom always said to not eat hot cakes
 
@ThePhD You can probably turn those off in your PayPal settings page...
 
@rubenvb STOP! you're being reasonable
 
Xeo
@BartekBanachewicz oooh, I'd like some of that now
 
8:08 AM
I am reason incarnate.
 
user3010322
The only reasonable setting is default settings.
 
@rubenvb I need OpenCV
@Xeo I bought two because of the price discount, can give one away
 
user3010322
Ooh, I'm actually going to do an OpenCV project myself,
 
hurry before it gets cold
 
But then again, libstd++ ABI changes sometimes, I'm not sure you'll get the wanted result.
 
Xeo
8:09 AM
@BartekBanachewicz k, meet you at Tegel
 
You can also do what Steam and consorts do: ship your own libstdc++ and glibc and stuff.
 
oh.
my soon-to-be coworker asked me about that
he said he wrote a script, that "scans the dependencies and copies them to the binary folder"
 
But that is not 100% guaranteed to work. E.g. on Arch, it is often needed to delete the outdated steam libstdc++ to get stuff working (mostly because it uses a ton of system libraries anyways)
If you link everything (nonglibc, nonlibstdc++) statically and just use an old compiler version with an old glibc, it should just work though.
 
old compiler versions are out
I want 4.8+, so I'm not even going to suggest it
 
user3010322
8:12 AM
4.9 or riot.
 
@BartekBanachewicz Then you need to ship libstdc++ built with against an old glibc.
 
@rubenvb and pray to the swamp gods
 
I'm still abit confused with thee 2d vectors. with a 1d vector I don't have to give it a size. I can just use pushback and keep going. can i create a 2d vector of strings without bounds?
 
@user2372903 yes?
as long as you fit in memory
 
@BartekBanachewicz no, pretty sure it'll work quite well. Only problem you'll probably run into is different so naming, but that's something symlinks can solve.
 
8:13 AM
Is that a bad idea in practice?
I mean, what I'm doing won't use much memory what so ever,
but if it's bad I'd like to learn the right route.
@BartekBanachewicz
 
@user2372903 point is vec<vec<>> makes n allocations
each "inner" vector is a contiguous memory block, but all vectors are not.
 
-1
Q: Japanese questions don't understanad

user2391916君は今日ついにその活動者についてのの時が参りたです。 つるつる始めで立脚金は依然として同じ相当んならなどを用いよていらっしゃるましをは煩悶するないべきて、しばらくにはなるんありたで。学校に要らませのはよしほかから常にだますん。ようやく大森さんに破壊兄弟当然通知に信じです西洋この我私か所有にという実意味ないありまいますて、その結果は私か腹支をつけ込むが、岡田さんのものから個性の私にしかるに小経過とあるからそれ通りがご相当をしようといったんご注意をしないますば、もしもう戦争にあるたがみるたらものに去ったらだ。 それでしかしご本人が思いものもこう夢中としよませて、そんな機には忘れるうてとい...

 
so it can be like [--1--]-----[--3--]-[--2--]--------------------------[--4--]
because the each of them is allocated and destroyed separately
if you do a 1D vector, it's always a contiguous memory block
hence a much more accurate model of a 2D array.
 
This question appears to be off-topic because it is just a bunch of crazy squiggles — musefan 1 min ago
 
user3010322
Is there a 2D array view class in .NET?
 
8:16 AM
Ah that makes allot of sense.
Is there a special way to build a 2d array in a 1d vect?
A formula or a term i can research?
@BartekBanachewicz
 
24 mins ago, by Xeo
y * width + x
 
user3010322
Well tits, I can't find one.
 
user3010322
Better just roll my own.
 
@user2372903 xeo gave you that already ^
 
@PabloStark -1 for dumping your question here.
 
8:18 AM
y * w + x or x * h + y
 
note that width is often called stride instead
 
call it width if it represents spatial data vOv
 
And there's colum and row order left to choose.
 
I see how that woud work. If I'm storing an unknown amount of data though
 
user3010322
Equation never changes.
 
8:19 AM
I'm not sure how to initially start. Would that even still work?
 
@user2372903 the 1D array can grow freely in one dimension
 
user3010322
~Sigh~
 
It works best if you can determine your dimensions up front.
 
if you need it to grow in two dimensions then you'd need to something similar to what I did in my game
 
user3010322
This is why buffer_view<T, 2> should be standard shit.
 
8:20 AM
but how would i know y,w,x
 
Otherwise you'll be in for a hell of a lot of reallocations.
 
which really is unavoidable.
 
@user2372903 T& access(coordinate c) { return array[c.x + this->width * c.y]; }
@rubenvb ha!
 
user3010322
I want ArraySegment but for multiple dimensions now. :c
 
8:21 AM
@ThePhD Why?
 
user3010322
@Puppy So everyone and their mom doesn't have to keep rolling their own 2D Array class.
 
That's how I did it /cc @rubenvb @user2372903
 
@ThePhD Hardly anybody needs one ... and the one in Boost probably suffices for most of those.
 
this is for unlimited growth in 3-dimensional voxel space
converting to 2D left as an exercise to the reader
 
You know, thinking about my application, I don't need memory to be stored after it's been processed. so I can probably get away without having to keep using more data
It's processes in real time.
For a certain part of it.
the other part, counts line numbers first.
 
8:23 AM
it helps if you know what you want yes
 
I can pass taht to an vector doing what you suggested.
Well that was pretty damn insightful, thank you.
 
@rubenvb: Had a nasty surprise downloading MinGW for x64 and finding out it doesn't support dw2 exceptions :(
 
@Puppy well yeah, it has seh which is superior.
dw2 on x64 is impossible.
Because ... reasons.
 
eh
having seh be superior doesn't help me when LLVM doesn't support it
 
True. There was some work on it I never got to work though.
 
8:25 AM
sehe is superior
 
what reasons?
 
@rubenvb There were a bunch of patches submitted just a few days ago on the topic.
 
well there's a way
download sources of newest llvm
build it with the 4.8
 
But that one's abandonded for some reason...
 
8:26 AM
AND STICK IT UP YOUR BUTT
 
here we are. Seems like it has landed.
 
ooh, phabricator
i always wanted to try it
 
yeah
gotta wait till 3.5 though
 
ARggghgfhafdhas it's written in PHP die fucking piece of shit
should've realized that "phabricator" might be in php
should've.
 
@Puppy You can always backport the patch.
Here's the Clang part: reviews.llvm.org/D3419
That hasn't landed yet though.
@BartekBanachewicz The ph level is through the roof
 
8:30 AM
@rubenvb Nah. I'd have to dick around rebuilding and patching on TC.
better to just wait for 3.5
 
3.5 might not include the Clang part though.
I'm not even sure that works at all.
I hope so. Would be brilliant.
 
user3010322
Ruben is like a master of dealing with all these compiler shenanigans. :o
 
"dealing"... as in... I know about the problems.
Not that I know how to fix them :-P
Also, MSYS2 is awesome (as a package manager). Have I mentioned that?
 
I told my friend to download msys2 today so they can get libvorbis
cause apparently on Windows they only provide visual studio projects, not makefiles for gcc/mingw
 
@Rapptz yeah, autotools configure && make.
 
8:37 AM
autotools is pretty shit on Windows
 
But with MSYS2 all they need to do is pacman -Syu mingw-w64-i686-libvorbis
 
couldn't get it to work
 
or x86_64 if you want 64-bit.
@Rapptz you just run it from the MSYS shell, and it should work (if your compiler is in PATH.
 
autotools?
cause they tried already
 
tried what exactly?
 
8:39 AM
running autotools in Msys shell
 
user3010322
try {} finally { throw; }
 
user3010322
^ in C#, is that valid?
 
at that point it was easier to just install it through the package manager
 
user3010322
E.g., will it "only rethrow if an exception happened in the try" ?
 
why not try {} catch { throw; }?
 
user3010322
8:41 AM
Oh. Uh. I dunno.
 
user3010322
I should probably do that.
 
user3010322
Oh, wait.
 
user3010322
No, 'cause I need some code in the finally block to always run.
 
@rubenvb I read the patch and it's pretty much just add the option for it, and change the personality function name, that's all. It'll work if the LLVM side works and the interface is the same.
 
@Puppy Yeah, that's what I gathered, but I never got it working. Granted, the LLVM side changed quite a bit since then, so you may have better luck now. It's still a big "if" though :-)
 
8:44 AM
well I know that the LLVM people rebuilt their EH for the intention of supporting the other schemes
 
You gotta be kidding right. — Scary Wombat 41 secs ago
 
How much simpler would the world be if pi were just... 3
Or 1, for that matter.
 
probably not any.
 
Setting constants to one always simplifies things.
Yay physics.
 
@rubenvb it's 4
 
8:48 AM
> probably you make an intiger division
 
user3010322
intiger
 
user3010322
LYGER.
 
user3010322
I can't believe I miss pointers.
 
user3010322
I thought I'd never miss pointers when leaving C++.
 
@ThePhD Pointers are the shit.
 
8:51 AM
s/the//
 
pointers are for low-level savages
 
sausages?
 
nullable references are great
 
user3010322
optional<meow&>
 
8:54 AM
nullable references. Oh: pointers.
 
@rubenvb With the difference that they can't be reassigned / ++ed and such
 
Oh: raped and mutilated into uselessness pointers.
> Condolences on forgetting your password.
Kittens died.
 
user3010322
Because I don't have destructors or RAII,
 
user3010322
this code becomes 20 fucking levels deep.
 
you're just not separating responsibilities enough
 
user3010322
8:57 AM
I can't separate responsibilities anymore: it's that I'm anticipating exceptions and I have to try/catch and then throw again after releasing resources.
 
> def _boolify
fucking ruby hipsters and their shitty names
 
user3010322
:D
 
> def _floatify_pairs
my god
 
> When someone sees an infix operator they are unfamiliar with, they can scan the imports for a Whatever.Infix module and limit the scope of their annoying search for your dumb operator.
there, there
 

« first day (1371 days earlier)      last day (3595 days later) »