« first day (1944 days earlier)      last day (3006 days later) » 

7:00 AM
If you're dealing with vector registers, there are no immediates aside from the 1 byte ones.
Any constant needs to be loaded into an x/y/zmm register before it can be used.
And the 1 byte immediates aren't really inputs per se. They control stuff like what instruction should do. (how to shuffle, which comparison to use, rounding mode, etc...)
 
Well, damn.
There goes that idea then.
 
What were you thinking of?
 
Well. I was just trying to reason that, since one bit of my system is runtime (overload resolution for the bindings require that the arity is determined at runtime), I was thinking about how much I would gain from making the recursive ladder comparison of statically_determined_arity == runtime_provided_arity
 
I think the only time that I've ever used mov reg, $0 to zero a register is when I didn't want to fuck up the flag register.
 
If there's no real performance gain that bit of the system might as well remain runtime all the way through.
Since one part of it will always be runtime.
 
7:05 AM
Are you writing a JITter?
 
Not really, just glue between one language and another.
 
don't let robot sniff it
 
7:18 AM
as it turns out the particular copy constructor that is being hijacked in my case is for a type-erasure container. The hijacker is the erasing constructor, so it tries to erase its self type by boxing the argument… and thus calls itself in a loop
very sad
I actually don’t know if this a language bug or implementaion bug or user bug. What is base(base const&) requires false; supposed to do?
unless I’m crazy this is a language bug
constraints have no effect on a declaration, i.e. the entity is declared no matter what
it’s at overload resolution time that constraints may remove a function from the set of candidates
so… my class does have a copy constructor, and it’s then put aside in favour of a constructor template due to OR
I want neither of those things :( kinda
to be fair the underlying idea is sound, it’s more the fact that special members have been a wrench in the works re: OR
> The concepts lite proposal includes support for constraining members, including special members.
blatant lies from Mr. Sutton
hah, a suggested fix is to add a declaration with the opposite constraint, but to delete it
nice try but you can’t have more than one copy constructor
> Let us try to avoid "mission creep". The proposal is for a way of constraining template arguments with Boolean predicates. However, there are things that we might like to say that isn't easily said in the language - let's not get entangled with those.
Mr. Stroustrup himself
 
and here we see the luc danton in its natural environment, struggling against compiler errors in obtuse corners of the language
 
I’m struggling against Bjarne
interesting, GCC lets me get away with declaring two copy constructors
I had tried before with destructors but as it turns out it’s not so much that it forbids it it’s that it gets confused
that’s just with destructors though, no problem so far with copy constructors
mmmh technically you can overload on e.g. foo(foo&)/foo(foo const&) though so that could be it
I’m not even sure it is mandated a class has exactly one destructor declared!
better make coffee
 
7:42 AM
I NEED UNRESTRICTED ONIONS BISOOAL STOODIO
boy this is annoying
 
@HubertApplebaum it’s not so funny now is it huh
 
Q. Why not Haskell? E.Lippert: "I HAVE MY REASONS" , he said mysteriously.
 
it’s probably because it wasn’t invented by INRIA
 
Oui mais Eric l'y perd
I like Ocaml very much
 
it must be a good match for your programming style
 
7:48 AM
I'm unfamiliar with that organization
 
@sehe OCaml was developed there and they still contribute a lot to it
 
> OCamlPro
Apparently the language for startups
 
how did you even manage to write that message wow
 
I had to type it
 
7:51 AM
@sehe yes I recognise some of those startups they list as users
 
@sehe French R&D institute (comp sci), they house a lot of French PhD candies in the field. From my particular zone of interest, Cyril Crassin.
There are multiple locales, Cyril was, me thinks, at Grenoble.
 
INRIA is p much everywhere
I do believe it's the largest CS R&D Institute in France?
They do Coq also
3
Among other things
low quality star you guys are disappointing
 
Don't be lazy
 
ayyy, I don't feel like doing anything else todays, but I must
 
7:55 AM
What did you do
 
the joys of concepts-lite means that void foo() requires (thing); is a different declaration from void foo() requires thing;
 
@ElimGarak Crysis Assassin? Splendid name to be evolving game engines
@LucDanton I see the committee still knows how to C++
 
@sehe Worked on reducing the strain of on-the-fly cloth simulation and weird issues with thin geometry. It's kinda coolio now, but I'll return to it this weekend probably.
@sehe Yeah, he's also really shitty at English (adorably so), but did some cool work with voxelization.
 
@sehe remember how return (local); used to be different from return local;
 
@LucDanton Does it have different semantics, or is it just a unique declaration (because of delayed parsing or something?)
 
7:57 AM
(I think they fixed that but I don’t know for sure.)
 
@LucDanton I do. Isn't there still that wart with decltype?
 
@sehe well seeing as the constraints are effectively the same, the two overloads would be conflicting anyway
@sehe naw that’s more to do with foo.member
 
:fanfare:
That sounds high tech
@LucDanton That's a very different thing (I wasn't trying to refer to that)
 
