« first day (2781 days earlier)      last day (2167 days later) » 

12:25 AM
which shell does macOS use does anyone know?
 
 
2 hours later…
2:24 AM
Install a large project is usually all manual labour
littered with the need to locate lib, need to upgrade, then upgraded one thing leads to the need to upgrade another
 
 
4 hours later…
nwp
6:38 AM
@TelKitty Try file /bin/sh
 
7:17 AM
which ... not whereis :p
 
nwp
> file /bin/sh
/bin/sh: symbolic link to dash
Should print something similar for you.
Maybe do which sh first in case it isn't located at /bin/sh.
 
@nwp getting: /bin/sh: Mach-O 64-bit executable x86_64
 
nwp
Hmm. sh is dumb and doesn't allow sh --version. Try echo $0.
 
7:51 AM
Morning
 
8:03 AM
Upgraded my python game with dataclasses, still python so its impossible to verify/look at code and know it will actually run
 
nwp
Trust the duck and enjoy the convenient testing frameworks.
 
lol tests
 
nwp
Travis doesn't allow IPv6, not even on ::1 :(
I kinda like how they managed to turn "random stuff breaks" into a feature. Very impressive.
 
@Mikhail I guess dataclasses just barely allows you to specify more easily that you've got no logic? :p
 
@nwp apparently ... bash
 
nwp
8:07 AM
@Mikhail You should try it. It works well.
 
WG21 occasionally trying to add features to C x)
 
nwp
@TelKitty That might just be the shell you are running on, not what is behind /bin/sh. Have some more suggestions. I like the ps one.
(never thought I'd say that last bit)
 
> Functions which return _Either(A, B) can choose to return a value of type A by returning _Expected(expr), or a value of type B by returning _Unexpected(expr).
 
8:23 AM
^ lol what?
if A & B are different sizes, how does that even function on the stack? Or it just like a tuple?
 
I don't want to answer long questions, so here is a link to the paper: docs.google.com/…
 
nwp
lol
 
fail >.>
 
needs more __builtin_expect
 
I want to be home and check whether my quick-merge-sort for forward iterators is actually implementable .___.
 
8:33 AM
Too bad your country hasn't had any service members die (en.wikipedia.org/wiki/Memorial_Day)
 
We just lost the count v0v
 
Which Republic # are you guys on anyways ?
 
5th
The were proposals for making a 6th one during the previous elections
60 years is probably too long for a stable system :p
 
The only good system is a sound system :-)
 
The only good system is a Magic System
(I will spare you the video editing where some guy put a music from this band with lyrics akin to put your hands in the air on an archive video of a speech from Hitler)
 
8:46 AM
@Morwenn So, basically it makes std::expected more magical? It seems to offer little except a really ugly syntax.
> One such type, obviously enough, would be std::expected<T, E> itself which would construct from any ValueOrError<T, E> concept match.
 
nwp
The whole thing seems to be a worse tagged union.
 
When will C++ fix the need to link code, everything should be in the same god damn compilation unit! Then we can inline all the things.
I guess you can't inline dlls/so but w/e
 
@Mikhail It's targeted at C, not at C++
the C++ equivalent with the explicit goal of having the same ABI is the new exceptions mechanism proposed, not std::expected
 
@Mikhail link time optimization exists for that
 
nwp
8:52 AM
It's just that build systems such as cmake are bad and don't know that or can't do it or have bad discoverability.
 
@ratchetfreak How do you LTO all the things if your system has DLLs?
We're all doomed
 
don't use DLLs for perf critical stuff then
 
Ven
@Morwenn rpz le 94
 
@Ven je savais même pas d'où ils venaient :o
I like how the "store the discriminant in a carry flag and use conditional instructions" actually looks like a negative overhead compared to manually returned error codes
 
9:11 AM
@Ven I know I kinda said I would share more Perl 6 stuff with you and @sehe but I think I’ve gone mad with power; I now have sprawling grammars calling other grammars and so on, so I’m not sure what would make sense to showcase
 
Ven
@LucDanton Good, good.
 
