« first day (1457 days earlier)      last day (3500 days later) » 

12:08 PM
Shit, I already passed my rep cap by 15 today :S
 
oh my god that's the last time I drink red bull all night
 
@LightnessRacesinOrbit That's so not the last time
 
probably not :(
ugh
 
I once said 'Oh my god that's the last time I've been in the Lounge', and guess what
@LightnessRacesinOrbit I hope you had a good reason for this reckless devastation of your sexy body
Fucking hell, I've gained like 230 rep today already, what am I gonna do for the rest of the day?
Chill in the Lounge I guess
Btw is 'I' always capitalized?
 
@Loopunroller I was feeling unwell and needed something to perk me up
but I overdid it
@Loopunroller yes
 
12:15 PM
@LightnessRacesinOrbit ... for what? Staying up?
 
@Loopunroller for going out
 
I didn' get any free rep today, and lost some 'cos downvoting:(
 
@LightnessRacesinOrbit So you didn't feel well, and subsequently took a Red Bull overdose so you wouldn't look tired or sickish while drinking with your friends?
 
@rightføld Yes.
what C++ compiler are you using?
 
user1804599
clang
 
user1804599
12:17 PM
Why?
 
if you want to implement exceptions it's easiest to re-use the C++ EH machinery
 
@rightføld First step of stalking a C++ programmer: Find out the compiler he is using, so you have something to talk about when your first conversation occurs
 
and if you're using Linux/Mac then you can link in symbols from your host VM program into the JITted LLVM code, which is dead simple.
 
user1804599
I'm not JITing. :p
 
implementing your own EH system would be... a tremendous amount of work for zero-cost table-driven exceptions.
for stack-based ones like SJLJ or hidden-out-params you might make it work for relatively low effort
 
user1804599
12:22 PM
Ah, okay.
 
user1804599
Do I have to deal with LLVM's exception handling instructions?
 
only for Itanium or SJLJ
Itanium isn't too complicated to use, especially if you implement throwing/catching in the C++ runtime.
it just directly implies a dependency on the C++ stdlib which would be a tremendous amount of effort to avoid.
 
user1804599
I am already depending on the C++ standard library, as well as on Boost.
 
on the upside, it ensures good behaviour for exception interop between the VM and the generated code, because they're using the same exception system.
 
user1804599
Yeah that's a nice plus.
 
12:26 PM
so if you're OK with a hard dependency on the C++ runtime, then use Itanium, LLVM has hardcoded support for it and especially if you implement throwing/catching as a C++ runtime function, it's pretty easy to use.
throwing and destructors is not hard, it's catching which can get a little messy, but even that is pretty simple as long as you're using LLVM/C++ stdlib's support routines.
 
user1804599
 
user1804599
lolgoogle
 
@Loopunroller So I would be sociable, yeah.
 
you can look at Wide's source if you want, it's not complicated in this specific regard.
but don't bother trying to understand Clang's.
 
user1804599
lol
 
user1804599
12:30 PM
Do I need C++' type info? :v
 
I hate the new sound that occurs when starring someones post
6
Hahaha
Who fell for it?
I saw it
 
not taking the bait
 
Wasteland 2 has this bug where in some cases, moving the mouse around stops moving the camera, and instead starts moving the shadows in the level
I so can't think of a way to make this happen
what kind of voodoo magic is going on there
 
@AlexM. Probably undefined behavior
:P
 
not sure there's much undefined behavior in C# .NET and Unity
 
12:42 PM
> Lead found dozens of uses throughout the Empire. Being apparently insoluble, it was used to line aqueducts and make water pipes - the word "plumber" derives from the Latin for lead, plumbum.
TIL
 
@rightføld If you want to implement throw/catch in IR, then yes.
but you won't need to do much of it if you structure your exceptions in some way
like if you always throw a styxrt::Object*, you can get the typeid from C++ and then you don't need to do anything with it except pass it to a few LLVM functions.
 
user1804599
Yeah, I want that.
 
user1804599
Not sure how to catch C++ exceptions from FFI but I'll figure that out later.
 
easily
er
as long as you know the typeid at compile-time.
pretty sure you need to know the typeids at compile-time.
for throwing, you can throw any runtime-determined typeid.
for catching, I'm pretty sure the data tables need to be built depending on which typeids you want to catch.
 
user1804599
Yeah, suck.
 
user1804599
12:53 PM
I cannot determine whether it's a subtype of std::exception at runtime.
 
what, for catching?
 
user1804599
Yeah, for turning it into styxrt::Object* that keeps stores the result of what().
 
user1804599
That way it can at least be useful. :v
 
sure you can.
 
user1804599
Instead of "unknown exception."
 
12:55 PM
just get the mangled name which is typeid(std::exception), make a global i8 with that name which is extern, then use the address of it as the typeid to catch.
 
user1804599
What if std::runtime_error is thrown?
 
runtime personality's problem.
you do not have to worry about subtyping in the IR directly.
 
surelyyoudontexpectustodebugthatpileofconfusingijkarrayindexingforyouexpeciallyw‌​ithallthefloatingpointcomparisonissues. — Martin James 38 mins ago
 
user1804599
Ah, so I can just catch std::runtime_error and it will work with all subtypes?
 
yep.
 
user1804599
12:57 PM
Neat.
 
the typeid structure contains everything the runtime support needs to handle subtyping.
 
Wide people living in glass houses shouldn't throw Styx
 
user1804599
Then I'll just convert all C++ exceptions into Styx Exception with a message of std::exception::what() or an "unknown" fallback.
 
there's actually not a distinction between C++ exceptions and Styx exceptions unless you make one.
 
user1804599
Well, Styx types are not C++ types.
 
user1804599
1:01 PM
And RTTI works differently.
 
you don't need to distinguish the type of the exception for most functions
for destructors, finally, etc, you can use catch-all
 
user1804599
Styx functions take and return styxrt::Object* (or unboxed variants in case of monomorphism) so I cannot just pass C++ objects to them.
 
right, but what I mean is that you don't need to convert them right away
 
user1804599
E.g. try { f() } catch { x /* x may have to be converted from C++ exception to Styx exception */: Exception => g(x) }
 
yeah
but you can definitely let a regular C++ exception propagate down your stack if you need to
 
user1804599
1:04 PM
Yes, that's true.
 
just convert on catch
 
user1804599
That was my idea.
 
user1804599
Catch clauses do pattern matching on the exception so I have to convert anyway.
 
user1804599
Unless the only pattern is _ or x for any x that is unused in which case you cannot access the exception.
 
user1804599
I have no experience whatsoever with SEH, though. (I've heard LLVM doesn't either but maybe that's been fixed recently.)
 
1:08 PM
LLVM 3.5 does not support SEH
but 3.5.1 probably will
I don't know what changes they'll make to support it.
 
@Puppy or 3.6. they didn't even start implementing it
 
what are you talking about?
3.5's Windows exceptions support is nearly done.
 
x32 SEH
 
you can turn it on with a couple small patches.
 
huh?
from what I know there was only this RFC - article.gmane.org/gmane.comp.compilers.clang.devel/39152
 
1:11 PM
that guy is not one of the regular LLVM devs.
 
uhm... ok, but where can I get those patches then?
 
dunno, ask on #llvm, I've seen them but didn't make a note of it because I only stay on stable releases
 
well. I hope it is true. so we will be able to switch to the msvc-compatible clang on Windows soon
 
might wanna ask Fanael, he was giving it a shot earlier I think
 
I'll just wait when it will be in trunk
 
user1804599
1:17 PM
Well then, let's implement vtables.
 
> trunk
- ugh, why do they use svn instead of git
 
there is a git mirror
 
but it's a mirror, you can't make a pull request with it
 
user1804599
Fucking SIOF.
 
oh yeah
don't forget what happens if you pass a callback to a C++ function and the Styx callback throws
 
user1804599
1:32 PM
Oh right.
 
user1804599
Then I have to convert it to an std::exception.
 
then you have to have a std::exception subclass you can use and you also need to know when to convert
 
user1804599
The compiler knows when you call an FFI function so it can wrap then.
 
not necessarily.
given a C++ function like f(int, void(*)(void*)), then the function your Styx code passes to it may not be knowable in advance.
 
user1804599
Some day you will have to convert a Styx function into an FFI function pointer in some way.
 
1:37 PM
yes, but you can only convert constant functions into function pointers.
that part is easy- just make a trampoline.
 
user1804599
Other functions too.
 
but converting a function pointer of one ABI into a function pointer of another ABI requires a run-time JIT and a bunch of other run-time stuff.
 
Are you guys working on Wide/Styx interoperability? :)
 
that's why MFPs and such cannot be converted to function pointers in C++.
 
user1804599
Oh right fuck.
 
user1804599
1:38 PM
Having to deal with captures.
 
> Globally stored cookies are less secure when used on a shared webserver (like Tripod).
Using PHP software is like travelling back in time
 
user1804599
Well libffi does that. I used it to implement bound_function to some extent (only primitive types work).
 
easier to just link LLVM into your C++ RT.
 
user1804599
eh :v
 
user1804599
I prefer not to have LLVM as a runtime dependency. :v
 
1:40 PM
well, it's either LLVM or totally-not-just-LLVM-with-a-different-name.
 
user1804599
libffi does the job of trampoline generation fine.
 
user1804599
And it's not a hugeass library unlike LLVM.
 
LLVM is only hugeass if you link in the code for all the targets.
you can rebuild it to target only the targets you need and it's much smaller.
 
user1804599
@FredOverflow that's implied through C FFIs.
 
Wide can interop with nearly anything that can be expressed in LLVM IR.
 
user1804599
1:44 PM
Can you import .ll files?
 
yep
 
user1804599
Ah, I see.
 
but more generally, Wide can interop with anything where you can express the type of the result in the Wide type system, and produce an llvm::Value* to use.
 
user1804599
@Puppy That's a wide range of languages.
 
yep
things get a little stickier w.r.t. exception interop
 
user1804599
1:46 PM
Speaking of passing trampolines, I also have to pin them.
 
user1804599
As well as exceptions that are passed to C++.
 
user1804599
Any boxed value actually.
 
Come on there must be someone here besides Puppy and Zoidberg
 
user1804599
Yes, you.
 
@LightnessRacesinOrbit I'm here I just have nothing to add... and should probably get started on laundry
 
2:00 PM
just put mine on
first linen and jeans wash in ... a while
flipped my mattress too
 
> If set to 8, a regular tab will be used when displaying text within the [code][/code] tag. Otherwise this many spaces will be used to indent the text.
Makes sense yes
 
ugh
that's silly
it should always be a tab
 
Yes so that it's broken always as opposed to only sometimes
 
sorry, I think you misread my message. I said it should always be a tab
 
buh. Can anyone tell me what is wrong with this one line? It always crashes. std::cout << "OpenGL Version: " << glGetString(GL_VERSION) << std::endl;
 
2:12 PM
@corvid: Check glwhatever for error return values.
 
You don't have an active context and it's returning nullptr
None of these forums have OAuth crap jesus christ
So useless
 
what're you doing with OAuth?
 
(Or LDAP, because that's just too much to ask for)
@corvid Guess
 
oh, authorising
 
chmod 'applications/config.php' 666 +
Modern PHP
 
2:17 PM
lern2docs
if you were an SO OP i'd troll your arse
-4
Q: the best programming language for user-friendly Data Processing from database ?

0xeN 0ni'm in my way to create an application for a Medical clinic that save the patients profiles such age , illness , gender , time of last visite ... and it needs a user-friendly program with database to store their patients information there i'm familiar with python , html , php and a little from...

I never know how to succinctly explain what's wrong with this type of question.
 
I was reading the docs, but it seems to work for someone else
 
So that someone else is not invoking an error condition....
c'mon man
What is the error? Did you query for it?
 
One of those things is not like the other gist.github.com/TheCatPlusPlus/632e6a15ab395f4e3afc
Nobody tests this shit. nobody
 
you just did, sorta
 
@LightnessRacesinOrbit it's a poll, which last I checked is explicitly banned on SO
It's effectively "What's your favourite [x]"
 
2:23 PM
It's sorta not
assuming there's a concrete answer at the end
like, there will be some proper language to use for x, y, z reason
we just have no way of knowing what that is from a one-sentence requirements doc
 
user1804599
I like the tag.
 
@ShadowWizard: The reasons are self-evident. I'm trying to help this OP to understand why his question is closed, by opening this discussion that has now ensued. It's absurd that your tavern buddies don't want the OP to find out! Have a nice day. — Lightness Races in Orbit 1 min ago
 
user1804599
Your comment was useless to dumb OPs.
 
I'm going into the Tavern. Wish me luck.
 
@LightnessRacesinOrbit The only time I go to the Tavern is to change my Hearthstone location. Why do you need luck for that?
 
2:31 PM
lol meta
 
I should probably be less fucking sweary in there huh
 
You seem slightly out of character in the tavern.
 
@TemplateRex uh, I just realized GSoC is for students only, which I am not - need a plan B
 
@LightnessRacesinOrbit Sellout
 
2:40 PM
in Tavern on the Meta on Meta Stack Exchange Chat, 8 mins ago, by Lightness Races in Orbit
I can't believe I've never hung out in here before. I haven't had my jabs yet, so be gentle.
So weird
 
shut up sophie
 
> The Dead Linger is the definitive zombie apocalypse survival horror experience!
oh great, another definitive zombie apocalypse survival horror experience
 
Toss it into the bin
 
0
Q: MY DAUGHTERS NAME

MORBID21I HAVE A ONE MONTH DAUGHTER AND I WANT TO CALL HER A JAPANESE NAME BECAUSE I ALWAYS LOVED JAPAN AND HOPEFULLY ONE DAY WE WILL MOVE TO THIS GREAT COUNTRY. I KNOW AKO MEANS CUTE AND ANEKO MEANS FIRST BORN DAUGHTER.CORRECT ME IF IM WRONG I WOULD LIKE TO KNOW MORE ABOUT WHAT NAMES I CAN USE SINCE SHE...

 
> MORBID21
lol
 
2:55 PM
didn't even spot that
WHY IS THAT?THIS IS AN EXPRESS OF RESPECT — MORBID21 24 secs ago
hahah what
 
IT'S SHOUTING WITH RESPECT
A VERY POLITE WAY OF SHOUTING
 
THIS IS WRITTEN TEXT.HOW COULD THIS BE SHOUTING? — MORBID21 54 secs ago
 
3:10 PM
Solid day on the cards. £13 and 5 pints of Wainwright up so far. Downside - the other players are planning to do me on the car park:(
 
he's trolling
or 5 year old
 
in Tavern on the Meta on Meta Stack Exchange Chat, 4 mins ago, by Lightness Races in Orbit
@ShadowWizard You have too much faith in humanity, my friend
 
@LightnessRacesinOrbit not sure whether thinking people are trolls means having faith in humanity
it's a form of stupidity anyway
 
I discovered steamtrades and got Of Orcs and Men for less than half its price (it's also on discount now)
TIL something good
 
3:22 PM
Timehop is "not available for [my] phone". Why not? It's an FB app. Why should it not be available for Android. Idiots.
YES I GUESS ITS THE WRONG PLACE FOR HELP BECAUSE OF PEOPLE STUCK IN CORRECTING WHAT THEY THINK IS NOT PROPER BASED ON SILLY INTERNET HABITS. — MORBID21 1 min ago
 
3:32 PM
How to get Qt::DateFormat in string format?
For example "yyyy mm dd"
 
What do the docs say?
in Tavern on the Meta on Meta Stack Exchange Chat, 4 mins ago, by hichris123
@LightnessRacesinOrbit Lounge regular is a little bit of an understatement. :P
true
 
@MartinJames Just make sure to ask them to wear a condom.
 
"But how can I be pregnant? I asked him to wear a condom!" "Did you verify that he was wearing a condom?" "No."
 
@LightnessRacesinOrbit Girl in our lounge!:D
 
Our?
 
3:36 PM
nice job making the Internet just that much more unappealing for women
OMG DUDE, IT'S A PERSON WITH A FEMALE AS THEIR AVATAR, LEAP LEAP LEAP
 
fap fap fap
 
Puppy, take your drugs and calm down
8
 
@Puppy I can read. Look at her profile: "Just an XML girl in a JSON world"
 
Shut up
 
@CatPlusPlus Who should shut up?
 
3:38 PM
ugh
 
didn't work out that well did it
 
cat just kick this guy plix
 
for some reason people always see lightness first when it comes to girls in the lounge
sob
 
<3
@Puppy Stop being so horrid to people. What is wrong with you?
@QueueOverflow :)
 
3:55 PM
erm... spread sheet stuff... I want to access a value from a row N above this? Ie, if N is ten, an I am cell A11, I want the value from cell B1. Ideas of what I am trying to look for?
ooh, it's look up stuff
 
4:10 PM
@LightnessRacesinOrbit Rabies..
 
user1804599
Oh, you again.
 
@R.MartinhoFernandes from...?
 
@R.MartinhoFernandes Terminator robot.
 
to
... the lounge.
 
4:11 PM
but to be back, you must have been else where, WHO ARE YOU CHEATING ON US WITH?!
 
You don't know her.
3
 
a she-robot
 
@thecoshman An alternate universe, AKA Android room.
 
@R.MartinhoFernandes nor do you :P
 
sbi
@R.MartinhoFernandes But maybe I do??
taps foot
 
4:20 PM
Oh ffs.
 
sbi
??
 
@sbi And what if you did?
 
sbi
@R.MartinhoFernandes Then I would know who you're with. What else?
 
Ugh Redis has barely any auth, good choice for a primary database NodeBB
 
4:35 PM
-16
Q: can you write a example program on formatted input/output operations in c++

Raja Sai Harishexample program in formatted input/output operations

That's the whole question.
 
lol the title is longer than the body
 
and longer than my patience
 
s/patience/penis/
 
meh
HAPPY NOW?
(bookmarked)
 
@R.MartinhoFernandes That's not very surprising, aside from the lounge elders, most people here have never been with or spoken to a woman ;)
 
nerds
 
"spoken to" is scary
 
@Borgleader [citation needed]
You're basically claiming that none of the non-regulars ever had a conversation with their mum. A bold claim indeed.
 
user1804599
Fall is the best season ever.
 
4:42 PM
@rightføld I prefer autumn.
 
user1804599
OK.
 
@LightnessRacesinOrbit party pooper
 
mainly because it has the advantage of actually existing
 
user1804599
You are incredibly dumb.
 
4:47 PM
That so.
 
@Borgleader I had a three-month relationship with a woman who used to be a man. Not sure if that qualifies?
 
Dragon Age is 100% off today
 
@MartinJames sounds exciting
 
@AlexM. She was actually quite hot, yes:)
 
4:54 PM
@MartinJames Was she above or below the vicky mendoza diagonal ?
:P
 
@Borgleader Hot and not crazy, (though she did write a lot of bash scripts).
 
ooh boy, that took me longer than it should have to work out how to combine the data of my current and savings into just one 'money I have' graph.
spreadsheets are a PITA at times.
 
@thecoshman Tending towards zero?
 
@MartinJames Really?
I'm not sure I could hack that.
 
@MartinJames not really... but this 'saving' concept hasn't worked too well :P but I knew that...
 
4:57 PM
But then again I'm "incredibly dumb".
 
It's very saw tooth though. Money bursts in, then steadily runs away.
 
A bit like my cock
 
I feel like I am doing something wrong by reinventing a raycaster. Does OpenGL have something similar already built in? I am trying to make that "gradient highlight" that you see in a lot of modern games
 
user1804599
@CatPlusPlus lol Redis for that
 
gradient highlight?
 
5:07 PM
@corvid grdient highlight?
 
> error: constant contains unimplemented expression type [E0019]
:(
 
sbi
Oh look, my underling is here. :)
 
lol robor
 
@R.MartinhoFernandes wth did you do? o.o
 
sbi
Seems he used an unimplemented feature of his compiler.
 
5:16 PM
@corvid Yes, it's called, "Reinventing an engine on OGL". Use Unity/UE4/some other engine middleware
 
@melak47 Like this except an outline around it instead of changing its color
 
...what?
what does that have to do with the raycast to see if the cursor is above it :p
@sbi hey :p
 
sbi
:)
 
@melak47 what do you mean? I want it so the player puts a cursor over a model, and then it draws an "outline" around the model. That's a raycaster, no?
 
@corvid determining if the cursor is over the model is a raycast. I don't know how drawing the outline is related to that
 
5:31 PM
I should keep my gob shut:( In club today, looking at soccer fixtures, Eddie: "Where the fuck is Lithuania?". Me: "Sorta between Poland and Latvia". Eddie: " Where's Poland?".
 
the raycast essentially makes it like a 2d picture, no? So I want to draw a highlight as if it were a 2D object in a way
 
@melak47 he probably wants to draw the outline if the cursor is over the model, as a sort of "selection" feedback
 
@Borgleader yeah...but you don't need raycasts for the drawing
 
no
im actually curious how this yellow outline is done
 
with computers
 
5:36 PM
i dont know what i expected
 
@Borgleader Geometry shader.
 
user1804599
-1
Q: 99 Bottles of Lambda

William FernandesSo, I got the "99 Bottles of Beer" song/thing inside a lambda (because: Reasons.). Is there any way I can improve it? Are there any parts of code that can be removed? (lambda: next(x for sys in [__import__("sys")] for echo in [lambda x: sys.stdout.write(x +"\r\n")] for loop in [lam...

 
user1804599
dat code
 
@R.MartinhoFernandes Well to be more exact I was wondering if there was another method than drawing it twice.
first pass you draw it bigger and yellow, the second time you draw it normally
18
Q: outline object effect

João PortelaHow can I achieve an outline effect similar to the ones found in League of Legends or Diablo III? Is it done using a shader? How? I would prefer answers that are not tied up to any particular engine but one that I can adapt to whatever engine I'm working on.

 
yeah Borgleader, that is exactly what I am talking about
another inane question, is there a way in the PS1 to get the current git project, if you are in a git directory? Eg, if I am working on thing, I want my prompt to say crow@thing(master): _
 
5:44 PM
Genoa swimming pool near here?
... too soon?
 
@Borgleader With a geometry shader it's a single pass method.
The shader emits all the extra vertices needed.
Those answers on gamedev.se are quite dated.
 

« first day (1457 days earlier)      last day (3500 days later) »