« first day (1007 days earlier)      last day (4167 days later) » 

22:00
@Pawnguy7 no
C++ was never meant for idiots and see what happens.
@Eiy @Eiyr @Eiyri @Eiyrio @Eiyrioü @Eiyrioüv @Eiyrioüvo @Eiyrioüvon @EiyrioüvonK @EiyrioüvonKa @EiyrioüvonKau @EiyrioüvonKauy @EiyrioüvonKauyf
yiE@ ryiE@ iryiE@ oiryiE@ üoiryiE@ vüoiryiE@ ovüoiryiE@ novüoiryiE@ KnovüoiryiE@ aKnovüoiryiE@ uaKnovüoiryiE@ yuaKnovüoiryiE@ fyuaKnovüoiryiE@
to death
Lol what
22:02
@kbok now I'm confused. I probably did something strange. My point though, was that physical harm is not scary. Scare is a mental thing. So, yes you can be scared after (but you'd fear the consequences).
now, being serious for a while, the shit with inline structs and templates is something annoying as fuck
@EiyrioüvonKauyf That's me
@sehe @sehe @sehe @sehe @sehe@sehe@sehe@sehe@sehe@sehe@sehe@sehe@sehe@sehe@sehe@sehe@sehe@sehe@sehe@sehe‌​@sehe@sehe@sehe@sehe@sehe@sehe@sehe@sehe@sehe@sehe@sehe
sorry
i cheated :3
@sehe It is scary afterwards because due to shock you don't know what's broken and what's not, what's bleeding etc. and you really know the amount of damage after you go to the hospital
@EiyrioüvonKauyf You think I didn't?
22:02
oh lol i spy a moving window. what did you use for that :3
@kbok that's the consequences. So, being hit by a car isn't the scary thing, unless you meant the anticipation of it
@BartekBanachewicz this?
@EiyrioüvonKauyf vim
@MooingDuck More like this
@sehe now I understood.
@sehe I dunno, the whole thing is scary really. YMMV though :)
22:04
@sehe I was super confused when I saw lua references for a moment
@kbok scary scaryness
@MooingDuck I just stubbed that. I'm not allowed inside the Lundi codebase.
@sehe that's not true!
@BartekBanachewicz :)
oh boy 1 more flag for marshall
@sehe Of course you're allowed, Martinho contributed already
22:05
Epic feat
@kbok ikr
There was a real commit about exceptions also AFAIR
Apr 6 at 15:23, by sehe
@BartekBanachewicz The good parts aren't there, obviously. They're here :)
^ somehow that got rebased
@Rapptz hm?
22:07
@sehe The commit itself isn't much but the rationale is important and this is the quality level we're aiming for, so we could use additional expert eyes (cc @sehe)
I am still not satisfied anyway.
Verifying signature compilations is nice indeed, but I want to run them at some point.
@sehe We have a branch-merge workflow
@kbok I'm sorry. I think I'll pass. Lua isn't my thing and I have enough to do. I liked your fusion code back when :/
@sehe I understand. I still appreciate your help from a distance, so thank you :)
@sehe We still reserve the right to bug you with questions about MPL/Fusion/Phoenix :)
22:09
@kbok That's a shame about the github comments/discussions associated with the stale commits, then
@BartekBanachewicz Anyone has that right
@sehe They go into the PR merged commit: github.com/lundiorg/lundi/commit/…
Those which for some reason don't, we copy it into the comment.
Ell
Ell
Yeah
just write the breakpoint in code
Ell
Ell
22:11
:P
install windows, install vs, get conditional bps, profit :d. easy
die -_______-
teehee inb4 travis breaking after all those merges
@EiyrioüvonKauyf huehuehue
@Tuntuni install gdb, profit
22:12
nvm found it; gdb has a cond
^^
or just use python
which actually has descriptive errors
I like how the VS2013 shortcut does not contain either VS, Visual Studio or 2013 in it so you can't use the search in the start menu
boost has the crappiest errors jees
Ell
Ell
11
Q: conditional breakpoint in gdb

341008Is it possible to put a conditional breakpoint for a variable of type char*? Say, can I specify that I want gdb to break at line x when char* x points to a string whose value equals "hello"? If yes, how?

