« first day (1458 days earlier)      last day (3484 days later) » 

5:01 PM
@Ell That code (by KennyTM) looks pretty good.
Better than the code I'd write.
 
user1804599
WTF
 
Ell
@R.MartinhoFernandes what about it do you want reviewing?
the content?
and do you want sugar coated, honesty or brutal honesty?
 
Anything is good.
 
@R.MartinhoFernandes Main question would be "what do you consider the beginning of the STL?" It actually goes back to the early 1980s, but was originally written in Ada. For a while they worked in Eiffel. Finally, (early 1990s) they started working in C++. It was proposed for inclusion in the standard something like early 1993, and they released a reasonably complete implementation something like a year later or so.
 
user1804599
5:03 PM
unordered_set:1021:14: note: candidate function not viable: no known conversion from 'styxrt::Object *' to
      'value_type' (aka 'styxrt::Object **') for 1st argument; take the address of the argument with &
 
That's why I wrote "the rise of the STL"
 
user1804599
I declared it as std::unordered_multiset<styxrt::Object*> :|
 
I think I did.
 
Ell
@R.MartinhoFernandes I think the ending paragraph could be written better
just rephased, or changing the last 3 questions to just two
 
5:05 PM
@JerryCoffin lol you got burned
 
Maybe I'll add "in the early 1990s" to it to be clear about that
MSVC is the developing world of C++
 
@R.MartinhoFernandes If you want to remain vague, "the rise of the STL in C++" or something on that order. Otherwise, it really includes nearly everything previous...
 
Yeah I don't want to pick exact dates.
Like the periods of human history, actually.
 
@R.MartinhoFernandes In the early '90s, Borland was still a force to be reckoned with.
 
Borland is the Carthage of C++
 
5:11 PM
@StackedCrooked Just noticed something (mildly) interesting though: in the list of who closed the question (unlike most of the site) names apparently aren't updated when account names change, so Neil Butterworth is actually listed by name instead of as "Anonymous".
 
@JerryCoffin oh, cool :)
 
@R.MartinhoFernandes nice
 
@Jerry so no other historical faux pas?
 
@R.MartinhoFernandes Carthage or Constantinople?
 
Regarding C++ I mean.
 
5:14 PM
@R.MartinhoFernandes ask Bjarne to review it :)
 
@R.MartinhoFernandes None that jumped out at me anyway (being as brief and vague as it is helps a lot...)
 
Ell
Can I alias a template parameter pack?
 
yeah its inebriated
 
Ell
a type pack
 
Intentional
Ffs
 
user1804599
5:16 PM
@Ell no
 
Xeo
@Ell you can wrap it in a tuple
 
@R.MartinhoFernandes Are you posting from an iPhone?
 
@Jerry in this metaphor Constantinople fell with C++11.
Ok. Game night is on.
 
@R.MartinhoFernandes Fair enough, I guess.
 
5:17 PM
enjoy.
 
Ell
@Xeo how?
 
Xeo
std::tuple<pack...>?
 
Ell
I presume something like auto args = std::make_tuple(Args...)
 
make_tuple or forward_as_tuple
 
Xeo
or yeah, that
 
Ell
5:18 PM
Ah wait I just need a typedef
silly me
 
Cool... One of my questions on the Stack Exchange got onto the "hot network questions list"
 
Hello,maybe someone know algorithm for calculating number = (1+x)^n
 
@pauliustack hi :) if you are new here, please read the rules. Most of the time this is not a place for Q&A
 
(anyway, I'd start from here)
 
Ell
5:29 PM
@pauliustack binomial something
 
@TemplateRex hello there
 
Thanks
 
user1804599
I need to rewrite my code generator.
 
user1804599
And leave out boxing and unboxing because it complicates stuff.
 
Perhaps a code generator generator can do a better job.
 
5:33 PM
CodeFactoryFactory
rightfold's parents are actually the code generator generator generators
I should sleep
 
user1804599
@AndyProwl lol
 
Ell
I need to learn how to use integer_sequence to "unpack" a tuple
 
@R.MartinhoFernandes In Medieval C++, I miss scholasticism which would roughly translate to Boost and TR1 (smart pointers, array etc.) that greatly influenced the C++11 Renaissance
 
@Ell have a template<typename... Ts, int... Is> void foo_helper(std::tuple<Ts...> const& t, std::integer_sequence<Is...>), inside that function you do foo(std::get<I>(t)...) or something like that. Then you create your main function template<typename... Ts> foo(std::tuple<Ts...> const& t) that internally delegates to foo_helper() passing a std::make_integer_sequence<sizeof...(Ts)>{} as the second argument. This makes it possible to deduce Is... in the helper
 
Ell
Ahh of course I need a helper
 
I think there's also an apply() function that basically does that
or perhaps it was just a proposal
ah, it's used in the Standard as an example
that's weird, they could have just added that function if they bothered mentioning it and showing its implementation
 
@TemplateRex great now we're going to end up with C++ hipsters that do things the medieval way because it's 'fun'
 
@Mgetz boost error messages are pretty medieval, should keep people in line ;-)
 
