« first day (1562 days earlier)      last day (3378 days later) » 

12:02 AM
@milleniumbug (late spot); I don't know why you'd have assumed that though ('coz...).
 
user1804599
> my @lines = "Hello", "Fucking", "World!";
Hello Fucking World!
> sink { 1..* Z @lines ==> map { "$^i: $^l" } ==> map &say };
1: Hello
2: Fucking
3: World!
 
user1804599
Beautifru!
 
Is Z like zip or something?
 
user1804599
Yeah.
 
user1804599
You can create custom infix operators.
 
12:08 AM
Could it be more ugly
 
user1804599
Z is a meta operator; it can take other operators as argument (e.g. cmp):
 
user1804599
> (1, 2, 3) Zcmp (3, 2, 1)
Less Same More
 
The output is nice
So. Would 500-600 lines be too much for an answer?
 
I guess 1..* is equivalent to [1..] in haskell. ==> is like fmap or something that takes an objects on the left and maps the function on the right to get another object and it's left associative
 
user1804599
1..* returns a range from 1 to infinity inclusive. ==> is much like flip ($) though not exactly.
 
12:11 AM
But sink is a mistery
 
user1804599
sub sink(&f) {
    for &f {
        # ignore all elements
    }
}
 
user1804599
map is lazy, sink just loops and discards everything.
 
user1804599
Which is useful for side-effecting maps.
 
user1804599
You can also define sub each(&f, @xs) { for @xs { &f($_) } }, of course. Which I like more.
 
@sehe It's that I thought OP just posted what he had between curly braces of main. (happens way too often)
 
user1804599
12:14 AM
Although sink is not strictly needed when you don't use the result.
 
On the other hand, he really should have posted a SSCCE.
 
user1804599
It's implicit when an expression is used as a statement in non-return position.
 
@R.MartinhoFernandes Hello :)
 
@R.MartinhoFernandes Hello.
How many subway stations did you miss today?
 
12:23 AM
None.
 
None? I'd go see a doctor soon :)
 
I haven't used the trains since before midnight.
 
I was going to say ...
 
Fair point. Perhaps you can forget your bycicle (that's harmless as long as stay inside the house)
 
it's a bit hard to lose anything in 1 hour & 25 mins
 
12:26 AM
Now that you mention it.
I just entered the train in the wrong direction.
 
You mean. As in. Right now :)
 
@chmod711telkitty So... wanna add something again :)
@R.MartinhoFernandes Sorry. I hope it's not very inconvenient in some way
 
Oo, sehe, aren't you so touched? Robot just jumped on the wrong train for you!
 
That's just. That phrase.
It's so.
I dunno.
 
12:35 AM
Oh.. the SQL developer had not drunk all the Directors. I'm recked.
 
> "I'd ♫ catch a grenade ♬ train for you ♩"
> You can also complain how she took away your hard-earned personal belongings such as iPod, X-Box, cell phone, etc. without consent - she had no right over them.
wut
 
user1804599
> "I'd ♫ jump in front of a train ♬ grenade for you ♩"
 
> Unfortunately, it is unlikely that you will have access to any of their assets, but not to worry, us tax-payers will be happy to feed your sense of entitlement
@рытфолд Yeah. I was fighting that sick association off right there
 
user1804599
Oh Telshitty.
 
@EtiennedeMartel I don't know we just do.. And I wasn't aware that we shout all the time. That's probably not true.
@sehe link link link link link link link link link link link link link link link link link link link link link link link link link link link link link link link link link link link link link link link link link link link link link link link link link link link link link link link link link link link link
 
12:49 AM
how did you so close to a grenade? I am getting all so suspicious ...
so, have you visited yemen in the past 12 months?
 
@Jefffrey Follow the message he responded to
Click on the link, and then Ctrl+F
 
good idea good idea good idea good idea good idea good idea
 
My friend deferred lunch, she said she's unwell so maybe we will meet tomorrow instead
 
It's worrisome when friends deter lunch
Night all :)
 
1:02 AM
My C++ program takes too long to build, anybody have a favorite math textbook? I'm getting bored of editing wikipedia to match my political views.
 
@LightnessRacesinOrbit [citation-needed]
 
> editing wikipedia to match my political views.
kek
 
@chmod711telkitty Female? Give it a week.
 
Let's get serious. This is horrible, non portable code, and it's not possible to tell without context, what "the siginficance" of those operations should be. The code seems to make assumptions about endianess and sizeof(unsigned long), that at least I am not able to decipher in purpose. — πάντα ῥεῖ 18 secs ago
A concise answer on this question anyone?
0
Q: Converting an byte array into 2 unsigned long in C and Delphi

