« first day (1321 days earlier)      last day (3853 days later) » 

15:01
yes.
it's a four-stroke four-piston engine
That's what she... said?
I always thought that it's a fucking miracle that those things don't blow up
It probably is
they're literally exploding
relevant ^
user3010322
I need a way to test if the data function exists on many different templated classes...
user1804599
15:04
@BartekBanachewicz Not if you’re into extreme cock and ball torture.
@ThePhD uh
no, you don't
@BartekBanachewicz The trick is to inject and detonate only a small amount of highly explosive fluid
user3010322
I do. :c
"I need to test if a function exists on a class" is p much always wrong.
user3010322
But I doooo.
15:05
why?
user1804599
@BartekBanachewicz no
I need to make this app faster ... it is slower than an old, crippled tortoise
@ThePhD adding superficial 'o's won't make it right.
user3010322
It's a test for contiguous backing storage.
then it's a Concept
15:06
why would you know or care about that?
but expressing it as "has a .data member"...
is like, the dumbest way I could imagine.
checking for members is SFINAE 101
user3010322
It's part of std::basic_string and std::vector's specification, and it would be helpful if my text_base class included that kind of access to the underlying storage IFF that kind of guarantee exists on the class
user3010322
hence, checking for .data()
Think there was a proposal for contiguous_iterator_tag at some point
15:07
look, C++ doesn't have concepts
user3010322
problem is, member-SFINAE that I'm doing right now doesn't work too well because I need the return type of the member function...
user1804599
-4
Q: C++ OJ keeps getting WA

FrozenThe original problem is: Out of nowhere, a group of mutated giants attacked village CU. Without any protections and army, village CU was severely damaged. The remaining survivors found that the giant will not climb over an object that is equal to or higher than its height. Some survivors suggest ...

