« first day (2617 days earlier)      last day (2334 days later) » 

12:19 AM
you assume I actually make a living out of app biz
 
12:33 AM
> The [Path of Exile] wiki got so big that [Semantic MediaWiki] crashed the entire Gamepedia platform.
this could have been easily avoided by not documenting the game at all
 
Google crunches data to help NASA find 2 new planets
another 2 planets that we can not land on
advanced technology - you can look, you can speculate but you can't touch
not to whine or anything, but with 7+ billion population, humans have not landed on any planet other than earth, this is quite sad
 
1:23 AM
@Mgetz actually its server grade hardware
@Mysticial Its really messing with me, the card is supposed to be 8x, when you stick it in a 16x slot it shows up as 8x. When you stick it in an 8x slot its fucked (weird hw errors). When I stick other 8x cards, like high-speed camera-link components, into the 8x slot everything works fine. Really, it only works if you remove the GPU. Switched to a different 8x controller and everything is fine, but I lost half a day opening systems and buying new stuff was not well received at work.
 
@Mikhail Have you tried downloading a different motherboard?
 
The real show stopper was the terrible RAID performance on the 840 drives, compared to same manufacture's integrated RAID controller (although on a different mobo)
@Mysticial 3d printing
@Mysticial ]What I really want to see are integrated RAID controllers with SFF-8643 on the mobo. Right now the integrated RAID controllers are all pleb grade SAS.
 
If they don't exist, you can write one yourself. I recommend Javascript.
 
@Mysticial -1. Not enough JQuery.
 
As Brendan Eich (I believe) pointed out, after the war nobody really uses javascript now days
That was a good talk
Idk, been doing javascript for a bit, and I really like using the let keyword, might switch to rust
Real problem with JS targeting the browser is that I need to fucking make all the GUI controls (and some controls like text input are impossible, or really suck in canvas). Further, if you have multiple windows you need to group your objects into different "stages", and then state transitions need to show and hide those objects. Makes GUI prototyping really fucking hard.
the eco-system is screaming for a widget kit
Nobody gives a shit that the language is broken and confusing (like arrow functions)
 
1:38 AM
@Mikhail Switching between JavaScript and Rust doesn't make sense. They are languages used for totally different purposes.
 
I want the let keyword in c++
#define let const auto
Yo, what does that say? (why the picture)
 
2:00 AM
I guess that’s what computer freaks are supposed to look like
computer boring in the streets, computer freak under the sheets
 
hiring an electric eel again because of blocked drainage ...
 
@Mikhail That guy is lucky.
I mean, he's got a Commodore 64.
 
Are they lying on the floor?
 
@Mikhail It says: "Guys who grow crappy '70s mustaches end up with ugly girlfriends."
 
2:18 AM
@Mikhail looks like a bed to me, but it’s hard to say for sure
 
2:31 AM
so I have been using Cygwin to compile a project however an error showed up due to cc1.exe missing dependency cygisl-15.dll. I tried reinstalling but that did not work. I found no search results for "cygisl-15" so I eventually decided to delete dependency on cygisl-15.dll using software called CFF. After saving I tried to make the script again and it had no errors this time. I am currently worried that I may have deleted something important. Any thoughts on the matter?
 
@merlin Your user about page is extremely pretentious
 
i was wondering if people looked at that or not.
 
2:45 AM
@merlin Now it has spurious capitalization
 
3
Q: cannot compile anything with gcc on cygwin32; missing cygisl-10.dll

ardabroI have a problem wit compilation with gcc on 32-bit cygwin. The message is: C:/cygwin/lib/gcc/i686-pc-cygwin/4.9.3/cc1plus.exe: error while loading shared libraries: cygisl-10.dll: cannot open shared object file: No such file or directory And that is true. I have cygisl-13.dll instead of cygi...

I would try libisl15
Also, HIGHLY recommend you drop cygwin and move to LSW
At least for anything new and windows 10
 
Also I would like to apologize about not reading the rules before asking a question. I only recently noticed the Rules link.
7
I did see that. Also libisl15 is installed(reinstalling now).
Also @crasic, what is LSW?
 