how often do you render flies wearing cloth
4
 
good one
 
7:59 AM
@sehe then TBOMK it makes no difference for decltype
uh
 
Xeo
decltype(x) vs decltype((x))?
 
I was thinking decltype(auto) this whole time
 
Flies wearing cloth sounds like a great gaem
 
but yeah there are the two decltypes; that’s something different still though!
 
@Xeo Yes. I might be misinformed again
 
8:00 AM
aaaa it compiles and works again what do I do I’m not prepared
let’s re-enable all the other testcases and go through the whole emotional rollercoaster all over again
 
Xeo
lol
 
oh no they work as well
where is that coffee
 
38
Q: decltype and parentheses

fredoverflowI don't understand the last line of the example on page 148 of the FCD (§7.6.1.2/4): const int&& foo(); int i; struct A { double x; }; const A* a = new A(); decltype(foo()) x1 = i; // type is const int&& decltype(i) x2; // type is int decltype(a->x) x3; // type is double...

So it's about member objects indeed
 
btw that’s still an open question of mine—which I’m sure I haven’t misplaced at all
Nov 20 '15 at 22:05, by Luc Danton
@Rapptz Is template<typename X> auto foo(X&& x) -> decltype( std::forward<X>(x).lol ) { return std::forward<X>(x).lol; } correct?
 
Yeah. Hopefully that just returns the declared type of the member
 
8:21 AM
e.g. add parens around blahblah.first
 
user1804599
Hi!
 
Ven
Hi.
 
user1804599
I still don't know how to get rid of if.
 
Ven
:/
 
user1804599
parse([Key | Lines], Key, Acc, Hprop) is nondeterministic.
 
user1804599
8:25 AM
I don't know why.
 
user1804599
It should be semideterministic IYAM.
 
You should talk to Bryan Edds
 
is that prolog
 
It's nondeterministic
 
user1804599
@HubertApplebaum Maybe. It's Mercury. I don't know Prolog.
 
8:29 AM
there is no such thing as semideterministic
 
it looks like prolog
 
user1804599
parse([], Acc, Hprop) :-
    Hprop = list.reverse(Acc).
parse([Line | Lines], Acc, Hprop) :-
    ( if Line = ""
      then parse(Lines, Acc, Hprop)
      else if [Key, Value] = string.split_at_char('=', Line)
           then parse(Lines, [{Key, Value} | Acc], Hprop)
           else parse(Lines, Line, [], Acc, Hprop)
    ).
 
@LucDanton wut. Taking me ages to figure out how the testcase is constructed :)
 
@sehe oh it’s for the neat(?) instantiation stack
 
8:32 AM
:D
 
what’s being tested is whether first1 and first2 perform identically, and it blows up when there is a discrepancy
 
Ven
@HubertApplebaum it's very similar
 
@LucDanton it looks pretty horrific that it can return a member object as rvalue ref... I mean, sometimes you might want that, but...
I reckon it's more often a pitfall
 
you’re talking about get and tuples right? :)
 
I was actually talking about forward<>(pair).first...
 
8:40 AM
@sehe I figured, but that is what get etc. do as well
 
With get<> things might be less unexpected
 
