« first day (1238 days earlier)      last day (3936 days later) » 

16:02
I wonder how GUI stuff would be done in a pure functional language.
@R.MartinhoFernandes It's hell isn't it?! Every so often "Oh fucking hell, what was that awesome idea?"
@EtiennedeMartel with FRP mostly. You have an application, you receive an event, you "create" a new application.
I think I was in my room when I had it. It's a start.
@thecoshman "I should be more like Puppy."
@DeadMG no, it was a good idea.
16:04
@BartekBanachewicz No on both counts (benchmark & OpenVG)
@DeadMG Is that the "don't have awesome ideas and you won't be consumed by not remembering them" approach?
lol, nice.
@Borgleader ah, too bad. Anyway, OpenVG might become a thing soon.
also no
it's the, "Have so many awesome ideas, if you drop a couple it won't matter" approach.
you didn't drop Wide when you had a chance :P
jk
16:06
I prefer pauca sed bona.
also
it's the "Have so many awesome ideas, you won't be able to implement them all before you drop dead" approach.
Doomed to suckage, then.
more concerned about the dropping dead part.
You want to die from the drop then?
user3010322
@Borgleader I don't thing OpenVG is implemented or spread as widely as OpenGL?
16:09
no, I'd just rather not die of a horrible disease.
@ThePhD That's kind of obvious, no?
user3010322
I know for a facto that a handful of mobile devices employed it. Not sure about PC, though.
OpenVG is relatively new.
user3010322
I know.
user3010322
I was just wondering if it was the new thing that lots of vendors jumped onto,
user3010322
16:10
or the new thing that's going to take some 3-4 years before there's a nice standard implementation being shipped by vendors.
there are vendors very interested in shipping it
user3010322
Interest doesn't build my applications, unfortunately. =[
@ThePhD What I mean is that it's still in some kind of early adoption phase.
@ThePhD then sit on your ass and wait :v
user3010322
@BartekBanachewicz Waiting is for chumps!
16:12
then go and code
I'm going to give cinder a spin this weekend
I'm afraid of Boost.Asio the most
other than that, it seems that everything is ready, I have a project setup, well...
the Cinder docs are a bit lackluster still
@BartekBanachewicz o_0 now that's a loaded sentence
Hm, repo-local settings should override user-global ones, right?
Intuition-wise
you would think...
user3010322
@CatPlusPlus Of course.
user3010322
Local beats global, every time.
16:14
@CatPlusPlus Cascade Repo Sheets
@ThePhD But they're user-local!
@ThePhD 'cept when it's PHP
user3010322
Dis washer be loud.
oh look more linked list questions on SO
you know, the thing about Cinder is interoperability
the fact that when you have, say, a Vec2f, it works every-fucking-where
Qt has more or less the same feeling, I guess, but Cinder uses actual stdlib and that's much nicer for me
it's still far from what Haskell offers, of course, but I like the idea
btw @ThePhD Cinder’s modern internal memory management virtually eliminates leaks, not only of memory but also of resources like OpenGL textures.
16:24
@ThePhD your chat was good with Rapptz in the end?
time to go home
links to C question Yuck
> virtually
=/
What else is new?
nothing is new
its all old
16:27
"Nothing is new, everything is outdated." - Programmer's Creed
user3010322
@TonyTheLion Yeah, and I figured out a few thing I need to ask as well to know just how bad the situation really is.
user3010322
Sorry to make you stay up! Hopefully you were able to make it to work on time and not be super tired. :P
user3010322
@BartekBanachewicz I... don't know what you mean?
user3010322
What is "Modern internal memory management" ?
user3010322
16:32
Because as far as I can tell that's just std::unique_ptr
user3010322
Or, in my case, handle<T> ~
user3010322
I wanted to just call it unique<T>
user3010322
But there's a unique in the std:: already.
why would that be a problem?
you don't using namespace std;... do you?
user3010322
16:34
I don't, it's just I don't want to mix and match.
user3010322
I likehaving names that I know won't reasonably collide with other names in the std::
that's the whole point of namespaces you know.
user3010322
I know, but it also overloads meaning to the programmer.
the main unfortunate way in which they can leak is ADL.
@ThePhD oh good.
user3010322
16:39
I think unique_resource can work.
@ThePhD no, I'm fine today.
user3010322
And then shared_resource for shared_ptr analogous.
user3010322
@TonyTheLion Good to know.
thingy should have very low change of collision.
user3010322
Quite honestly shared<T> and unique<T> are like, amazing short, completely descriptive names of what these things are.
user3010322
16:41
So maybe I will just take them anyways.
user3010322
:o
user3010322
You do?
user3010322
I have Lightness approval~
It doesn't get better than that
16:45
@R.MartinhoFernandes C++17 std::thingy would not surprise me.
user3010322
Words cannot express how my joy is racing in orbit~
What of thingamajig, then?
C++17 std::multiply to perform a division operation would not surprise me.
16:45
Because "people usually want to multiply by a fraction when they multiply, so let's make it easier".
@LightnessRacesinOrbit could always multiply by 1/x
@R.MartinhoFernandes std::wotsitsface
I think we can probably all agree that std::multiply(3, 0.5) == 6 would be unexpected behaviour from a function so named. Yet, not unexpected from the C++ committee, sadly.
user3010322
DOIN' IT.
user3010322
16:47
unique<T> and shared<T>
user3010322
Well, maybe not shared<T> because that's the hardmodes.
@DeadMG std::fuck_this_shit
Also, I just realized that "this" is an anagram for "shit".
user3010322
template <typename T,
	typename TDx = default_handle_deleter<T>,
	typename TNull = typename default_handle_get_null <T, TDx >::type,
	bool same_deleter_null = std::is_same<TDx, TNull>::value>