@merlin Linux Subsystem for Windows
Its Microsoft Supported Native POSIX/Linux VM
Built into windows 10
Its actually a bona fide ubuntu
apt-cyg hasn't been maintained in a while, don't know if you are using cygwin directly or apt-cyg
 
3:16 AM
Hm, a total of 10,000 people have downloaded the IEEE802.3-2015 latest ethernet spec
 
I trolled a journalist after it rejected my opinion on trolls
I told it I don't want it to be dead because self absorbed idiots would make me look brighter in comparison
but I am telling the truth and it try to social herd people who read its article
I am against social herding
also used my true identity
 
3:41 AM
 
 
2 hours later…
5:30 AM
@sbi Testing begin and end is comparatively difficult; they're overloaded, so you have to throw in some casting and such. If we set that aside, such as by using cbegin, it becomes pretty easy: coliru.stacked-crooked.com/a/714fe751dcebfc1b
enable_if becomes interesting primarily for things like overloaded member functions, where you have an overload that you don't wan to participate in overload resolution unless the conditions are met.
 
6:00 AM
@LucDanton dang these are nice
 
guess you have to go write C++ now to take advantage of these new features huh
 
-1
Q: A software algorithm to arrange order of vectors clockwise

Turbo WhizKidA software algorithm to arrange order of vectors clockwise. How do I arrange the vectors so that from the lower left <117> becomes the first vector <100>? So that each end point connects to the next end point and vector loop is totally clockwise... Vectors scrambled illustration

 
6:25 AM
@LucDanton And right when I finished perfecting my Doxyfile
 
0
Q: Does microsoft pubseekoff have a bug?

Alexey SubbotaConsider code below (Visual Studio 2015/2017) std::wostringstream stm; stm << L"12345"; std::wcout << stm.rdbuf()->pubseekoff(std::ios_base::cur, 0, std::ios_base::out) << L"\n" stm << L"67890"; std::wcout << stm.str(); I see 1 167890 But I expect to see 5 1234567890 Is this microsoft bu...

^ close for typo
 
@Mikhail static void function_which_does_everything_with_my_shitty_buffers(uint8_t* ibuf1, uint8_t* o_buf1, uint8_t* ibuf2, uint8_t* obuf2) { ...
 
but also MSVC's library sucks
 
 
2 hours later…
sbi
8:57 AM
@JerryCoffin Thanks!
@JerryCoffin Oh yeah, I forgot to mention that this is about picking the right overload. :-/
 
got a samsung galaxy S8
so instead of sleeping with iphone, I will take galaxy s8 to bed tonight
but will see whether I can bring iphone back to alive after drying it for a few days
 
sbi
9:23 AM
@VermillionAzure So it's not as simple as enable_if<C::value_type>::type?? (Also, the goal is not to not have the code compile, but to let the compiler pick another overload of the function.)
 
Hi :)
 
9:40 AM
@sbi You could extract the conditions inside static_asserts into enable_if
For maximum genericity one can check if you can call using std::begin; begin(c), but that's surprisingly difficult given that you can't have using declarations inside of enable_if condition or decltype
That needs more wrappers
Jul 14 '13 at 20:07, by Bartek Banachewicz
namespace tricks{
  using std::begin; // fallback for ADL
  template<class C>
  auto adl_begin(C& c) -> decltype(begin(c)); // undefined, not needed
  template<class C>
  auto adl_begin(C const& c) -> decltype(begin(c)); // undefined, not needed
}
...and a corresponding one for std::end
then one can write auto f(C& c) -> decltype(adl_begin(c), adl_end(c), void()) {} (assuming your function returns void)
If you need to handle psychopats who write operator, implementations, that's decltype(adl_begin(c), void(), adl_end(c), void())
Actually, all the code above may be wrong; can't check it atm
 
sbi
10:08 AM
@milleniumbug So enable_if<> still is the state of the art.
 
@sbi sometimes you can use decltype trick like above, but yes, it isn't much better
 
10:57 AM
@milleniumbug they don’t really compete with each other
 
@Mikhail but is it a consumer grade CPU?
PAA (Public Annoyance Announcement): AOL instant messenger is dead, nobody cared
 
