« first day (945 days earlier)      last day (4229 days later) » 

user142019
01:00
@StackedCrooked ah neat.
What's the favicon supposed to be?
@rightfold yep -ltbb
@Rapptz It's a design by @CatPlusPlus
user142019
In clang 3.3, the -litb flag will insert standard quotes into diagnostics.
@rightfold no, not him :P
Looks like nothing
user142019
01:03
It's "Co" from "Coliru".
user142019
Wait.
@Rapptz I kinda like it.
user142019
In GDB's stack trace, which entry is on the top of the stack? #1 or #11?
#1 is the beginning
user142019
In that case, it's calling 0x0 in clone().
user142019
01:05
IOW, the function passed to std::thread is nullptr.
user142019
In some weird way.
user142019
#8  0x00007ffff795aa10 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#9  0x00007ffff70bee9a in start_thread (arg=0x7ffff5792700)
    at pthread_create.c:308
#10 0x00007ffff73c7ccd in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()
user142019
01:09
@Rapptz Thank you
user142019
In Erlang this would be so easy.
user142019
And you'll get supervisors that restart your actors almost for free.
user142019
Everything is immutable.
@rightfold I think the problem is [&] (never do this).
user142019
@StackedCrooked Ahh.
user142019
01:10
I understand now.
user142019
I am sending a message before the queue is initialized.
user142019
:)
user142019
Wait.
user142019
01:13
user142019
Heh.
user142019
Now in GDB it doesn't segfault.
user142019
It just does nothing.
user142019
/tmp/1368839740-470069276/cmd.sh: fork: retry: No child processes
/tmp/1368839740-470069276/cmd.sh: fork: retry: No child processes
/tmp/1368839740-470069276/cmd.sh: fork: retry: No child processes
/tmp/1368839740-470069276/cmd.sh: fork: retry: No child processes
/tmp/1368839740-470069276/cmd.sh: fork: Resource temporarily unavailable
user142019
01:16
Whoops. :v
user142019
Wait. I'll install TBB locally.
The thread is created before the queue is constructed
user142019
Right. :)
user142019
Reverse the order.
user142019
01:19
IT WORKS ON MY MACHINE
should cleanup
user142019
However, it generates only five random numbers.
user142019
It should do ten.
user142019
When I set the loop check to i < 20 it generates 10 numbers. :|
user142019
Wait.
user142019
01:21
I could do two loops, of course. Let's see how that works. :)
user142019
Hij slaat er telkens eentje over.
user142019
Oh haha.
explicit actor(F callback)
    : queue{}, thread{[&, this] { callback(*this); }} { }
