« first day (1135 days earlier)      last day (3812 days later) » 

4:00 PM
@CatPlusPlus which may or may not matter :)
 
I'm gonna make a blanket statement that API written once should never change
 
@CatPlusPlus it breaks in both cases
 
Yes, C++ is very fun
 
I'm gonna make a blanket statement that I am hungry as fuck
 
Making stable ABI is such a fucking pain in the ass
 
user1804599
4:02 PM
I want to make a program.
 
@rightfold make program
 
user1804599
Async.Parallel is cool.
 
what language?
 
C++ "abstract classes" are good. you can put default logic in them.
 
user1804599
@JohanLarsson F#.
 
4:09 PM
C# with its "interfaces" sucks puppy's cock.
 
@user3024598 Watch Bucky's video tutorials on YT. Those are good.
Mornings.
 
@Jefffrey That's C++ i believe?
 
@user3024598 Bucky teaches over 600 languages, including C#.
 
that is a serious number of languages
 
How do you see private messages?
 
4:17 PM
On SO? There's no such thing
 
I was joking btw, don't watch bucky's tutorials.
 
Wait, so what's the @ thingy?
Isn't that like a personal conversation?
 
Nope, everyone can see it
 
Nope.
 
it just notifies the person that you mentioned their name
 
4:18 PM
-_-
 
but do feel free to use it to talk about juicy personal secrets :)
 
On the right side of every message there's an arrow, if you click it, a number appears on your message textarea and you'll redirect the post to the one you clicked the arrow on.
 
@Abyx Interfaces are not abstract classes
And abstract classes are not interfaces
Default logic is bad when you want to depend on an abstraction
Eh, there was a repository of icons for tech presentations, anyone remembers where what
 
@jalf People that code on C++ could easily code on C#?
 
4:22 PM
So it's different?
 
Well, maybe
If they're actual programmers not ~~C++ programmers~~
Of course it's different
 
@user3024598 they're different languages that don't share much more than a syntax heavy on curly brackets :)
 
user1804599
@JohanLarsson For example: ideone.com/71Eirb.
 
If it weren't different, it would be the same, and therefore wouldn't need another name
 
Aren't C++ and C# used for the same thing?
 
4:24 PM
sure, for programming :)
 
If the thing is "creating software" then yes
 
but so is every other programming language
 
No, i mean for the things they make, aren't they the same?
 
That doesn't even make any sense
WHERE ARE THOSE FUCKING ICONS
Argh
 
Well, both English and Spanish are used to make books. Are they the same?
 
4:24 PM
You don't make much sense, darling.
 
It's so frustrating
 
user1804599
@user3024598 They can both be used for applications programming.
 
Ell
@user3024598 the things they make, aren't they the same? what?
 
user1804599
For which C# is mostly used.
 
Ell
they both make programmes
 
4:25 PM
As opposed to non-application programming
 
lol
 
Which totally exists
 
@CatPlusPlus Library programming? Kernel programming? Homework programming? Template wankery? :p
 
user1804599
What the fuck Ideone with your shitty editor.
 
if we take application programming to mean "programming whose goal is to produce an application", then there are lots of other kinds of programming
 
@jalf Program me a Google query for the stuff I can't find
 
user1804599
Also, I click the compile button and all I get is a message box with “Text copied to clipboard!”
 
Also not being entirely serious here
But I don't really find that taxonomy very useful
 
I think I'll make popcorn later tonight
 
Does C++ have windows application form like C#"?
 
4:28 PM
Windows Forms is a part of the .NET class library. You can use that from a dialect of C++ (C++/CLI), but otherwise no. But it has different libraries for making Windows applications
 
MFC
ehheheheehehehe ok MFC is not a library it's shit
shitbrary
 
your wit never ceases to amaze :p
 
get it
 
truly your skill with the English language is unmatched
 
4:31 PM
Is it possible to put a image on listbox and to have listbox's text on that image? (visible) ?
 
Clever but don't
 
what did we say about listbox questions earlier? :p
you sneaky bastard you :)
 
lol
 
what's a listbox?
 
That counts as a listbox question too!
 
4:34 PM
It's a box. With a list
 
no shit
 
or a list of boxers
 
Ell
hmm. Visitor pattern vs virtual functions
 
int _, x;
std::cin >> _ >> _ >> _ >> _ >> _ >> _ >> _ >> x;
 
16 messages moved to bin
 
4:40 PM
Cat Plus Plus = moderator?
 
@user3024598, thanks ;)
 
@FredOverflow That looks ugly
 
