« first day (2036 days earlier)      last day (2927 days later) » 

12:01 AM
it's such a PITA to setup a new cmake build that pulls dependencies from a repo and adds external project
I really have to put them into reusable .cmake files someday
 
12:18 AM
Does C++ have a standard library for networking?
 
12:32 AM
Boost.Asio?
 
12:48 AM
Looks like a solid option, along with libcurl, etc. It's weird that such a long-standing language doesn't provide networking libraries as part of the standard.
 
^ cppnetlib, many like poco and qt
@Aaron3468 I love asio+curl
 
Networking is both hard and non-standard.
What languages provided a networking library?
 
Most of them
 
I find that Qt is convenient on account of how many languages have bindings to it. Languages like Python and Java have reasonable libraries for simple networking. I don't have networking experience in other languages
 
Well Tomcat + xSockets was slow.
I wonder what the overlap between #include <sys/socket.h> and Winsocket is. Never did much networking in C++.
 
@Telkitty Well, I can take solace in the fact that I am immune to cancer while I complete my degree; mine is the only row completely made of external factors
 
Breast cancer is the number 1 killer in the age bracket 45-64 year olds. I wonder how many men died from breast cancer.
 
How to make a quick typesafe variant class?...
 
Thats not quite true, the leading cause in the USA is usually called "malignant neoplasms" and includes things like colon cancer (most cancers).
also prostate cancer
 
1:24 AM
Cancers in general are the result of cellular reproduction systems that weren't calibrated for lifespans exceeding 40 years.
 
And not from the cancer inducing stuff we're around?
Like smoking?
Or C++
 
It's only been the last few centuries as life expectancy increased that cancer became a problem. Now that it's entered our radar, we're realizing how many carcinogens exist.
 
Just noticed this line of code
> if (tree) (*this) (*tree); else *_os << "[null]";
It's actually in my latest answer. Ew
 
I always thought old people die from cancer the most
now looking at the chart, old people die mainly from their bodies being too old (organ failure)
 
@Telkitty In a sense, cancer is also a part of this; as you age, your cells begin to lose their ability to replicate properly and validate that they've replicated properly. After a certain point, whole systems no longer function well enough to sustain life. It's like a computer with glitching RAM; there's no way to tell when a change to internal memory will cause a blue screen.
Age is a scary and fascinating phenomena
 
1:40 AM
So ... old people do die from an old age. What news!
 
Rejoice! We've scientifically disproven the null hypothesis! Now if only we could convince people that the null hypothesis on climate change was disproven
...
Can you tell who recently studied statistics? ^^;
 
1:53 AM
I kind of wish there was a way to unlearn any misconception instantly
I guess this is a good place for me to start (but then how do I validate it?)
 
@StackedCrooked it's ok if I run some compiles that go to execution expired right? it is all niced up and it wont be malicious, right? on coliru
I'm playing with silly template nesting depths, seeing weird compilation time
 
2:20 AM
Uhhhh
How come my std::string doesn't copy correctly hm...
 
What's it doing wrong, Vermil?
 
Strange thing
I tried doing Node<std::string>& it and then doing operations on it
The point is that it's supposed to be a node structure.
And then you do,
it->push_child(
  std::shared_ptr<Node<std::string>>(
    new Node<std::string>(str_temp)
  )
);
So basically, read in each line, make a new node, add it to the current child of the root node, descend into the child, and print the value of the node
Problem is that it ended up printing the same line over and over
But if I switched to std::shared_ptr as the iterator type everything goes well.
 
@Borgleader Turns out we were a little above the average, and we might be getting a 10 point boost.
So it'll be 142 / 150. Maybe.
 
2:43 AM
thought my restore was a success
apparently there is an auto check up this time when I started the PC
I have already fixed my hard disk to the slot and closed up the lid
 
@VermillionAzure Not sure, but I would double check that the strings being passed into the children are not always the same, that the iterator is traversing the tree properly, and that you are loading it with pointers only (no nulls or objects)
 
@Aaron3468 Well, in the first one, it's a reference.
So you can't load it with NULL.
 
3:21 AM
@Griwes I don't know who that is, but I'm glad people like it!
 
F4z
can i ask C questions here? or is it just for c++
 
@doug65536 yeah go ahead
 
F4z
regarding this, why do i get a null output in the main function when trying to get the corresponding binary value? pastebin.com/xcwiqANa
 