writing faux-concept based code in C++14 is like writing static checks in javascript
user3010322
... Which is a little hard to get, when you're dealing with T
(i.e. equally bad)
user3010322
15:08
And not std::vector<value_type>
user1804599
Warning: don’t drink too much OJ if you want to be able to ask good questions.
@ThePhD ... called without arguments specifically, don't forget overloads.
C++ overloads would be bearable if they kept the return type, I guess
@ThePhD so don't do it that way, do it a different way
user3010322
I don't know a different way to test member functions. :c
you're XYing again
sbi
sbi
15:10
Anyway, thanks for helping, guys. I'll go back to creating slides now... :(
> How do I force HasContiguousMemoryAccess constraint?
is what you should be asking
and then probably it should go to "why the fuck does such a thing exist"
user1804599
I think I will write a part of the client of my video game first.
user3010322
The only way to force that is to check if there exists a .data().
@rightfold choose wisely, this might be the only part you write :P
@ThePhD why do you want to force it?
Aww, missed sbi
user3010322
15:13
That's what you get for being drunk.
user1804599
Also yay calzone pizza.
ohai guys, quickie here, in whichousehold items / electronics I could find some copper tape? :D someone knows?XD need it to put some extra quick cooling on my build machine
Try not to lose too much sleep over it.
@Gizmo copper tape? for cooling?
user1804599
15:13
@Gizmo just buy copper tape somewhere.
@BartekBanachewicz ye I have a heatsink but it's too big
user1804599
Don’t take it out of already assembled things.
Wait what
> It is also used for other applications, such as electromagnetic shielding or low-profile surface mount transmission line in electronics and in the production of tiffany lamps.
Do you have a tiffany lamp?
damn, everything is closed XD
hmmm
user1804599
15:14
Also just buy better cooling somewhere really.
user1804599
Don’t make this stuff yourself.
nope :/
yeah I plan on buying but everything is closed and would be cool to have some temporary extra cooling XD
the machine keeps shutting off -.-
submerge it
user3010322
Try blowing on it.
hm oil is a good idea
but I don't have that much oil XD
and the HDD is not SSD
user3010322
15:15
<_>
@ThePhD valarray is contiguous, and it doesn't have data.
:v
user3010322
@ecatmur valarray is a legacy piece of shit and deserves to die.
user3010322
:D
code can't die, it can gather dust instead
virtual dust
user1804599
15:17
Hmm.
@ThePhD whereas your code checking for data member does not?
user3010322
I hope the dust coagulates into its gears and clogs it forever.
even if you delete it - it still remains as keyboard hits somewhere in the quantum atmosphere
user1804599
I think I will use Angular for my video game.
user1804599
Not sure though.
15:17
Yeah, what's the point of valarray?
user1804599
Maybe my stream thing.
user3010322
@BartekBanachewicz .data() is the guaranteed member for access to a contiguous slice of memory for C++.
user3010322
You can't get any more specific than that.
user1804599
Arrays don’t have .data().
15:18
@ThePhD for some of the containers. Why do you need that access again?
user3010322
@rightfold std::array does. :D
user3010322
@BartekBanachewicz Because I do. :D
What exactly is the problem that you're trying to solve?
user3010322
You know what? I'm not trying to solve any problem at all.
user3010322
Nevermind me. :D
15:19
@ThePhD Boost flat_map etc. don't have data
user3010322
@ecatmur That's boosts problem, not mine?
@ThePhD Right. I'm sure if you email the Boost devs with an explanation, they'll be sure to fix it for you.
@Maxpm I think you should disregard him
@ThePhD point is, you should write a traits class is_contiguous_container<T> and specialize it for basic_string, vector, array
he's at the point where he's back to teenage rebelion
and teenage rebels don't listen to reason
15:21
then anyone else who wants to use your code with another container can do the same
it's I'm going to do it my way just to show you all over again
I'd say "I'd know" but I don't think I ever had that attitude WRT programming.
@ecatmur yep, the closest to typeclasses C++ can have.
user3010322
std::vector, std::string, std::array, the newly proposed std::string_view, and the proposed std::array_view all follow the .data() convention along with the .size() member function. That's the std:: way of expressing contiguous data.
you can't apply a tag to an existing class, so apply it from the outside
@ThePhD nobody cares.
user3010322
If someone needs boost or something else to play nice, they can write an adaptor for it.
and that adaptor is what @ecatmur talked about, except it should be equal for everyone
15:23
^
concepts should be separate from their instances
user3010322
template <typename T> is_contiguous : std::integral_constant<bool, has_data_size_functions<T>::value> { };
user3010322
Wow
user3010322
It's like black magic or something.
no, it's just bad.
user3010322
15:24
Yeah, whatever.
3 mins ago, by Bartek Banachewicz
it's I'm going to do it my way just to show you all over again
@ThePhD I'm not totally opposed to that, it is at least open to extension
but what's worse: a false negative, or a false positive?
user3010322
@ecatmur Apparently some clearly retarded monkeys here are.
2 hours ago, by Bartek Banachewicz
insulting a discussion opponnent(s) is a tactic you seem to employ often these days
@ThePhD I still want to know why you're trying to determine whether or not a generic type is contiguous.
15:26
I'm happy I didn't include an addresant.
I can now reuse this message for great good.
Who cares why
user3010322
4 mins ago, by Bartek Banachewicz
and teenage rebels don't listen to reason
user3010322
^ How uninsulting.
user3010322
Bartek, god of discussion.
15:26
@ThePhD I don't think it's insulting to call your behaviour "teenage rebellion". You're clearly showing no signs of wanting to listen to arguments.
> It is very convenient to know when a given range [i1..i2) has contiguous memory. Some examples:
• Passing buffers to C APIs
• Algorithm improvements; e.g., memcpy a contiguous POD
• (Proposed) string_view can be constructed from any contiguous range of chars

