« first day (1945 days earlier)      last day (2996 days later) » 

12:00 AM
the external parameter is still always 512 regarding the block size
if it helps I can get you the kernel code somehow
 
@HubertApplebaum Can't help you with that one.
 
I have other functions using blockDim.x/y ,gridDim etc that return the thread id's
and work fine, in the other kernels too
@Morwenn you helped enough bringing someone willing to help :D
 
I don't know what features can be added to sol now.
It feels... complete.
 
@ThePhD But not optimized wink wink
 
@HubertApplebaum I checked the result of the int version of max_limit, passing it as a value to the output array, and it was 512, at least from the thread with id = 0
 
12:04 AM
@Borgleader Meh.
I already optimized most of it.
 
@ThePhD Didnt you throw a wrench in that with overloading?
 
@Borgleader Overloading takes an entirely separate process.
 
ohhhhhhhhhhhhhhhh
well fuck it then :)
seal of approval
next
 
That is, set_function( "a", func_a ) and set_function( "b", sol::overloaded( func_b1, func_b2 ) ) yield the same interface (a function) but internally take 2 drastically separate paths when the lua code calls into C++.
the second one's functions calls will most certainly be slower. I can improve that slowness by changing how we consider functions (mostly by sorting the overloads into groups by their arity at compile-time and then std::binary_search to the right overload sets), but doing that without constexpr is... possible but too goddamn hard.
I feel like I'd need to go full @Xeo to do it.
This approach would also allow me to omit type checking in certain rare situations.
For example, if I have 3 functions set as overloads, but they all have different arities (1, 2, and 3 let's say), then when lua says "the user called something with 2 arguments", I can just go to the 2-arity slot, realize there's only one function, and then omit the cost of checking arguments by just calling it.
If I have 2 or more functions competiting with the same arity, then I need to explicitly type-check each one because that's the only way to intelligently discriminate between the 2+ functions available for that arity.
 
12:19 AM
do other libraries offer overloads?
 
A few, but with shitty syntax.
And only for classes IIRC.
 
so you one upped them?
 
For sol, it works in both the free function and the member function case.
Yes.
 
12:41 AM
@NoobDoob Sounds like an overflow bug to me
What size is your block and grid
 
@Morwenn Do fold expressions allow you to "filter" packs?
 
@ThePhD What do you mean?
 
@HubertApplebaum block size 512, grid size 32 (one dimensional both)
 
Okay that can't be an overflow
But why one-dimensional? You mentioned blockDim.x*blockDim.y
That's 2 dimensional
 
ah yes I tried both 1 and 2 dimensional
in 1-d, used only blockDim.x
results where the same
 
12:44 AM
@Morwenn some_predicate<Pack>::type... // only spills out types that match a certain predicate or something
 
@NoobDoob Please post a mcve on coliru then
 
I don't think it is possible.
 
> Visual Studio 2015 Update 2 CTP
omg
 
@HubertApplebaum Hot, fresh disappointment, mmm. I can't wait.
@Morwenn Oh well. I tried.
 
@HubertApplebaum Did they fix anything? :P (compiler wise, i know STL has been busy)
 
12:53 AM
@HubertApplebaum well I will do it in half a day, since I need and the whole project spans across 5-6 files, so I might need some tiding before posting. The code is not badly structured though, and my problem is centered on the kernel which is quite small.
thank you for your willingness to help nonetheless!
 
Before you do that, have you tried the debugger? And cuda-memcheck?
 
Man, I love browsing Polycount
 
@HubertApplebaum weeeeell that's a problem since I don't have the desired software on my personal computer. the program is for a university exercise, and all of the execution is done in a queue common for all participants of the course. At the same time, my schedule is pretty tight since it's exam time simultaneously, so finding time to get used to and effectively use the debugger myself is out of the question.
All of my tries to find the problem involve changing things in the code and waiting in the queue to get results
 
Um
Might as well jump from a high story building then
 
damn
 
1:02 AM
Debugging a regular program with no debugger is already a torture, debugging a multithreaded program with debugger is still hard, and debugging a massively multithreaded GPU program without debugger is just wishful thinking
If there's a memory violation cuda-memcheck will tell you immediately where the problem is
If there isn't the debugger will help you step through the code and see the values for each thread
No amount of printf will ever replace that
 
I realized pretty well...
will try to invoke cuda-memcheck in queue
 
Do you not have an nvidia gpu
 
I do, but have windows and no experience in developing nvidia in windows
the queue is in a Linux system
 
if you have no success with cuda-memcheck, spend 20 mins installing cuda on windows (you have Visual Studio, right?) and you'll solve your problem in no time
there's a visual debugger and everything
 
yep I do have VS
well I have nothing better than try I guess :)
thank you for your time, it's time for me to sleep already if I want to get anything done tommorow
have a nice day/night!
 