anyhoo if you have the time to stomach it you can peek this one (in action)
 
Ven
@LucDanton first thought: you can probably remove <.empty-lines> and use %% in fragment.
 
naw, because then it would expect the end of the fragment to be blanks :)
I think I’ve become more confident now with writing possibly separator-delimited quantifications, it’s a great feeling
 
Ven
@LucDanton mh?
anyway, nice job, all you need now is to abuse dynamic variables in every regex and you'll be a Certified™ p6 deblover
 
9:24 AM
@Ven why would I do that
asking for a friend
 
Ven
@LucDanton let's say parsing indented text is an open problem (not really, it's just that everyone and their dogs uses their own technique)
@LucDanton to be fair, you don't really care because you force indent size
 
Ven
@LucDanton ah yeah, you have two parts to your %, true
 
Perl won't get my fancy anymore I think. I lost appetite at q:to/END/;. I mean a quick glance reminds me that Perl6 here-docs are more awesome but I mostly think it's a lot of language cruft in uninteresting places.
 
nwp
Heresy!
 
Ven
9:34 AM
@sehe if you don't think reporting is interesting, you aren't a true COBOL developer. Wait, what was my point again...
 
I know some domains really benefit from that kind of language support (after all it was often thought to be a "Practical Extraction and Reporting Language"). But that doesn't tickle my fancy enough.
@Ven Exactly. I think I /like/ COBOL, for its values not for the language.
That explains me using C++ in 2018
 
Ven
@sehe I really enjoy heredocs. Much better than stitching strings together or using printf like it's '98
 
"Except... how to define one without tautology?" It's rather difficult to explain sine waves without engaging in circular reasoning. — Acccumulation May 24 at 16:01
@Ven Oh yeah. I just don't think we needed a super-charged, more complex version of it too. I'm not going to read on the arcane details about how it special cases indentation etc.
 
Ven
@sehe what?
 
I realize for some applications it's awesome. But I'm not going to learn the language for it.
 
9:38 AM
world needs to be re-written in HTML </trollololo>
 
@Ven Just follow the link.
 
Ven
this is the same feature of "least indent is base indent" that you could find in CoffeeScript, Scala, ...
 
Precisely.
 
@sehe I did, and I can’t say I quite follow where you’re going
 
Magic inside string literals. Not my cup of tea.
 
Ven
9:39 AM
You mean interpolation, like pretty much any language has by now?
 
"magic"
HERESY
 
@Ven I feel like I’m missing too much context to follow along; in any case the spec has already been written for me, I don’t really have to be poking around too much
 
Ven
@sehe also, the caveat exposed in that post don't exist anymore, AFAIR. edit: yeah the post mentions that
 
> TODE fixme
okay then
 
> The #import directive generates C++ classes from the types in the specified type library, and then writes those classes to two header files. The #import directive is not supported because if multiple compilation units import the same type library, those units conflict when they try to write the same header files at the same time.
^ Bullshit because I only have one file
 
9:55 AM
that sounds like a terrible, terrible implementation
 
nwp
@Mikhail "Fire extinguishers are provided in case of a fire" <- "Bullshit, there is nothing on fire here"
 
Using a mutex with C++ is like taking a shower in a raincoat
Well I worked around a bunch of compiler bugs, g2g
 
@Puppy precompiled headers are invariably kludges
Oh wait. It's about using /MP
 
10:25 AM
Are these 2 same: vector <int> v(n) ans vector <int> v
 
nwp
@subtleseeker You are supposed to go here for that.
 
nwp
10:48 AM
Someone make (std::stringstream{} << "some" << "stuff").str(); compile.
I blame people using inheritance over templates.
 
11:04 AM
more or less, yes
 
11:45 AM
probably can't be fixed any more for backwards compatibility reasons
Typescript has a special this type which can deal with this situation
 
 
1 hour later…
1:11 PM
@Megtz And even with "complex data", you can always allocate an array of char and store both the size and the data in it, no need to use non-portable or non-standard code. — Holt 50 secs ago
lol... people that don't realize that's actually even more undefined
 
Helllo @Mgetz
Can you help me ?
 
