« first day (1928 days earlier)      last day (3038 days later) » 

user1804599
1:00 PM
It's a network socket and the JSON objects could come in at any time.
 
If you have a "long poll" kind of protocol, make sure you detect when the /sender/ intends to stop transmitting
Otherwise you just conflate framing with parsing.
 
user1804599
	decoder := json.NewDecoder(conn)
	for {
		var not notification.Notification
		if err := decoder.Decode(&not); err != nil {
			return
		}
		s.Publisher.Publish(&not)
	}
 
As long as you do everything streaming there is no real difference of course
 
@MadameElyse as far as I remember, Mongodb just does that with bson
 
BSON is always delimited (or framed)
 
user1804599
1:01 PM
@sehe Problem is that it's ambiguous.
 
user1804599
Is 11 one or two JSON numbers?
 
it is?
Good point.
It's not actually ambiguous, but it requires a separation some of the time to avoid collusion
 
user1804599
I can make the transmitter emit a space after each JSON object.
 
So make it a NUL, clearly better
 
user1804599
I don't think NUL is valid JSON.
 
1:03 PM
Precisely. 1 1 isn't either
 
user1804599
No, but "1 " and " 1" are.
 
The whole point is it's not JSON at that level.
@MadameElyse the delimiter in between is not JSON.
 
user1804599
I don't want to change the server-side (parsing) code.
 
Ven
doesn't matter that " 1" is
 
So
 
user1804599
1:03 PM
It already works.
 
Ven
"1 "" 1" isn't ambiguous anyway
 
Hi ven. What are you on about :)
 
Ven
drugs
oh, "about", sorry
 
user1804599
 
user1804599
It works! :D
 
user3790646
1:06 PM
@MadameElyse Boohoo! Watch out Elyse
 
I have to do so much tomorrow, I am rooting for not waking up at all tomorrow. Or ever.
 
user3790646
@MadameElyse I almost clicked that thinking it was truly a notification for me :x
 
pls elim no deathed
 
@ElimGarak If you have an SSD >128GB, please post it to me before you commit suicide.
 
you can post <= 128GB to me
I'm not picky
 
1:09 PM
Will pay your estate for postage.
 
Wellp, there are a few regular SSDs with 1 GB of storage and one 512 GB NVMe-based.
which is stuck in this machine I'm currently on. It's pretty hardcore, I posted some benchmarks a while back.
 
@scottbelsky There shouldn't be 9 screens, when there is one road to focus one, Scott! Please DM us the email linked to your account.
Happy to see Uber takes a sane response to misplaced bragging online
 
I only need one, say 256GB. I'm not greedy.
 
you can keep the neverminde-based ssd
 
1:11 PM
-33
Q: Introducing the Developer Story

bluefeet TL;DR; We're replacing CVs with something you can use even if you aren't currently looking for a job. Update (Jan 4): added an FAQ section to address some common questions & concerns We've had a lot of announcements lately about changes to Stack Overflow, including the addition...

laff discodevelopment is strong with snack overflow
Gotta have those designers do things
 
They could've just paid @nick
 
github.com/ned14/boost.outcome Peeps, is this worth diving into /cc @BartekBanachewicz Maybe<@LucDanton> etc.?
 
modasn
lol tribool
 
191
Q: The Developer Story Part 2: We didn't explain that very well

bluefeetRecently, we presented the community with our idea for the Developer Story to get your thoughts and feedback; and feedback we got! We appreciate all the comments and answers on the original post. In hindsight, we realize that we missed the boat, didn't follow our own advice, and failed to inclu...

 
Yeah but it still sucks
 
user1804599
1:15 PM
OP looks like a moron with all those moronic memes.
 
user1804599
@sehe No; it's C++.
 
@CatPlusPlus I fixed the link to something likely more relevant
 
Boost.IThinkMyLibraryIsGreat
 
@Morwenn It can be much worse. See mailing list
 
@sehe I’m not up to date on the future/promise proposals etc., I assume the spinlock and tribool are not game breakers though
 
1:17 PM
@sehe I'm just joking about the fact that many people add Boost to the name of their library before even submitting the idea to Boost.
 
Boost.AllThings?
it looks professional
 
I'll make a quick presentation to my coworkers about C++11 features soon, what shall I include? For now I've listed: move semantics, variadic templates, lambdas, auto, type traits (and thus a bit of SFINAE, gonna have a hard time with that) and range for
 
is tribool a std::optional<bool> kind of thing?
 
> No, we're still all about product-driven development. In fact we've historically been so focused on Q&A as a product that it's easy for folks to forget that we are a business that needs to generate revenue.
 
@Morwenn To be fair, I only see that happening when there has been a consensus that Boost would like to host the library - reached with existing boost devs.
 
