« first day (1641 days earlier)      last day (3308 days later) » 

user3010322
12:00 AM
@Rapptz Sorry, I goofed up the wording: convertible to the value type.
 
I didn't mention convertible to the value type.
 
user3010322
@Rapptz Solved by making the range library return a pair of the beginning and end.
 
@Rapptz I think his point is that first != last is rarely really concerned with iteration positions--it could just about as easily be something like while (!first.done()) or while (first.more()), and it'd be fine.
 
He's proposing polyiterators (not really ranges) though
i.e. changing foo(It one, It two) with foo(It1 one, It2 two)
 
user3010322
In order to ranges to gel nicely with the existing library, poly iterators is a must.
 
user3010322
12:01 AM
(That's what the beginning of Niebler's proposal does: weakens iterator requirements.)
 
@Rapptz Oh, yeah--just read that, but it slipped my mind momentarily.
 
which requires them to be comparable and convertible to It1 for compatibility purposes.
 
@AlexM. rockstar and pc is a very bad combination
 
@Jefffrey it's just the unpacking that doesn't work
the game runs perfectly maxed out on mid to high end hardware
(which is a surprise)
 
@AlexM. Nice
 
12:02 AM
a GTX 670 being able to pull off 60+ fps at 1080p maxed out is nice
for just-released GTA
 
I'm bored.
 
@FilipRoséen-refp scapegoat me, go!
 
@AlexM. Yes, but can it do so at a high enough resolution to be worth playing?
 
user3010322
@Rapptz The convertibility for return last is the biggest thing, but Niebler's proposal says to stick range algorithms in their own sub-namespace (std::view). I would be all for that, and also for returning a sub-range or a pair of iterators at the very least to get rid of the return last issue.
 
views are different
 
12:05 AM
@JerryCoffin 1080p is what most people have monitors for
 
@Rapptz eh
 
they are
 
@Cinch you are the reason which I find no motivation to write the code necessary to implement using L1 = smeta::create<smeta::unique_id (), smeta::list>; static_for (0, 3) ([] (auto id) { alias<L1, id>::push<void> (); }); } static_assert (is_same<L1::value<>, type_list<void, void, void>> {}, "!!");
 
last time I calculated an upgrade to a 4k monitor I ended up realizing that I'd have to pay 1200 eur more for hardware able to do anything at 4k :(
 
@AlexM. What most people have is irrelevant to the question of how it works on equipment that's worth using.
 
12:07 AM
the necessary library functionality is all there, but I'm tired
and bored.
 
I'm bored too!
It's only Monday too
 
@Rapptz A view into a container-like thing is very range-like.
 
range algorithms aren't only in the view:: namespace though
they are a special type of range algorithm
there's e.g. ranges::iota
 
maybe I should get some sleep.. 2am seems like a decent time to get to bed
 
It’s almost coincidental I suppose. Between 'represents an abstract sequence' (range-like) and 'reference'.
@Rapptz Oh um I’m not sure which views we are talking about here.
 
12:09 AM
Niebler.
 
@FilipRoséen-refp on mobile Can't even
 
Somehow I was thinking string_view & friends.
 
Do you have ThePhD plonked too? :v
I should force reply.
 
@Cinch no worries.
 
I'm doing surface integrals
Phun
I wonder if computers can do this
 
user3010322
12:14 AM
Uuugggghhh.
 
user3010322
I can't include <string.h> in this stupid homework assignment.
 
user3010322
So I have to write my own optimized memcpy.
 
user3010322
Fuck me. u.u;
 
s/ computers/Cinch
@ThePhD I thought PhD s don't have HW
 
user3010322
Wait, I wrote one a long time ago.
 
user3010322
12:16 AM
Not really optimized but if my Professor's gonna be a dick... well, fuck him.
 
Yay!
@ThePhD what class?
 
@ThePhD No, you don't have to write optimised memcpy
At all
 
user3010322
@Cinch Programming in C.
 
user3010322
@CatPlusPlus I am not allowed to import <string.h>, and even if I do but argue that I'm not using any of its functions, because I'm reimplementing <string.h>, I get function name collisions.
 
I am bored.
 
12:20 AM
memcpy is trivial
"Optimised" is non-goal
 
user3010322
Right, that too. But I remember when I wrote it just to copy byte by byte, the implementation was so brutally slow on the calculator I was writing that I had to at least make it so it copied by long long's instead of just byte by byte.
 
Ah gee
Wait you're programming for a calculator?
 
user3010322
Yeah.
 
Ah...
Yeah I'm going to be doing an app creation project
What do what do
 