@Ell both suck
@NeelBasu So what? It gets the job done.
 
>> _ >>
lol
 
user1804599
@NeelBasu how about std::istream_iterator with std::advance?
 
4:42 PM
@FredOverflow no other way ? like explicitly telling ignore 8 continous occurences
 
user1804599
*std::advance(std::istream_iterator<int>(my_stream), 8)
 
int x;
for (int i = 0; i < 8; ++i) std::cin >> x;
 
@rightfold +1
 
Ell
meh ima generate json by hand :P
 
user1804599
Make sure there are at least eight integers, otherwise UB I guess.
 
4:43 PM
@Ell I could try that, but it's probably not going to be easy. I'll call the struggle "Freddy vs. Json".
 
@rightfold Ya there is always 11 integers its /sys/block/<dev>/stat file
 
user1804599
Ok. :3
 
4:57 PM
No listbox questions, get out
 
Ell
@user3024598 you should have asked "How do I create a horizontal line separator in between items in a listbox?"
 
user1804599
That’s a subset of , and hence redundant.
 
You can't even ask the fucking question in a way people can understand it
 
C#, C++, JavaScript and every other language are just programming languages. They do not have specific clauses for "how to create GUI elements". That is the responsibility of individual libraries, providing functions and classes which you can call from your code. There is no special syntax for creating GUI
waits for someone to prove me wrong and provide an example of a language specifically designed to express GUI elements in
 
Ell
@jalf inb4 tcl
 
4:58 PM
QML
XAML
 
user1804599
@jalf Dutch is not just a programming language.
 
@CatPlusPlus Eh, I'd say QML is just a JavaScript environment, not a language in its own right
 
Don't encourage this shit
 
user1804599
BIN
 
@jalf DSL is still a language vOv
 
5:00 PM
Enough! If you want to learn about fucking listboxes, go somewhere else. It... is... not... our.. problem.
 
Well, you can write pseudo code using any text editor. — Etienne de Martel 7 secs ago
 
You are welcome to stay and chat, but your listbox woes are none of our business and we do not care in the least about that
Thank you
bows
 
79 messages moved to bin
 
Okay i won't ask about listboxes anymore. But seriously, what the fuck is your problem?
 
Our problem is that a random stranger comes up and asks us about listboxes for absolutely no reason. :p
 
5:02 PM
room topic changed to Lounge<C++>: NO GODDAMN LISTBOXES [c++] [c++11] [c++1y] [no-questions]
 
user1804599
2 days ago, by Lightness Races in Orbit
Hi. This is the Lounge. You belong here, but read this if you want to live.
 
This chat room is not for programming questions, it is not for C# and it is not for listboxes
 
I mean okay, i understand, you're not obliged to help me, but that attitude is just awful
 
user1804599
That you didn’t read the rules is our problem.
 
Ell
5:02 PM
@user3024598 you didn't read the rules :/ so to the eyes of many here, you have an awful attitude too
 
@user3024598 the attitude where a handful of people just spent 20 minutes trying their hardest to figure out what you meant so that they could help you, you mean?
I think our definitions of "awful" differ somewhat. I think they went above and beyond to help someone they had no reason whatsoever to help
 
Ell
Our dear friend fred even drew a picture for you, bless him
 
@Ell To be honest, I didn't draw it from scratch. I took a screenshot and then only drew the blue arrows.
 
Ell
@FredOverflow but those blue arrows are going unnoticed! :(
 
those blue arrows were works of art!
I will definitely keep you in mind the next time I need blue arrows.
 
5:05 PM
@jalf Do you think I should include them in my CV?
 
@user3024598 or perhaps you are talking about the attitude where someone was told quite clearly when they first entered, that this was not the right place to ask questions about listboxes, and then proceeded for something like an hour to ask those questions anyway?
 
He should try the local box office.
 
Holy shit Inkscape UI
Where do you change line width
Ugh found it
 
Inkscape is good imo
 
Of course you can't insert SVG to PowerPoint presentation
Why would that work
 
user3010322
5:14 PM
@Rapptz Yeah, Lia won't compile in VS 2013, even with the CTP.
 
Like there's interoperability or something haha
 
user3010322
There's only like, 2 errors with the CTP though, but they're related to some features that I don't think exist in VC++
 
Yes, Inkscape, remember the filename I used for export earlier, not like I've saved this document to a completely different file now
 
user3010322
Sounds like a UX design wetdream there, Cat.
 
no hope
 
user1804599
5:25 PM
-6
Q: C++ Program 8 Assist

user3027766"In this assignment, implement a class called Purse that will be used to represent a collection of coins. Functionality will be added to the class so that arithmetic, relational, and output operations can be performed. A driver program is provided to test the methods."... class Purse The Purse ...

 
user1804599
> Hand in a copy of your source code using Blackboard.
 
Ell
@CatPlusPlus why not?
or was it sarcastic?
 
@rightfold -7 doesn't do it justice.
 
Wow, listboxes went out of control I see.
 
user1804599
Dat pun.
 
5:29 PM
^^
 
user3010322
I chuckled.
 
user3010322
@Rapptz Why do you have your own implementation of result_of here ?
 
@Jefffrey You are hereby elected as the Lounge 'Listbox Expert'. Please post your email so that we may redirect any further ListBox questions.. :)
 