@YODA any specific reason you pingged me?

C++ Questions and Answers

Solve problems and approach solutions. Just ask and lurkers wi...
 
Ven
@Mgetz he wants you to block him
 
@YODA In general do not ping someone unless you know the thing you're pinning them for is of their particular interest, or you're you're using the arrow on the right of the post to reply to a specific item
 
ok sorry
 
1:14 PM
now you know, not a problem
 
How do I go through the rows of a txt file?
 
read it in a buffer, store it in a structure then access through index
 
 
2 hours later…
3:01 PM
Soooo, even though it's not guaranteed to be a good idea it should be possible to weaken the iterator requirements of std::inplace_merge, std::nth_element, std::sort and std::stable_sort to let them work with forward iterators with the current complexity guarantees, but also to give better complexity guarantees to std::inplace_merge and std::stable_sort when no extra heap memory is available
I've spent too much time stealing and reimplementing algorithms, I should move on to something else
 
3:53 PM
@Morwenn There's nothing wrong with reinventing the wheel, as long as the result truly is rounder or has better bearings than its predecessors.
 
@JerryCoffin most of these results are useless unless maybe when you're working you're working in a memory-constrained environment
but then you probably wouldn't use lists, which are the main containers providing forward and bidirectional iterators v0v
 
I've been away for a long time
But I'd thought I'd share the apparent Big Three ICE:
https://stackoverflow.com/a/50569088/256138
Well, it's not an ICE everywhere, but doesn't compile when I believe it actually just should.
As demonstrated by the simple empty template that does work correctly.
 
Clang 5 is outdated since Clang 6 came out :P
That error is even more wrong, because it should be pulled in by both <iterator> and <vector>
C++ never ceases to amaze, does it.
 
Maybe it just wasn't implemented in Clang 5?
 
nwp
4:04 PM
@StackedCrooked Could you apt-get install clang-6.0 on coliru?
 
room topic changed to Lounge<C++>: Memorializing memorials since time immemorial [c++] [c++11] [c++14] [c++17] [c++-faq]
 
nwp
My clang 6 says
main.cpp:8:2: error: no matching function for call to 'all_of'
        std::all_of(std::begin(vv), std::end(vv), std::empty<std::vector<int>>);
        ^~~~~~~~~~~
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/bits/stl_algo.h:508:5: note: candidate template ignored: couldn't infer template argument '_Predicate'
    all_of(_InputIterator __first, _InputIterator __last, _Predicate __pred)
    ^
1 error generated.
Thanks @chat.SO for removing spaces.
 
 
1 hour later…
6:06 PM
 
 
2 hours later…
8:04 PM
Code not working. Logic 100% correct. These statements are mutually exclusive. If the code is not working then by definition it is not 100% correct. — Borgleader 8 secs ago
 
8:26 PM
@Borgleader I spent the better part of the day dealing with compilation errors and bugs.
 
 
3 hours later…
11:05 PM
Just updated my six instruments to the latest MSVC 2017 + CUDA 9.2. How does one explain the need for continuous integration and testing compared to the "if its not broken don't fix it mentality" ?
 
"it's always broken and can only be fixed in increments"
 
"Why does you code have bugs?" <- actual question I've gotten
Half the problem is that nobody uses my crap (except for me) so it looks like there are no bugs
 
Trying to compile a template class example which won't compile.. would appreciate it if any of you would help me debug it.. pastebin.com/fj87UN9d
The fint should be f but beyond that not sure why won't compile..
 
11:32 PM
@Mikhail aka you are using it wrong
 
Also I upgrade my MSVC versions too far, apparently 15.7.x isn't compatible with CUDA. FML.
Underlying problem is that you can't have multiple CL.exe minor versions installed, so every fucking time I update something, if the MSVC version isn't supported by CUDA I might have to roll back the whole installation.
Every time I think MSVC can't get more fucked, minor version upgrades break support with key tools, with no option to roll back updates. What is so fucking hard about keeping two copies of CL.exe?
 

« first day (2781 days earlier)      last day (2167 days later) »