« first day (1096 days earlier)      last day (4078 days later) » 

16:00
Anyone know how to create Bartek's list in lisp?
@GamesBrainiac Bartek's litht?
2
@GamesBrainiac another list?
Xeo
Xeo
@MartinJames lol
0
Q: C++ "Floating Point Enum"

statueuphemismI am looking for a solution using the C++03 standard (I am constrained to using this version of the standard for several years yet). Solutions for C++11 are also welcome, but will not be "accepted" as the answer to this question. What is a simple, concise way that I can represent a set of relate...

^^ sounds like a great idea. :)
it is!
16:09
A floating point enum sounds like a float[] :/
in a namespace
It sounds more like a non-float, as in sinker to me
I +1'ed the question anyway for its novelty.
Honestly, I don't understand why he doesn't use constants in a namespace. You achieve the same thing :v
(Unless I'm missing something ;_;)
@MohammadAliBaydoun They're not really the same w.r.t. the type system.
you can't say "The input to this function must be one of the constants in this namespace"
3
Q: Boost Spirit Qi - Duplicate last letter with stream-based parsing

kloffyThis may be very obvious, but why does the stream-based parsing in boost duplicate the last letter? I must be doing something wrong: #include <iostream> #include <sstream> #include <boost/spirit/include/qi.hpp> namespace qi = boost::spirit::qi; int main() { std::string input = "hello"; ...

^ looks like the second library bug in a day's time, to me (the other one being this one)
16:16
@DeadMG Fair enough :/
We should all buy lottery tickets today
Fucking cold
Hey guys, Can anyone help me with this ?

http://stackoverflow.com/questions/19408153/rpc-linux-server-and-windows-client
i would really apreciate it
user1804599
Nope.
@victory sure, have a -1
16:20
inb4 puppy bin
@victory Sadly, we don't. This is a very poor question, and spamming the chat room(s?) is adding insult to injury...
@sehe Actually i didnt spam chat rooms. my question is about C++ and I came here for it. Is it againt the rules to ask for help here ?
Our government is so hilariously incompetent
They were having some live debate on TV and using Skype, but didn't cover the username, so people started calling
user1804599
s/Our/Every/
16:22
And it covered the screen :laffo:
@victory Yes. We have a site for questions. It might be common sense that this implies that chat is likely for other purposes. Also:
user1804599
Xeo
Xeo
@CatPlusPlus Ow
Belgium is the new Belgium
16:22
We should probably remove the faq tag. It might lead people to wrong impressions
user1804599
@CatPlusPlus auto belgium = new Belgium;
room topic changed to Lounge<C++>: Wales is the new Belgium. [c++] [c++11] [c++1y] [no-questions]
var Belgium = new Belgium
@sehe it should be
@sehe a chat room about C++ that none help the other and not allowed to ask questions. Interesting...
16:23
std::function<void()> belgium = [&belgium]() { belgium(); };
Help I don't know what chatrooms are for
@victory It's just protecting against fillth. Like... well you know what I mean
Of course we discuss c++. And Haskell. And F#. And cool stuff.
But we don't like help vampires :/ There's a site for that.
Careful -- claiming to be the New Belgium probably infringes these guys' trademark.
4
@JerryCoffin Well, I say let them sue Wales.
Damn. I think I broke my headphones.
I love those age verification forms
16:26
blargh, casablanca's/MS' CPP REST SDK's http_client causes a buffer overrun in release mode, whyyy ._.
You have to be a complete idiot to not know how they work
@R.MartinhoFernandes What'd you do
@CatPlusPlus They're not age verification forms. They're complete-idiot-filters disguised as age verification forms.
@R.MartinhoFernandes I say "Let them eat cake", but people seem to think I'm arrogant (and transgender) when I do it.
@CatPlusPlus Sorta tossed them down to the floor below.
"Sorta"?
16:28
I was trying to prevent them from falling down to this floor.
I just got new ones.
Good job!
I should get new ones soon
Current ones start breaking up sometimes
~ My little brother has a way with hardware ~
Also I should get a better mic
Being clumsy as fuck, I managed to drop them and then when trying to prevent them from falling I hit them and they fell to the floor below (I work right next to the rails that look over the mechanics people).
16:29
Because I use it so much
Gotta talk to the electronics guys tomorrow to see if they can salvage them :S
I sorta feel like can-you-fix-my-computer muggles, but... they're my best shot.
And this is now my clumsier-than-thou story.
@R.MartinhoFernandes Sounds like you succeeded at that anyway.
If it makes you feel any better, I fell off my chair a couple of days ago after dropping my mouse off the table.
@R.MartinhoFernandes Time to buy new ones.
@JerryCoffin Yeah. Though unlike Apollo 13 which was classified a "successful failure", this is more like a "failed success".
Xeo
Xeo
16:33
@R.MartinhoFernandes /applause
Xeo
Xeo
I have a knack for doing similar things too, though.
I should go home soon
Building kernels is dangerously interesting
I just had a thought of staying here overnight
I mean, it feels like coding spree at home
16:37
Hmm I don't think I'll finish this before the bakery closes. Time to go grab some last minute cake. See ya.
seeeya
git clone Y U NO faster
@R.MartinhoFernandes Later
Xeo
Xeo
@R.MartinhoFernandes most bakeries I know close at 6pm :(
Woah
The Berlin C++ user group invited me to do a talk about the rule of zero :s
@BartekBanachewicz Can has moar CPU?
Xeo
Xeo
16:39
@R.MartinhoFernandes Oho
I can already see you not being on the stage.
@JerryCoffin I think it's more about bandwidth of Google's servers
@Xeo Aw man, I really want to do it, but yeah.
now I am not sure which are more sucky - youtube or google dev zone
@R.MartinhoFernandes doooo eeeet
do you want me to come there and cheer? :D
Anyway, cake.
That's lovely ;-;
Fuck this Rule of 5, Rule of 0 makes maintaining code less of a pain.
16:43
@R.MartinhoFernandes Nice
@BartekBanachewicz Maybe about the bandwidth they're willing to give you, but I'm betting their servers have more bandwidth than anything you have to connect to them...
@R.MartinhoFernandes 'If you go to Berlin, you end up round, like a zero'.
user1804599
Time to install LaTeX.
@JerryCoffin I think we have two separate fibers hooked up here
user1804599
16:46
2.2GB vOv
how do I debug a buffer overrun in release mode :/
@not-rightfold yeah that sucks balls
@melak47 stop writing UB code
user1804599
30 minutes remaining. ;_;
@BartekBanachewicz it's not my code :(
@not-rightfold 2.2GB for latex? wut?
Cloning into 'msm'...
remote: Sending approximately 850.89 MiB ...
uh
user1804599
16:47
@melak47 probably with a shitload of libraries.
@melak47 yeah, that's standard size of all packages
@BartekBanachewicz miktex is only 150 MB :D
wow @ vimeo comments compared to YT comments
@BartekBanachewicz But does your machine have a 10 GbE adapter or two?
@JerryCoffin A gigabit connection can handle ~120 MB/s, and I am far from that :v
16:49
@BartekBanachewicz Do another neat trick in haskell, and lets see if I can come up with a python alternative
@EtiennedeMartel I'm sorry to hear that.
Its kinda fun.
@EtiennedeMartel There isn't a "non-Polish one"...
but thanks ;)
@LightnessRacesinOrbit I see you've gained some rep today.
How ya been?
@GamesBrainiac fucking 20 of it
@GamesBrainiac hungover as hell
16:51
@LightnessRacesinOrbit too much drinking?
@GamesBrainiac zipWith (,) ['a'..'z'] [1..]
@BartekBanachewicz wat the hell does that do?
@GamesBrainiac (,) is the same as \x y -> (x,y)
output please?
@BartekBanachewicz I don't doubt it, but I'd guess most of Google's servers are using 10 GbE nowadays.
16:52
well that's actually an easy one if your xrange is lazy
@GamesBrainiac [('a',1),('b',2),('c',3),('d',4),('e',5),('f',6),('g',7),('h',8),('i',9),('j',1‌​0),('k',11),('l',12),('m',13),('n',14),('o',15),('p',16),('q',17),('r',18),('s',1‌​9),('t',20),('u',21),('v',22),('w',23),('x',24),('y',25),('z',26)]
@BartekBanachewicz thats too easy
@JerryCoffin yep.
@GamesBrainiac You?
@GamesBrainiac is there a generic range function in python?
because xrange is terribly sucky
user1804599
16:53
@BartekBanachewicz Or just zip ['a'..'z'] [1..]. :v
@LightnessRacesinOrbit Just had a big day today. Had to go to visit a lot of family.
@not-rightfold oh
Xeo
Xeo
@BartekBanachewicz zip = zipWith (,)
that makes sense
@BartekBanachewicz zip is builtin function in Python.
Ooops, "Fuck it" was from another message I was writing.
16:55
okey okey too easy
fuck bus in 3 minutes
bb
user1804599
Here I have a nice trick.
Fuck it, I'm saying yes.
3
Xeo
Xeo
Ohoo
user1804599
f :: Int -> Int
f = whatever

main = print $ f "Hello, world!"
Xeo
Xeo
16:56
When is it gonna be?
Last meeting was yesterday, so at least one month from now.
I hope it's obvious that we demand videos
I'm bad at words but I'm sick so w/e
@GamesBrainiac Sorry to hear that
@LightnessRacesinOrbit Nah, it wasnt so bad. My family is quite bearable :P
can anyone try if this works in their VS 2013 RC with the version of casablanca /rest sdk that ships with it?
#include <http_client.h>
int main() {
    web::http::client::http_client client{ U("http://stackoverflow.com") };
}
17:01
web::http::client::http_client? Really?
works in debug, buffer overruns in release for me :/
why not web::http::client::web_http_client
@melak47 What is U()?
import string
print zip(xrange(1, len(string.ascii_letters)), string.ascii_lowercase)
Not the best way to do it, I'm sure
@R.MartinhoFernandes some define that makes it L"blablabla" on windows, just "blablabla" on linux
Xeo
Xeo
17:03
@GamesBrainiac Ugh, upgrade to Python 3 already
I've tried giving it a preconstructed uri instead of a string, but it doesn't help
@Xeo is it better with python 3?
let me try out
Xeo
Xeo
Range stuff was hugely improved in Python 3, IIRC
@Xeo gotta check it out then.
Python 2 sucks.
Xeo
Xeo
17:04
Also, Unicode etc
Python 2 is good enough to give haskell a run for its money :P
#include <http_client.h>
int main() {
    web::http::client::http_client client{ web::http::uri{ L"http://www.stackoverflow.com" } };
}
^fails just the same :(
Should be web::http::uri::http_uri
17:07
web::http::uri::web_http_uri
@Xeo How does python 3 change anything?
You can use characters in ranges?
>>> [var for var in enumerate(string.ascii_lowercase, start=1)]
[(1, 'a'), (2, 'b'), (3, 'c'), (4, 'd'), (5, 'e'), (6, 'f'), (7, 'g'), (8, 'h'), (9, 'i'), (10, 'j'), (11, 'k'), (12, 'l'), (13, 'm'), (14, 'n'), (15, 'o'), (16, 'p'), (17, 'q'), (18, 'r'), (19, 's'), (20, 't'), (21, 'u'), (22, 'v'), (23, 'w'), (24, 'x'), (25, 'y'), (26, 'z')]
-1
Q: program.exe has stopped working

user2887265The program is supposed to sort the data as the user inputs it. Right now the program gives me two sorted answers when I run it before saying that bisort.exe has stopped working. I think there is something going on in my while loop in BuildList but I'm not sure where exactly I am going wrong. Any...

^ enumerate is awesome. Although trying to do this without the string class
how the hell do you ship a version of a library specifically altered to work with vs2013 that doesn't work in release mode >:(
> (mid -> prev) -> next = mid;
Oh God why.
17:13
That's... sorta normal.
Xeo
Xeo
@GamesBrainiac enumerate = zip [1..] :D
@Xeo we already have it defined :P
Xeo
Xeo
Haskell doesn't need it predefined, zip [1..] is plenty short
Not lazy enough :P
muahahahahha
Xeo
Xeo
In fact, it's shorter than enumerate
17:15
yea, but enumerate is a lot more readable.
Meh, it's sorta unclear.
An enumeration is a collection of items that is a complete, ordered listing of all of the items in that collection. The term is commonly used in mathematics and theoretical computer science to refer to a listing of all of the elements of a set. In statistics the term categorical variable is used rather than enumeration. The precise requirements for an enumeration (for example, whether the set must be finite, or whether the list is allowed to contain repetitions) depend on the branch of mathematics and the context in which one is working. Some sets can be enumerated by means of a natural ...
user1804599
PHP ftw.
the word is mathematically defined :D
@not-rightfold screew you
@GamesBrainiac And where does it mention tagging with the indices?
17:16
@R.MartinhoFernandes taggin with the what?
user1804599
@GamesBrainiac [var for var in expr] lolwut
user1804599
Just do expr. :v
@GamesBrainiac The word is mathematically defined, but not defined to be what it is in Python.
Xeo
Xeo
@not-rightfold Rather, list(expr)
@R.MartinhoFernandes [1..] could mean anything, but enumerate is pretty clear its created something ordered.
Xeo
Xeo
17:18
Since the [] form of generators produces a list
@GamesBrainiac It isn't clear that it pairs elements with indices.
@not-rightfold it gives you a generator.
You don't have to call enumerate to get ordered lists in Python.
@R.MartinhoFernandes thats true though.
@R.MartinhoFernandes yea, you could use a tuple comprehension :P
What?
@GamesBrainiac What?
17:20
ma bad
Or you could just iterate through the list normally.
It is ordered already.
i just wanna get rid of the string class
so that i can do this without imports
enumerate is about tagging with the indices, not about the order.
hmm
best i got is this
[(chr(i+ord('a')), i+1) for i in range(26)]
but that SUCKS
@Xeo any way this improves in python 3?
@R.MartinhoFernandes you're right.
Pretend I'm still awesome :P
@GamesBrainiac chr, ord? Reminds me of Pascal :)
17:22
@FredOverflow I know, it looks terrible.
@R.MartinhoFernandes That should be easy. Just say nothing :)
Who here thinks they are faster in scripting languages?
@R.MartinhoFernandes What is the rule of zero anyways?
Is it possible to ask for a suggestion in this chat room ?
17:26
@GamesBrainiac Don't use unmanaged resources as data members, then you don't need to write special copy/move control functions.
user1804599
@FredOverflow And dtors, usually.
Xeo
Xeo
@GamesBrainiac That'd be implying you ever were.
I include dtors in those.
@Xeo :( That made me sad
Xeo
Xeo
They're collectively called "special members".
17:27
"retarded genitals"
Xeo
Xeo
We can now say "special as in Special Olympics"
@Pawnguy7 I am faster in some scripting languages than some people who don't know them at all.
than?
@Pawnguy7 What? :-)
Guys I am looking for a suggestion with my project. can someone help me
Xeo
Xeo
17:28
@Pawnguy7 Define 'faster'.
@victory Should've been plenty obvious that we don't want to, considering that your request has been ignored.
@not-rightfold I am drinking milkshake right now, and it reminds me of that stuff about a language drinking a milkshake or something... how did it go?
@Xeo get things done, I suppose. I have seen it said, they shorten the time it takes to do things, but I don't really know why.
@Xeo still hopping someone could care to help
@victory You should write a Tetris clone. That's always fun.
17:30
Finally, got a RAM upgrade at work.
Xeo
Xeo
@Pawnguy7 I'm more productive with languages that don't get in my way, yes. That doesn't necessitate a scripting language, though.
@FredOverflow oh I coded an Evil tetris program about 6 years ago. You can never comeplete 1 line. I made AI always gives you the worst block.
Xeo
Xeo
@EtiennedeMartel From 1 to 2?
@Xeo From 8 to 16.
@Xeo What, in your opinion, would be the optimal choice, then?
17:31
@R.MartinhoFernandes Everything is gonna be alright.
@EtiennedeMartel Next you'll get 4 screens. Two for coding and two for debugging.
Xeo
Xeo
@Pawnguy7 A language that you know and that doesn't get in your way. :P
@GamesBrainiac I'm gonna need a better GPU for that
@EtiennedeMartel You catch on fast ;)
hello mortals
17:32
@Xeo By getting in the way, do you mean things like C++'s build system?
Xeo
Xeo
Tooling might also count into that
libraries obviously too
I see.
Still with that "scripting language" nonsense
user1804599
17:34
in Java Sucks, May 1 at 21:08, by FredOverflow
Or should I simply tell my students to stay at home and not come to the Scala seminar, because Go will drink its milkshake?
lol I'm the only one in java sucks
@FredOverflow Does that milkshake bring all the boys to the yard?
Xeo
Xeo
> i also tried to mentally slow it down.. penis got stuck in the ceiling fan
> That's not mentally.
lol
@GamesBrainiac Nonsense. There are currently 3 users in Java Sucks.
17:37
@JerryCoffin lol
You're lurking.
@GamesBrainiac 4 now ;0
Xeo
Xeo
@StackedCrooked This version is trippy. The farther part seems to be moving towards you, and the closer one seems to move away. For me at least.
@Xeo you are a fast reader
@StackedCrooked he's a confessed bookworm
17:39
@Xeo For me the closer one seems to alternate occasionally.
@Xeo Likewise.
Xeo
Xeo
@StackedCrooked Yea, that too
@Pawnguy7 Related nonsense.
@JerryCoffin thats a joke right?
c++ and scripting? please.
user1804599
Scripting? Please.
17:45
It's an accurate article
@LightnessRacesinOrbit et tu?
Except where it loosely implies that all C++11 code is now tight and easy-to-read like PHP or something. In fact, with all this universal reference bullshit it's often harder to know what's really going on.
@Xeo old, but have a star because it is cool
@JerryCoffin getline isn't C++11, is it?
@LightnessRacesinOrbit Why do you hate universal references so much?
17:53
@Pawnguy7 The only thing he uses that's new in C++11 is the range-based for loop.
because he doesn't get them
I need to learn haskell and relearn C++
no.
learn C++ instead
Hmm.
Anything to get me started on the latest features only?
just read whole ISO
17:56
@GamesBrainiac Embeddable C++ implementations have existed for a while
@GamesBrainiac Tour of C++
You can stop repeating that "scripting language" nonsense kthx
> compile time with -O3 is roughly the same as Python VM startup and has to be done only once
Also complete bullshit
@CatPlusPlus yeah, compile time vs startup time
compile time can be anywhere from nearly instantly to infinity.
17:58
There's few things that are slower than C++ compilation
Grass growing is one
Scala Compilation
it is?
since when?
Probably
@DeadMG you're a clang user
We need to measure it
@GamesBrainiac Nah
17:59
@GamesBrainiac Nah, I use both Clang and VS.
C++ compilation in general is slower than shit passing through the intestine though
VC++ is faster than G++

« first day (1096 days earlier)      last day (4078 days later) »