Ell
@Xeo thanks :)
 
hmm
wtf yahoo
you can "sign in with Google", but you then have to make a Yahoo account anyway
and after filling in the length of your dick, they just bounce you back to the login page and don't actually create an account for you
no wonder the company is dying
 
5:54 PM
@Puppy maybe it's the length of your dick
 
I saw that coming
 
@AndyProwl couldn't let that pass up
 
@TemplateRex underflow
 
as if I'd give an accurate answer anyway
 
5:55 PM
@Puppy as if you'd ever measured it
 
too embarrased?
 
doesn't really matter :P
 
that's what she (didn't) say
 
meh, that actually went wrong
 
5:56 PM
oh ho ho Puppy's owners got him neutered as a baby! I get it now
@AndyProwl that's what she say
 
yeah
 
it's a meme already
 
huh
 
23 mins ago, by Andy Prowl
I should sleep
 
why would you sleep at this time of night
 
5:57 PM
I checked my spam box and people are still trying the "Please send me your bank details so I can send you money" thing?
I guess some people must still fall for it.
 
Ell
@LightnessRacesinOrbit jesus christ why would you assume we are all in your time zone. God these brits how dare they
 
because I haven't slept in fuckifiknow and my brain's cracking
 
Ell
england isn't the only country in the world jesus christ!
 
@Ell I didn't. It is clearly nighttime in UGT because I have been here for approx eight hours.
(and Lounge days are ~12 hours long)
also, I know where Andy lives. so, you see, where you "all" are isn't particularly relevant
hth
@AndyProwl ouch
 
Ell
6:00 PM
@LightnessRacesinOrbit I'm just showing you what you look like to me when you bitch about amerifats :P
 
@Ell yeah but the thing is... you're not very good at it :(
lern2troll
also lol "amerifats"
 
Ell
@LightnessRacesinOrbit I know :/
 
@Ell Hey... that's not fair to canada and colorado
 
So erm... this NSFW girl is dancing her boobs to Mozart. Technically dressed, but skimpy bikini top, fair warning given. To be honest, it's a sight to see such bewb control.
@Puppy news flash, new people are appearing all the time!
 
> Sara X Does Mozart
those boobs are inhabited
 
6:10 PM
hmmm
 
user1804599
Hurray.
 
yes, but her control is very much natural... or maybe not :P
 
apparently, yahoo sends me a confirmation email... to my yahoo email address that I don't want.
and the interface is totally-not-gmail.
 
buh, I am terribad at math
 
Ell
@thecoshman this sucks
 
user1804599
6:12 PM
> function body type int does not match function type unit
 
Ell
@corvid me too
 
@thecoshman what I know for sure is that there's a very satisfied guy somewhere on this planet (probably more than one)
 
user1804599
Should be "return type" though.
 
@AndyProwl I'm sure she's rather satisfied too.
 
user1804599
Who?
 
6:13 PM
Still learning how to use this thing
 
@thecoshman very likely
 
@thecoshman What. The. Frak.
 
@rightføld Sara X
and the gnomes in her boobs
 
user1804599
Who is Sara X?
 
@AndyProwl you're really against implants ain't you :P
 
6:15 PM
@thecoshman lol
 
@rightføld Click on the link and find out, doofus.
 
@thecoshman I never knew girls could do that with the boobs!
 
Her name is rightfold, not doofus.
 
@thecoshman judging from the way those things move, I find the gnome theory most reasonable :P
 
@VáclavZeman hint: girls have all the same muscles as boys
 
6:16 PM
@thecoshman Nope
 