22:13
@sehe install linux, loss :D
of course, python can exstinguish chemical fires
@Tuntuni GTFO :) The puppy's not here
Ell
Ell
install linux, profit :D
@sehe ;) haha i'm just bashing around :p
@EiyrioüvonKauyf Htm?
@Tuntuni bashing. No zshing linux!
Ell
Ell
if you'll pardon the pun
22:14
@sehe around :)
@sehe aw snap now i got it
> State: Passed (after all those merges) /cc @kbok
my subconscious wants to get me to install linux
NEVAHHHHHHHHH
^ archlinux
Nice!
tell your subconscious to get it right
22:15
@BartekBanachewicz noice
@EiyrioüvonKauyf pfft :3
@Tuntuni You already have it. On your phone, on your TV, probably lots of other places (your NAS etc.)
@Tuntuni rice
0
Q: C++ unresolved external using templates

DaniccoI have this in my Config.h: class Configuration { public: void AddKey(char* keyLabel, char* keyValue, bool keyIsEditable); template<typename T> T GetValue(char* keyLabel); private: vector<ConfigurationKey*> configurationKeys; }; And in my Config.cpp: te...

Duplicate.
@sehe i got linux on 99 places, but pc ain't one
22:15
Poor fella.
wait, does perforce gui have html changelist descriptions?
my checkin description is half black one font and half red different font :(
@EiyrioüvonKauyf mice
@sehe We should have a golden hammer question, then ALL questions can be marked as duplicates!
22:17
@Tuntuni i'm asian bro; rice
Haha, silly Visual Studio, you created a Visual Basic solution. How cute.
@Magtheridon96 If you ask Luchian nicely, I'm sure he will write one
@EiyrioüvonKauyf i thought we were just making up ryhmes. :p
@kbok Only because you asked for it
pfft racist :P
22:17
@EiyrioüvonKauyf o no u didn't
@EiyrioüvonKauyf yes me
@sehe It's the default selection on the first run, it changes to the last language used afterwards. I did not pay attention.
@sehe so what would be the easiest way to generate mpl::vector that's a cartesian product of some other vector A with A?
goddamit what do i do with a segfault. boost's function is the one throwing the error -___-" sigh
22:18
deal with it
^ same thing
@BartekBanachewicz binary transform
Ell
Ell
@EiyrioüvonKauyf it's still probably your fault :P
@EiyrioüvonKauyf you don't throw error. You throw an exception.
Boost was really nice to me this one time. I used a non-copyable type for boost::variant, and when I got the compiler errors, the code that was displayed from the Boost header file had a comment stating that if this line is giving me a compiler error, I should make sure my types are copyable :P
22:21
@EiyrioüvonKauyf avoid undefined behavior, and give boost valid inputs
@Ell no i've got them to access a derpy pointer. sigh. dude it's deque->push_back. it's really hard to screw that up
speaking of which i dare any of you to get boost::interprocess::deque.insert working; i don't know what they were thinking and there are no examples for it btw. only possibility is that they thought allowing infinite data to be copied was a good idea. wait jk interprocess has no docs for any of their containers
@EiyrioüvonKauyf They were probably thinking its use was obvious. :)
so i can get std::deque to work; but when i drop boost::interprocess::deque in it breaks. lol
@BartekBanachewicz You throw a tantrum
1 hour ago, by sehe
"o shit"
"oh gawd"
"FML"
"no way"
"MSVC suckage"
"what will I do"
@EiyrioüvonKauyf "lol" - awkward
@sehe I should put that in my SO profile ^
22:25
i feel like MSVC suckage is implied
Why? It is pretty decent.
In fact, after GCC, Clang, is there a better compiler?
Intel maybe?
ok found it :3 @wilx no one checked that you could actually allocate - they just used the pointer anyway. which ofc causes a segfault. genius
Ell
Ell
what?
^ the boost error
next_block->m_prev_allocated = 0;
Ell
Ell
if you are passing in a bad pointer that is your fault
22:26
lol they're the ones allocating the pointer not me
i'm not passing any pointer
@EiyrioüvonKauyf i am still sure it's your fault
^ lol mhmm. uhhh the edge condition is my fault; their code works under normal assumptions; god forbid anyone in boost should check anything
^^ this
Ell
Ell
So. you are claiming boost is failing to allocate a pointer?
There's a group of drunkards in my streets chanting... At 00:30 am. Peasants
22:30
idk atm ^_^ gdb fun
@kbok *Plebians; you have to condescend appropriately
@wilx pretty decent suckage
@wilx for weird definitions of decent
@EiyrioüvonKauyf I don't know how to properly translate the insult I had in mind
@EiyrioüvonKauyf why would they
22:31
@kbok well what is it in french?
@EiyrioüvonKauyf plebeians?
Beauf [pronounced /bof/] is a French term describing a person thought to be a combination of vulgar, unsophisticated, unintelligent, arrogant, uncaring, and chauvinistic, without any taste for etiquette or good manners. A "beauf" will typically be prompt to jump to conclusions and have strong views on complex social issues, based on an insufficient analysis of the facts, but presented as being plain common sense. French cartoonist Cabu is responsible for coining the term, which is an abbreviation of "beau-frère" - brother-in-law. The first canonical representation of the beauf is actually ...
@sehe because they don't let me muck about their memory -_- sigh
lol @kbok i'll use that in the future
IRepository<Model> with extension methods or IModelRepository HMM
so double parameter breaks
I think I know why
        case LUA_TNUMBER:
            return lua_tonumber(state_, index);