user3010322
Is the regular one not good enough? What cases does it miss?
 
user3010322
It's one of the things erroring VC++
 
user1804599
5:32 PM
I’m going to implement some data structures and algorithms.
 
user3010322
Oh, oh
 
user3010322
@melak47 You have Github access to my engine, so take a look around if you want to be horrified / mortified. :D
 
@rightfold Go and build a trie, tell me when you are finished.
 
user3010322
Apparently, according to github, my all-C++ code is 9% Objective-C
 
Ell
@rightfold make a variadic variant
 
user1804599
5:35 PM
@Ell F#.
 
Ell
Oh
 
@ThePhD Feel free to refactor the remaining 91% to ensure compliance:)
 
user1804599
@bamboon ok.
 
@Ell Because it doesn't work
duh
 
@rightfold Working on the Styx standard library already? :)
 
Ell
5:40 PM
I mean why wouldn't it work?
 
user1804599
@FredOverflow Nooo.
 
user1804599
I just want to learn more about this stuff.
 
user3010322
@Rapptz Turns out MSVC goes stupid-mode when constexpr is used with nested templates: connect.microsoft.com/VisualStudio/feedback/details/809248/…
 
I TRIED IT AND IT DIDN'T WORK JESUS
 
user1804599
It’s interesting.
 
5:40 PM
@rightfold Good idea. Stuff is always important!
 
user1804599
@FredOverflow I have already implemented some of that, though. See GitHub. :v
 
god I'm looking for some definitive cons of using P2P architecture and everyone is like "hurr durr P2P is used for illegal files"
Shut up you idiots, you're taking over my Google results with this crap!
 
user3010322
Haha.
 
user3010322
Well, just remember Dark Souls.
 
user3010322
That was implemented P2P style. And the multiplayer was pretty subject to the state of the two computers, so.
 
5:41 PM
I'm describing general idea
 
user3010322
Well, P2P architecture is only as good as the person's connection to that other person.
 
user3010322
If it's not realtime, then it doesn't really matter that much.
 
That's always true
For client-server connections as well
 
user3010322
Yes, but servers are usually set up to be in a better position to handle acting like a server than something that's set up to be both the client and a server running on a potentially hog-tied machine.
 
That's still has nothing to do with P2P
 
user3010322
5:44 PM
What's the special bit about P2P then that you have to find out? :O
 
You can use powerhog servers in P2P, there's nothing fundamentally preventing you from doing it
Well I did write down 'more demanding on client'
And also 'more complicated'
 
user3010322
That pretty much nails it on the head.
 
user3010322
Everything else beyond that is basically the same.
 
user3010322
Oh, also
 
user3010322
State Management
 
user3010322
5:48 PM
If each client is its own server, it's responsible for managing state
 
user3010322
If there's no central server, you essentially have to trust "the next average joe" that they're giving you want you want when you ask for it.
 
user3010322
Server <-> Client means server can validate state and is non-manipulatable by clients.
 
user3010322
At least, unless client hands you bogus data.
 
user3010322
But then it's your fault as the server for not catching and dealing with said bogus data.
 
You need external verification for either architecture
 
user3010322
5:50 PM
That's about all I can think of for differences between the two.
 
user3010322
@CatPlusPlus The idea with a central server that people connect into, though, is that inherently the machine's state isn't compromised because clients and interested parties don't (or shouldn't) have access to the machine to do the compromising.
 
That's tangentially true, maybe
But trusting a peer vs trusting the server isn't very different
 
user1804599
I’ll start with a BST.
 
@rightfold balanced?
 
user1804599
No.
 
user3010322
5:55 PM
Binary
 
user3010322
Yeah, I was right!!
 
user1804599
Just simplest possible thing.
 
Non-balanced binary search trees are pretty much useless.
 