plus, girls have gnomes in their boobs
 
user1804599
Yay.
 
Geez, you stupid people gotta learn your anatomy right.
Do you someone get the reference? ^
 
user1804599
let main (x: int): int = 42 now compiles to declare { i8*, i32 }* @"styx#main"({ i8*, i32 }*) gc "shadow-stack".
 
@AndyProwl well, what do you think makes the 'milk'?
 
6:17 PM
@thecoshman it must be gnomes
@rightføld is that LLVM IR?
 
user1804599
Yep.
 
... I think my cat is trying to suckle me in my dressing gown o_0
 
I'm not looking forward
 
Nobody got the Mr. Plinkett reference :c
 
user1804599
@AndyProwl You shouldn't generate the textual representation of LLVM IR directly; you can use LLVM's API. This is how I generated it: github.com/rightfold/styx/blob/master/compiler/src/main/scala/…
 
6:19 PM
@Sofffia sorry no
Mr Plonkett
 
@rightføld I see. Still beyond my comprehension though
hopefully I will get there someday
 
user1804599
It's not that difficult.
 
@rightføld the =42 seems to have gotten lost?
 
@rightføld did you learn just by hacking around, or did you read some book/tutorial?
 
loooool "package org.rightfold.styx.compiler"
Rightfold Ltd.
 
user1804599
6:22 PM
Hacking around as well as some small bits from llvm.org/docs/tutorial (but not much).
 
cool
 
user1804599
llvm.org/docs/LangRef.html describes all instructions in detail.
 
I need to buy a PC so I can try something out
 
Well, I've now been sat here doing nothing in particular for an hour. Suppose I should go downstairs and help myself to some all-expenses-paid dinner. I'm hoping for really tender lamb, or a steak.
 
Ell
@LightnessRacesinOrbit what? o.O
 
6:24 PM
4 mins ago, by rightføld
@AndyProwl You shouldn't generate the textual representation of LLVM IR directly; you can use LLVM's API. This is how I generated it: https://github.com/rightfold/styx/blob/master/compiler/src/main/scala/org/rightf‌​old/styx/compiler/CodeGenerator.scala#L15-L31
 
Ell
I mean I don't get what's wrong with the package name :P
 
user1804599
Reverse FQDN package names are one of the greatest things about Java's ecosystem.
 
user1804599
Also why did I do org.rightfold.styx and not org.styxlang. I own that domain name. :v
 
@LightnessRacesinOrbit Here
He also makes reviews about Star Trek, so there is that
 
6:49 PM
the view from the 7th floor is pretty awesome. I only wish this building had more floors
 
@LightnessRacesinOrbit You stuck in some boring hotel somewhere?
 
@rightføld No body?
 
Well, another victory at Civ5 on King.
 
user1804599
@Puppy That's what I'm doing now. :P
 
lol
 
user1804599
6:52 PM
Fighting against GEP.
 
user1804599
LLVM's assertions are useful as usual.
 
what's the problem?
 
user1804599
I alloca { i8*, i1 }* so the result of alloca is of type { i8*, i1 }**.
 
the only thing that's unusual about GEP is having to explicitly zero-index the first index, but you can use CreateStructGEP for more intuitive semantics there.
 
user1804599
I want to get a pointer to the i1.
 
6:52 PM
@rightføld 0,0,1
 
user1804599
Yeah, that gives "Invalid GetElementPtrInst indices for type!" :P
 
hm
start by loading the result and getting the stored pointer.
 
user1804599
0, 0 and 1 are int constants of type i32.
 
then use CreateStructGEP on the pointer.
 
@AlexM. that looks like a 3d render
 
6:56 PM
@sehe if it is, the went to down with the shitty camera filters
 
@sehe combine a crappy camera with a window that could not be opened
 
user1804599
@Puppy Ah that works.
 
@AlexM. still, looks strangely artificial. HDR?
 
user1804599
// result is alloca result
val booleanPtr = builder.buildStructGEP(builder.buildLoad(result), objectPrologue.size)
builder.buildStore(llvm.intConstant(llvm.intType(1), if (value) 1 else 0), booleanPtr)
 
@sehe I don't know
 
Ell
6:59 PM
is std::function magic?
 
I don't use any other settings than the default
 

« first day (1458 days earlier)      last day (3484 days later) »