3:37 AM
@F4z Uh isn't the warning kind of obvious?...
 
F4z
what warning?
 
The warning is that ISO disallows sending string constants as char*
So I guess you just force it
If I replace the static string with a dynamically allocated one it does fine
@F4z Also, you probably want to pass the buffer for the resulting string in as an argument
So the signature should be something like GetBinary(char* str, char* buffer)
 
F4z
alright thanks
 
 
1 hour later…
4:44 AM
hm
 
Is that hm for me?
This is my first time on chat.stackoverflow.com
 
oh who are you?
 
An innocent bystander
 
Haha, welcome Barre. Chat's calmed down a little, but feel free to check out the starred posts :D
 
I see.
You're pretty developed
 
4:47 AM
Or if you have a question, feel free to ask
 
Are you like a master's student?
@BarrettAdair Usually people don't mess around with graphviz unless it's scientific or more data intensive, right?
 
Ok, thanks!
Graphviz? I've not used it personally.
I did need to build it once.
 
But who are you?
Just curious lol
newcomer arrives in a dark and dank room. a stranger inquires~
 
I am not a master's student. I'm at the C++Now conference this week and a new friend mentioned he uses chat.stackoverflow.com for casual C++ talk
 
It also brings all the boys, and everything else, to the yard.
5
 
4:49 AM
Sigh
Wish I lived in a more active place
 
I'm a C++ enthusiast looking for a job
Since you asked
 
So... you're a senior?
I can tell you I'm a sophomore right now lol
 
No, I graduated in 2014.
 
Ah I see
 
looked at your about me I presumed as much ;)
 
4:50 AM
Yeah there's a good amount of people here
I've been a regular for maybe... 2 years now
There's a guy who used to work for Intel, a guy who used to work for YouTube and holds a world record, a guy who made a C++/Lua binding, a few that are still in high school, a few retired, a professor, and yeah
 
PhD is the one who helped with the C++/Lua. I think Sol2' was mentioned at C++Now
Oh, and there's me, a coding enthusiast attending university for computer science
 
user406009
@VermillionAzure What do you mean, "more active place"?
 
I just read my "about me". That was old -- I just got rid of it. Yes I think he is here this year.
 
@Lalaland As in, maybe a few big CS and most computer-y companies would come visit my university
 
user406009
@VermillionAzure Eh, does it really matter though?
 
4:54 AM
I go to the University of Hawaii so it's a bit isolated...
 
user406009
Most applications are online with phone interviews.
 
Either way, it's good to have companies come to your career fair and also have local events you can actually show up at
Plus there's a lot larger tech community and stuff. It's smaller here.
 
user406009
Lol, I never bothered with any of that jazz.
 
Maybe you're not, but I would. It's sad that I can't...
And the only reason I'm still here is because of money.
And family.
 
user406009
@VermillionAzure Eh, you will graduate soon enough.
 
user406009
4:56 AM
And then you can go wherever you want.
 
I live in rural Arkansas. I started my job search last week just sending cold applications all over the place, and it's been going well. If you create a free/open source github portfolio and write a bunch of good code, you won't have any problems.
 
@BarrettAdair That's true but I want to go for my Master's
 
Not saying my code is good
:P
 
It's okay, I just need to do some good work and research this summer
wait wait wait
WTF gnu.org/software/libc/manual/html_node/… why does it say that PROPOSED FEDARAL CENSORSHIP REGULATIONS* in GNU libc?
 
user406009
@VermillionAzure It's probably a joke.
 
user406009
4:58 AM
Or political statement.
 
user406009
It's most likely referring to the stuff surrounding encryption being classified as a federal munition.
 
???
eh.
fair enough
 
user406009
@VermillionAzure If you really care about events and whatnot, you can try doing internships out of state.
 
user406009
Spend a summer in SF or whatever.
 
@Lalaland Definitely a political statement. It isn't often[citation needed] that programs are censored
 
user406009
5:00 AM
Companies do offer internships to both undergrads and graduate students.
 
@Lalaland That's if you get them
Which I didn't
 
user406009
Eh, there is always next year!
 
Right.
 
Uh oh.
I think my feature table is starting a war.
 
Do you ever post answers on StackOverflow and then feel let down when you don't get any feedback on them? Yesterday I posted this answer (don't brigade). Definitely a pointless question but the implementation is kind of cool
 
5:07 AM
metaprogramming
jesus
 
user406009
@ThePhD Your "competition" has started adding features?
 