sbi
12:55 PM
@milleniumbug What's with this code?
template <typename T, typename = void>
struct is_iterable : std::false_type {};
template <typename T>
struct is_iterable<T, std::void_t<decltype(std::declval<T>().begin()),
                                  decltype(std::declval<T>().end())>>
    : std::true_type {};
It's from an example at cppreference.com and it seems much clearer to me.
 
It's perfectly fine if you're ok with supporting only ranges that have .begin() and .end() members
 
if you need to check for ADL-found functions, it's obviously trickier :p
 
sbi
I see. I didn't think of std::begin() and std::end(). Sigh.
 
1:37 PM
nvm have a better idea than messing around this
 
sbi
1:50 PM
@milleniumbug Is there anything wrong with combining the check for begin and end in the tricks code?
template<class C> auto adl_begin_end(      C& c) -> decltype(begin(c),end(c));
template<class C> auto adl_begin_end(const C& c) -> decltype(begin(c),end(c));
I mean, you always want them in pairs anyway.
 
Ven
@MarkGarcia can't you use declval?
 
@Ven I don't really know, but cppreference says "Note that because no definition exists for declval, it can only be used in unevaluated contexts" which I think precludes pointer arithmetic.
Also, that code that works was rejected by clang.
ah I think I'm misunderstanding that unevaluated context quote
 
sbi
Also, I am struggling with a way to codify the check so it also fits class templates. Would something like std::void_t<decltype(adl_begin_end(T))> work?
Damn, you miss half a decade and it feels like being a C++ newbie all over again.
 
don't worry, I spend way too much time everytime I need to detect functions despite being used to write SFINAE code everywhere
I often just use a hammer too big for the nail and go straight for the detection toolkit
 
sbi
Mhmm. This is my own project, but I still don't feel like using stuff that isn't even in C++17.
 
2:11 PM
The answer is yes... but
 
@Mgetz TIL thanks!
 
@MarkGarcia read the caveats... there are a lot of them
either way I'd be extremely careful using offsetof on anything that is not also a standard layout type
 
@sbi I just copy-pasted the implementation of the idiom in my project, it's only a few lines
 
2:36 PM
> Then again, car accidents prevent 100% cancer deaths.
 
3:14 PM
Of course, everyone has their own profile. There are morning arguers, hangry arguers, meal-time arguers, late-night arguers, and people who get in a meta-argument over what their argument timing is, dredge up examples of past arguments, and end up fighting over THOSE again as well.
3
 
 
2 hours later…
5:13 PM
@BartekBanachewicz hello, can u help me w a problem i am having in my car
4
 
5:53 PM
@FrankfortKentucky what's up?
 
@FrankfortKentucky I had a problem in my car once. Fortunately, traffic was light at the time, so I just pulled over and told him to walk the rest of the way home.
 
6:22 PM
@FrankfortKentucky also whose sockpuppet are you?
 
that was low quality trolling
 
6:50 PM
I have a problem with my car, battery is dead so it does not open when I click open and the mechanical locks are jammed because I have not used them in ten years.
I'm gonna try connecting 12V to the trailer connector and see if that gives enough juice to open the doors so I can open the hood and charge the battery.
Noticed it today, gave the locks a good lube so maybe they turn tomorrow.
 
@JohanLarsson remember they should take graphite
not regular grease
@JohanLarsson it should, the locks shouldn't draw too much anyway
 
@BartekBanachewicz I used WD40
They were proper jammed, could not even get the key in
 
7:19 PM
So with old cars turning the key a couple of times every year is a good idea
 
8:13 PM
 
8:29 PM
yep
 
8:39 PM
Typical Question in Raspberrypi.stackexchange
I need to do this extremely complex and non trivial thing
... but I do not want to spend any time or money
Alternatively, I need to do this real time thing... in python
 
9:37 PM
Whenever I compliment Haskell or Rust, there's this group of people that come out of nowhere on the internet to get SUPER excited & happy & ready to answer questions. It's the happiest, most supportive thing I have no plans to do either professionally but man makes me wish I did
Yeah. It's quite noticeable :)
@Telkitty I did not
 