@MarkGarcia yup got my hardcore m8 to try it too
102 hours in and he thinks it's one of the best CRPGs ever
have fun :D
I've still to go back to it, lack of time...
 
@sehe that being said, the objection you raise is sort of its own topic; on which I actually have strong opinions already but I’d rather discuss separately
 
I'm unfit for work and my brain is having trouble to stay on track here.
I guess it proves it was a good idea to call in sick
 
user1804599
get<good>
 
8:43 AM
if you can take it for granted that in some cases you would want to write such a function (much like there is std::get and so on), then I would like to hear your opinion on first1/first2 discrepancies as well if you have one
 
I'm always afraid I"m subtly wasting Luc's time. I really can't keep up. Hopefully it's not always this bad
 
I don't have this sort of concern tbh
 
@sehe well you did notice that there are two ways to get the first item out of an std::pair right, but they don’t do the same thing exactly? doesn’t that strike you as odd?
 
@LucDanton It's obviously not odd no
Two is by definition even
snare.wav
 
Ven
If someone is mentally unstable, they should try to fix id.
 
8:46 AM
blabla paire de claques blabla répartie blabla drôle etc.
@Ven lol
 
user1804599
@Ven Ah, I know why it is nondeterministic. Both "" and Line can unify with "", so there are two solutions.
 
Ven
@MadameElyse indeed. find another way.
 
if it’s not broken, don’t fix it; if it’s fixed, it’s fixed
 
@LucDanton Not really. I'm mostly surprised when the core language behaves "tricky" (e.g. returns rvalue refs to subobjects without explicit std::move). I'm ok with "special semantics" on library functions
 
Ven
@LucDanton you mean I must use fix error?
 
8:49 AM
@sehe you’d rather auto&& x = std::make_pair(0, 0).first; would bind an lvalue reference?
 
user1804599
Also I can probably get rid of this:
 
user1804599
parse([], _Key, _Value_lines, _Acc, _Hprop) :-
    fail.
 
Ven
"fix is just a recursive foldr" then I show them fix (\f (xs, y) -> if y == 0 then xs else f (y : xs, y - 1)) ([], 5)
should work
 
recursion is just a bandaid
 
@LucDanton TBH yes
 
Xeo
8:51 AM
ew
 
@sehe what happens to the lifetime of the super-object?
 
@Ven mkdir -p path/to/things is also a way to make a recursive folder
 
Of course in that case it's something that the compiler should be able to work out. However is the pair came from a forwarding reference, it could lead to nasty surprises
 
Ven
@HubertApplebaum yes, thank you for this example
 
user1804599
Should git branch | grep -v 'develop\|master' | xargs git branch -d work?
 
8:51 AM
inb4 we reach Rust semantics
 
@Ven anytime
 
@sehe work out what?
 
Ven
pd
 
no compliments pls
 
user1804599
Ah yes, it works. :>
 
Ven
8:52 AM
stoi que jvais mettre en pls
@MadameElyse good.
 
user1804599
The Git command.
 
@LucDanton I was expecting it to... Wait. Now I get my confusion. It might return T&& for the subject, but that would be the temporary copy? Then it's not an issue. I keep forgetting temps get this "reference" thing too. I suppose I'm sometimes confused why T&& is not just expressed as T
 
Ven
git rekt
 
gud
 
@sehe get well soon dear sehe
 
8:54 AM
what are the common names associated with alloc/dealloc from a pool, get and release?
 
Thanks...
 
fart and robert do not seem to fit this time
 
why not alloc and release?
 
@HubertApplebaum amazon/ebay
 
@HubertApplebaum I think it's usually just allocate/deallocate
 
8:56 AM
1) notice obvious UI limitation 2) google 3) "oh yeah that’s an obvious improvement" --some dev in 2013
 
user1804599
@HubertApplebaum get and put.
 
or get_rekt and not_rekt
 
@LucDanton are you referring to Ribbon UI now
 
Ven
@HubertApplebaum pick up the mac jargon : ^)
 
iFart and iRobert
 
8:57 AM
@sehe if only it were just the one UI that had this problem
 