@ThePhD Probably forgot to turn on the compiler's optimizer (or didn't realize you should). Even a byte-by-byte copy should nearly saturate bandwidth to main memory, so the difference from that to the best anybody can do will rarely exceed 15 or maybe 20%.
 
user3010322
12:28 AM
@JerryCoffin By the gods you're right.
 
user3010322
I handed in a solution running in debug mode.
 
user3010322
No -O3 or anything.
 
user3010322
... And it still beat everyone else's solutions! \o/
 
@ThePhD The fuck are you copying, DVD images?
 
Probably a Blu-Ray.
 
12:30 AM
@Rapptz Grapptz
 
@AlexM. And so is the life of a PC gamer.
 
user3010322
@CatPlusPlus No, I was just a dumby and forgot to throw the -O3 switch. But FWIW, I was working on a calculator, trying to copy around lots of structs since I didn't feel like dealing with pointers.
 
So what's "slow"
Whatever, I should get to work or something
Fucking Monday didn't work properly
 
Monday is so unreliable.
 
user3010322
@CatPlusPlus The calculator (in debug mode for obvious reasons now that I didn't realize I was not throwing the -O3 switch all those years ago) took forever to display an answer to things like "257 + 567.234". The math algorithms I used weren't the best, but I'd already packed the data down as much as possible.
 
user3010322
12:33 AM
When I used long long to copy rather than byte by byte, I got a massive performance boost (on debug, mind you) that made everything run smoothly and computations near-instant.
 
Does not compute
 
user3010322
If only I was smart enough to turn on optimizations.
 
how do you suck at doing addition
 
user3010322
Reading through some of those old code makes me very sad...
 
user3010322
@Rapptz Hey, all my algorithms worked. :(
 
12:36 AM
you sure?
 
user3010322
I am sure!
 
@JerryCoffin One of the only times that I got "an unexpected parallel speedup" was when I forgot to turn on optimizations. The program ran so slow that there were no other bottlenecks to get in the way of parallel scaling.
 
user3010322
I implemented a RPN calculator with it.
 
I think the kit home supplier has blacklisted my number - partly because they made quite a few mistake, but mainly because as newbish as we are, we ask too many newbish questions
but I am thick skinned - my goal is to construct the house ourselves (me & dad)
I will achieve my goal one way or another - sometimes I think thick skin is one of the most useful things in this world, it allows you to achieve so much more :p
I think the person in charge on the suppliers side is trying to avoid me like he's avoiding a plague
Now I am experiencing the powerful presence of the plague
 
12:59 AM
Man.
C++11 constexpr is annoying.
 
how so?
 
Good night boys
 
@Jefffrey nite
Alrighty then
Time to finish Flexiglass and then throw it in the repo file
 
take a look yourself!
simplify.
 
@Rapptz I just don't really get this
It's like dynamic macros or something
 
1:10 AM
er
I just want intermediate variables.
 
> dynamic macros
is this monday all over again
 
lol
 
@Rapptz So erm...
 
So..
 
It's pre-compiled stuff right?
Or like pre-calculated?
 
1:15 AM
What do you mean?
 
Congratulations on the defence @Rapptz
 
I assume the compiler optimises it. If you mean the repeated gcd calls.
It seems like a pretty basic optimisation to make.
I just want it easier on my eyes.
 
No I mean constexpr
I haven't used it yet but it seems interesting
 
it's just a function that can possibly return a constant expression
but the catch is that it has to be able to run at runtime too
 
I thought it was supposed to be used for doing pre-execution calculations?
 
1:18 AM
pre-program?
 
like it's a constant expression that can be calculated at compile-time
 
yeah that's what it's typically used for
 
I can't really think of a good situation you'd like to use that in
 
but it has to be able to run at runtime too if needed
@Cinch Computation of constants.
 
@Rapptz ...hm.
Ohhh I see now
 
1:20 AM
Oh I was wondering why Cicada was asking such weird questions
 
Like sin/cos tables for common inputs or stuff like that
 
@Cicada Thanks. Change your avatar pls. No Cinch Jr.
 
Oh. Indeed.
 
@Rapptz No, he's my twin Sinch
 
I couldn't even see Cicada.
He blends in so well with Cinch.
@Nooble
 
1:21 AM
Everything makes sense now.
 
Cinchcada
 
Aww I can't ping myself.
 
@Noob
 
@Cic
@Cicada That somehow still pings me, and so does @Neebly I think.
You try Neebly.
 
@Neebly
 
1:23 AM
@Neebly
 
Nooo it doesn't work.
LRiO did it though.
Apr 2 at 1:03, by Lightning Racis in Obrit
good job @Neebly!
I don't know what kind of sorcery this is: @Nooble" rel="nofollow">​
@Cicada!
 
\@Neebly
???
 
Do you see Cinch.
 
No
But I heard the sound
 
Does that ping you.
Hahahaha.
Wonderful.
 
1:26 AM
<@Nooble"rel="nofollow">
 
No it's not that, check the history of my message.
 
what
 
@Ping!
 
@Cinch!@Nooble" rel="nofollow">​
@Ping
 
I wonder how it makes a sound though.
Fine.
 
1:30 AM
Get to the sandbox guise
 
Nah it's okay
 
I must know the ways of Lightness.
 
@Nooble![](ping.com/@Nooble)
whyy
@Nooble y
 
Why what?
 
ugh I want to ping @Ping![](ping.com/@Blob)
 
1:41 AM
@Cinch ?
 
According to the FAQ, there are chat easter eggs!
 
did you guys figure out how it works?
 
No.
 
go there so i can ping you
@LightningRacisinObrit teach us ur ways plis
 
1:58 AM
Fuck, so many parameters to test.
 
I like vegetables!
 
Anybody a CMake master?
 
@Nooble wooooah what
teach
 
Dude I don't even know.
Just copy and paste the history of that message.
It works when you copy it, but not when you type.
 
ah
the space is likely unicode
 
2:05 AM
What
OHHH I get it now
It's just an empty link to a URL.
in other words
 
Yep.
 
ping myself[](ping.com/@Nooble)
whyyyyy
I like fruits!
oh.
 
Did you also copy and paste?
 
@Nooble I did
maybe it's a LRIO thing
 
Yeah.
Probably an invisible unicode thing.
 
2:11 AM
Bah anyways
Does anyone know how to make a CMakeLists to compile more than one file?
 
The magic 8 ball says: Concentrate and ask again
 
> algo.hint < x) >
preprocessing gone wrong ._.
 
@LucDanton This wouldn't have happened with Rust.
 
Macro works with two-letter or more names but not single-letter.
@Cicada Exactly!
lawl, it’s a conflict between type name and variable name because no hygiene
wat do
Welp I’ll concat some stuff.
 
2:28 AM
hm...
 
> member for 4 years
visited 1000 days
rip sanity
 
member for 2 years, 11 months
visited 1016 days, 975 consecutive
goml
 
Sorry I can't hear you over the sound of your 12k rep
pleb
 
yay
 
implying that I tried
 
2:40 AM
I finally finished CMake integration
it's terrible but it works
 
You need more Repptz
 
@Cicada I can't hear you over the sparkle of my gold C++ badge.
 
:)
 