MikeThe following C code: typedef unsigned char byte; byte temp[8] = {...}; unsigned long iONE = 0; unsigned long iTWO = 0; memcpy(((byte *)&iONE)+sizeof(unsigned long)-4, temp, 4); memcpy(((byte *)&iTWO)+sizeof(unsigned long)-4, temp+4, 4); What is the significance of +sizeof(unsigned long)-4?...

 
A: This question cannot be answered due to lack of context regarding the code
Moving on swiftly
 
user1804599
1:06 AM
I think I can make TODO into a parameterless function.
 
user1804599
Instead of a language construct.
 
@TonyTheLion Voted to be closed as too broad
 
> This question is appears to be off-topic because your code is bad and you should feel bad.
 
@Mysticial ☑ rekt ☐ not rekt
 
Yes, McDonalds is a form of child abuse. — DA01 Jan 6 '12 at 22:14
lol
 
1:08 AM
@TonyTheLion <3 <3 <3 <3 <3
 
user1804599
Fallthough in switch statements is so retarded.
 
Sneezing is so good.
 
1:15 AM
tony that wqs posted when i was still sober
 
@рытфолд No they're not.
 
= oldddddddddddddd
 
I feel like using the mutable keyword :(
I feel like a hack
 
user1804599
They definitely are.
 
user1804599
You can use goto instead.
 
1:16 AM
@R.MartinhoFernandes Nothing better than a good sneeze, especially if it comes from deep
 
user1804599
Fallthroughs are a feature you want pretty much never.
 
user1804599
And cause almost nothing but bugs when they're implicit.
 
I agree with rightfold
 
@рытфолд Wrong, I use them to implement checkpoint restore.
It's actually the only construct that makes sense for checkpoint restore.
 
1:18 AM
yesterday, by Xeo
Bullshit. Not all conversations! “@paulg: Many conversations on the Internet: Person 1: ∃x P(x) Person 2: -(∀x P(x))!”
 
Hi Team, anyone has experience with web.config transform
i have a quick question
 
no
 
@Osadellah were c++ programmers not web devs
(except Cat)
 
@LightnessRacesinOrbit It just is. I'm agreeing with the sealife. I must be really pissed now.
 
1:19 AM
@Osadellah Nope
 
Thank you all
for quick responses
 
lol
 
lol
 
it's the most active room , thats why i asked my ? here
 
@Osadellah Slow response: No.
 
1:20 AM
@mart
 
@Osadellah I wish people didn't use this logic, because it makes no sense
 
@Osadellah chances of c++ people knowing anything about the web is slim.
 
user1804599
@milleniumbug :D
 
What's web? Is that the thing that spiders make?
 
C++ people are the most intelligent people
end of the story
 
1:21 AM
when we get an actual networking api, maybe we'll get around to figuring out the web.
 
@Osadellah flattery won't get you very far ;)
 
@Osadellah It's the most active room because nobody in here chats about web shite.
 
@Blob Not necissarily. It just sometimes seems weird to do web programming in c++.
 
@Osadellah lol
 
@πάνταῥεῖ "sometimes" is kind of an understatement :)
 
user1804599
1:22 AM
YAYAYAYY
 
@πάνταῥεῖ not making web pages; stuff like requesting something from website and parsing the content without having to manually do everything with sockets
 
You must be insane to even contemplate web dev in C++
 
HAWAII
 
Thank you all
 
@Osadellah Many of the questions and answers on the SO c++ tag just seem to improve differently
 
1:23 AM
night
 
user1804599
let x = 42;
switch {
    case x in boolean => global.console.log("x is a Boolean");
    case x in number => global.console.log("s is a number");
    case true => global.console.log("x is neither a Boolean nor a number");
};
 
user1804599
IT WERKS
 
@Osadellah Try PHP room.
 
@MartinJames Thanks
 
@рытфолд y u no static typing
 
user1804599
1:24 AM
I'm too incompetent for that. vOv
 
Yes you are.
 
@Mysticial Of course it is. Sometimes you have to (like on an embedded device) ;)
 
user1804599
Now I should implement in patterns.
 
user1804599
So you can say match x { case _: boolean => …; case _: number => …; case _ => …; }.
 
@рытфолд A general question. What's your main motivation about creating this _kinda extended_ c++ language.
Do you have a user community for it already?
 