user3010322
^ I can attest to this.
 
user3010322
Because I wrote one. :3c
 
user3010322
5:56 PM
The code was pretty shitty too.
 
user3010322
I should post it here, so everyone can vomit.
 
user3010322
I think it was one of the first datastructures I had written.
 
6:09 PM
not sure what I make of 'unless' being in languages. Nothing but syntactic sugar sure, but it certainly does make things read nicer... I think...
 
@MartinJames myjobistofucklistboxes@gmail.com, glad to be helpful :)
 
@ThePhD is this for your snake game? clients can help validate what other clients are doing. They too know the constraints the other clients should be under, so can validate that the transition from one state to another is actually possible.
 
user3010322
@thecoshman Not for my snake game, just talking about clients and servers in general.
 
user3010322
This does apply to thingies like games though, yes.
 
6:31 PM
I ordered two books on amazon.
 
user1804599
I didn’t order two books on amazon.
 
user3010322
@FredOverflow Looks like the Joel on Software one could be a lot of fun.
 
user1804599
lol
 
user1804599
They use Twitter in some church services in the Netherlands.
 
user3010322
Praise the Lord! #Jesus #God #HolySpirit #Praise #Worship
 
6:44 PM
0
Q: Why does std::atomic_compare_exchange update the expected value?

bamboonWhy does std::atomic_compare_exchange and all its brothers and sisters update the passed expected value? I am wondering if the are any reasons besides the given simplicity in loops, e.g.: is there an intrinsic function which can do that in one operation to improve performance?

question drop!
 
user1804599
Cooool.
 
user1804599
They’re adding glowing stripes to bicycle paths.
 
@ThePhD I have the successor, "More Joel On Software", and it is a great read.
 
user1804599
I’m so bored.
 
read a book
 
user1804599
6:53 PM
I want to write something in F#.
 
So what's stopping you?
 
user1804599
Lack of inspiration.
 
Xeo
write a Snake
 
user3010322
Hey, uh
 
user3010322
Is this even a possible thing I can do?
 
user3010322
6:56 PM
Wait, I can just
 
user3010322
test on coliru!
 
Ell
7:09 PM
@rightfold write a variadic max_sizeof<class Args...>
 
user3010322
@Ell std::aligned_union<Args...>
 
Ell
cheers :)
@ThePhD woah
 
user1804599
@Ell That’s fucking easy. :v
 
Ell
@rightfold so? :P
 
user3010322
@Xeo You can't use default arguments on the parameters of a templated function to know its type, can you?
 
user1804599
7:12 PM
I’m going to implement RTSP in F#.
 
Ell
teaching me how it works won't be as easy :P
 
user1804599
@Ell sec.
 
@ThePhD boost::variant :)
 
user3010322
^ That too.
 
Ell
@StackedCrooked boost variant isn't variadic >.<
 
7:16 PM
@Ell it's super easy
 
Ell
@StackedCrooked I just can't get started :S
I know most things have to be recursive wrt variadic templates, right?
 
max(head, tail..) = max(head, max(tail...))
 
user3010322
template <typename... Tn>
using sexy_variant = boost::variant<Tn...>;
 
user3010322
^ Problem = solved ?
 
Ell
7:20 PM
what does this do? max(sizeof(Args)...);
My immediate thought would be the size of the parameter pack
but the ... expands it or something?
 
user3010322
sizeof...( Args ) is the size of the parameter pack
 
user3010322
sizeof( Args ) ... is an expansion
 
user1804599
@Ell max(sizeof(Arg1), sizeof(Arg2), sizeof(Arg3), et cetera).
 
user3010322
^ What rightfold said.
 
Ell
ahh right okay cool
 
user1804599
7:22 PM
Stop talking about listboxes.
 
Pesky question askers.
 
user3010322
Wait.
 
user3010322
Is this the listbox person from a while ago?
 
user3010322
The one I was sleeping for?
 
user1804599
Stop raping spacing around question marks and parentheses.
 
7:23 PM
2 messages moved to bin
No questions
get out
 
Didn't see it's no questions, sorry.
 
user3010322
I don't even understand his question. If his work is finishing instantly, set the progress bar to the current progress and then dump the text in the listbox. Why simulate waiting? Who wants to wait?
 
noobs
 
user1804599
@user3024598 Eh, we told you about two hours ago.
 
user3010322
This makes me a bit sad.
 
user3010322
^ I can't use default arguments to parameters as a means of deducting template arguments.
 
user1804599
Of course you can’t.
 
user1804599
Create an overload.
 