@ThePhD That's good! It means you've shown a niche that they can't afford to stagnate.
 
@ThePhD are you here at C++Now?
 
The typo? Grammatically, it's ambiguous, so it may/may not be a typo
 
5:17 AM
@BarrettAdair Nah.
@Lalaland Opening issues, confused as to what I wrote in "implementation notes" for some of their libraries.
@nick Huh?
 
So are they trying to get you to re-evaluate so that their libraries look better? Are they assuming you don't know much about their libraries?
 
I have a sol-like implementation that is really fast, but nowhere near as complete as sol
I have none of that automated marshaling of a bunch of structure members
 
I... marshal structure members...?
 
yeah, you can feed it a bunch of member pointers right? and it will sync it with lua-side table, or something?
 
@ThePhD badlet
 
5:27 AM
@ThePhD new_usertype
that beep boop example is pretty hard to follow
after you mentally cross reference it 5 ways it makes sense :D
make it fun looking, like a game actor with health and a takeDamage function or something
 
fun? this is srs business, no time for games
 
@doug65536 You're hired as project manager
 
@doug65536 Oh. I don't really marshal members: the user provides everything, I just store it in places and then set up callers and shit.
 
ah okay
 
release the callers and shit
 
5:36 AM
I want to get a github up with my implementation for comparison, I'm really curious how it compares
 
why do C++ devs have such a hardon for one or two-character variable names
 
replicating my cmake add_externalproject for luajit is.... less than fun
@nick sometimes it is obvious what it is
if I see a for loop in code that uses i, I don't bat an eye. obvious
 
ahah of course
 
but otherwise I dont see a lot of short names
 
but for things like method params
 
5:40 AM
just the opposite, you end up with long crazy two-line type names in no time
yeah parameters need to be pretty explicit, I'd agree with that
in operator overloading though, you agree that a and b or lhs rhs are fine right? even though there is no actual noun
is it not obvious when I say Type(Type&& r) what r is?
 
yes I'd say it's fairly clear
right, I think part of the reason why I'm getting confused is phd's type naming
 
I tend to write my constructors the same all the time now. that might explain the more generic naming of other people too
 
used to stuff like ThisIsAType
rather than something_something
c++ is hard, brb going back to jquery
 
his style is consistent with the C++ standard library. that's my guess
 
fair enough
 
5:46 AM
I almost consider it a feature to use a different capitalization than the compiler implementation, but I agree that it is totally arguable
If you don't do things like the C++ library, then you end up with goofy things like having to provide a value_type typedef inconsistent with your types
 
yeah it wouldn't really make sense to try and mix patterns
 
look at this crap, the asker totally changed the question, making my answer appear to be utter nonsense.
that's not supposed to happen, right?
 
nope
it doesn't show up in the edit history?
 
@Aaron3468 Turns out I was wrong in my case: in order to fix VC++ warnings, I pulled from an experimental branch of the library that was farther along than the master branch of the library. That's the branch that has the problem that I wrote about in my docs. If I revert and eat the warnings from the master branch, then it compiles and runs just fine for my competitor's library.
 
@nick yeah, weird
trust me I wouldn't ramble on with a 2 version answer like that for that question, lol
I could have sworn that it was a question about a job interview and what is a good answer
 
6:00 AM
haha that's trippy
 
@ThePhD That's cool. I enjoy the fact that you investigate problems thoroughly until they're solved/understood
 
Yeah but now my benchmarks have big, fat warnings during the build. :v
 
ERR: YOU ARE A DUMBASS
ERR: NOPE, NICE TRY
if i ever attempt to maintain an open source project, all automatic tests will include friendly messages like this
 
lol maintain
 
lol
unfortunately most open source projects tend to either suffer from feature bloat over time (and maintaining this is like pushing shit up a hill) or basically freeze in terms of development
not sure which is the better fate
part of the reason why there's always huge turnover in libraries and frameworks, at least in the JS world where it's simple to do so
 
6:14 AM
So
I need to make a graph / plot
out of some CSV data
I could use R with ggplot2 since it makes decent graphs
but holy shit it's R
 
SOMEBODY CALL CINCH
 
Anyone know if there's a good plotting lib for python I can snag and make a quick script to make some sexy heavily-clustered scatterplots?
NO DON'T TELL HIM
 
@VermillionAzure pls make tutorials on R
 
uh what
 