I don't know C++ I don't see how that is relevant
 
2:45 AM
GNOME is being annoying
 
3:13 AM
today I read a question about: a user trying to implement a linked list in Python
>.<
 
Someone know how to solve this error : ChildLoop: AsyncSQL: query failed: Data truncated for column 'size' at row 1
:)))
Try about 1 week.
 
> Iovan
 
@Cicada Yes
 
Is that somehow related to IO Bus
 
No, it is a .text file
From that .txt file should upgrade to MySQL tables.
The value must be empty. And so a I 0 and empty.
Here is tabele structure prntscr.com/6thwcb
 
3:32 AM
is @R.MartinhoFernandes turning into an alcoholic?
 
@chmod711telkitty "turning"?
 
3:43 AM
IRC he didn't drink much when I started here
 
hell yeah
 
4:09 AM
I must be really depressed - I have accidentally signed myself up for a 100km bushwalk race.
 
So I think a good way to make C++11 constexpr more bearable is to make functors of the calculations
 
Hi developers.
 
@Rapptz in what way does that help?
 
@LucDanton Named variables.
I have intermediate calculations.
 
I have a question for you. How can I become more popular?
 
4:14 AM
The single return makes that troublesome.
 
Can you help me become more popular?
 
No.
 
But I like computers and stuff.
 
@Rapptz Can’t say that’s my jam.
 
3 hours ago, by Rapptz
@Borgleader http://coliru.stacked-crooked.com/a/5404e789eff4e267
does that simplify function call not look ugly to you? :v
 
4:18 AM
I was prepared for that so I did bring some scripts because I want to develop a remake from Sonic the Hedgehog using an open source engine that I've been coding for 3 months.
 
@Rapptz That’s not the right dichotomy though. I was eyeing functions.
 
That's one of the simpler functions too.
 
The right false dichotomy? Mmmh…
Or did you mean to use the functor locally?
 
Well that's where I'm coming from.
The functor would be an implementation detail.
Not used by the user.
Just for my own sanity.
 
This is the main application. What do you think?
 
4:21 AM
If it weren’t C++ being, well, C++, I would really recommend a local function. But if this weren’t C++, there wouldn’t even be a need for functors-for-closures. So I wouldn’t have to recommend anything!
 