user1804599
1:31 AM
It's not related to C++ in any way.
 
@рытфолд As far I've seen, it at least borrows some constructs, but which programming language doesn't :P
 
user1804599
It's a JS alternative. Its slogan is "Fuck JavaScript."
 
user1804599
Because fuck JavaScript.
 
@рытфолд Totally agree JS sucks. Is it about a type safe alternative?
 
user1804599
Well, it certainly doesn't do implicit conversions as long as you don't use JS APIs that do.
 
user1804599
1:34 AM
if 42 { … } else { … } results in a type error instead of considering 42 true.
 
Well, that's one of the main reasons JS sucks, there's no consistent type conversion.
 
user1804599
I also want to be able to specify pre- and postconditions which are checked at runtime, which are most needed in a dynamically typed language.
 
I'm not able to find that home page link for your language development, I've got my eyes upon a few days ago. Mind to give me a link again?
I've seen some stuff (`cpp` section or so) I'd interpret as kind of embedded c++?
What's the language you use to implement the runtime framework?
 
user1804599
 
@πάνταῥεῖ It's the Puppy that writes the C++ replacement
 
user1804599
1:43 AM
@πάνταῥεῖ The runtime support library is written in JavaScript (ragu/runtime.js).
 
hi Team , it's me again
now i have a C++ question/issue i've been thinking about for a long time now
 
@Osadellah Couldn't sleep well?
 
@πάνταῥεῖ sleep is my good friend
it's about remote control app, something like logmein. the MOFO stopped the free service and i am thinking about developing a module for a use case i have
anyone worked on something similar?
 
they use their own technology
MOFO
 
1:48 AM
No
 
I am not sure if you guys use the service or not , but i was very pissed when they cancelled it after many years
 
What's MOFO? More Obviously Fucking OleProprietary Shit?
 
user1804599
# This is nice:
class A {
    method f(Int $x) is export { "A $x" }
}
import A;
say f(A.new, 42);
say A.new.f(42);
 
@рытфолд Well, though I'm not in the field, and for god's sake don't need to do any client stuff with JS, your work seems valuable. Just a heads up :)
@Osadellah Morpheus will just kick your ass off, at a long night drive with 240mph at the motorway. Take care of whom you'll call a friend :-P ...
 
user1804599
1:59 AM
lol
 
user1804599
dat mask
 
user1804599
I like the people in the train not giving a shit.
 
Looks a bit scary though :)
@userxigy We're not your frickin' debugging nannies! We're sharks with head mounted laser beams, ya know! — πάντα ῥεῖ 19 secs ago
^ Was that too harsh?
 
a little
 
@Borgleader What should I have left out? Nannies or the sharks? ;)
 
2:11 AM
nannies
i got a downvote on one of my first answers... i cringed
 
^ LOL I suspected so :-D
 
good thing though, my rep is divisible by 5 now
 
@Borgleader This could change quickly ...
 
2:35 AM
@TonyTheLion Mr. Lionman! Haven't seen you in a long while.
@Borgleader Also by 4 and 8 and 10.
And 2 and 1 and 10040.
 
@Nooble Hi "Eucalize it"! I'm still smirking ;-)
@Nooble What actually made the Koala's day? Finding a huge Eucalyptus plantage?
 
3:06 AM
@chmod711telkitty what's funny
 
3:21 AM
@Jefffrey What's that weird stuff actually? Choco, sugar shock pizza pieces?
 
I feel like Spaghetti bolognese, but I have plenty plum, red/white grapes, watermelons, honeydews, mangos, but no beef mince, paste or Spaghetti & I have bought a few pieces of really fresh salmon - it would be a waste if I don't have them soon ...
 
something about crispy nachos
I don't recall
 
I wanna danish pastry ...
 
Oh god, feminism reached my country.
Get off my fucking lawn you feminazi.
 
lol?
@Jefffrey how did they torture you?
 
3:24 AM
Article about our (Italy) first female space astronaut going to space. First comment is about the fact that we should respect all women and think more about the rapes and the fact that we objectify women instead of the woman in space.
Is it possible to not have some kind of a passion?
Like living the life without being passionate about something.
I don't get it.
 
