« first day (870 days earlier)      last day (4086 days later) » 

10:03 PM
@Xeo Not enough beer.
Or too much J-pop.
 
Xeo
It's not J-pop or K-pop or whatever, ffs.
 
What is it?
 
DON'T JUDGE ME FOR WHAT I LOVE BAAABYYY
 
For what else shall we judge you?
 
Uh. I dunno.
The amount of beer I can chug?
 
user142019
10:07 PM
Oh hey it's sehe.
 
user142019
@ThePhD For your lack of a PhD.
 
I'm working on it q_q
 
I'll go with that one
 
user1182183
ah man elections are hard, there's no one I know there so I had to read through them all to cast votes ;F
2
 
Give it to minitech.
 
user1182183
10:08 PM
@ThePhD yeah gave one for him too
 
Help him win before he gets old and scraggly.
We need hip, young, and happenin' Mods, yo.
TO REPRESENT THE CULTURALLY DOWNTRODDEN YOUTH, MANG.
TO GIVE THEM A VOICE IN THIS DEPRESSING TIME WHERE ADULTS DO CRAZY SHIT.
 
@Xeo KIDDING
 
user1182183
well my project for creating a game has 5 members, and still, the workload is very high + we all are in high school :F
 
There are too many capitals on my screen.
 
@GamErix It's the primary so none of the votes actually count
 
user1182183
10:12 PM
@Rapptz still have to push someone to round 2 with my votes ;P
 
I don't think anyone gets kicked
 
user1182183
@Rapptz at least not literally
 
howdy guys
 
user1182183
@R.MartinhoFernandes Washington, Warshauw, Amsterdam, need more capitals?
 
anybody possess knowledge of sprintf?
 
10:14 PM
I don't,
but I know someone who does.
 
user1182183
@jamesson yeah, look for string_format
 
user1182183
here on SO
 
I don't think there's a capital named Warshauw.
 
@R.MartinhoFernandes Not in UNICODE
 
10:15 PM
@sehe Not on Earth.
 
user1182183
@R.MartinhoFernandes warschau it is, then.
 
@ThePhD You have dull friends. Oh wait
 
user1182183
I probbly need to go to bed, JUST A FEW MORE % to complete rendering
 
@GamErix, so the syntaxes are the same?
 
user1182183
God bless my CPU please
 
user1182183
10:15 PM
and GPU too
 
@GamErix That's German.
 
@GamErix, why must you pray?
 
user1182183
@R.MartinhoFernandes and dutch :P
 
@jamesson Yeah, you just have to rot13 it
 
user1182183
@jamesson because rendering lightning takes freaking 20 minutes for a small map
 
10:16 PM
How appropriate
 
user1182183
like "oh hey I'm shooting PHOTONS with my bits, ohohoh! let's see where they hit!"
 
Can't stop the photons.
 
@GamErix, my specific problem is I need to take a string foo[a] and return foo and a separately
 
user1182183
@R.MartinhoFernandes tell that to my CPU
 
user1182183
10:17 PM
@jamesson ever heard of sscanf?
 
@GamErix, sprintf is what's available in the environment, alas
 
Ugh, sprintf.
 
user1182183
@jamesson scanf is standard library too..
 
@R.MartinhoFernandes, trust me I'd rather not use it but thats what I have
 
@jamesson sscanf should be right next to sprintf
 
10:18 PM
Its not C, long story
 
@jamesson sprintf doesn't "return" anything. sscanf does.
 
user1182183
@jamesson if it's C++ use stringstream
 
user142019
Typesafe sprintf would be great.
 
so sprintf cannot be used to do this?
 
user1182183
@jamesson nope
 
user142019
10:19 PM
Wait Boost has that right?
 
user1182183
else work on raw arrays
 
user142019
Something like printf for streams.
 
@jamesson sprintf goes from data to text, sscanf goes from text to data.
@Zoidberg sure, boost::format./
 
user142019
Awesome.
 
@MooingDuck, no, I do not need data
@MooingDuck, I actualkly need to return text
 
10:20 PM
@jamesson alright all I saw was "I need to take a string foo[a] and return foo and a seperately"
 
user1182183
@jamesson data is text
 
@GamErix not the way I used it
 
user1182183
@MooingDuck yeah, it can represend anything
 
@jamesson oh, then yes, printf
 
10:21 PM
@GamErix that's not how we're using the term at this particular moment.
 
user1182183
@MooingDuck okay
 
@R.MartinhoFernandes heh, we keep showing up and trying to "help" without getting the full context :D
 
user1182183
80
A: std::string formatting like sprintf

Erik Aronesty// note: This is the CORRECT answer to the question... not a bunch of heckling about how streams are great. std::string string_format(const std::string &fmt, ...) { int size = 100; std::string str; va_list ap; while (1) { str.resize(size); va_start(ap, fmt); ...

 
"I need to take a string foo[a] and return foo and a seperately" sounds like tokenization to me.
 