1:09 AM
np, good luck
 
1:27 AM
@Morwenn Maybe I'm not seeing it, but they don't have any syntax for ignoring a value like std::tie, do they? (For the structured binding paper)
 
Nope, there isn't any.
 
Guess I'd better bother Bjarne about that.
 
On the other, the compiler will probably ignore an unused variable in a dispatched return.
Oh right, of course you can :D
 
Why isn't std::ignore_t a real thing... bwuh.
Now I have to invent my own empty tag.
 
@ThePhD If you bother Bjarne too much hes going to std::ignore_t hat question
 
1:30 AM
@Borgleader Then Mission = Accomplished
If he's going to assign me boring homework assignments I reserve the right to bother him about his proposals. :v
 
having bjarne as C++ teacher is p classy though
 
ikr, im jelly :(
 
Unrelated to PhD, I wonder how Bjarne feels when irreverent schmucks bother him with their stupid ass ideas on how the thing he made should work.
Must be kinda diffused as it is a standardized programming language nowadays.
 
ask him what i++ + ++i does
 
does bjarne sequence before or after he slaps you?
 
1:36 AM
> Backtrace stopped: previous frame inner to this frame (corrupt stack?)
well thanks for nothing
 
you corrupted the stack by introducing it to power and money
 
1:49 AM
Sweet, sweet progress.
 
using yes = char;
using no = struct { char s[2]; };
is this 1995
 
Expression SFINAE ftw.
 
#disgusted
 
2:04 AM
@HubertApplebaum No, this is VC++
 
@HubertApplebaum why would you do that
 
@Borgleader Yeah @HubertApplebaum, why would you do that?
Shame on you.
 
@Borgleader lol click the link posted by TheNewbie
 
@HubertApplebaum @ThePhD explain
now D:
9gag: "22 facts that will make you feel better about your sex life."
me: "my what?"
 
wow 22 facts
 
2:09 AM
@Borgleader VC++ is a cruel, cruel mistress.
 
@Borgleader lol
 
@StackedCrooked in reality its probably 22 made up things that are pretty much irrelevant most of the time, but dont let that distract you from the joke
 
I learned C++ in 2003 using Accelerated C++ and pirate copy of Visual C++ 6.0.
 
Now I need to do unique_types<T...>
What a proper name for making all elements in a set?
Besides, uh. uniquify?
exclusive_union?
unique_among?
 
user406009
Remove_duplicates
 
2:14 AM
dedupe
 
user406009
No, dedupe is a horrible name.
 
qq
 
extract_unique?
 
Just "unique"?
underscore.js uses "_.uniq"
LINQ uses "Distinct"
 
oh distinct is nice
 
2:36 AM
I vote distinct
@ThePhD lolrekt
 
select distinct type from types
/* join allowed_types, order by type.name asc */
I vote for SQL as a meta-programming language!
 
Yet more progress
Now I need to implement tuple_clean.
 
3:06 AM
Damn, Boku dake ga Inai Machi is good.
 
hello. I finally got a python programming book. Im gonna look at it and start expanding my knowledge.
 
nice
 
the book i got is called "learn python the hard way" by Zed A. Shaw
 
Zed A. Shaw of the Programming Motherfuckers ?
 
3:10 AM
@ThePhD Im unsure what you mean.
Basically I got it because it was the cheapest and more laidback and direct book I could find on the subject
besides... python should be easy.
right?
 
@ThePhD wow...
now i understand the reference
clever I would say
 
3:29 AM
Hey guys, I have a noob question here. I'm learning C++ for one of my classes, but I cant seem to get this simple logic to work.
do {
// Do stuff
} while ((chosenAlgorithm >= 0) && (chosenAlgorithm <= 1));
I can either have -200 or 200 and both fail.
 
so do once and repeat while it's in the range of [0, 1]
 
200 fails one sideof the condition
-200 fails the other side
HTH
 
WOW
I forgot to negate that.
 
You could also make it or
 
well I think we have identified the problem
you need more sleep
 
3:32 AM
@FeaRCODE C++ for one of your classes.
Get it.
 
This is my first time using "do .. while" so i do apologize
;)
 
eh, it's an interesting control structure
 
Btw, why do we end a class in a ";" Seems odd
 
52
Q: Semi Colon after class declaration braces

Shane MacLaughlinApologies in advance for what is probably a stupid question, but in C++ classes, why the semi-colon after the closing brace? I regularly forget it and get compiler errors, and hence lost time. Seems somewhat superfluous to me, which is unlikely to be the case. Do people really do things like ...

"It's been that way since the dawn of C and it's useful in some cases so it's kept regardless of the original reasons, which were probably more to do with ease of compiler writing"
 
interesting
 
3:35 AM
to paraphrase
 
3:46 AM
A new proposal to bring iterator_facade into the standard library.
 
4:21 AM
Nice.
 
