« first day (1876 days earlier)      last day (3088 days later) » 

9:00 PM
I ran it under gdb, valgrind and strace. But none of those give me extra information.
But it uses 100% CPU. This seems to indicate a loop.
 
I've got one loop prior to receiving the arguments, and it iterates over a fixed two items.
 
@bitcode Happy Birthday
 
@Puppy you could try to build on my machine
it's slow though
 
I did just fix a bug in that loop.
so maybe your version of libstdc++ happens to infiniloop instead of segfault?
did you get a stack trace for the loop?
 
@MadaraUchiha whaaaaat. it's not my birthday today. it's in january. did I fill something wrong in my account info?
 
9:06 PM
@Puppy nope. probably due to lack of debugging symbols
 
yeah
 
might be useful to build with -g even for release
 
actually I think I thought I did.
 
(gdb) bt
#0  0x0000000000450b22 in main ()
That's what I see in GDB.
 
I FINALLY got past the 50 reputation points mark! I can comment everywhere!!!
 
9:09 PM
hm
 
@Puppy Oh. The fact I can see main() probably means there might be debugging symbols.
 
How do I even C++ <-- what i keep asking myself whenever I try to work on my compiler
 
there's nothing in my build script about it
maybe it just always shows main() for the first frame.
 
@Borgleader with love <3
 
@StackedCrooked I think the better outcome is if I just fix the shit locally and then let Travis rebuild it.
 
9:11 PM
ok
 
then you can go to sleep ;p
 