Not sure how that helps with the constraints given by C++11 constexpr.
In theory I mean.
 
Remember: this wouldn’t be C++.
 
The backend from the library is pure C++, the "chai" scripts are just being compiled by an interpreter that compiles in C++, they just translate strings to functions and native types so yes, in fact, it is C++.
It's like writing code in text without semicolon but you can include it if you want and it will be interpreted.
fun(){} is std::function<void()>
 
@LucDanton So does my functor thing still seem weird?
 
Would you please ^_^
 
4:25 AM
@Rapptz I don’t know.
 
lol
Victor I'm not sure what you're asking bub
 
On the one hand everything about functors make them almost always preferable to functions already. Plus we get better hiding. On the other hand it’s going to be quite noisy—and I’m not sure which is the noisiest between closure-style or capture-free style.
 
user3010322
I wonder if there's a VCS for non-text files out there...
 
I don’t suppose I can convince you to return [](x, y, z) { … }(a, b, a + b); seeing as how it’s backwards?
I’m not sure I can convince myself.
 
user3010322
.-.
 
4:29 AM
it's not really about returning functors (or even the user using them)
 
user3010322
I've gotten to the point where teachers assign me homework, I go above and beyond it, and then what's supposed to take me a week I return it in less than 24 hours.
 
u wot m8
 
user3010322
What am I doing here.
 
it's just an implementation detail to make the single return a bit more readable
 
@Rapptz Help in development for the GUI widgets. Right now the file browser looks like this: imgur.com/avCBgQs
 
4:30 AM
@VictorLopez Oh. Can't help, sorry.
 
@Rapptz Which forums do you recommend?
 
@Rapptz β reduce m8
 
This is weird, the chat didn't embed the image. i.imgur.com/avCBgQs.png
 
@Rapptz I keep thinking you have programmed in an ML-style language before (and I guess I also keep again). Still though, remind me again: have programmed in an ML-like language a lot?
 
depends on your definition of a lot
 
4:33 AM
And @Rapptz Did answer "no" faster than my roster's cock-a-doodle-doo.
 
cus f x y = m (n (x + y) (x * y)) (x + y) -- oh no we repeat x + y is ML 101
and [ let x = y in e ] === [ (\x -> e) y ] is lambda calculus 101
maybe it’s the last step that is missing? it’s more CS than programming
 
the problem is communication m8
I'm talking about C++ so my mental topic is C++
and I'm thinking of constraints etc
 
What constraints?
 
C++11 constexpr constraints
what I'm trying to do is essentially what you're telling me to do
 
I thought we covered that many times
 
4:36 AM
it just so happens than my medium is a functor
because I don't think you can use a lambda
 
@Rapptz Yeah but what about lambda syntax instead of an explicit functor?
Oh right they’re unspecified constexpr lol
 
main.cpp:52:15: error: constexpr function never produces a constant expression [-Winvalid-constexpr]
constexpr int lol(int x) {
              ^
main.cpp:53:12: note: subexpression not valid in a constant expression
    return [](int y, int z) { return y + z; }(10, x * 3);
           ^
that's with C++14 too :|
 
Correction: the closure types have unspecified literalness. Lambda expressions are definitively not constexpr.
You can’t define types either. So how much of a benefit do you have re: hiding?
Took me a while to track because I couldn’t figure out which document is C++11. I hope N3290 is right.
 
rational.cpp:21:15: note: 'constexpr detail::addition<Rational>::addition(const Rational&, const Rational&) [with Rational = rational<int>]' is not usable as a constexpr function because:
     constexpr addition(const Rational& lhs, const Rational& rhs):
               ^
because what :(
damn I thought I was onto something too
 
You didn’t even try it? ._.
 
4:46 AM
It was in the back of my mind so I made a rather complicated prototype and I got greeted with this.
 
Anyways. Function/closure or functor/object, pick your poison. And enjoy the details.
 
I want to know if it's possible to make a constexpr rational type
idgi
why is this not working?
OH
I'm not allowed to use *this am I
is that it
no that can't be it
hm
fuck it time to play video games
@ScottW hi
 
@Rapptz Maybe I can give it a go?
 
clang compiles it just fine
seems to be a GCC thing
main.cpp:21: confused by earlier errors, bailing out
 
that one is par for the course
 
4:52 AM
thanks GCC
@ScottW Boredom!
 
It’s a throwback to compiler theory of the past lol
 
> He was probably more comfortable than the folks in the economy cabin.
 
clang seems to be able to digest it
 
brb I’ll test it
 

« first day (1641 days earlier)      last day (3308 days later) »