4:54 AM
Why does packing / unpacking and getting indices for these things haveto be such a fuckin' hassle.
 
because it's a feature abuse as usual
 
Oh, hey, it's Hubert
 
@HubertApplebaum Lies and slander. :<
 
thephd is so adorable
 
I am not!
 
4:57 AM
:3
 
@ThePhD You know it's true
This use case was never forecasted
It's a hack like the rest of TMP
 
true
 
false
 
TMP is uglier than Haskell
And Haskell is ugly.
Speaking of ugly, I need to reintroduce my clothing-specific BRDF to soften them threads.
But first need to go for a goddamn drive to the city. It's so dark outside. ._.
 
Pls no get hit by another bus.
 
5:01 AM
lol
 
@ElimGarak fabric softener should do the trick
 
Can cloth-wearing flies breathe in fabric softener fumes? ayyy
 
5:14 AM
I don't know can you
 
> it's full of RPG staples, like HP points
> Fixed additional bugs that caused mesmer illusions to inherit transformations from their owner.
the fun has been successfully targeted and eradicated
 
5:34 AM
hi
is there an online ide in which we can upload file from local machine
 
@Rapptz pretty hyped for PoE in March
 
what's it about
 
5:50 AM
So, I just followed a bus on the road which did 130 km/h until it reached the city (allowed 90 km/h) and then enjoyed a cruising speed of 100 km/h through the city (allowed 50 km/h). Is Bartek in Croatia?
5
 
the big thing is new zones (as expected), which reward for clearing is character building
together with new/updated mechanics I think it’s the new build options that I’m really looking forward
build diversity is relatively healthy right now whereas it used to bounce a lot around FotM in the past, they’ve really locked down on that to avoid it
 
@LucDanton what
 
@HubertApplebaum I will never turn off my devices!!
 
what is PoE
Don't say Edgar Allan
 
Penis of Effect
 
5:53 AM
I was gonna say power over ethernet (hence the previous joke)
 
You mean PPoE right
 
@HubertApplebaum anyhoo it’s Path of Exile
 
you did mention fractals of the mist though
 
fry.bin.lzma
 
I need throw_with_nested so badly in my life
 
5:59 AM
as I recall you can write it yourself
 
no I would need current_exception etc
 
well then now you know what you want so badly in your life
 
ugh
getting up at this time is inhumane
 
ugh what time is it
 
@HubertApplebaum I’m a huge fan of Boost.Exception
 
6:00 AM
let see
doesn't have nested exceptions but some other nice ideas
 
@Rapptz another way to put it is that building in PoE is like solving a puzzle, and now we’re getting more puzzle piece shapes
it’s still the same game though
it’s a shame my buddy and I can’t get anybody else to play the game, I’d love to see some of the larger party size shenanigans (before my GPU would burst into flame)
 
@slaphappy Ah, then just don't sleep, bby :P
 
6:16 AM
any of you python experts?
 
Paging @Rapptz
 
yes this is the python room
 
show us your python mastery Hubert
 
he might have to take pyagra first
 
$echo "Hello from python";
 
6:36 AM
> Unknown system exception <<
Thanks, 3ds max. Informative.
 
what is this unredable shit
oh that's your distinct on type lists
 
Yeah, it's gotta peel things back one later though.
It's too fucking bad I can't just "unpack<Thing>..." without making some intermediate nonsense.
I believe C++14 introduce std::integer_sequence...
 
>2016
>still using c++11
>mfw
 
sol was designed as a C++11 library.
I only just upgraded it to C++14/17, and even then I have to use the C++07 subset that VC+shit supports.
 
lol C++07
:star:
 
Xeo
7:28 AM
mornin
 
7:41 AM
Morning.
....
VC++ straight up just does not compile some parts of my code.
Like. It doesn't compile it, and then removes the code from the executable, and then just pretends everything is okay.
uwotm8
The compiler literally gives up and just doesn't do anything with the lines after the comment.
 
@ThePhD nice color scheme
 
Xeo
x is a function declaration there. that intended?
 