user142019
auto message = self.receive();
std::cout << self.receive() << '\n';
^^ callback is captured by ref
never use [&] :D
user142019
01:24
@StackedCrooked I have it fully working.
I see.
Without Valgrind complaints?
user142019
And 0% CPU usage when idle; no spinlocks or shit like that.
user142019
So: EPIC WIN! :D
user142019
TDD is nice.
user142019
01:29
I think that actor model is a very natural way to design programs. At least, that's how I experienced it in Erlang.
user142019
Even if you don't really need concurrency.
I think Scala has actors too
user142019
@StackedCrooked Oh right.
@melak47 ? What do you mean?
@ThePhD the one where after using any projection matrix, you get nothing
01:32
@rightfold I think [&] should never be used.
user142019
In Go you create and pass around channels.
goddamn captain morgan black is delicious
Doesn't the program deadlock?
user142019
No.
user142019
Well, maybe. I don't know.
user142019
01:33
The logger and PRNG are still running actors when the main actor completes.
user142019
They're just still waiting for messages.
@melak47 I made sure the rasterizer state was perfect and then I made sure to compare my matrix calculations against XMMatrix*'s calculations
user142019
Think of them as in-process daemons.
user142019
They never stop.
@ThePhD I am using XMMatrix, and I have no rasterizer state set :/
01:34
@melak47 You also need to make sure you transpose your matrices (DirectXMath is row-major) when you send it to the Shader from your constant buffers in your code.
@melak47 Uh. Set your rasterizerstate...?
user142019
You could implement some kind of kill message.
user142019
Or be evil and brutally kill the threads.
awesome
I do kill a lot.
@TonyTheLion You can get AIDS from stopping smoking?
01:36
oh it's bad pun friday eh?
I don't get it :(
Oh, now I do.
lol
user142019
@StackedCrooked Needs more __PRETTY_FUNCTION__.
user142019
Also, @StackedCrooked, in the logger you're receiving the message twice. That's a serious bug: you're throwing away half of the log! :)
@rightfold uh?
user142019
01:39
actor<std::string> logger_actor{[] (decltype(logger_actor)& self) {
    for (;;) {
        auto message = self.receive();
        std::cout << self.receive() << '\n';
    }
}};
user142019
Two receive()s. Should be only one. Now you're assigning half of the messages to message but that variable is never used.
user142019
Should be std::cout << message << '\n'; instead of std::cout << self.receive() << '\n';.
@ThePhD derp, that wasn't it. I remember now...
the rendered thing is less than 1 pixel in size >_>
@melak47 ... :3c
Nice one.
blarghflasfasf
01:45
Isn't 3D wonderful?
user142019
With ØMQ you can relatively easily expand this actor model to work over a network.
@rightfold In my Shared<T> I use this QuitException thingy. By sending that in the destructor as a final message I unblock the queue.
user142019
But you need serialization and deserialization (obviously).
user142019
@StackedCrooked Ah.
user142019
Oh well. I don't really like concurrency in C++.
01:47
I learned that from Herb Sutter IIRC.
user142019
Erlang absolutely wins. :P
user142019
Anyhow, time to sleep.
user142019
Später!
user142019
I should experiment with Erlang and multiple computers though. Never done that.
@ThePhD what were sensible input values for XMMatrixPerspectiveFoVLH/RH? nothing seems to make a difference ._.
01:55
@melak47 Radians, not degrees. 45 degree / 60 degree FoV, then the usual rest of the parameters.
@rightfold You say that as if I wrote that code :)
I get like an extreme closeup, no matter what I put for the FoV...
What's hte view matrix look like?
image not found
01:58
>_> dropbox y u no werk
Those are some weird rotation values.
WHat do the view and projection matrix calls look like?
there is no rotation o.O
view is an identity matrix
Ohhh, that's the projection matrix.
Nvm carry on.
Projection RH?
Or LH?
LH
but that also doesn't change the result ._.
@EtiennedeMartel What Scott said.
02:02
okay, wait, I'm seeing something different now
Mmm.
There ya go.
Looks a little weird but it's working. :D
well, no depth buffer :p
Tee hee.
02:06
and I'm outputting normals :p
Those look like backfaces.
better?
I'm a plebian.
@ThePhD also... in HLSL, matrix * matrix is legal, but does weird shit o.O
component wise multiplication maybe?
I find that most of my old callback-oriented code can be improved by using std::future instead of callbacks. However, sometimes callbacks are the better choice. And making that choice requires insights which I don't yet have..
02:14
@StackedCrooked use std::future everywhere, discover where it sucks, gain insights :D
That's pretty much what I'm doing :)
If an API uses std::future then it's easy to write a helper function that transforms it into a callback API.
@melak47 I don't know. Just make sure to use mul all the time.
I love how my school has so many errors in their sites programming
> A matrix also uses per-component operations in HLSL: float3x3 mat1,mat2; float3x3 mat3 = mat1*mat2; - MSDN
@melak47 ^ Yep, it's per-component.
@StackedCrooked Callbacks are cool.
02:29
I figured a callback-based api can always be created on top of a future api. However, the async blocking behavior kind of sabotages this.
Unless I don't use async, of course :)
@ThePhD so useful >_>
@melak47 Isn't it? <3
they couldn't just have * be proper multiplication, and mul per-component multiplication that nobody will need >_>
The async blockiness can be bypassed like this. (which is kinda silly though, and only moves the problem to the caller)
@Rapptz agreed
however, this is much nicer than a callback-based api:
std::future<std::string> http_get(const std::string& url);
I really like std::future.
Never used it
Somehow Coliru is on my top 8 thing on Chrome but I don't visit it that much
Counterpoint.. so is ideone.
:|
This thing's rigged.
02:37
@StackedCrooked it is?
@melak47 what is what? :D
why is getting a future nice? won't you have to block on getting the result from it? :/
I think it's a much cleaner interface.
@melak47 Yeah.
I guess the future.then will fix that.
what will that do? accept a function which will be called with the result? or what
yay I finally have le internets again
02:44
@melak47 Yeah, it chains functions that take the get.
so like a callback, sort of, but cleaner?
Yeah
And you get another future from it
So you can chain thens.
future.then( fancyshit1 ).then( fancyshit2 );
And that's all asynchronous work.
@Rapptz Coliru needs to be above ideone
when are we getting .then, then? :p
C++17
02:47
That sounds sexy.
@melak47 v the below
cppfuture.then( []( CompilerVendor ) {  return NEVER; } );
Sounds sooner than Modules which will come in C++34.
@melak47 If by callback you mean continuations then be aware that continuations can express and model many, many things. Saying something is 'like' a callback may not be saying much.
@LucDanton ? ok...? :S
02:50
@melak47 The answer to 'so like continuations, sort of, but cleaner?' is probably always 'yes'.
@Rapptz Lawls
03:00
@ThePhD no if (CompilerVendor == Microsoft) return NEVER; ? :p
@melak47 Microsoft is -- suprisingly -- the one who was leading the charge concerning async work.
Of course, I still can't take them seriously.
After all, they don't have using or {} initialization.
they have using namespace :p
using namespace std; <3
@melak4 I saw the ? : P and I was trying to figure out what a malformed ternary was doing out there and where you declared p
initializer lists are supposed to come when the CTP stops being a CTP ._.
03:03
I had a good laugh once I realized
@melak47 Whatever they release, I just hope it's soon..
If all they do is fix variadics and support brace-initialization, then it's all good.
using namespace (!on_windows) ? std::chrono : boost::chrono; ? :p
The other features aren't really super duper time-pressing.
Their libraries are up to date as far as I can tell (and have working <regex>)
@ThePhD they are adding other features? :OOO
They have working <async>
std::function is there
OH, RIGHT
The last core language feature they need: = delete;
and = default;
So yeah, those 4 things.
Fixing Variadics, supporting brace-initialization, and supporting =default and =delete .
03:06
I want using ._.
Eh.
I can get by without using.
template typedefs.
I wonder why they didn't just use typedef though?
no you can't get by without using
template <typename T> typedef std::vector<T> TVector;
lol, nonstd::future
nstd
Sounds like a good namespace.\
nstd.
Can Coliru handle multiple blank lines between output yet?
I think it's cool that you can create a derived object from a base object by providing a constructor derived::derived(base&& b) : base(std::move(b)) {}
@ThePhD Ah.
I can give you a quick and dirty fix.
03:10
Ooh, just for me?~
he likes it quick and dirty :3
It's dirty because the empty lines actually contain a single space now.
The problem is that empty lines result in <pre></pre> which has zero height. So you get the illusion that empty lines are not printed.
Ah.
But i should fix it good.
This solution is crap.
Mmm, you can fix me good~
03:18
I don't want Coliru to be crap.
03:36
Guys
Should my Texture class keep a String Name() member?
Or should the name not be associated with the texture at all?
the name is meaningless
@ThePhD Better have the name in your manager.
In a map or something.
ewww manager really
Dictionary.
That's better, I think.
Like those .NET stuff.
that's an unordered_map, not a manager.
03:40
Hookay.
IndexableDictionary <3
@DeadMG Whatever you call 'em. Most of the time, it's inevitable to create a manager class.
Neeeveer
You'll never catch me with a Manager in my code
Maybe a Boss
@MarkGarcia Well, one is a container, and the other is a hideous abomination.
@ThePhD Whenever you can do without a manager, then don't.
@DeadMG It's called AssociativeArrayManager
03:41
oic
@DeadMG The worse of the patterns.
Managers are inherently bad. Worse are the real-world ones.
And I think we're back again to rotating blackouts.
@ThePhD empty lines should work properly now
WOO!
<3 Stacked
boom shaka-laka
sandbox process limit is set to 20 so not much harm is done.
however, my vps has 100% cpu usage until expiration.
which is after 20 seconds.
I hope my VPS won't charge me for CPU usage :)
Another problem is that killing them results in a zombie (see the pkill zombies).
A zombie is not a big issue. But it should be fixed.
@StackedCrooked It's taking somewhere close to a second to start each process?
@JerryCoffin No they start immediately. However, the maximum time that the program is allowed to run is 20 seconds. (That's what I mean with expiration.)
@StackedCrooked Oh, okay -- I thought you meant the limit was 20 processes executing.
04:02
That too.
Perhaps I should set the timeout to 21 to avoid confusion :)
What's the best language programming porn?
@StackedCrooked I don't see much point, but whatever...
just kidding
@CaptainObvlious php
@CaptainObvlious A naked command line. What could possibly be sexier?
04:03
programming hyper porn
no respectable pornography website would run on PHP
ummm a naked command line covered in thousand island dressing getting spanked by 5 midgets?
@DeadMG s/pornography //
@deadmg I thought they all used Perl Necklace
@CaptainObvlious And ruby gems?
04:07
@MarkGarcia Not yet...another beer or two and I'll get one
@EtiennedeMartel I've already seen enough of Internet fighting. How does Internet shunning work?
@JerryCoffin :)
he would tell you, but that would involve ceasing to shun you
@DeadMG Probably. Oh well, ignorance is bliss!
04:38
I can't figure out how to install Java for Firefox on this Ubuntu box. After fiddling with it for half an hour, I do a google search. 3rd hit is "How to Install Oracle Java on Ubuntu Linux: 17 Steps - wikiHow". I hate linux.
@MooingDuck No. You should hate Java.
and it doesn't help that this laptop is about ten years old and has a lousy internet connection.
04:52
@MarkGarcia Everyone here hates Java. Linux just makes it that much worse.
2
If you don't hate Java then something is wrong with you.
05:13
bad starbait
05:35
@StackedCrooked I've explained before: I don't hate Java. I just think of it like a rock sticking out of the ground in the wrong place. Depending on size, I might smash it with a big hammer or use some dynamite to blow it to tiny pieces -- but I would feel no hatred as I did it.
06:00
holy shit
I was feeling OK, if not good, all night
now suddenly at 7am I'm seriously sick
fucking gallstones
@DeadMG Were you sleeping?
Oh. Nevermind then. When I have digestion problems they usually get worse if I'm laying down too long (such as sleeping). Walking around usually helps.
Other way around for me.
I remember getting down with some sickness and spending the day in bed reading. Then I'd shift position and maybe sit upright, and get all nauseous.
I definitely feel it more when I lie down
06:13
Which would mean finding creative ways of reading while lying down, such as having the book on the floor and laying on my stomach right over the bedside.
@LucDanton Seems like your was caused by motion. Lying down seems good to prevent motion, but bad to help digestion.
No!
That's wrong
Laying down is actually the best way to digest food, then sitting, then standing.
Not sure what the root of your issues are though.
Can't think of anything atm
It's almost 2:30 lol
Also on the downside of laying down to digest food you have the issue of increased chances of heartburn IIRC
Oooh, time for groceries.
buy bread
@Rapptz I'm in France.
06:22
@LucDanton Oh. Orthostatic hypotension?
@Rapptz No, not the getting upright. It's more that I was feeling nauseous, and being upright felt worse.
@ScottW Is bread srs bsns there as well?
I eat pita bread with all my foods.
Oooh, that sounds like a good idea.
Well.. most of them.
yeah it is
good for nausea too.
I haven't eaten bread on a regular basis in a decade
06:25
Btw I'm not the one with an illness today.
gallstones, supposedly
Good morning
Okay all dressed up, time to go.
1 min ago, by DeadMG
gallstones, supposedly
Not much really
06:27
@DeadMG you could try a mostly liquid diet
oic
Just updating OS X so I can get the latest version of gcc and compile C++11 code
You getting 4.8?
> Fuck Mac
FTFY
I'm stuck with it, just like all the other bad decisions I've made while I was younger ;_;
Yeah, 4.8
I'm waiting for Intel to release Haswell so I can build something decent
06:35
I'd wait for a Tick
Ticks are small arachnids in the order Ixodida. Along with mites, they constitute the subclass Acarina. Ticks are ectoparasites (external parasites), living by hematophagy on the blood of mammals, birds, and sometimes reptiles and amphibians. Ticks are vectors of a number of diseases, including Lyme disease, Q fever (rare; more commonly transmitted by infected excreta), Colorado tick fever, Rocky Mountain spotted fever, African tick bite fever, tularemia, tick-borne relapsing fever, babesiosis, ehrlichiosis, Tick paralysis and tick-borne meningoencephalitis, as well as bovine anaplasmos...
@ScottW They suck blood out from the wood?
What the... HTTrack just got updated!
So recently, I made this and I was wondering: Is there ever a time where the lexer could expect a type in some obscure situation just as well as an identifier?
06:52
@Magtheridon96 I thought a type name was an identifier
@Xeo Playing Rewrite right now. I like the cheerful music :)
ffs now I'm drenched
@Pubby You may be right

« first day (945 days earlier)      last day (4229 days later) »