3:43 AM
I'm getting hungry it seems. I already start considerations about what to have at lunch tomorrow:
1. [Königsberger Klopse](http://en.wikipedia.org/wiki/K%C3%B6nigsberger_Klopse)
or
2. [Cabbage roll's](http://en.wikipedia.org/wiki/Cabbage_roll)
I failed on this chat murkup again :P ...
 
my 6,000 years comment got deleted. lol. nothing like a bit of religious censorship.
 
@LightnessRacesinOrbit Which one in particular? On world building or such?
 
@LightnessRacesinOrbit That was so off topic and rude!
 
@πάνταῥεῖ earth sciences
@Jefffrey stfffu
Wow, you guys can't handle a bit of scientific debate, huh? Silently deleting my comment rather than arguing with it. Good job. Really scientific. Top kek. — Lightness Races in Orbit just now
/cc @рытфолд
 
3:51 AM
@LightnessRacesinOrbit Is earth sciences somehow driven by christian fundamentalists? :)
Intelligent designers LOL!
 
LOL!
@LightnessRacesinOrbit dont angry ... :) ... i think i done it... — DOZA DEMORE 25 secs ago
 
Those people sometimes seem to be even more stupid, than the islam fundamentalists we're meeting that a lot nowadays. And (as the other ones), they'll almost always manage to proove it.
 
Are you comparing a slightly ignorant SO user to an IS fighter?
If so, that makes you somewhat more ignorant than them, sir.
(got there eventually)
enjoy
 
That is terrible.
 
@LightnessRacesinOrbit That was overreacted, I agree. I just extrapolated (without reading the subject actually) ...
Sorry!
 
4:02 AM
@πάνταῥεῖ Don't apologise to me; apologise to those many thousands displaced by ISIS. You racist.
 
stfu
 
And exactly where we are.
ONO
 
I need to sleep anyway.
Bye ladies.
 
@LightnessRacesinOrbit I'm not a racist, you should know. And I'm certainly not saying anything pro IS. But also christian fundamentalists aren't better by no means (even if those didn't start to cut off heads or displace people so far. That's just a matter of time, if you let them go freely).
 
4:05 AM
@πάνταῥεῖ Sexist.
 
@LightnessRacesinOrbit Am I?
 
@πάνταῥεῖ Homoist.
 
@LightnessRacesinOrbit Am I?
 
@πάνταῥεῖ Amishist.
 
Nihilist
Anesthetist
 
I love Odo somehow, yes. Good spot ;)
 
Oh Jesus
I finally learned why my old Miller-Rabin was failing.
64-bit integer overflow.
It's embarrassing because it only took me 3 or 4 rewrites, a breakdown and 2-week hiatus to figure out
 
@LRO And I love that chick as well, she's hot (well, seems I'm sexist also :P)
@MohammadAliBaydoun "Oh Jesus" just fits well here :P ...
0
Q: Will Concepts replace SFINAE?

so61piConcepts likely to be in the C++ standard (C++17, or maybe C++20). So I wonder if this new feature can completely replace SFINAE, or it's just a small version of SFINAE with nice error reports and type checking. Are there any cases when SFINAE is the only choice instead of using Concepts?

^ Are the originally discussed concepts proposals still in discussion?
 
4:35 AM
Anybody have a favorite library that solves the traveling salesman problem? I literally got to find the minimal path between like 40 points in (x,y)
 
@Mikhail "literally" and "minimal"?
Wait 40 millenia
 
maybe boost::?
 
Point is, you can't find "the minimal" path quickly
There are good and fast approximations, but they're still approximations
 
Bah Humbug! I dare you to prove that the path I found wasn't minimal!
 
Boost indeed has a graph library
 
4:42 AM
I'm wondering if CGAL has one, but the doc is hard to read
Maybe Qt has one :-)
 
Indeed, there are several I was wondering if anybody had a favorite
For example the gnu scientific library is terrible despite relatively high google search rank
Also I think GSL supports quad floats
 
4:57 AM
@Mikhail For around 40 points you usually want to use a branch and bound algorithm.
 
Hmm. What general concept am I not understanding because I am not sure why the output of these two things are different:
#include <bitset>
#include <iostream>

int main() {
	double d = 7.0;
	std::bitset<sizeof(d) * 8> copied;
	std::bitset<sizeof(d) * 8> converted(d);

	memcpy(&copied, &d, sizeof(d));

	std::cout << copied << std::endl;
	std::cout << converted << std::endl;
}
 
@LeviMorrison lol memcpy
 
@πάνταῥεῖ Smoking a Eucalyptus plantage.
 
@milleniumbug A link is not sufficient. I've read the page and am asking for an explanation of what I'm not understanding.
 
5:00 AM
@jerry Lashes with a wet noodle, didn't know you are into that kind of stuff @_@ especially when a SE employee is involved. Are there any other dirty little secrets you would like us to know about?
 