Yeah, and dead_distinct_list is supposed to not be one, but it still derps out.
(It still doesn't work if you use brace-init to make it init an object)
There's no
std::type_list anywhere, is there?
Not sure if this paper gained traction
Christ that took forever.
 
8:18 AM
Boilerplate++
 
Xeo
Derpstorm++
 
Most vexing Xeo
 
it's firdaaay
and I'm not very tired weee
 
Listen, it's all necessary, okay.
I promise.
 
Ven
8:37 AM
ahoy
@ThePhD In the name of Ra, wtf is this shit...
 
templatomancy
 
Ven
@HubertApplebaum hey :[ we still deploy on AIX at $work, so no C++14
also our C++11 is partly broken because they made mistakes earlier.
 
@AlexM. you know of the secrets of the templar order?
 
@Ven lol
AIX
This would be hilarious if it weren't so sad
 
8:44 AM
@HubertApplebaum c’est un SE développé dans le sud ça
 
More Steam games goodies
@LucDanton I was thinking "he won't dare" but you did
 
could have just said 'Nice'
 
@Xeo OH MY GOD
WHY CAN'T I PREORDER
 
rekt
 
@LucDanton Hendaye
 
8:46 AM
I hope maple will have lots of screen time in vol 2
maple is the best catgirl
 
@HubertApplebaum frite.ml
 
@LucDanton no those are dark arts
I do not dabble in those
> This game will unlock in approximately 7 days and 16 hours
nice on a weekend
it will also be the weekend after the exams
so I'll do a combination of crying and uh
other things
 
i.e. as usual
 
nah usually I don't spontaneously cry
jk I won't cry exams are ez pz
I have a week to learn how compilers work and everything ever about probability & statistics
 
B I K E S H E D
 
8:52 AM
me too me too
 
std::tuple<int, double, std::String> -> does this get pushed to lua as a table, or as a consecutive pack of values?
 
Got it \o/
 
success! next bikeshed
 
CUDA or Metal
 
8:54 AM
plastic
 
success! next bikeshed
 
can someone who's smart explain to me why the gravitational wave discovery thing is very good for us? from a practical POV
can it allow us to do shit like space travel at incredible hihg speeds
 
no
it just confirms their existence
 
@AlexM. no because science is not technology
 
ok :(
 
8:59 AM
There doesn't seem to be std::make_tuple_untouched
Guess I'll write make_simple_tuple, where no decay or w/e is done.
 
not sure what tasty foods to purchase
 
get a big sandwich
I'll do that once I leave work
in particular get this sandwich
Feb 5 at 0:14, by Alex M.
I like my subs with chicken and bacon and cheese and lots of vegetables
Feb 5 at 0:14, by Alex M.
and honey mustard and chipotle
sauce
not the chili itself
 
Ven
@AlexM. it allows us to get to dank matter.
next will be dank energy.
 
I just got an answer to a 5 year old question
0
A: C# + MySQL Connections

Elijah Rodrickspublic class DALCommon { public static string GetConnectionString { //return System.Configuration.ConfigurationManager.AppSettings["connectionInfo"]; get { NameValueCollection appSettings = ConfigurationManager.AppSettings; ...

lol
 
Ven
:|
 
9:13 AM
I don't think it answers anything
but I didn't read my question
so I have no idea
 
Ven
you even have a question with negative votes.
 
yea it was part of a serial downvote
I think it was someone who visited here and I aggroed
 
> A philosopher in mind, a poetic programmer in finger tips.
CODE ARTISAN
what's up with hipsters and rubby anyway
 
The guy has enough ego to become his own solar system.
 
Ven
9:19 AM
I have a question that's outdated, but I can't delete it because of this guy. zzz
 
racists
 
Ven
what do I do when this guy doesn't answer the correct tag. sigh
 
Hi guise
 
Xeo
Ugh. A coworker is writing (in my opinion) horrible code :(
 
#justgamedevthings?
 
9:24 AM
hey how is everyone?
 
@Xeo Snrk.
 
@Xeo pls share
 
Xeo
nah
 
fucking tease
worse than girls on fb
wow
 
Hello ! How is it going ?
 
9:33 AM
> what is performance wise best way to generate random bool c++
std::fast_random_bool_generator probably
 
std::decay removes lvalue-references... buuummmer.
std::tuple_size doesn't return 1 for non-tuples...
Which makes sense I guess.
Just not doing me any favors right now.
 
lol flights to jakarta from HK at 1165 euros yes yes of course
 
Xeo
@HubertApplebaum You'd need context, and that context is a bit too big
 
is it your mom
 
I think we should stop with the your mom jokes
it was somewhat funny when it was just puppy doing it every other winter
now everyone sort of became puppy except they did it very badly and unfunny
tl;dr: you suck
 
9:47 AM
so does your mom
 
@Hubert please stop.
 
Jl'attendais, #pasdéçu
 
even fish are better at ignoring bait than you :A
 
whale of a time
 
@edition Please stop stopping Hubert. Never not make mom jokes.
@AlexM. ^
 
9:50 AM
well said Andy
 
w/e
I think it's just lame
 
don't let the prepubescent teenagers set the rules
 
@Puppy what do you think about cicada and the rest trying so hard to emulate you
 
of course it's lame
but what isn't
well surely not your mom
 
vOvOvOvOv
Shruggity shruggity shrug.
 
9:51 AM
@AndyProwl upstar
 
:star:
 
:star2:
 
Ven
$colleague is complaining about trigraphs today.
broke his regexps.
 
I still have to write foo< ::bar> on occasion
 

« first day (1945 days earlier)      last day (2996 days later) »