that's why. @kbok.
22:33
@CatPlusPlus The latter. If you're having to think about it :|
It's not an obvious better choice, that's why I'm thinking.
Yeah, double is broken
I am not sure if we should support int at all
Lua uses 64-bit doubles everywhere right?
22:34
Wait, what?
I don't want to have to cast my ints
> If your numbers are integers (with no fractional part), and they don't reach 2^53, then all this isn't an issue.
@Tuntuni I'm pretty sure we use the word double to mean precisely this.
> Original Teletyper, I accuse Ye of being a massive Faggot.
22:36
> -- as also noted below, most ARM chips, one of the most widely used embedded CPUs, have no hardware floating point support. This means every conversion between int and float, and every arithmetic operation, is a function call (usually inlined). Doubles are even worse. When you consider the checks for NaN and denormalized numbers, the overhead vs. integers is quite significant (and yes, I have profiled). --BenStJohn?
> Implying You know Skite about Gravity
not fun, not fun at all.
but until we start messing with actual VM code we can't really fix that.
@CaptainGiraffe That means double precision, without defining what the original precision was. What is the bit length of a double word?
@kbok double of that of a word
@kbok Au contraire, that is well defined by history and convention
22:38
@BartekBanachewicz If people are working on a platform where conversion is costly they probably shouldn't be working with either integers or lua in the first place
@kbok that being said, conversion from int to double is not narrowing
Well. I think I am done for today.
^ yeah you're done
@CaptainGiraffe what?
@Pawnguy7 Sometimes it's just one typo
22:40
@Pawnguy7 lol
@kbok it could be. But in this case, it was a big rewrite
@Pawnguy7 In this case you probably shouldn't stop now :)
^ no stop now
it's weird. GCC states that int -> double is narrowing
or it will be a pain and you'll get sucked in
@BartekBanachewicz what's the exact warning
22:41
@BartekBanachewicz I don't think that's still accurate.
@BartekBanachewicz double is fixed int is not
@BartekBanachewicz I think it is
@CaptainGiraffe and?
@MooingDuck how? o.O
@BartekBanachewicz int at 128 bits would be narrowing
@EiyrioüvonKauyf "narrowing conversion" obviously
Ell
Ell
22:42
^
Ell
Ell
int size isn't defined to be at least able to hold the max size of double
meh. that wasn't worded well
@BartekBanachewicz double cannot uniquely hold all values of int
in C#, 1 min ago, by rightfold
Also don't use C.
ಠ_ಠ
@MooingDuck excuse me?
22:43
@BartekBanachewicz this will go faster if I jump straight to the proof. Hold on
warning: narrowing conversion of ‘a’ from ‘int32_t {aka int}’ to ‘double’
The size of int is not in any spec.
user142019
@BartekBanachewicz Impossible.
@CaptainGiraffe size of int32_t is
user142019
Warnings don't exist.
22:44
@CaptainGiraffe It's required to be at least 16 bits.
^ hue
... this was stupid
> An IEEE 64 bit double has 52 bits of mantissa, so I think it's 2^53:
@BartekBanachewicz I might be mistaken....
93
A: biggest integer that can be stored in a double