Currently, we just “know” (based on reading the standard) that array, basic_string, vector have contiguous storage, but we have no standard way to programmatically determine it other than by hardcoding the types, which is not a scalable solution.
you want to do things your way and you want to hear approval or else
that's as immature as making decisions gets
user3010322
@BartekBanachewicz Or I do things the way the standard is going. See the quote above, dumb shit.
lol.
why did I unplonk you again.
okey, that out of the way, what was I saying.
user3010322
Because you like trying to take a shit on other people when you can't even pass your university classes?
15:28
ah right combustion engines
user1804599
Hey Barteckx is Elm any good?
@DeadMG yeah, but that small amount still produces enough energy to push the piston down
user3010322
Good, now that he's ignored me I can have regular conversations here without his constant little-dickery.
@rightfold yeah, but. Wanna talk more about the topic in general or just want my thought on Elm?
user1804599
15:29
The latter.
user1804599
I want to make a video game and I’m considering both Elm and Angular with TypeScript.
@rightfold I dislike that it went away from Haskell idiomatic symbols, and it has no typeclasses
@BartekBanachewicz I'd be thoroughly fed up too
@rightfold I like that it has nice APIs, it's purely functional, and has nice tools that can aid gamedev specifically
user1804599
I cannot find much about using Elm with custom HTML.
user1804599
15:31
I want to use Bootstrap.
wait, you want to operate on DOM as game objects?
user1804599
It’s mostly text.
Elm was designed mostly for canvas.
user1804599
Oh, meh, nevermind then.
yeah, I think Fay would be better if it's a text game
or perhaps just Haskell
user1804599
15:32
TypeScript :>
eh, I dunno.
@BartekBanachewicz what's Fay?
Harvest-TS was a moderate success
@StackedCrooked a subset of Haskell
Fay and Elm both don't have typeclasses though
which for me is rather... limiting. As in, a lot of my code bases on them and I can't really see a sensible replacement.
15:41
hello all
for the german guys, is it just me or do you find this description irritating aswell? coliru.stacked-crooked.com/a/c8642793f11a2d58
Room topic changed to: Wohnzimmer<C++>
@BartekBanachewicz It's a pretty high explosive.
@ThePhD No, no it would not.
user3010322
@DeadMG You're welcome to live in the fairytale land that does not include C-api's which take strings by pointers.
15:44
@ThePhD Something which you should offer totally irrespective of whether the underlying container does.
why do you even permit an underlying container to be chosen anyway, that's well within the region of implementation details.
@DeadMG std::list<char>::c_str()
@DeadMG yeah, that's my point all along.
doesn't c++ allow to choose underlying containers aswell
and even allows to access the underlying container by providing a well defined way to access its protected "c" member outside?
@LightnessRacesinOrbit What about it? If you asked for a std::list, you get a std::list. I don't know why he permits you to tell him what container to use, but if he does, then the consequences of choosing that container are yours.
15:47
C++ may not be a good example, by default.
@DeadMG Nothing "about it", in particular
how was the unconference going?
did you all meet up?
it's not scheduled to occur for another week
@JohannesSchaub-litb Yeah and it was great thanks!
Really nice to meet everyone
Well most people
There were a few absences
@LightnessRacesinOrbit i thought you would not attend
@JohannesSchaub-litb I always wanted to
15:49
ah i see
did you have a long way to travel there?
only a seven hour flight, so not too bad
oh wait it will be on 7 june xD
fortunately my private jet was free so I had plenty of leg room
stopped off in Vegas on the way and got married to a stripper
anyway. fuck is it really only a week away? i've left booking pretty late, haven't I?
maybe I'll have to skip this one
15:50
@LightnessRacesinOrbit NO!
you can't
is there an english word for "evenliness"?
Depends. What would it mean?
0
A: Arrange particles in the shape of a rectangle

Bartek BanachewiczIt's a more complicated problem than just using uniform distribution over two dimensions separately. If your "evenliness" is the distance between two closest particles, then there are exactly two ways to achieve that: equilateral triangles and squares (well, three if you count hexagons). The only...