1:18 PM
"Turns out our business model is shit, please like our new features nobody asked for"
 
@Rerito drop variadics and traits for now, split into two :P
 
user1804599
@Rerito override and nullptr
 
@ScarletAmaranth it's a bool with 3 states make what you will of it
 
@ScarletAmaranth usually not, but there’s more than one way to go about that
 
tribool in paradise
 
1:18 PM
In logic, a three-valued logic (also trinary logic, trivalent, ternary, or trilean, sometimes abbreviated 3VL) is any of several many-valued logic systems in which there are three truth values indicating true, false and some indeterminate third value. This is contrasted with the more commonly known bivalent logics (such as classical sentential or Boolean logic) which provide only for true and false. Conceptual form and basic ideas were initially created by Jan Łukasiewicz and C. I. Lewis. These were then re-formulated by Grigore Moisil in an axiomatic algebraic form, and also extended to n-valued...
 
@ScarletAmaranth But this is cool shit! :(
 
@sehe I have seen several cases of "I intend to propose it to Boost but not right now", but I wouldn't be able to find them in seconds.
 
@AlexM. bool with 3 states makes a lot of sense indeed (or does it)
 
it doesn't
 
@ScarletAmaranth well it’s not a bool really :) but yeah
 
1:19 PM
@LucDanton Norman logic!
 
@ScarletAmaranth YES/NO/FILENOTFOUND
 
at least to me
 
tribool should be kleen
 
@Rerito well… maybe
but maybe not
 
@AlexM. Indeterminate state
Also fuzzy logic will blow your mind~
 
1:19 PM
@LucDanton Exactly, or...
 
@CatPlusPlus good point with that
 
@CatPlusPlus I like where you said "terminate"
 
@LucDanton that was supposed to be sarcasm :-(
 
user1804599
Filled (not ticked) checkboxes in tree views.
 
@ScarletAmaranth That pun was subtle, bravo
 
1:20 PM
@ScarletAmaranth oh! I don’t think I actually realised the silliness of 'tribool' before, so thanks for that
 
Monoidal t-norm-based propositional fuzzy logic
 
^ you just made that up
 
@CatPlusPlus of course
 
1:21 PM
Cat briefly remembers his education
#triggered
 
As if
No I looked at Wikipedia
 
:D
 
We should establish the "Bartek point" in the Lounge, instead of the well known Godwin point
 
@Rerito well you could always leapfrog the SFINAE to concepts-lite in a future session (for after GCC 6 is released, and maybe something on the Clang side of things, too)
 
@Rerito There's no such point
 
1:22 PM
There are five such points
 
@ScarletAmaranth apparently it could be trikleene and a tripriest, although since we have bool and not bibool I guess that can be improved still :)
 
I miss Jeff :(( — Seth Jan 13 at 17:27
lol
 
might as well call everything kleene though
 
trikleenex
 
"A conversation gets out of hand when one of the interlocutors compares one another to Bartek"
 
1:23 PM
I agree with everything being kleene
 
kleene coding
 
@LucDanton Never used concepts, are they C++14?
 
kleine dich
 
@Borgleader Africa is amazing. Lets go :) <3
 
@Rerito they are C++27 thing
 
1:24 PM
Nah, kleen. Boole's name lost the final letter, let this be equal.
 
@Rerito not even C++1z, not even released
 
Not even once
 
@Borgleader melting :D
 
@LucDanton Not even released? I thought the TS had been officially published.
 
I ate the tastiest banana caramel crumble ever
yum
 
Ven
1:25 PM
Templates – not even once
 
> Published 2015-11-13
 
@sehe this looks/sounds lovely
 
> […] it is called a Kleene algebra. (This notion should not to be confused with the other Kleene algebra generalizing regular expressions.)
 
-1
A: OpenCv Restrict cv::waitKey to only one wait for one specific key?

Tony The LionYou can do this: char k; k=cvWaitKey(0); if(k == 'ESC')

 
everything is Kleene
 
1:26 PM
I'm terrible :(
 
Algebii
 
Ven
@sehe interesting!
@CatPlusPlus post it as a comment pls
 
Just twote it. I agree it looks interesting
@Ven better yet, the answer
 
Tooted
@Ven Someone already did
Tl;DR; We have no idea what we're doing. Our investors are complaining we're not making any money. We're going to throw as much poo against the wall as we can hoping some of it will stick. We're sorry, please don't leave us. We need to make money from you, somehow. — user3791372 Jan 16 at 7:53
Also it's an echo chamber so there's no point
 
@sehe I’m actually confused by the tribool thing seeing as the dev is a Booster but not involved with Boost.Tribool lol
 
1:28 PM
Plus I don't have stake in snakc overflow
> I am a business owner who has taken up software development thanks to the wonderful resource that SO is.
rip
 
ahahahahah
 
Ven
hah, the "stack trace" name is funny. but ungooglable
 
> It could be a useful tool for companies who are trying to find different ways of thinking about their hiring process by giving information about people we may not have thought or known to ask for.
Cinch detected
 
@AndyProwl I've loved the samples of Yamaha. I fell out of love with roland for about a decade-and-a-half (ironically, because it's what I invested in with the RD700). However the gradeless nature of superNatural has really made an impact and I've started losing interest in Yamaha a bit. In general their value-for-money proposition is almost unbeatable though
 
