« first day (1680 days earlier)      last day (3267 days later) » 

5:18 AM
Hooray for having to read regexes in javascript in a job application form documented in Chinese in order to figure out the format for telephone numbers
Apperently it's "###-#######"
 
god make is so bad
 
@Rapptz use a real toolchain like Visual Studio
 
gr8 joke
shame no one is around to appreciate it
 
hi
 
5:34 AM
FFS, this whole Linux dynamic linking problem just blew up in my face.
v0.6.9 is going to have two Linux versions. Dynamic and static. The dynamic one gets Cilk, but won't run everywhere. Everyone else gets the shitty no-Cilk version that's slower. AHAHAHAHA
Windows doesn't have this problem.
 
I don't get your objection with providing the .so
You provide the .dlls with Windows do you not?
 
It's a lot more work.
 
how
you're the one building this
 
I need to find the 10+ link dependencies (wherever the fuck they are). Then I need to fuck with some scripting and the LD_LIBRARY_whatever bullshit fuck.
 
eh
use cmake?
false good advice
 
5:39 AM
how do you find your dependencies on Windows
 
dumpbin
 
@Rapptz There's only one - Cilk Plus. I copy paste it into the same folder as the .exe and it just works.
 
I don't buy it
 
I'm not entirely sure if I'm even allowed to do that. If anyone complains, I'll pull the plug on Cilk.
 
you usually need the CRT and shit
 
5:41 AM
It just works. And if it doesn't, installing the redistributable will make it work. It's that simple.
 
righto so you have the CRT dependency
 
@Mysticial why wont the dynamic one run everywhere? I haven't been following you, but from this it sounds like that's the key problem here?
 
@MooingDuck When I first launched the Linux version (back in like 2010), I got a gazzilion email complaints from people saying they couldn't run it because it required very specific version of libc and shit that I don't even know existed.
 
do you even ldd m8
 
So to run it, they would need to install that specific version - which often involve removing the existing one. (I have no idea idea)
@Rapptz Yes I do.
And a lot of these people were playing with school computers and didn't have admin access.
 
5:45 AM
@Mysticial and it's not viable to have it use CRT statically but Clik dynamically?
 
Static linking solved everything. Until like now.
@MooingDuck AFAICT, that's not possible.
I spent a couple hours doing that today. It all blew up.
Statically linking pthreads in a way that would work was already fragile enough.
Trying to get any fancier and everything just collapses.
Oh and BTW, unlike on Windows, Cilk Plus gives a pretty large speed up on Linux. That's because Linux doesn't have a built-in thread pool like in Windows
 
@Mysticial no..
just set LD_LIBRARY_PATH to search your directory first
and include your version of libc in there
e.g. export LD_LIBRARY_PATH="$PWD/shared_libs/:$LD_LIBRARY_PATH" or something
 
If I'm going to do that, I wonder if I can embed that into the launcher.
And invoke it by calling system("blah blah");
But then they won't be able to run the binaries directly unless they set the path manually.
fuck
 
make sure you don't use RPATH
 
RPATH?
 
5:58 AM
-rpath option on ld
it has priority over LD_LIBRARY_PATH
 
oh
It's bad even if I use a relative address?
 
source of headaches for me so I avoid it
I think relative address might be good, iunno
 
Right now, the launcher calls the binaries using relative address.
Which is kinda hard-coded into the launcher. Now the best way, but it works.
 
Actually I think -rpath to a relative directory isn't bad
somehow that feels like an Evil™ thing to say
 
That aside, there's about 10 - 15 libraries that I need to grab. And I need to put together the right licensing info for each of them. I don't even know what have the stuff is.
 
6:03 AM
I thought you ldd
 
yes, that's why I know there's 10 - 15 of them.
 
it tells you the name!
it should anyway
 
So I know libc and libc++ are some of them. Now I need to find the right license documentation for them that I'm (required) to include with the distribution.
I guess I'm supposed to steal that from someone else?
 
I'm willing to bet almost all of them are just GCC's stuff no?
libatomic, libgcc, libstdc++, libc, etc?
 
Lemme boot up the machine again to get the full list.
Yes, it's all from GCC. There's nothing external.
 
6:08 AM
just grab the COPYING files from the gcc source tree :v
copy paste
 