Steve JessopThe biggest integer that can be stored in a double without losing precision is the same as the largest possible value of a double. That is, DBL_MAX or approximately 1.8 x 10^308 (if your double is an IEEE 64 bit double). It's an integer. It's represented precisely. What more do you want? Go on, ...

22:45
sizeof(char) is defined.
The rest is not.
@BartekBanachewicz A C++ double isn't an IEEE64bit double
The size of int is guaranteed to be larger than char, short and int8_t
@MooingDuck oh fuck
probably a few more
@CaptainGiraffe not always larger than short
22:45
^@MooingDuck
I need guaranteed double64_t
user142019
@CatPlusPlus sizeof(signed char) and sizeof(unsigned char) are too.
@rightfold Well, yeah.
@BartekBanachewicz meh, every compiler I know of uses 64 bits, I wouldn't worry overmuch
user142019
22:46
And their cv-qualified friends.
user142019
:DDDDDDDDDDDDDDDDD
sizeof(char), sizeof(signed char) and sizeof(unsigned char) are 1. The result of sizeof applied to any other fundamental type (3.9.1) is implementation-defined. [ Note: in particular, sizeof(bool), sizeof(char16_t), sizeof(char32_t), and sizeof(wchar_t) are implementation-defined. 74 —end note ]
Ell
Ell
<cstdint>
There's no defined relation.
user142019
static_assert(sizeof(bool) == 1.0 / CHAR_BIT) :lul:
22:47
ok cool i got it. increasing the memory makes it segfault -_-... wtf guys
int8_t in particular is an optional type, so it might not even exist.
I'd like a sizeof(bool) throwing a double at 1/8 =)
user142019
If it doesn't exist on your target architecture, you'll have a hard time.
@EiyrioüvonKauyf stop breaking the rules and using undefined behavhior
^ it's not undefined
22:48
@ThePhD ping me when you're home
how the fuck else do you use an allocator if not to grow lol
user142019
It is. Otherwise it wouldn't segfault.
euh lemme go jump around their docs
@EiyrioüvonKauyf clearly something is
22:48
yeah i think they didn't feel like copying anything and their pointers are referring to something old
user142019
Your code is bad and you should feel bad.
@BartekBanachewicz I was mistaken, I was thinking of long long. int should not be narrowing
^ pfftt nah i don't
@rightfold ahahahaaha
Link to messages.
Don't make me bring that goddamn gif again.
user142019
22:49
@CatPlusPlus I already did it; he didn't listen.
@CatPlusPlus ok ok ok ;A;
A narrowing conversion is an implicit conversion
- from an integer type or unscoped enumeration type to a floating-point type, except where the source
is a constant expression and the actual value after conversion will fit into the target type and will
produce the original value when converted back to the original type
> extended precision floating-point type. Actual properties unspecified. Unlike types float and double, it can be either 80-bit floating point format, the non-IEEE "double-double" or IEEE 754 quadruple precision floating-point format if a higher precision format is provided, otherwise it is the same as double.
for fucks sake, that doesn't help much.
So, sizes mean fuck all if the expression ain't constant.
@CatPlusPlus but that's bullshit
22:51
You're using C++, you're shit out of luck.
if double is 64bit and follows IEEE, conversion from 32 bit integer can't possibly lose data
wait jk i'm good :3 i know what to do
@EiyrioüvonKauyf nobody knows WTF you're talking about
@MooingDuck ok cool
Also I hate that charging cables won't connect after like three months
I can't charge my phone again
22:54
@MooingDuck wot? how?
Your phone manufacturer is shit.
Or you have cheap non-original charger.
@CatPlusPlus Mine too, those micro usbs are crap
@CatPlusPlus Maybe it's a US thing, because I have had this problem with every phone, several different manufacturers
otoh they're all cheap non-origional chargers
22:55
@MooingDuck I've had three! original chargers with this problem
Buy a charger from the original manufacturer.
Cheap ones are always shit.
as much as i hate to say this; get an apple charger they're pretty good about replacing shitty ones
@CatPlusPlus That I did
@CatPlusPlus will do :/
@EiyrioüvonKauyf I hate apple
but the warranties they have are pretty good. ok. bye
22:57
sup
Ell
Ell
I just bought 3 cheap chargers
No more going for my jugular I pray.
lol
I'm bored

« first day (1007 days earlier)      last day (4167 days later) »