Ven
1:31 PM
@набиячлэвэлиь not sure what you mean here
 
im going to make better tools for thinking ill call them brains
tbrains
 
@LucDanton It's probably a mild case of NIH. I believe the library will want to keep building blocks dependency-free (and besides, it looks to be c++14 only; it's not reasonable to expect the same features from an existing mainstream boost library)
 
Boost is silly with how they avoid interdependencies
 
@TonyTheLion hi :)
 
Ven
1:34 PM
@CatPlusPlus some it can be annoying. but agreed
 
@sehe well, the first thing I did was check if Boost.Tribool is constexpr (since that seems the only advertised feature over here), which it is according to the docs (no first-hand exp). what kind of C++14 tribool do you want?
 
user3790646
I feel a bit sad ;'c I can't access my router's configuration site, only my modem's
 
@LucDanton oh yeah. Constexpr was one of the things I /assumed/ would lead them to roll their own. Strange
Perhaps to do with atomics
 
grasping at Kleene straws
 
1:36 PM
I'm trying to compile a file, if it's named .c it compiles and runs fine, if I rename it .cpp then I get errors that "undefined reference to..." all the functions. What may be causing that?
 
Hitler
 
100% Hitler
 
how do I stop him
 
Dragons
 
makes sense
 
1:37 PM
@набиячлэвэлиь That's a pull request I can mostly agree with. But my precious ternaries...
 
you shoot him when 4th fashist policy is passed
 
Ell
does anyone here have anything awful to say about gradle?
 
@Nooble They suck
 
@Ell it’s a really stupid name
 
@user11177 stop stalin, just shoot him or sth
@Ell the android thing?
 
1:38 PM
@Nooble Completely superfluous, as you're not using the expression
 
user3790646
@LucDanton I know right, isn't it? Sounds pretty much like cradle :o
 
@user11177 Travel back in time in the Vikings era where valkyries ride raptors
 
I never got to understanding how to use it
 
It's slow as shit, has a stupid DSL
 
I liked android dev pre-gradle
 
1:38 PM
You're insane
 
@AlexM. you need to inspect identity and appoint a new president first
 
thanks guys
 
@набиячлэвэлиь Hmm you're right.
 
Ell
@AlexM. it's a polyglot build system but yeah
it definitely seems slow as shit as it took 2.6 seconds to build a project with 0 source files
 
@Nooble And you had an off-by-one in there
 
1:39 PM
hey don't listen to me I haven't really done any android apps in ages all I know is that after a while I wanted to write one for school and saw that gradle is mandatory or sth
and nothing was what I remembered
so I didn't really know what's what
 
It was shit before the change and it's shit now
What they should've done from the start is support Maven
 
Ell
maybe I'll use maven
 
But nooo they're special snowflakes
With a shitty platform
 
@набиячлэвэлиь Yeah :P
Nice work.
 
@Nooble Also you should wrap your code
 
user3790646
1:43 PM
@Ell Holy Molly, just can't find an image of Maven Black-Briar
 
@набиячлэвэлиь Wrap?
Oh...
I could, but I like my gigantic 15000 character lines.
 
@user11177 just use g++ not gcc (or similar depending on all the stuff you forgot to mention). Also, searching Stack Overflow was about 278x faster
 
@Nooble No, you don't
 
Ven
@AlexM. my 3 last android apps used scala and sbt
 
@Ven Wait, how'd you get Scala to work on Android?
 
1:45 PM
you can get anything that compiles to the java thing to work on android
some are just more difficult than others to do
 
Well, yes. I haven't been able to figure out how to make Scala work back when I tried to, though.
 
Ven
@набиячлэвэлиь just a bit of proguard.
 
@sehe thanks but I already tried that
 
Okay. If you need more handholding see Stack Overflow or chat.stackoverflow.com/rooms/99852/c
 
1:47 PM
@Ven Hrmmm, nice link
 
Ven
@набиячлэвэлиь wasn't actually interesting at all, lol
 
@Ven Well, it is
 
Ven
@набиячлэвэлиь well, look at my plugins. that's what's interesting
 
Both maven and gradle suck, but I guess that "suck" is inherent to dependency manager because managing them sucks
 