@LeviMorrison There's no constructor taking double
 
Okay, fair.
But it's going to convert it to an integer probably.
 
@LeviMorrison First and foremost that std::bitset doesn't have a ctor that takes a double directly, so when you pass your double to it, it's being converted to some type for which it does have a ctor, then that value will be used to initialize the bitset. When you use memcpy you're just copying bits.
 
Even still, the actual bit layout of 7.0 and 7 are exactly the same.
 
@chmod711telkitty No. My dirty secrets are all big.
 
5:02 AM
How would you guys emulate named parameters?
Like if you had void f(bool, int, bool, bool, int, char) how would you deal with this?
 
@Rapptz By using Python.
 
@Nooble Ohh, don't do it at once, just portion it ;)
 
@LeviMorrison Are you sure?
 
:(
 
@Rapptz I wouldn't write such a thing in the first place (simple guideline: don't pass bools as parameters--certainly not more than one to a single function).
 
5:03 AM
@JerryCoffin Yeah mine too. There's an absolutely huge mess in my room.
 
@milleniumbug My system uses IEEE 754 doubles, and endianness doesn't matter because it's only one byte. Yes, I am sure.
 
@Rapptz This is why I would like having designated initializers in C++
 
@milleniumbug You and me both friend. You and me both.
@JerryCoffin I wouldn't either but shit happens I guess.
They're all "options" that modify the behaviour of the function (very slightly) but don't require changing the name or refactoring to a different function. I thought about concatenating the bools into an enum
 
@Rapptz Perhaps an enum, but if they modify what the function really does (even when the difference is only slight), perhaps just a number of separate functions.
 
I don't think splitting it off is a good idea
I'd have a matrix of functions for slightly different behaviours
prettyprint_with_nan_dump, prettyprint_dump, nan_dump, dump for just a matrix of 2 'settings'.
 
5:08 AM
@LeviMorrison And you're wrong.
 
@LeviMorrison What manner of CPU does it use to manage that feat? I've never heard of such hardware before (and can't quite imagine how it would implement things so an integer type would have the same bit layout as an IEEE double. On more normal hardware (e.g., x86) they're quite different. For example, on Coliru.
 
I actually came in here to see how big of douchebags you guys would be.
Verdict: nothing changed.
^^
 
@Rapptz That sounds a lot like it should be an operator<< plus a few manipulators.
 
@LeviMorrison I hope you're satisfied.
 
I'm not sure how this room stays as active as it is for how toxic it is.
I know it's a Lounge but…
 
5:21 AM
@LeviMorrison You'd be surprised!
 
@JerryCoffin How would that work?
 
@LeviMorrison You come in here and tell lies, then accuse us is being douchebags/toxic?
 
lol
I come here from time to time. Usually whenever you guys throw poop at us over in the PHP room.
 
22 mins ago, by Levi Morrison
@milleniumbug A link is not sufficient. I've read the page and am asking for an explanation of what I'm not understanding.
That's pretty douchebaggy to me
 
If I actually want something technical explained you guys are unhelpful, or mean, or just ignore it. So why do people come here?
 
5:24 AM
@Rapptz The syntax would be something like: dump_stream << with_nan << pretty_print << item_to_dump; The implementation is basically that each manipulator sets/clears a bit, and the operator<< determines how to dump the value based on those bits.
 
@milleniumbug And I don't think there's anything inappropriate in that linked message.
I basically said that I've read the manual and still don't get something.
But yes, I'm happy with the result because it's still the same trashy room.
At least it's consistent.
 
The rules got unpinned
 
@LeviMorrison You just stated that you're sure a double and long long use the same bit layout. I went to the trouble of writing a program that shows each, and provided a link to the code and the result, with no snark or sarcasm. What's supposedly nasty, douche-baggy, or anything else negative about that?
 
@JerryCoffin In this case I wasn't necessarily talking to you ^^
 
@LeviMorrison In three posts, you've referred to "you guys" and "the room". Both of those phrases seem to be targeted to everybody in this room, not restricted to anybody in particular.
@Rapptz Sample code to be found at: stackoverflow.com/a/799877/179910
 
5:35 AM
@JerryCoffin :S seems complicated
I don't even like the iostream interface much.
 
@Rapptz The complicated part stems almost entirely from litb deciding to use a facet. Just about everything that deals directly with facets ends up ugly.
 

« first day (1562 days earlier)      last day (3378 days later) »