@jamesson I still don't understand this message though. What are you trying to do?
 
user1182183
10:22 PM
just make sure to change string_format(const std::string &fmt, ...) { to string_format(const std::string fmt, ...) { because it crashed when the & was there (in my case)
 
@R.MartinhoFernandes "@MooingDuck, no, I do not need data" "@MooingDuck, I actualkly need to return text" in response to when I told him the same thing.
 
@MooingDuck: well, I have a string foo[a]. I need to do 2 separate operations with sprintf, one to return foo, and one to return a
 
@GamErix waaaaaaaaaaaaaaaaaaaaaaat.
That's just borked.
 
@MooingDuck, both as strings
 
@jamesson Forget about sprintf.
Don't tell us about the solution.
Tell us about the problem.
 
Xeo
10:23 PM
@GamErix What the actual fuck?!
NUKE IT! NUKE IT FROM ORBIT!
 
@jamesson so do that: sprintf(destination, "%s", source);
 
@R.MartinhoFernandes, I wish I could. Thats all I have in the environment for smart string manipulation
@MooingDuck, great, how please?
 
user1182183
@Xeo wondering why it has +80 yet none of you knew of it's existence?
 
user1182183
Well fuck logic.
 
@jamesson If you cannot tell us about the problem, we cannot help you solve it. It's that simple.
 
10:24 PM
@GamErix I find it funny how he is bold enough to say "This is the CORRECT answer to the question"...
 
user1182183
You guys seriously never searched for "C++ sscanf alternative" ?
 
user1182183
or "C++ sscanf equivalent"
 
user1182183
that lead me there too XD
 
user1182183
google rlz LOL
 
user1182183
reads my mind without permission
 
user1182183
10:25 PM
type this and you get that :P
 
@GamErix No. I often search stuff about my problems, not about solutions.
    if (n > -1)
        size = n + 1;
    else
        size *= 2;
lolwut
What kind of joke is that?
 
user1182183
@R.MartinhoFernandes yeah i know..
 
user1182183
but it's the best I could find xd
 
user1182183
for formatting std::strings (except boost.format)
 
Damn.
It looks like everyone does Deferred Shading these days. o_O
Or Deferred Lighting.
 
10:28 PM
Deferred rendering means UNLIMITED LIGHTS
 
Unlimited Lights, but it's apparently a pain to get OIT (order independent transparency)
I have a few ideas to solve that myself, but...
Apparently the dreamcast had native OIT.
 
Oh MY G-D GO AWAY HOBBITKIN YOU ARE ALL SO FULL OF SHIT. TIA, AN ACTUAL PRACTICING FOR SIX AND THREE FOURTH YEAR OTHERKIN
Yeah.
I don't know what to say, really.
 
Why do you even care.
 
o_O
People be on some crack, yo.
 
@R.MartinhoFernandes I like checking weird Internet cultures.
 
10:34 PM
@R.MartinhoFernandes (He's secretly an Otherkin!)
 
Ell
who tf is pewdiepie?
 
Um.
 
Ell
@ThePhD what's this deferred stuff?
 
I think he's a Let's Player
 
@ThePhD Yeah, I'm actually a @R.MartinhoFernandeskin.
 
10:35 PM
:O
ROBOTKIN!
I KNEW IT!
I KNEW THERE WAS A ROBOT RACE OF EVIL OVERLOADS TRYING TO TAKE US OVER
And oh god it's Unicode Compatible so we can't trick out its algorithms using crazy Unicode injectionnnnsss ;~;
 
Not any robot.
Dat robot.
 
I hate Boost.Range.
 
But you use it almost everywhere in ogonek.
 
Half-arsed piece of shit.
So, how do I make typename boost::range_value<T>::type SFINAE?
Sigh, I'll have to implement that shit myself.
I should just ditch this crap.
 
Do it! <33
 
10:39 PM
I don't have an alternative.
 
Yaaaaay <333
Today is a wonderful day.
 
No, I meant that I don't have an alternative to replace it with.
 
So then you'll have to roll your own? <333333
 
No, I'm not writing a range library for this.
 
<wheels/range.h++> ? <333
Aww. :c
 
You know what'd I'd like?
 
@ThePhD a million dollars and a babe
 
For C++ to just attach noexcept if the function or any of its dependencies don't throw.
 
@ThePhD and what if a dependancy changes but the interface doesn't?
 
10:43 PM
@MooingDuck lol at linker errors.
 
@ThePhD what if you don't have the imiplementation
@StackedCrooked: stacked-crooked.com/…
 
Modules~
 
@R.MartinhoFernandes is that what they are?
 
They're ld errors, so yeah, Linker.
 
can't imagine why people keep saying gcc is better :/
 
10:44 PM
@MooingDuck It works if you add main.
 
user142019
Did a person ever die directly because of UB?
 
@Zoidberg yes, sec
 
I got a Pizza from UB.
 
The Therac-25 was a radiation therapy machine produced by Atomic Energy of Canada Limited (AECL) after the Therac-6 and Therac-20 units (the earlier units had been produced in partnership with CGR of France). {| class=infobox !colspan=2|Therac 25 user interface |- | PATIENT NAME : JOHN DOE TREATMENT MODE : FIX BEAM TYPE: X ENERGY (MeV): 25 ACTUAL PRESCRIBED UNIT RATE/MINUTE 0 200 MONITOR UNITS 50 50 200 TIME (MIN) 0.27 1.00 GANTRY ROTATION (DEG) 0.0 ...
 
I do you know that was UB and not just another kind of bug?
 
user142019
10:46 PM
@MooingDuck that's indirectly. :v
 
@Zoidberg it's a computer, everything it does is indirect
 
I dunno, I just like to think UB can do nice things sometimes. If I didn't, I'd get very angry at my computer and release mode and q__q
 
@R.MartinhoFernandes It was written in assembly, so I doubt there was any UB involved.
 
I'm miserable
 
@Jeffrey lol
 
10:49 PM
@Jeffrey Join the club, we got Jackets.
 
I need to put this on the list.
 
@MooingDuck Looks like something the french could make, rly...
 
I'm not nihilistic
 
@Jeffrey The club: join it.
 
@DeadMG I have no idea if assembly has UB, I believe it does.
 
10:51 PM
I just feel sad about the human race.
 
@MooingDuck I don't think so.
CPUs must guarantee their behaviour in all conditions for safety-critical applications.
 
@DeadMG Meh, not all CPUs.
 
I don't get #14.
 
When everybody trust you enough to tell you their secrets (that you don't wanna hear), you see how everything is just a lie and they are a bunch of hypocrite bastards. No one is just evil, but if they make something out of it, they all suddenly become the devil.
 
10:53 PM
That isn't very applicable to everything.
 
@Rapptz It is for C++.
 
How so?
 
> These operations may cause the VMCS’s data to become undefined. Behavior may be unpredictable if that VMCS used subsequently on any logical processor.
@DeadMG Just one example from the Intel Manual.
 
@DeadMG en.wikipedia.org/wiki/Undefined_behavior "For example, the instruction set specifications of a CPU might leave the behavior of some forms of an instruction undefined, but if the CPU supports memory protection then the specification will probably include a blanket rule stating that no user-accessible instruction may cause a hole in the operating system's security; so an actual CPU would be permitted to...."
 
@Rapptz It is.
 
10:54 PM
Can you at least tell me how?
 
If you provide type traits and they are unusable with SFINAE, they pretty much force me to rewrite them correctly.
(And if you wonder, it isn't very hard to change the implemention to be SFINAE-friendly)
 
why would a library writer provide type traits for say, a media library.
 
Ell
Hmm
 
@Rapptz Who cares?
 
10:55 PM
@Rapptz Well, then the rule does not apply.
 
If your library has types traits (...)
 
@EtiennedeMartel Isn't that my point?
 
@R.MartinhoFernandes what actually is unusable with sfinae?
 
2 mins ago, by Rapptz
That isn't very applicable to everything.
 
Wait, wait.
What's the issue again?
 
10:56 PM
iunno.
 
All the rules are only applicable to libraries that have those mistakes.
 
I said not every library has type traits.
 
And not every library has singletons.
 
And not every library has pointers everywhere.
 
And not every library is terrible!
 
10:56 PM
Oh I see.
Every single element except #14 was generalised.
 
@BartekBanachewicz Badly written traits (std::result_of used to be the canonical example, until they fixed the standard and the standard libraries).
 
See I assumed because the list was originally for general library writing.
 
@Rapptz Generalised how?
 
@Rapptz It always had been for C++ libraries.
 
Okay this is happening again. So I have to explain it differently.
 
10:58 PM
lol
 
The list itself starts off with "Dear C++ library writer"
 
see that's a generalised statement in the beginning applying to everyone
 
then the first 5 or so items are really generalised
 
10:58 PM
If by "everyone" you mean "person who writes a C++ library".
 
as in, it applies to every library
 
They all apply to every library.
 
It applies to any C++ library.
 
Semantic Circlejerk, go go!
 
10:59 PM
but #14 doesn't really apply to every type of library
 
IMO no library is excused of any item (ok, I exaggerated a bit in some)
 
because not all libraries have type traits
 
For fucks sake
 
#8 doesn't apply to every type of library either.
 
if you use t traits then make them proper
 

« first day (870 days earlier)      last day (4086 days later) »