@TonyTheLion Love doesnt help with designing things :(
 
@Borgleader true
what are you designing?
 
@Puppy @StackedCrooked are you both working on Coliru?
 
user1804599
@StackedCrooked You should make a shortcut for printf 'run\nbt\n' | gdb.
 
9:12 PM
@bitcode We are collaborating on uploading Wide to Coliru
 
@Puppy I have no idea what Wide is
 
good
 
@TonyTheLion My code generation code & my symbol table
 
@Borgleader oh wow, sounds hard
 
symbol tables are easy
 
9:13 PM
for you everything is easy :P
 
code generation code is pretty easy if you don't support shit like lambdas
if you do support shit like lambdas, incremental re-analysis, it can get hairy.
 
user406009
Why would lambdas make things complicated?
 
@bitcode Congratulations. protip: try not to be honest with all you comments. If a question is good, and you just want a bit more info, fine, ask for it. If, OTOH, a question is a steaming pile of utter horseshit, DO NOT SAY SO, just sorta hint that it may be deficient in some areas. Failure to follow this guideline will get you suspended for a week.
 
I'm unsure how/where to handle conversions from types
 
user1804599
9:13 PM
Hmm, I already have the keyword finally. Why don't I overload that for destructor definitions?
 
user406009
Aren't they a direct 1-1 translation to anonymous functor classes?
 
user406009
(With a number of very few special cases where you don't capture anything)
 
@Borgleader Overload resolution.
@Lalaland The question is how you do that translation.
 
@MartinJames has this happened to you?
 
@Puppy Yeah... I dont have that (yet) T_T
 
9:14 PM
and principally
how you do that translation without duplicating your name lookup code.
 
@bitcode Yes.
 
user1804599
class Bukkake {
    finally log("massive cumshot");
}
 
@Borgleader Overload resolution is one of the backbone components of the Wide compiler. Even primitive ops are expressed as overloads.
 
user1804599
JS is of course shit and you can't define your own finalizers.
 
@MartinJames it is so frustrating when you want to ask more info to properly answer the question but you can't comment, you can only write full answers. now I can ask more questions before posting answers =D
 
user406009
9:15 PM
@Puppy Does your Wide compiler also do optimization?
 
user406009
Or do you leave that to LLVM?
 
officially, it's LLVM's problem
 
user1804599
LLVM cannot do EBO.
 
I think there is a bit of copy/move ellision going on but that's about it
 
@Puppy Maybe I should start with that... I was hoping to avoid it for a little while because it doesnt seem trivial
 
9:16 PM
@Borgleader It's as simple as your OR algorithm is. Which can certainly start out very simply.
 
my OR algorithm?
 
overload resolution.
 
@Borgleader are you from germany?
 
user1804599
My compiler is the best compiler.
 
for your Type interface, just add a CanImplicitlyConvert(Type* from, Type* source).
 
9:17 PM
@bitcode No
 
@bitcode Yes. I also find it useful to comment when I see a problem with posted code, but that problem is not the root cause of the OP's issues.
 
then in overload resolution, just loop over all the overloads and throw out all the ones that are of the wrong argument number or don't have identical or implicitly convertible types.
 
@Borgleader brittain?
 
then if there's more than one overload left, complain.
 
@Puppy Wide is open source right?
 
9:17 PM
@bitcode Canada
 
you don't need anything more than just "Is it technically possible to call this function? If so, keep it. Else, throw it."
@StackedCrooked On github
 
user1804599
@StackedCrooked Does Mono work on Coliru?
 
@Puppy link?
@Elyse Fuck you leave me alone.
 
@Elyse :P
 
9:19 PM
I was about to say, not sure if massive slap in the face or funny joke
 
@Elyse I see there's a binary named mono.
 
@Borgleader oh, you guys havea great accent! specially when saying "sorry" and "about" hahaha
 
> mono - Mono's ECMA-CLI native code generator (Just-in-Time and Ahead-of-Time)
 
user1804599
Yeah, but I had /proc problems with it in the past.
 
@bitcode o.o afaik i say sorry and about the same way americans do
 
9:20 PM
@Elyse In Tcl you'd have proc problems.
 
@Borgleader not all canadians do though, right?
 
@Elyse Oh yeah. /proc/
 
@bitcode cant say, i havent met all of them
 
@Borgleader I would say 6 out of 10 then
 
@Puppy It's @Elyse. He knows :)
 
user1804599
9:22 PM
She :'(
 
You can't be very intelligent if you don't even know your own gender.
 
@Borgleader don't be offended by my opinion though, when I speak english I sound like a mexican, even though spanish isn't my primary language
@Elyse are you a guuuurl?
 
@bitcode Yes she is a girl
 
user1804599
yes
 
@Elyse Enabled /proc for now.
 
9:24 PM
lel
 
user1804599
cool
 
what the fuck.
 
I'll disable it if it turns out to cause security problems
 
just found this in the Wide parser.
step 1: Parse template type.
step 2: Return type as if it was not a template.
 
step 3: ????
 
9:25 PM
no fucking wonder the analyzer can't find the template arguments.
 
MONEY
 
step 4: profit
 
profit
 
$$$$$$$$$$$$$
 
@TonyTheLion righfold's vagina
 
9:25 PM
those words are not allowed here
rude :P
 
It was well meant :(
 
user406009
@TonyTheLion I know. We got to be careful of the r word around here.
 
ragina
 
@StackedCrooked that's sexist racist and anti mysogynistic and pro republicans
 
9:26 PM
mysogynists are people too!
 
the most toppest of kek
 
hey
 
@fredoverflow TIL bool has operator++. lolwtf
 
@Puppy Are you familiar with valgrind?
 
9:28 PM
no.
 
@Borgleader what why
 
@Puppy It's a miracle tool.
Just run your program as valgrind ./CLI
 
@TonyTheLion it kept it from the time it was an int
 
@Mr.kbok ah
 
It will intercept memory accesses and tell you if you access freed memory.
And stuff like that.
 
9:29 PM
legacy code and all that
 
@TonyTheLion it doesn't wrap around though. true++ -> true
 
@Mr.kbok true++ is more true than true
2
 
but false++ is true :D
food for thought
 
so true-- should be false?
 
@StackedCrooked Works fine for me locally though ;p
 
9:30 PM
I think so yeah, but I'm not sure
shitty torrent client
 
@Puppy Valgrind has destroyed many developer's confidence.
 
user406009
@TonyTheLion No. True-- might be false or true.
 
"download this first" -> proceeds to download everything else first
 
hahaha
 
@StackedCrooked I need to check how many Linux tests I've fixed when fixing the 90 Windows failures
then I may well check out Valgrind
 
9:32 PM
lol the video of Gabriel Dos Reis and STL, STL barely gets a word in.
 
Anyway valgrind doesn't seem to detect any errors for Wide on my machine.
@Puppy Seriously. Learn valgrind before fixing your tests.
 
sounds to me like Wide plain doesn't run on your machine so there's nothing to check ;p
 
@Puppy I consider it more useful than GDB.
 
my test failures have nothing to do with memory corruption
they're all me doing stupid shit, mostly in the parser
 
The two are completely different no? GDB is a debugger, Valgrind is more like a memory "analyzer"
(ive never quite used valgrind but from what ive read of it...)
 
9:34 PM
@Puppy You still need to learn valgrind. Stop talking back dammit.
 
my colleague met Gabriel Dos Reis
he fell in love with him
wouldn't stop talking about it
 
the best part is attaching gdb to the valgrinded process
 
user1804599
if (environment.ScopeType != ScopeType.Class) {
    throw new FinalizerOutsideClassException();
}
 
@Mr.kbok Oh he seems nice, its just like every question thats not asked directly to STL he jumps on it in an instant
 
@Borgleader GDB is good for getting a trace at the point of crash. Doing anything else requires wizard skills.
Like thr a a bt
@Borgleader Dude. Learn it now.
 
9:37 PM
@milleniumbug valground?
 
@StackedCrooked Why would I do that? I dont even have code worth debugging :(
 
@Puppy yup
 
^
==19481== Invalid read of size 4
==19481==    at 0x400450: main (in /tmp/1449351483.56028/a.out)
==19481==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
 
can't correct it now, can i
 
user1804599
@StackedCrooked optimised away due to -O2.
 
9:39 PM
If you access deleted memory it will point you to the file/line where it was deleted!
That's astronomically useful.
@Elyse Yeah.
 
user1804599
your mother
 
@Elyse Still Segmentation fault
 
user1804599
GCC sucks!
 
Agreed.
 
ugh, my code is terrible :(
 
9:41 PM
so is everyone's
 
user1804599
my code isn't
 
user1804599
my code is wonderful
 
off course
 
wunderbar code
 
we know you're special :)
 
user1804599
 
    public bool IsSupertypeOf(Type other) {
        return other.IsSubtypeOf(this);
    }
    public bool IsSubTypeOf(Type other) {
        return other.IsSupertypeOf(this);
    }
^ More beautiful.
 
user1804599
lol
 
Recursion is best.
 
user1804599
Hmm.
 
hehe
 
user1804599
9:45 PM
I could make (int) -> int a subtype of (int, int) -> int and (int, int, int) -> int.
 
how would that work
 
user1804599
Well, very simply.
 
user1804599
let f: (int, int) -> int = (x) -> x;
f(1, 2); // second argument ignored
 
Everytime you create the same thing. Parser and stuff.
 
9:47 PM
ah
 
Are you trying to distill the concept or something?
 
user1804599
Every time I work in shitty languages I get remotivated.
 
where is the proposal on "structural binding"?
 
proposal on what now
 
auto {thing1, thing2} = function();
so you don't have to use tie.
 
9:49 PM
aaah le tut tut
 
or specify the types
 
> initializers.push_back({ std::move(initialized), std::move(initializer), colon_or_open.GetLocation() + initializer->location });
somebody, who is totally not me, did a bad and wrong.
 
std::tie without std::tie
 
user1804599
I want C++ without C.
 
user1804599
Oh wait, that's called Rust.
 
9:52 PM
@Elyse no?
 
that's called wide
 
Rust is C without C with a bit extra
 
@Elyse Lounge<Rightfold's sanity>
 
user1804599
@orlp Right. Rust didn't make the mistake of adding overloading and templates.
 
operator overlording is nice
 
9:56 PM
lol overlording
 
well
tanked another 40 tests by not setting up the runner properly.
 
lol the Bounty system is so cool. it's like a game
too bad I only have 78 rep
 

« first day (1876 days earlier)      last day (3088 days later) »