10:06 PM
@sehe on of those rare times where I agree with everything Stephanie said
 
10:20 PM
I just got a help vampire email asking me to help with a question. Somebody is either desperate or drunk. (or both)
 
most likely both
 
because you are such an expert at Android and Java...
 
10:48 PM
I am such expert in Java, I didn't even know which version of Java I was using :p
 
I recently learned that Java 9 is a thing
I'm still haven't learned what was in Java 8 other than lambdas.
 
Java 9 has List.of(1, 2, 3);
 
default interface implementations
 
you can stack annotations in more places
and probably a few additional libraries
 
11:14 PM
I have plenty of old smart phones, how likely do you think I will be able to turn one of those into a CPU/monitor for a (toy) autonomous car?
 
@sehe Thanks
 
@Mysticial drunk on desperation
@Morwenn Java 9 has module support (yes, really)
 
So I did the sorting competition with my students in the algorithms course today. There were 6 teams competing against me on 3 sequences provided about 2 weeks ago.
It was an adventure =)
 
@Mikhail I don't even know what it means for Java
 
It means Java is better than C++
Fuck, I tried to look it up and got scared when I saw the first graphic: guides.gradle.org/building-java-9-modules
 
11:24 PM
what is it it had until there if it wasn't modules? what's the difference?
 
@Morwenn Modules are a new way of grouping code and data. Contrary to Jar files, modules explicitly declare which modules they depend on, and what packages they export.[12]
^ most cogent summary I could find
 
er, ok
I guess I may understand if I actually do Java again one day
 
C O G EN T
O
G
E
N
T
I keep hitting Java when I need to ensure ImageJ and MicroManager compatibility for some freelance SDKs I wrote.
One show stopping problem is not being able to have arrays with more than 2^31 elements (not 2^32 because the indecies are signed)
Library support sucks compared to Python and C++
 
@Mikhail Don't use Java.
 
@Mysticial I NEED TO SUPPORT A POPULAR PIECE OF SOFTWARE THAT IS USED BY MILLIONS OF PEOPLE
 
11:32 PM
@Mikhail That's their problem.
:)
 
Found it
 
Latest Python adds explicit typing for function signatures,
@Mikhail Fortran, you can specify your first array index to whatever you like
 
@Mikhail wtf
 
^ This one is my personal favorite because I think somebody in this room (BartekBanachewicz ?) actually proposed it a week or two ago
fuck, I have too many of these, enough for now...
 
11:43 PM
Anyone familiar with Linux virtual interfaces, virtual bridges etc? I wonder if it's possible to setup a virtual network with that. (Like a subnet with a few interfaces, a DHCP server, etc. But all virtual.)
 
nope
 
fairly sure it is possible (and things like LXC, Docker use it on daily basis)
 
What you want is something to simulate packet loss, latency, and load, which is a different question.
 
if not there are still things like "Cisco Packet Tracer" which Cisco uses in their lab courses to demonstrate how their routers work (and that one probably won't do for your use case)
 
mik, we worried about your mental health
 
11:49 PM
Emulating loss/latency/.. is possible using NetEm
 
this is way more severe than years of suffering C++ abuse could have caused
 
@Telkitty C++ is the easiest part of my job/day/life
 
@Mikhail Gotta say that in my experience, statically linking your dependencies has a lot going for it.
I've seen so many problems caused by dynamic dependencies
 
my deepest sympathy
 
they seem like a good idea in principle but in reality, in order for them to be done well, the system has to actually do dependencies well, which seems basically unheard of
 
11:51 PM
@Puppy same. The only reason not to statically link is if there's a dependency where it isn't possible.
 
Also for the LTO
One of my programs is distributed with 27 14 dlls :-)
 
@StackedCrooked just use docker-compose
 
@Puppy I'd go as far to say that dynamic linking should only be used if you provide your application through the system's package manager.
 
dhcp, dns, no problem
 
If you deploy your app as a standalone application then obviously it should carry all its dependencies.
 
11:59 PM
@StackedCrooked My experience of package managers is that they are far from truly reliable anyway.
 

« first day (2617 days earlier)      last day (2334 days later) »