what problem?
I'm curious what "new" problems have been reinforced in 2013
 
"we shipped it and it’s good enough, let’s focus on business value"
 
user1804599
@Ven this is the file format I came up with btw: gist.github.com/rightfold/628abceef6f9a0d25821
 
Ven
@MadameElyse "end key3" is ambiguous
 
user1804599
No, it isn't.
 
user1804599
8:59 AM
The value can't contain a line that starts with "end key3".
 
Ven
then your format is shit
 
key3 is obviously a very good name. Much better than iKey
 
user1804599
No, it's fine.
 
I need bear git skills.
 
Ven
iKey3 > mp3
 
9:00 AM
bear ducks
 
user1804599
id Tech 3
 
@MadameElyse what for?
 
user1804599
@JohanLarsson Bear Skylls
 
user1804599
@StackedCrooked bug reports
 
9:01 AM
@MadameElyse line continuations are sooo 1990s
 
user1804599
@Ven Maybe I'll make it so that you have to indent the value?
 
all those bear gits making all bears look bad
 
user1804599
I don't know.
 
Ven
@MadameElyse that'd work
 
user1804599
@sehe ?
 
user1804599
9:02 AM
@Ven Then you don't need the end marker either. :)
 
I mean, this is a solved prblem, why invent a surprising new solution
 
user1804599
@sehe Where can I find the solution?
 
Jun 21 '15 at 8:54, by rightfold
Significant whitespace is a disaster.
 
I need to replace spaces with tabs in a pr :)
 
Ven
@MadameElyse indeed.
 
user1804599
9:04 AM
key1=value1
key2=value2
key3
  multiline value
key4=value4
 
user1804599
Looks much better, too.
 
user1804599
key1: value1
key2: value2
key3:
  multiline value
key4: value4
 
The INI file format is an informal standard for configuration files for some platforms or software. INI files are simple text files with a basic structure composed of sections, properties, and values. In MS-DOS and 16-bit Windows platforms up through Windows ME, the INI file served as the primary mechanism to configure operating system and installed applications features, such as device drivers, fonts, startup launchers, and things that needed to be initialized in booting Windows. INI files were also generally used by applications to store their individual settings. In Windows NT Microsoft introduced...
(bookmarked link)
@JohanLarsson no you don't
 
Ven
@sehe she doesn't want that because [reasons] (like, no sections)
 
Also, not git
 
user1804599
9:05 AM
@sehe How does ini do multiline values? Also I don't want sections.
 
Ven
I already said that, elyse.
 
@Ven That's completely unrelated
 
user1804599
@sehe Ugh ugly line continuation characters.
 
user1804599
Indentation is better.
 
Ven
@sehe i'm not the one you should be telling that.
 
9:06 AM
@MadameElyse That's completely unrelated.
@MadameElyse So you can read. :carryon:
 
@sehe lol
 
Uh
Why am I still up...
 
again with the particlon puns
 
user1804599
The Bitbucket bug tracker software is much better than GitHub's.
 
@HubertApplebaum I think I’m addicted to running jokes, how do I stop
 
user1804599
9:08 AM
It has stuff like votes and issue deletion.
 
Ven
so, huh, a || 'x' (no side effects in a) is not the same as a != 0 ? a : 'x'. mmh.
 
user1804599
@Ven In which programming language?
 
Ven
in C.
 
user1804599
That's a great feature.
 
Ven
:/
 
user1804599
9:10 AM
Never treat non-Booleans as Booleans. It causes bugs.
 
Ven
that's still very surprising. for clang, arr[x][y] || 'x' is a constant expression, and it warns.
 
user1804599
Yeah, of course. 'x' is always true.
 
Ven
but arr[x][y] isn't.
(last I checked)
 
user1804599
template<typename T>
bool good_or(T x, T y) {
    static_assert(std::is_same<T, bool>());
    return x || y;
}
 
user1804599
@Ven (whatever || true) == true.
 
Ven
9:13 AM
@MadameElyse that's to prevent implicit conversions?
 
user1804599
Yes! :D
 