user3010322
default parameters are compile-time constants?
 
user3010322
I figured it might be able to back-engineer
 
user3010322
7:30 PM
Maybe not. =[
 
@rightfold Yea, i'm sorry. How dumb of me to ask questions.
 
hmm... any one familiar with liquid engine...
 
starting to feel I am trying to push my luck with it a bit too far :S
 
user3010322
@rightfold Hm.
 
user1804599
7:32 PM
@thecoshman the template engine?
 
@rightfold the very same
 
user1804599
I’ve used it a lot.
 
user1804599
What’s going wrong?
 
I have a list of post. They have a boolean in the meta data. I want to display a list of the the post titles, comma separated, where that boolean is true. but the last one, I don't want a comma after it, I want a full stop.
 
Xeo
@ThePhD uh, what?
 
user3010322
7:34 PM
5 mins ago, by ThePhD
http://coliru.stacked-crooked.com/a/25faff53561de324
 
user3010322
I was being silly.
 
user1804599
@thecoshman I’d filter in the controller or use a helper function.
 
user1804599
(Assuming MVC here.)
 
{% for post in site.posts %}
{% if post.my_option %}
{{ post.title}}{% if forloop.last %}.{% else %},{% endif %}
{% endif %}
{% endfor %}
that's roughly what I have so far...
@rightfold how I do that?
 
user1804599
That won’t work because the last might have my_option == false. :P
 
7:37 PM
@rightfold I know, hence problems :S
any suggestions?
I've tried shouting at it, didn't get work though.
can I make some sort of custom collection? and do it in two passes?
 
user1804599
Or do this:
 
user1804599
class Site
    def posts_with_my_option_true
        posts.select &:my_option
    end
end
 
user1804599
Then {% for post in site.posts_with_my_option_true %} .
 
o_0
 
user1804599
If site is of type Site, of course.
 
7:41 PM
well erm... site.categories.ksp is where I am drawing posts from...
so erm...
 
user1804599
SSCCE. :v
 
well, what I first gave you was, just that I am using a category, not just all posts
where would I put this 'class'
 
user1804599
That wasn’t an SSCCE. (What is site? How do you render the template?)
 
site.categories.myCatagory is a standard thing :S
I am using jekyll... if that matters
 
user1804599
@thecoshman Liquid is just a template engine. It doesn’t have those things.
 
user1804599
7:46 PM
@thecoshman Ah.
 
gtihub pages, free hosting FTW
 
user1804599
Not sure if you can do it in Liquid without custom Ruby code.
 
ah, so that Class would have to be a ruby class
 
user1804599
{% for post in site.posts %}{% if post.my_option %}{{ post.title }}{% unless forloop.last %}, {% else %}{% endif %}{% endfor %}.
 
@ThePhD It works with SFINAE.
 
user1804599
7:49 PM
@thecoshman The above should do the job, I think. Note the lack of whitespace except after the comma.
 
user3010322
@Rapptz Uh. How so?
 
should have a Void_ template parameter
 
@rightfold IIRC tried that logic, and it has problems when the last post is 'my_option: false', as the one before (with 'my_option: true') will add a comma, even though it shouldn't
 
user1804599
Oh, right.
 
user1804599
@thecoshman gimme a second.
 
7:52 PM
hmm... I could use liquid to generate the list... and CSS to put the commas in...
bit of a hack... but it would work, and the CSS would just be making the list that bit easier to read...
 
user1804599
{% assign had_first = false %}
{% for post in site.posts %}
    {% if post.my_option %}
        {% if had_first %}, {% endif %}
        {% assign had_first = true %}
        {{ post.title }}
    {% endif %}
{% endfor %}.
 
user1804599
Remove whitespace.
 
erm... wouldn't that put a comma for all but the first where 'my_option'?
 
user1804599
Yes.
 
user1804599
You want that.
 
7:55 PM
I want it after all but the last one
 
user1804599
Same thing. :v
 
user1804599
a, b, c and a, b, c are equal strings.
 
@rightfold this will do 'a b, c,.'
 
user1804599
It won’t.
 
user1804599
The comma is before the title, not after it.
 
7:57 PM
oh yes...
 
user1804599
Iteration 1: a
Iteration 2: , b
Iteration 3: , c
After loop: .
Result: a, b, c.
 
ah yes
I'll give it a go then
 
user1804599
I’m not sure whether you can use true and false as literals. If they don’t work, use 0 and 1 and explicitly check with == 1 in the condition.
 
I think true and false work
 

« first day (1135 days earlier)      last day (3812 days later) »