1:57 PM
can I link to shared libs compiled with gcc when compiling with g++?
or do I need two different versions?
 
can you try
 
you can share them on twitter, facebook or google +
 
@user11177 extern "C" - google the rest
 
he he such quick wit
 
that's my name yea
Alex "Quick Wit" M.
 
1:59 PM
this place is a laugh riot
 
it's k I have a bus to catch so you're in no danger of dying from too much laughter
cya later
 
@user11177 It's not. We're just used to help vampires. Here's places to fo: Stack Overflow and chat.stackoverflow.com/rooms/99852/c accept/encourage questions
 
what is a help vampire?
 
@user11177 Do you have a reflection?
 
I must be on the wrong website
 
2:02 PM
yes, you are
you should be on stackoverflow.com
 
@user11177 that's because we always have a few people like you here
 
I thought this was for asking programming related questions
 
@user11177 you should be on stackoverflow.com
@user11177 The thing is, you open the door to one vamp and thousands push through. Nothing personal.
 
@user11177 what makes you think that?
 
I don't know where I got such a dumb idea from
sorry about that
 
2:08 PM
 
Ven
rito or riot
 
nowadays I always have to end the message with </troll> or </sarcasm> ... the best way to ensure your message get cross is to assume that everyone is an idiot (which sometimes they are not)
 
Either I am way too stupid or installing plugins in Vim is way too hard
 
@TelkittytheWebDeveloper In here, it would be less effort all round if posts that needed it had a </serious> tag.
 
@xordux Vundle and your life is made easy
 
2:22 PM
I have spent my whole day in installing reinstalling and re-reinstalling a lot of things.
@Rerito I am using vundle for that but something is missing here. Probably my brain.
 
@xordux With vundle, installing plugins is quite straightforward
 
@Rerito Yes it was supposed to. I had read all the instructions then tried installing.
and then saw a video in youtube before reinstalling it all vundle+youcompleteme
 
Some plugins require further building steps (thinking of YouCompleteMe), but for the others it's basically new lines in your .vimrc and a :PluginInstall
 
it seems like YCM is installed clean but it is showing no suggestiong
 
Don't give up on YCM it really is great once setup :)
 
2:26 PM
YcmDebugInfo is neither working
@Rerito Thank you. I should try again.
 
@xordux did you read the readme
 
yes. Almost whole doc.
Lastly I had read whole "Full Installation Guide" in it and followed the steps.
when I use :PluginInstall vundle says "done"
I should try again, rather.
Hey, one thing! Will deleting the .vim/Bundle/YouCompleteMe folder uninstall YCM ?
or do I need to do anything else (except editing vimrc file)
 
@xordux read about :PluginClean
 
@LucDanton ok I will. Thank you
I just used PluginClean its wonderful. Is there anyway to make sure that vundle is installed correctly ?
 
2:43 PM
Don't ask here, you're being a "help vampire"
 
@user11177 What is a "help vampire" ? lol
 
its someone who comes here, and doesn't merely shitpost
 
Hahaha
 
yeah that was my reaction when I learned about it
 
@user11177 lol, I actually came to share my frustration here but some humble people turned me into a help vampire soon :D
 
2:49 PM
well the important thing to know is this room is for shitposting only
 
no this room is to have conversations with the other people hanging out here
if you don't like that, you're welcome to leave
 
@sehe are you around
 
but stop complaining because someone here won't answer your question
 
lol Qt and touchscreens: 'Qt cannot be made to work. If you want a reliable user experience, you cannot use Qt'
 
Jan 22 at 20:42, by Etienne de Martel
Bla bla bla The Rules bla bla bla.
 
2:50 PM
@LucDanton yes
 
@набиячлэвэлиь Now using K&R brace placement. You're welcome.
 
Hey, has anyone here worked in anything related to AI ? I could use a piece of advice
 
advice is for help vampires
 
enough
 
Hahaha Yet
 
2:52 PM
@Nooble Whatever that is
 
I think its having the opening brace on the same line
 
I was actually wonder if I will need to learn(and understand) all the algorithms or I can directly use the AI libraries ?
*wondering
 
@xordux use the AI libs available, unless you're a math genius and you can understand all that advanced math AI has
 
Thanks Tony. /cc @LucDanton I wasn't lounging, if that's what you meant o.O :S
 
@TonyTheLion ok, I am actually a math fool. Thanks. Should I start learning python for AI ?
Because I have seen some good AI programs in python.
 
2:55 PM
@xordux donno what you should start learning. I guess whatever you want to learn, or what is applicable
 
ok thanks
 
@TonyTheLion yep
 
ohhh I remembered correctly :)
 
@xordux Dude, go to a university and get the right courses for AI. This is not something you can do without some study first.
 

« first day (1928 days earlier)      last day (3038 days later) »