user1804599
And it's also not short-circuiting! :D
 
Ven
@MadameElyse wat, no... 1 || 2 is 1, not 2.
aah, I'm thinking in the wrong language
 
user1804599
template<typename T>
void check() {
    static_assert(std::is_same<T, bool>());
}

#define good_or(x, y) (check<decltype(x)>(), check<decltype(y)>(), (x || y))
 
user1804599
9:15 AM
@Ven 2 || 3 is 1, because it's true, and true is 1.
 
Ven
@MadameElyse yah, I'm thinking in the wrong language :[
 
@Ven mismatched types on the latter
 
user1804599
This is C, not some crappy shit like Python or JS.
 
user1804599
Even PHP got it right.
 
9:15 AM
^ Looks cool.
Rewrite zlib in modern C++ and how it simplifies stuff.
 
(well, unless you happen to be branching on an int)
 
Ven
php did inherit this directly from C.
 
user1804599
It's a killer feature.
 
Ven
@LucDanton I'm too used to languages having x0 || ... returning the first truthy value, instead of just true :|.
 
the types man
the types
 
user1804599
9:17 AM
In good languages only Booleans are truthy or falsy and therefore || always returns true or false.
 
Hi guise
 
@HubertApplebaum name suggestion: Miss Match
 
@LucDanton je cherche un comeback à ça depuis 10 minutes mais rien ne marche, j'abandonne
 
moui
 
9:19 AM
6/10
 
@sehe The owner of the repo wants me to do it, R# autoformatted the code, properly, creating a huge diff.
 
user1804599
And this is why you use Go, where everybody uses the same unconfigurable formatting tool.
 
Should be easy to fix if I had skill, acquiring is not easy though :)
 
Ven
@HubertApplebaum Acme::Comeback
 
user1804599
 
user1804599
9:24 AM
bratwurst-flavoured crisps
 
winter edition
whatever that means
 
user1804599
It means that it's only available during winter.
 
> note: constraints not satisfied
which ones ;_;
 
your gf's
 
> internal compiler error: in tsubst, at cp/pt.c:12952
 
Ven
9:34 AM
good.
let the ICE flow through you.
 
user1804599
I am so happy.
 
I’ll light the creduce signal
 
@JohanLarsson what I used to to sometimes in the past is git diff --ignore-all-whitespace into a patch file and then apply it to a clean commit
 
Ven
0
Q: optimum stack for a text-based MMORPGs

ahhmarrI'm planning to create a text based massively multiplayer online role-playing games similar to Torn | Blood Wars what should be the optimum stack : meteor A Ruby on Rails / Laravel on server with angular/react/vue at the client side express/socket.io any other

lol
 
I was going to reply "2MB like most threads"
 
Ven
 
user1804599
@Ven lol
 
user1804599
Needs more downvotes.
 
@HubertApplebaum what what what?
 
Ven
-1
Q: Count total number of occurrence of two consecutive values in a table

ahhmarrMy table structure +----+--------+ | id | status | +----+--------+ | 1 | 10 | | 2 | 21 | | 3 | 22 | | 4 | 29 | | 5 | 30 | | 6 | 32 | | 7 | 33 | | 8 | 21 | | 9 | 22 | | 10 | 23 | | 11 | 21 | | 12 | 22 | | 13 | 23 | +----+--------+ I w...

people..
 
possible duplicate of I can't be bothered to think or learn how to anything
 
9:41 AM
@HubertApplebaum We need a canonical 'I can't develop software' Q&A.
 
@StackedCrooked interesting talk
 
"fatal error C1001: An internal error has occurred in the compiler. 17> (compiler file 'f:\dd\vctools\compiler\cxxfe\sl\p1\c\cpimport.cpp', line 13340)" ah, my favourite error
 
rekt.
 
creduce & concepts is not very quick :(
 
9:55 AM
new design
 
Why not just link the video?
 
@orlp Because it is 4 GIFs?
 
@orlp OH! I did not notice.
 
Ven
9:59 AM
@orlp fuck you
 

« first day (1944 days earlier)      last day (3006 days later) »