Saying the non-existent word again doesn't help.
"aligned" seems to fit
@LightnessRacesinOrbit he said that he want the particles "evenly" distributed
15:54
@BartekBanachewicz Regularity, uniformity...?
"evenness" would be a bit shit here. From your sentence it's not clear that any of these really fit. What are you trying to say?
@LightnessRacesinOrbit both of those sound good
@LightnessRacesinOrbit I defined it as "distance between each particle and particles closest to it", or variations of such.
anyway the obvious answer is: arrange in a grid, reshape to linear, std::shuffle, reshape back to grid.
uh
yeah that's hard to define
@ecatmur reshape to linear?
n x m -> nm x 1
15:57
@BartekBanachewicz "distance" is very different from "evenness" or "uniformity".
@ecatmur yeah
// Very bad way to generate a random color I enjoyed that bit. — Lightness Races in Orbit 5 secs ago
no kidding
user3010322
Lexicographic comparison for strings is just by-value of the code point?
@ThePhD by value of code unit, I would hope
user1804599
@ecatmur wat
16:05
@LightnessRacesinOrbit :D
user3010322
@ecatmur I think I'll keep it by code point.
@ThePhD ohh it's your encoded-string, nice
@ecatmur that would make it identical to memcmp, not?
Anyway to find the name of the person by their cell phone number?
lolno ask NSA
16:18
> Ways To Prevent Your Company From Suffering The Next Heartbleed Bug
> 1. Use a different language
2
geez, we knew it all along, right.
@BartekBanachewicz Eh.
Someone texted me and I'd like to know who it is without asking them
@DemCodeLines put the number on google
@DemCodeLines Just ask.
I usually find nice informations for "commercial/weird numbers" calls
user3010322
16:20
std::Range_compare?
The person thought I was a girl so it already got awkward when I told him you have the wrong number
I ain't asking now
get over it
Dude...
seriously, people dial the wrong number everyday
you don't need to go full-nsa about it
16:22
@DemCodeLines It's only awkward if you're making it awkward.
haha
@DemCodeLines Why on earth would you want to find out? You already know it's someone you don't know. So what fucking business is it of yours who they are?
I hope I'll never call you by mistake.
Let's not act like we all don't have that inner stocking needs that we all hide
I don't. Really.
Come on now
16:26
We call those 'mental conditions'
Oh, i remember you now.
You were the one obsessed about that girl.
You really made progresses.
@DemCodeLines Like an obsession with stalking people? And attempting to violate all of their privacy?
yeah, no.
16:27
Cpp mad
no gif, newbie
read the rules
Moving on
Seriously go see a professional or something
And Cat doesn't mean a C++ professional
16:29
Google's New self driving car. Isn't it kinda dangerous to build a self driving car that doesn't have a steering wheel and pedals?
I thought this was a professional room
@ThePhD Certainly not. Lexicographical comparison of Unicode strings depends on the locale and collation order and a bunch of stuff.
I will fight this "professionalism" disease as fiercely as I can till the day I die. — Cat Plus Plus May 16 at 23:37
Nice try but not relevant
Thanks. I'll try to do better next time.
16:30
Discuss cat
I mean if something goes wrong, how exactly do you escape that situation? By jumping out of a moving car?
How do you escape a car with wheel
user3010322
You don't.
@LightnessRacesinOrbit Ah, I knew he was that guy.
@Mr.kbok We're professional trolls, yes.
@EtiennedeMartel Are you a girl?
@DemCodeLines Yes.
16:36
@LightnessRacesinOrbit Last time I checked, I was cismale.
Wait, let me look again.
Nope, still a guy.
Go back to tumbrl
@DemCodeLines It's also very dangerous to build a car that does have a steering wheel and pedals, and put an arbitrary human in control of it.
@EtiennedeMartel Funny you didn't say cishet
"cis" applies to genders. It has nothing to do with what you like to have sex with.
user1804599
My cousin is called Cis.
My sister is called Sis.
user3010322
16:41
std::for_each doesn't really return, does it?
user3010322
Is there an exit-early version of std::for_each ?
}); // this used to look weird, but I got used to it
^ My life is so interesting.
Looks javascript-ish
I'd rather have a break pedal to override automatic system in emergency than hope the entire ride that everything goes safe.
Lamda's can wreak havoc to code format style.
user1804599
16:44
No, they cannot.
I mean the style rules are written before existence of lambda.
Oh no
What will we do
I've been experimenting with different styles.
I've noticed that I don't care anymore
Code's shit anyway, who cares how it looks
user1804599
You really suck at programming then.
16:47
Caring is daring.
Consistency does have value.
Not really, it's all just OCD
I think the same style should be used consistently at least at the file level.
None of this matters wooo
16:49
No shit. Nothing matters to you.
Chat with cat is not fun anymore.
:(
It always ends up with "don't care"/"doesn't matter"

« first day (1321 days earlier)      last day (3853 days later) »