miyu@miyu-desktop:~/Desktop/trunk/y-cruncher (AV)/Binaries$ ldd x64\ XOP\ ~\ Miyu.out
	linux-vdso.so.1 =>  (0x00007fff4e400000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fb765db8000)
	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fb765a38000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fb765730000)
	libcilkrts.so.5 => /usr/lib/x86_64-linux-gnu/libcilkrts.so.5 (0x00007fb765510000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fb7652f8000)
Okay, so not 15 of them.
I count 9.
 
hm
I should work on filesystem
browsing the gcc source tree reminded me
 
I couldn't find the COPYING file for libstdc++v3 but I saw most had the LGPL yeah
LGPL v3
look at A1.2
 
Maybe I can just say that all these .so files are unmodified GNU stuff under GPLv3.
 
6:14 AM
the weird thing is that a lot don't have a COPYING file
 
*LGPLv3
 
Does ^ mean code using it must also be lgpl?
 
no
Anything can link with LGPL.
 
doubt gcc would be a successful project if that were true
 
true free open source software?
I usually add MIT to my stuff but suck at licenses.
 
6:21 AM
most of my stuff is MIT
some zlib/png
transforming from doxygen to sphinx so annoying
 
Spring is nice, I like the fresh shades of green.
Beautiful day here.
 
6:42 AM
Typhoon tail here. Gray, very humid, hot and rainy with wind.
 
Chrome is spiking two cores wtf.
 
It is solving cancer
 
7:21 AM
I remember why I stopped working on filesystem
 
user3010322
@Rapptz Why?
 
encoding conversions
UTF-8/16/32 to UTF-8 on Linux-land, UTF-8/16/32 to UTF-16 on Windows-land.
and then the inverse
i.e. UTF-16 to UTF-8/16/32 and UTF-8 to UTF-8/16/32
annoying
 
user3010322
If it's wchar_t there's usually wchar_t variants for functions in Linux land to avoid to conversion.
 
user3010322
Only converting you need to do on Linux is from UTF16.
 
that's not how the TS works
 
user3010322
7:26 AM
But on Windows, you must convert to UTF16 to get hte full unicode file system.
 
user3010322
Oh, you're interfacing with the TS?
 
yes
at this rate I'm going to need an entire unicode conversion thing lol ._.
 
user3010322
path
 
yeah it's path that requires this nonsense
 
user3010322
Takes narrow/wide/UTF16/UTF32
 
user3010322
7:28 AM
On POSIX, narrow is already UTF8.
 
yeah
that's basically UTF-8
so.. UTF-8/16/32
because Windows wide is UTF-16
 
user3010322
No I mean
 
user3010322
char* on POSIX is usually UTF8.
 
user3010322
That was a typo.
 
I get that already
4 mins ago, by Rapptz
UTF-8/16/32 to UTF-8 on Linux-land, UTF-8/16/32 to UTF-16 on Windows-land.
 
user3010322
7:29 AM
Right, and they have UTF16 and UTF32 constructors, so.
 
user3010322
You can just pass in the data as it is.
 
I'm not too sure about that.
 
user3010322
No conversions required.
 
user3010322
Path takes care of it.
 
m8 I'm writing path
 
user3010322
7:29 AM
Holy shit my typos today.
 
what do you think I'm doing
 
user3010322
... Oh.
 
user3010322
Well, uh. Good luck, then! Also, fuck chat rate limiting.
 
@R.MartinhoFernandes hm?
 
POSIX filenames are not UTF-8.
Common misconception
All bytes except 00 and 2F are valid.
 
user3010322
7:33 AM
Oh, so it just accepts everything and doesn't give a fuck.
 
user3010322
Well, sure. That works too.
 
that's annoying
 
user3010322
But I think UTF8 is the "de-facto".... but, ehm. Shrug.
 
Point is, invalid UTF-8 is ok.
 
yeah see this is why I dropped this
this isn't fun
it's just annoying
 
7:35 AM
Oh wait. I'm wrong
They don't use the C standard definition of character.
 
> Modern Linux distributions are set up such that all users are using UTF-8 locales and paths on foreign filesystem mounts are translated to UTF-8, so this difference in strategies generally has no effect. However, if you really want to be safe, you cannot assume any structure about filenames beyond "NUL-terminated, '/'-delimited sequence of bytes".
 