class unique { };
user3010322
My body is ready.
I farted.
user3010322
16:48
Then your body is now also ready.
the dog needs feeding
user3010322
The day I can pass functions as template parameters is the day I will be happy.
user3010322
I'm not sure why every function that's written isn't automatically wrappable into its own unique function object.
user3010322
That's usable by just referring to its name.
user3010322
When I make a language, all functions will just be function objects. CONSISTENCY. D:<
16:51
W7 installed on new SSD. Now updates, Kaspersky, drivers... it's endless... :((
user3010322
Pfff.
user3010322
Kaspersky?
user3010322
Antivirus?
@ThePhD Yes:(
user3010322
Well, prepare to derp around for hours.
sam
sam
16:52
hi all
@ThePhD Yeah. No change there:(
sam
sam
can anyone tell me how a float point is represented in terms of bytes?
user3010322
=l
user3010322
In computing, floating point describes a method of representing an approximation of a real number in a way that can support a wide range of values. The numbers are, in general, represented approximately to a fixed number of significant digits (the mantissa) and scaled using an exponent. The base for the scaling is normally 2, 10 or 16. The typical number that can be represented exactly is of the form: :Significant digits × baseexponent The idea of floating-point representation over intrinsically integer fixed-point numbers, which consist purely of significand, is that expanding it wit...
sam
sam
its a test question and I have no idea what it means. Already read wikipedia, but could't make sense of it
16:55
@EtiennedeMartel "ish" is an euphemism for "shit" because that's how "shit" played backwards sorta sounds like.
sam
sam
@ThePhD does it always take three bytes?
@sam Then you probably are missing fundamental concepts that you need to understand first.
sam
sam
@R.MartinhoFernandes where should I start?
There was an extraordinaly pretty girl on my bus from work
@sam scientific notation in dec
16:56
Follow wikipedia links from above to those parts you are not familiar with?
@BartekBanachewicz did you ask for her number?
Of course not
I have a GF remember
@BartekBanachewicz I don't see a problem there!
Well I kinda do
no you don't, your GF might... :)
16:59
Cleaned up all those lost incomplete results. Now they don't show up in stats.
Meh, its the same really
@BartekBanachewicz It fixes averages, and makes percentages make sense.
sam
sam
@ScarletAmaranth thanks
user3010322
Should unique expose a typedef pointer, handle, or type?
user3010322
unique<T> doesn't try to or require that <T> is a pointer.
17:02
thingy!
user3010322
i.i
user3010322
But whyyy.
user3010322
I'll... I'll just do type.
Er, no. It's not a metafunction.
user3010322
:c
user3010322
17:03
resource ?
user3010322
Actually, that sounds good. resource
user3010322
There we go.
er
why expose any typedefs?
user3010322
Uh. I dunno.
user3010322
Don't really have to, I suppose.
17:04
they're only really useful for generic compile-time interfaces, and even then, only when decltype or inferring from template argument is unpleasant.
I'd call it native_handle_type or something.
And decltype is unpleasant :P
Hey vim why are you inserting this BOM here
I didn't ask you thanks
you're unpleasant
And then Python 2 decodes the BOM to a character :cripes:
1
Q: sizeof reference to array in gdb

Vladimir Yanakievint main() { typedef unsigned char a4[4]; a4 p1; a4& p2 = p1; p2[1]=1; cout<<sizeof(p2); return p2[1]; } Compile, start gdb and put breakpoint on return. If you type p sizeof(p2), gdb will print 8 instead of 4 which will be printed if you start the program. If you write...

17:06
@CatPlusPlus Everyone's an idiot.
user3010322
default_deleter conflicts with the std::'s naming.
user3010322
Should I call this default_resource_deleter ?
@R.MartinhoFernandes I'm going to assume that you found the answer already, but yeah, it does. :)
user3010322
ALLLL THE ERRORS ;~;
@DeadMG Don't you dare disrespect my favorite robot.
17:12
favoritism heh
1435
A: What is your best programmer joke?

Galwegian“Knock, knock.” “Who’s there?” very long pause…. “Java.” :-o

Not old at all
@FredOverflow Yep, that's where I got it :)
@R.MartinhoFernandes _mm_loadu_ps for unaligned loads.
@jalf Thanks. I'll be using simdpp::load_u, though :)
17:15
that would make sense :)
That library is really cool.
// Scala
def totalBalance(accounts: Traversable[Account]): Int =
{
    accounts.map(_.getBalance).sum
}

// Java 8
public static int totalBalance(Iterable<Account> accounts)
{
    return accounts.stream().mapToInt(Account::getBalance).sum();
}
Not too bad! Looking forward to Java 8.
Account::getBalance?
that's new.
This is a "method reference", and yes, that's new in Java 8.
user3010322
17:17
Agh. Turns out I can't use resource, native_handle_type, or thingy @R.MartinhoFernandes :(
what's this, Java is actually going to introduce a new feature?
user3010322
Things that work with std::unique_ptr expect dat pointer typedef.
user3010322
Like my ptrptr( T&& ) free function.
@DeadMG Account::getBalance is just shorthand for x -> x.getBalance().
user3010322
17:19
@FredOverflow Kinky.
LOL
Account::getBalance
x -> x.getBalance()
seems to me like it's not shorter at all.
I think it's also more efficient ;)
@ThePhD i.e. your ptrptr free function seems broken :P
user3010322
@R.MartinhoFernandes So I just have to override that? :o
user3010322
17:20
@R.MartinhoFernandes Yeah, probably... =[
You should have never used typename T::pointer in the first place.
It's also nice not having to think up use-once variable names like x.
what the robot said.
member typedefs are only for things hard to get out with auto or decltype.
user3010322
So...
user3010322
typename TParent::pointer -> typename std::pointer_traits<TParent>::pointer ?
17:21
lol no
typedef decltype(*std::declval<T>()) pointer;.
not actually sure if decay is necessary.
You want to remove the reference?
also let's try actually adding a decltype in there.
17:23
decltype is wrong.
user3010322
Oooh....
pretty sure it's correct.
If you remove_reference on what you have, you're left with element_type.
user3010322
Well, whatever I've done I broke some rule, the std:: headers are complaining now. :D
@R.MartinhoFernandes Yes, I think I was thinking of -> rather than *.
17:24
Just got an email from OpenClassrooms. I should edit my settings.
@DeadMG Good luck with that one.
heh.
.get() should return the same type.
I would just like to remind you guys that Twitter is totally an issue tracker. /cc @R.MartinhoFernandes
Not generic enough.
probably.
what should pointer be for a whateverhecalleditintheend<T> anyway
17:26
@ThePhD Show your specialisation.
Whenever I specialise something in std, I switch to super paranoid mode and ::ns::everything.
Same in macros.
user3010322
Oh. I usually nest it in a namespace std
user3010322
Like this:
user3010322
namespace std {

	template <typename T, typename TDx, typename TNil, bool b>
	struct pointer_traits<unique<T, TDx, TNil, b>> {
		typedef unique<T, TDx, TNil, b> parent_t;
		typedef typename parent_t::resource pointer;
		typedef typename parent_t::resource element_type;
		typedef std::ptrdiff_t difference_type;
	};

}
Is that at top level?
user3010322
17:29
Yeah.
How does unique work, then?
Don't tell me you use the global namespace. Or using namespace your_thing;.
user3010322
OH
user3010322
WHOOPS
user3010322
I forgot to stick the namespac eon it
user3010322
Herpaderp.
17:30
Also, I always put a space between < and ::.
user3010322
template <typename T, typename TDx, typename TNil, bool b>
struct pointer_traits<::Furrovine::unique<T, TDx, TNil, b>> {
	typedef ::Furrovine::unique<T, TDx, TNil, b> parent_t;
user3010322
Crisis averted. :D
<: is a digraph and cough.
user3010322
Digraphs are disabled by default.
user3010322
Anyone who turns them on deserves to die.
17:31
No, they're not.
user3010322
Digraphs and trigraphson gcc, clang, and MSVC are not parsed unless you ask for it, no?
Never thought this would come in handy. Sigh. ideone.com/inXuVc
@Xeo
@ThePhD Only trigraphs.
user3010322
<____>
user3010322
Thanks, C++.
user3010322
Digraphs and Trigrahs deserve to die. ._.
17:33
There's a special parser magic exception for <::, but it's new, and I'd rather play it safe.
'Installing update 2 of 134'. Wonderful.
@ThePhD What if you want to use lambdas on a PDP11?
user3010322
@FredOverflow Anyone who's still programming on a PDP11 deserves to die. c:
user3010322
:o It's compiling!
@ThePhD Anyone who has programmed a PDP11 is already dead.
user3010322
17:35
@MartinJames Except maybe @JerryCoffin
> The last models of the PDP-11 line were the PDP-11/94 and -11/93 introduced in 1990.
whistles
Oh - hang on, I'm dead too:)
user3010322
resource or resource_type for the typdef?
@R.MartinhoFernandes Stupid parsing problems. Why does C++ use <T> syntax for templates, anyway? Was it inherited from some older language? I like how D uses !(T) and Scala uses [T].
Xeo
Xeo
@R.MartinhoFernandes hahaha
17:37
@R.MartinhoFernandes Not entirely true.
It's kinda nice being dead. I don't have to wait for all those updates to complete now.
user3010322
> Updated: Oct 5, 2013
@JerryCoffin hahahahahaha
user3010322
My god, they're still alive.
@FredOverflow PDP-11's used ASCII. Trigraphs were invented for those benighted systems that used ISO-646.
17:39
@JerryCoffin NO! I liked being dead!
template<typename T> struct A {};
template<unsigned N> struct B {};

// Conforming C++03, breaks in C++11
A<B<1024>>3> > x;
Backwards compatibility my ass
@MartinJames Death is peaceful.
@JerryCoffin Wow, you knew that, or looked that up?
@JerryCoffin 'Please wait while purgatory V13.0.45 is installed'
@FredOverflow I just spent most of yesterday throwing out all my ancient books getting ready for a move, so I can't look up things like that any more.
17:41
@JerryCoffin I gotta do that sometime, too. I hate moving with lots of crap.
@FredOverflow I have cloud crap, so moving is easy.
@MartinJames VS2014 is out already?
@JerryCoffin covers ears
@DeadMG LOL!
@FredOverflow I hated throwing it out, but even I have to admit that it would be silly to move books that (in some cases) I haven't looked at in over a decade. In some cases well over a decade.
17:42
lalalalalala
Someone at my University threw out TC++PL 2nd Edition. I didn't pick it up, because I thought I already have it, but now I can't seem to find it :(
'Installing update 66 of 134' - W7 has really got steam up now.
Too bad SP2 was never released.
I think that the little cooling fan on the video card has seized up:(
@FredOverflow If you want it badly enough, I have a copy that just went into the garbage yesterday. There's a decent chance it's still clean and undamaged...
17:46
@JerryCoffin C++ Garbage Collection? I couldn't bring it over my heart ;)
Also, I'd probably never read the book anyway, so who cares.
It was more of a curiosity to find that somebody at my University was interested enough in C++ to own TC++PL 2nd Edition.
@FredOverflow has your situation changed, or leaving the uni?
omg DX12 is coming, what the...
@FredOverflow Yesterday's dump including first, second and third editions + ARM. Did keep D&E though.
Do you have the fourth edition?
What is a good way to implement undoable stuff? (hi)
In object-oriented programming, the command pattern is a behavioral design pattern in which an object is used to represent and encapsulate all the information needed to call a method at a later time. This information includes the method name, the object that owns the method and values for the method parameters. Four terms always associated with the command pattern are command, receiver, invoker and client. A command object has a receiver object and invokes a method of the receiver in a way that is specific to that receiver's class. The receiver then does the work. A command object is sepa...
17:52
and log them in a stack?
Undoable stuff is impossible
2
That's part of the Command Pattern :)
@JohanLarsson Just sit around and play games all day. If it's undoable then you're making as much progress as you would be coding.
You guys are funny.
17:53
@MartinJames My next doctor's appt is 20th of May.
I'm a fan of a stack of cheap to copy immutable states.
@DeadMG Best wishes, though on previous experience, I'm wasting my time.
@FredOverflow should be easy with C# reflection
it wouldn't bother me so much if it didn't take so goddamn long to get to see the doctor
feels like I'm supposed to be living life and instead all I'm doing is bending over a bucket.
@DeadMG Yeah, and then, when your appt. does get around, the quack has caught flu or the like.
17:57
Is that related to the expression 'to kick the bucket'?
@R.MartinhoFernandes No.
that's an expression whereas I was being literal.
Don't kick it, then ;)
hmph
I'm not really feeling like that would make a substantial difference to me
17:58
@FredOverflow Nah--when the standard came out, I quit buying new ones.
You'd vomit on the floor!

« first day (1238 days earlier)      last day (3936 days later) »