@ThePhD ITS TOO LAAAATE
oh hey babe
 
6:15 AM
@ThePhD there's the obvious ones
 
dont tell
just tutorial
 
seaborn, matplotlib, and there's also a ggplot2 port to python
and no thanks I'm following one already
 
or just call gnuplot?
or just fucking open it in LibreOrphice
 
@Mikhail does that have a python binding?
 
@VermillionAzure just call the command line
 
6:17 AM
llol
oh that wasnt a joke
 
@Mikhail uhhhh.........
 
Qt released their charts stuff for free, which has python bindings...
 
I need it to be code
because I generate the data from some benchmarks
output some CSVs
 
Just call the command line programatically
 
and then I need to prune the data
 
6:18 AM
once your done, dump to csv and call the command line
 
the libreoffice calc "autorecovery" apparently interprets "Cancel" to mean "permanently throw away all the autorecover, but just to piss me off, show me yesterdays work for a second before it is deleted forever"
 
@ThePhD If it's python then just use pandas/numpy/seaborn or matplotlib
hmmmmm
This is what we learned from
 
@doug65536 lmao
tried google drive or onedrive?
don't think the spreadsheet tools are quite as advanced as desktop excel but they offer more than enough for me, and that data is never getting lost :)
 
@nick not very happy with it tbh. their spreadsheet =TRANSLATE function is pretty neat, but not truly useful
I'd guess googles online office tools have neat map integration too
 
Blegh, google gson transitioned to maven releases, so I need to figure out how to compile the jars so I can mess with one of my old projects
 
6:23 AM
tbh what prevented me from ever using openoffice/libreoffice is the UI
 
I don't want to copy the repo; I want to include the finished library T.T
 
g-g-g-gson
 
It's a good library :O
 
@Aaron3468 you can npm install a git repo right? oops wrong room?
are you talking about js or am I mixing things up?
 
An old Java project of mine. Just need the libraries in a jar format, but gson is a maven repo now and all their guides are on how to include it as a dependency in maven projects ^^;
Naturally, this is an older project of mine from when I worked without version control, and didn't really have an idea how to use automated build systems, so I've got a bit of cleanup to do either way
 
6:36 AM
lol
i remember i had to somehow make a .WAR
to this day i'm still not 100% sure what that format is exactly
 
wow, didn't know github did such a nice job with csv formatting
 
so buttiful
 
If any of you are active on the Boost mailing list, I [re]posted my library there to guage interest for inclusion.
I'd be happy to receive feedback from any of you as well.
Here was the discussion on reddit as well
 
To this day, I have to look up docs whenever I switch between git, maven, cmake, gradle, etc. Every one of the systems has some quirky custom filetypes and folder layouts
 
(as well)
 
6:50 AM
Permission denied (publickey,gssapi-with-mic,password).
sweet
 
7:05 AM
Hey.
 
Hey Morwenn, how's it going?
 
Fine I guess? I'm not working today.
 
You should try baking a chocolate torte! Absolutely delicious :D
 
Looks yummy
maybe I am hungry :p
 
I don't have the time nor the ingredients for that :p
 
Ven
7:19 AM
Hi
 
I baked it for mother's day and it was loved. The choclate is so rich, but well complimented by fresh raspberries. I didn't have the puff pastry, so I just used a pie shell
 
@Ven Hey ♥
 
Ven
7:35 AM
@Morwenn hello ♥
 
Yesterday I had to contribute to a Jira tickets markdown to RST transpiler. Fun times.
 
Ven
JIRA :[
 
I'm pretty sure Pandoc could handle that, but whatever I guess.
Oh, it's not handled by Pandoc actually.
 
Ven
but pandoc isn't java, how dare you :o
 
JIRA pas dire tant de mal que ça d’eux
 
7:39 AM
@Ven So?
@LucDanton Wow xD
 
Ven
@Morwenn uhm, markdown to rst is definitely handled by pandoc ;o)
@LucDanton arrête toi, kad
 
C'est capillotracté comme humour.
 
c’était ça ou une remarque sur de belles montagnes
 
@Ven Yeah, but Jira ticket syntax isn't markdown.
 
Ven
yeah it's plain shit
 
7:41 AM
Yeah :D
 
@Ven ayy well done
 
Anyway, those regices were far easier to handle than the geoprojection math I was supposed to do. I'm glad I could switch tasks x)
 

« first day (2036 days earlier)      last day (2927 days later) »