I think it's the same on Windows
At least that's how Windows behaves
Paths are not text.
 
well
not sure how I'll manage to do wchar_t, char, char16_t, char32_t to char and vice versa.
 
incomplete
only provides std::codecvt<X, char, std::mbstate_t>
but I need <X, wchar_t, std::mbstate_t> too
 
7:42 AM
And what do you need?
 
to somehow convert between character types
8.2.2
 
Oh. Don't worry. You can't convert to the narrow encoding anyway.
 
?
there are the string family of functions
that convert the string_type to std::[w|u16|u32]string
 
Which ones?
 
8.4.6 and 8.4.7
oh this is new
u8string() lol
that's not in Boost.FS
 
7:49 AM
I mean that you can't implement it
"Don't worry" was sarcastic.
 
:/
meh.
 
There are conversions from UTF-8, but not the narrow encoding, which can be anything.
Anyway, gotta pack up my tent.
 
bb
 
8:42 AM
do you know what happened with agar.io
?
 
9:06 AM
Hello.
 
@Andy I miss my belt :(
The shorts I brought really need it.
 
@sehe lol, what? Vlad does not write C++ at all?
 
I'm improvising with some rope.
 
@R.MartinhoFernandes Suicide?
Oh, shorts.
Hmm, I should buy a new mouse. The buttons seem pretty yucky.
 
9:24 AM
@Andy I haven't noticed my tinnitus the whole week and I didn't listen to a single minute of white noise therapy.
5
Definitely correlated to sleep.
Or stress.
 
Ell
That's good news right?
 
morning
@Ell Then he'd have to start leaving the office at the end of working hours ;p
 
Ell
9:39 AM
That also is a good thing :L
 
Could also be residual from the three weeks or so of therapy.
 
Ell
The joke that people make about milking cows is so old and bad
 
?
The times I leave the office are ok. It's what I do after that that isn't (i.e. not sleep)
 
Ell
"What was the guy that milked the first cows intention?"
 
Ell
9:43 AM
"He must have been some kind of pervert Haha haha haha haha ah a*a haha haha haha haha haha"
 
(Also, horrible sentence structure)
 
Ell
Yeah I know :P
 
You're right. It's a terrible joke.
 
Ell
"What was the intention of the man that first milked a cow?"
Is that a better structure?
 
You can see it coming miles ahead and it doesn't really make much sense.
@Ell yah. Clitics on very long noun phrases are confusing and sometimes ambiguous.
 
Ell
9:47 AM
Yeah I knew it was awful as soon as I wrote it :P
 
@R.MartinhoFernandes Wow. That's nice.
@wilx Outside of SO, it seems. So, as we all suspected it's a clear case of Dunning-Kruger. Also, it's not that bad. He's just (much) too opinionated given this background.
@R.MartinhoFernandes I would have a lot of lower back pain cycling without a belt.
 
@Ell what joke is it?
 
10:03 AM
hey good morning
afternoon, by 3 minutes actually
@StackedCrooked any chance of adding Niebler's range lib to your online compiler?
 
but, my lib dirs are such a big mess already :)
if this was my pc I'd have reformatted it long ago
I wish Coliru allowed people to install the libs they want so I wouldn't need to do it.
 
@StackedCrooked but after watching his latest talk I think a lot of people like to experiment iwth it
 
However, that seems hard to implement.
 
Ell
@StackedCrooked that was the joke vOv
That the guy that first milked the cow was a pervert
Its not even a joke
Its just awful
 
range-v3 is checked out in root
put it in root so it's visible and I won't forget to clean it up later
 
10:14 AM
as long as I can include it like <range/v3/all.hpp>
 
add -I/range-v3/include to the command line
 
@StackedCrooked awesome!
 
@TemplateRex no :)
 
@StackedCrooked putting the stuff into /usr/include (same path as boost) would be even better perhaps
 
/usr/include is where the package manager puts its stuff. I'd like to not interfere with that. /usr/local/include is a better candidate
I should probably more the range include dir there.
 
10:22 AM
@StackedCrooked agreed
 
did it
but range-v3 also required me to put a directory "meta" in /usr/local/include
don't like that
why can't it be self-containing god dammit
i hate eric niebler
:P
 
@StackedCrooked mmm is there no -isystem option that can solve this?
 
ok so which -isystem option should I use :D
jk
 
Welcome to SO :)
 
Sometimes I feel I should start working on a Coliru 2.0. And then I'm like, lol, not gonna happen.
 
10:33 AM
3068 lines for a "tiny meta programming lib"
 
but are they tiny lines? :)
 
I wonder what features it has.
If it can roughly replace MPL that's impressive
 
I see it has operations on typelist.
I bet it's a collection of most commonly needed utilities.
Which is not a risky bet.
 
Everytime I browse doxygen docs the first thing I'm searching for is the header source code.
 
10:39 AM
@sehe Downloading Mondschein.mpeg now
 
Ven
hi, lounge
 
@StackedCrooked buh. not for things like this that are swamped in detail namespaces, layers of tag dispatch etc.
 
Ven
@rightfold I stand corrected, Perl doesn't have a VM!
 
@Columbo oh noes :) That's old. I taped it for some loungers who were on Mumble at the time
@Ven In fact, it's a miracle that it actually works :)
Have I mentioned fastmail.com is sweet as hell? I finally switched over my mail server and not a single fuck was given. JustWorkiness 2.0
 
@Ell Oh right. But that's not how the joke goes. I recall the joke only asks the question and leaves the answer up to the imagination.
 
Ven
10:42 AM
@sehe it's not a miracle, it's C :P
 
(most effort was to wade through 752 lines of aliases to see which needed to be kept
 
But I'm 100% the answer was related to survival. And we can reproduce with cows. :P
 
@StackedCrooked ugh bad naming
 using meta::divides = typedef std::integral_constant<decltype(T::type::value / U::type::value), T::type::value / U::type::value>
 
why do we milk cows not female elephants
 
"divides" should return bool
@chmod711telkitty logical contradiction detected
 
10:44 AM
@chmod711telkitty elephants are hard to subdue
and their milk tastes funny
 
hilarious even
 
also, if you try to keep elephants as cattle then you're gonna have a hard time
 
convincing
 
@sehe I think loris new room is fucking dead
He's gonna get back at some point
 
@StackedCrooked you have tried it?
 
10:52 AM
yes, but don't tell anyone
 
Ell
@StackedCrooked yeah it does
but it's not a joke because the answer is, as robot said, "to get milk"
 
That's so funny
@Rapptz yeah. Doesn't make me cringe any less
 
switching from hunting to farming was a big milestone though
 
I don't see how it should return bool.
divisible, sure.
divides?
I think it's meant to be read as x <function object name> y so x <plus> y and x <divides> y and x <multiplies> y etc.
 
11:01 AM
-2
Q: Learning C++ on a website

Darcy OakieI want to learn C++ with its all features. I want to know whether there is a website that has tutorials for it. (like KhanAcademy helps to learn HTML/javascript). Thanks beforehand.

"C++ with its all features"
 
Ven
"except for bitfields, those are assholes"
@rightfold hey :(
 
or vector<bool>
 
Ven
@PolymorphicPotato Good! still JS, tho. but better
oh, my avatar on SO looks good
 
I wanted to help people today morning = no accepted answers
 
11:10 AM
Why is this an image? — alex May 27 '12 at 10:56
lol
 
user1804599
@Ven hey :)
 
Ven
@rightfold not nice!
 
user1804599
Good!
 
11:30 AM
@R.MartinhoFernandes My favorite city in Germany!
Probably because I've only really visited 2 of them.
 
11:49 AM
@TemplateRex hehe
> It wasn’t until recently that I came to doubt MPL’s slavish aping of the STL’s design
@SeçkinSavaşçı i'll upvote if you do newtonian approximation using the closed form of Fib
 
@sehe niebler is now paid by isocpp to work fulltime on ranges, stl2 etc, so if meta is a part of that, i expect it to be more than a helper lib.
 
@sehe It was so tempting to do it, however I though he wants to see the recursion.
 
he already sees that in the plethora of existing answers since the inception of SO
 
In SO terms: "You cannot teach the new dogs new tricks."
 

« first day (1680 days earlier)      last day (3267 days later) »