« first day (1481 days earlier)      last day (3482 days later) » 

10:04 AM
nvm, it turns out after hours of debugging that I needed to install/update some drivers of my new laptop :/
 
user1804599
Starting SEO company would be fun.
 
user1804599
Just say a lot of bullshit and run an automated tool that spits out more random bullshit and charge a thousand bucks.
 
yeah, it would for you ... I can totally imagining you enjoying it
 
user1804599
@TonyTheLion That's a daemon!
 
10:05 AM
@rightføld Sounds about right
 
@rightføld It's 'fly-away hair'.
 
user1804599
No, it's red eyes.
 
@rightføld Oh - a late flight.
 
user1804599
dat pun
 
10:28 AM
first day at new job is cool so far
we're using Lua here
 
user1804599
void being incomplete is irrelevant. — rightføld 5 secs ago
 
user1804599
Vlad is a hero on socks.
 
Er, it's not irrelevant.
There is no operator<< and there can't be one because <that>.
 
user1804599
I can perfectly declare struct a; std::ostream& operator<<(std::ostream&, a const&);.
 
I don't see how that argues anything for your point.
Not being sufficient and being irrelevant are not at all the same thing.
 
10:39 AM
I think I see Robot's point
Vlad said why void doesn't have op<<, which is because it's an incomplete type
because the cause for something like that in other cases can be different, doesn't make the incomplete type thing be irrelevant
 
@orlp That's not at all the same code.
 
@R.MartinhoFernandes I mean at the core of it
but it might very well be disastrously wrong
 
Ok, it is part of it, then, I guess.
@Abyx It's generic.
enum Result<T, E> {
   Ok(T),
   Err(E)
}
Error-y functions return one of those; it's generic in both the result and the error.
 
sure... iterator of type 'T', so call the instance we get each time 'Tx' makes perfect sense...
 
try! simply propagates it (and at the same time acknowledges that you don't want to deal with the error here).
If you skip the try!, i.e. write f(g(h(x)) it won't compile.
 
10:49 AM
For those who didn't see it yet, would you mind taking a look at this 60 FPS 1080p screencap I've been trying to make and comment on the quality? s.orlp.me/league_game.html
 
oh yeah, nothing beats a function taking arguments for no reason.
 
@R.MartinhoFernandes can E be type-erased?
 
Xeo
@R.MartinhoFernandes So EitherT and try! is >>=, in a way?
 
Just put a type-erased E.
@Xeo Sorta, yeah.
@Abyx So it'd be: for x in y { match try!(f(try!(g(try!(h(x)))))) { Ok(r) => {}, Err(e) => { log.error(e) } }, I guess.
 
@R.MartinhoFernandes thanks
 
10:53 AM
Er, no, not with try!.
 
@R.MartinhoFernandes That looks horribly.
 
@Griwes Not my fault that someone wanted to call chain three functions that may fail.
 
It's a language's fail that you can't just try { f(g(h(x))); } catch () {} it
 
@R.MartinhoFernandes last I checked, you did have hands...
 
@Griwes I disagree
 
10:55 AM
1 hour ago, by orlp
@Abyx basically the entire language/library design is built around making explicit error handling pain and boilerplate-free
"explicit" is the idea.
 
@R.MartinhoFernandes welp it's the same with f()+g()+h()
 
@R.MartinhoFernandes It's horrible.
Rust is horrible.
 
@R.MartinhoFernandes do you mean making it 'plain'?
 
@Griwes That said, you can quite easily write that macro.
 
@Griwes just mix it with aluminium :)
 
10:56 AM
try! is not a language construct.
 
Honestly, Rust has the first fresh ideas in procedural programming language design in quite a while
 
@orlp nope
 
@orlp Yeah, like... move by default. Or... call a shallow copying function clone.
Yeah, "great" fresh ideas.
 
Borrow checking and lifetimes is revolutionary
 
And breaks semantics when you want to pass references to mutable atomics around.
 
10:58 AM
What.
 
That's what I gathered from a discussion with someone Rust-y.
You can only have a single mutable reference.
 
It's "Rustacean".
 
If you want to pass stuff around you use a Box
 
So how to pass mutable atomics around? Well, pass then non-mutably and have them mutate in their non-mutable safe functions. What.
 
Ugh, no.
Boxes are for boxing stuff.
 
10:59 AM
@Griwes inb4 but clone should be a deep copy.
 
@orlp Does that get around "a single mutable reference to an object"?
 
don't say a square is bad because it doesn't fit in a round hole
 
If it does, then it's broken anyway.
 
@R.MartinhoFernandes ¬_¬
 
it's no more broken than std::shared_ptr is
 
11:00 AM
@thecoshman That's exactly what I meant, so not really inb4.
 
@orlp No, that's Rc. Not boxes, not references.
 
@orlp C++ doesn't tell you it guarantees a single mutable reference!
 
Ell
Lol rustacean
Thats genius
 
@R.MartinhoFernandes ugh I'm so rusty
 
@Griwes Rust does, because it does.
 
11:01 AM
@R.MartinhoFernandes So; does Box get around that?
 
is Rust worth looking into?
 
@thecoshman definitely
 
aka nope :P
 
@orlp you missed a "not" at the end of your message
 
I think I'll try slip it on reading list somehwere :S
 
11:02 AM
@Griwes Ugh, forget what orlp said. Boxes have nothing to do with it.
 
I was mistaken with Box
 
@thecoshman Gee, why do you even ask, then?
 
@R.MartinhoFernandes Alright. So how do I pass multiple mutable references to an atomic type, to, say, multiple threads?
 
Arc, probably, but why would you.
 
@Griwes the important part of language isn't just what it allows you to do, it's also very crucial what it won't allow you
 
11:04 AM
@Griwes IOW, XY.
 
@R.MartinhoFernandes Because I want a counter that's updated in multiple threads?
 
Bah. MSVC 2013 even with CTP November 2013 does not like initialization of std::array<std::ptrdiff_t, 2> interruptHandles; member with interruptHandles {-1, -1}.
 
@Pattu Make sure you have enough memory. I parsed the 4.5 GiB in 9 seconds and the 45 GiB in under 11 minutes (see Updated answer with code). — sehe 11 secs ago
 
@VáclavZeman interruptHandles {{-1, -1}}
 
@sehe What disk can read 4.5 GiB in 9 seconds?
@Griwes Yeah.
 
11:05 AM
@VáclavZeman Good point. That's with warm cache. Will add a note.
 
@Griwes You clone it and share the ownership around.
 
@R.MartinhoFernandes That puts it in dynamic storage, right?
 
@R.MartinhoFernandes nah man, I probably will look into it at some stage. But that wasn't exactly the most compelling argument.
 
@VáclavZeman Notes added
 
Don't get me wrong, I don't enough about Rust yet to say whether the language itself is good.
 
11:08 AM
@Griwes That's the simplest implementation of Arc.
 
But even if how everything is implemented doesn't really work together and it fails, the ideas of rust are new, refreshing and powerful.
 
@sehe OK.
 
okay getting the kids
Cheers
 
@R.MartinhoFernandes But I don't want to make another allocation! It's already allocated and the object outlives the threads the atomic is passed into!
 
Then either you get to actually tackling your real problem instead of the one you decided to ask about and use a different primitive, or if you're in the 0.1% you use special backdoor code in unsafe.
 
11:15 AM
@Griwes you seem to be stuck in the C++ loop, "You don't pay for what you don't use."
 
@orlp You mean the sane approach.
 
@Griwes hmm I might've accidently used a dutch saying there
 
Sane, uh.
Not same, wtf fingers.
 
Oh.
I see.
It's the classical "But it's not Haskell!"
 
No, it's classical "but it's not C++" :P
 
11:19 AM
Absolute 0 cost general solutions are overrated. It is always possible to optimize your implementation using zero cost primitives in unsafe afterwards, but until you've determined that to be your bottleneck I'd say small costs to make the entire language easier to use and safer are justified.
 
"Only one mutable reference (to a synchronized object)" is broken.
 
Because it's not C++. We got that part.
 
Actually C++ is also broken. :P
It's more of a "it's not my awesome vaporware language that'll be called Vapor". :P
 
@Griwes Doesn't make you sound any less stupid.
 
I don't sound stupid, lol.
 
11:25 AM
Is this a Polish thing?
No, wait, Puppy is not Polish.
 
lol
 
hello everyone
can anyone tell me the way in which i can get the source code of a software like ccleaner
 
You ask the author for it.
 
no , the sorce code
source
 
Bhawin and the sorcerer's code.
 
11:32 AM
@BhawinParkeria Yes, you ask the author for it.
@Griwes Anyway, here: is.gd/OWbjGb
FUCK YOU CHAT.
Let me minify that.
 
I guess I unsafed too much.
This is better. is.gd/pXIzun
unsafe blocks should be as small as possible.
 
Um, quick question: Should I learn C# before learning C++? I mean... I'm just starting out on programming, but I think I can do C++.
Also, any good books to start?
 
Why would you think you should do that?
 
c# is easier than c++ , but with c++ u will get the know the internal of the computer more clearly
so first c# , then c++
 
11:38 AM
@R.MartinhoFernandes Well, I've been hearing stuff like "C++ isn't very easy to learn" etc etc
 
@BhawinParkeria Yeah, no. Learn the computer architecture if you want to know that. C++ doesn't teach that.
 
Well, think I should go C# first?
 
@R.MartinhoFernandes thx for that , but which programming language would you recommend to know whats happening inside the hood
 
Xeo
ermerged. My ear is finally unblocked again - suddenly. /cc @orlp
almost a week. :o
 
@BhawinParkeria None. Learn the stuff inside the hood if you want to learn the stuff inside the hood.
 
Xeo
11:40 AM
feels kinda weird to hear higher pitches again
 
4275
Q: The Definitive C++ Book Guide and List

grepsedawkThis question attempts to collect the few pearls among the dozens of bad C++ books that are published every year. Unlike many other programming languages, which are often picked up on the go from tutorials found on the Internet, few are able to quickly pick up C++ without studying a well-written...

 
@R.MartinhoFernandes yes , u are right , i got it .
 
@R.MartinhoFernandes So, no C#?
 
@Meraj99 I don't know. I don't know you well enough. Try one and then the other for a few weeks and choose after that.
@Meraj99 I don't know any introductory C# books, sorry.
 
@R.MartinhoFernandes Mmm, alright...
 
11:45 AM
Also an important point: don't commit yourself fully before you even know what you're committing to.
Wait, did C++14 change the behaviour of some_aggregate x = {};?
 
Xeo
I think they did, in some way. They allowed NSDMIs for aggregates, I think?
or maybe that was just a proposal that didn't get voted in
iunno
 
12:05 PM
Your code cuts up logs into something useful. Why didn't you call it LumberMill? #missedopportunity — corsiKa 16 hours ago
 
Ubuntu is really good at focus stealing.
 
I like Xubuntu
 
Typing text in one window and suddenly my words are appearing in another window that just popped up.
 
no matter what others I try, I still find Xubuntu's everything to fit me best
 
Haven't tried that yet.
 
12:07 PM
also I have no idea what kind of custom stuff they've done with their Xfce
I wasn't able to, say, install Xfce on Ubuntu and make it look like the one on Xubuntu
 
12:28 PM
just wrote a really stupid program that just continuously runs in the background and executes "dhclient eth0" over and over again because it keeps disconnecting from the internet and messes up my SSH session...
rather do something like that than find the real problem lol
 
// is overloading on desired return type a good choice here?
double GetRandomNumber(double lower_bound, double upper_bound);
int GetRandomNumber(int lower_bound, int upper_bound);
unsigned GetRandomNumber(unsigned lower_bound, unsigned upper_bound);
 
Xeo
Template it?
 
yeah, that probably makes most sense.
 
user3010322
Confusion intensifies
 
12:40 PM
@ThePhD const char* != char * const
that is, ptr<const char> != const ptr<char>
remove_cv<ptr<const char>> ---> ptr<const char>
remove_cv<const ptr<char>> ---> ptr<char>
 
Xeo
@ThePhD Ohai. Back from the dead?
 
(let ptr<T> be template<typename T> using ptr = T*;)
 
Xeo
@ThePhD remove_cv removes top-level cv.
 
Ell
What are top-level cv? o.O
 
Ell
12:55 PM
'ello
 
const char* has no cv qualifiers
 
Ell
what is the const then? o.O
 
It indicates that the object the pointer points to is const
the pointer itself has no cv qualifiers
char * const is a char* pointer which has cv-qualifier const
 
Ell
oh of course
 
dammit when clang-msvc will start supporting exceptions - github.com/llvm-mirror/clang/blob/master/lib/CodeGen/…
 
1:02 PM
@Abyx when you start implementing it :P
 
Ffs @thecoshman just stay away from "Player Status", will you?
 
@R.MartinhoFernandes what?
 
It's the second time I have to nuke your post giving wrong penalties.
RTFR.
 
oh, btw, 302 was amended by 302 so should be removed from the rules.
I swear we had a rule saying failing to propose on time gives you such a penalty...
 
(sorry for spamming OCD edits)
 
@R.MartinhoFernandes he he he, took your time :P
say, what's § called?
 
Section sign.
 
@thecoshman ¬_¬ helps if you look at the right version dingbutt
 
1:29 PM
@SamDeHaan so can we get a definite statement on you quitting Nomic? Also, @Puppy? You can rejoin pretty much at any point, anyway.
 
I know this is going to come as a shock to you all, but I really hate MSI
 
Oh I'm shocked :P
 
WHY THE FUCK WOULD YOU FUCKING DO THAT YOU FUCKING FUCKS
 
@jalf wtf
 
> using a compressed GUID format
lol
reversing it is not really the same as compressing it
 
1:34 PM
well, in fairness, they also drop the curlies
 
@jalf why... why mix up the order?
 
@jalf LOL - news to me, (unwelcome news:).
 
Xeo
@jalf hahahahaha
 
inb4 "Windows network stack now uses a compressed byte format".
2
Heh - all my overnight tests passed, and I have no customer emails, but now, jalf's GUID problems have restored my lack-of-faith in software.
 
Ell
1:42 PM
My bagel dough blew its plate off
 
@Ell Your bagels exploded?
Anne has some scones in the oven - shoud I call the bomb squad?
 
@jalf "but their order is switched around" "compressed GUID"
What the hell is wrong with them.
 
Ell
@MartinJames not quite that drastic, they produced enough air to fire the plate off their bowl :P
 
@R.MartinhoFernandes ikr it's madness. Luckily, it's jalf's madness.
 
Xeo
@MartinJames Just wait until you have to deal with it yourself.
I hear it's your next birthday present.
 
1:45 PM
@Xeo Fuck GUIDs.
@Ell lol now you have restored my lack-of-faith in baking.
 
@MartinJames Game of Scones?
Breakfast is coming...
 
@Xeo I'll just use the undocumented 'UnObfuscateGUID(LPLSTRPBYTELINTPTR shit, LPLSTRPDWORD Normal24)' API call.
 
@MartinJames I thought big-endian was compressed?
 
@ArneMertz lol I'll look for it on TPB:)
 
@Abyx lol, why don't they just make it straight up blue.
Everyone gets equally offended.
Also, I'm not yellow.
 
1:55 PM
Yet.
 
You know, the worst part is that this will only enable you to emoji-refer to particular skin colours.
As is, you can only use the skin colour agnostic versions.
Google and Apple should fix their default fonts so that their emoji are actually skin colour agnostic (i.e. make them blue).
Not enable people to call each other a nigger through emoji.
 
Ell
yeah this
 
Even when you use it yourself, it's "smile; btw, I'm black" vs just "smile", which WTF, why is the lack of ability to do the former a problem.
And bafflingly, it's not even the lazy way out!
The lazy way out is to just fix their fonts.
 
soon, people will discover they can use words to convey a message, instead of employing a complicated system of hieroglyphs dubbed "emoji"
 
user1804599
Let's see.
 
user1804599
2:03 PM
IntelliJ 14.
 
user1804599
Also new YouTrack woo.
 
I also noticed that the UTS draft seems to believe "diversity" means "various skin colours".
2
It's works quite contrary to the stated intentions, I think.
 
@TonyTheLion perhaps the compression comes at a higher level: certain GUIDs might be stored more effectively in a trie when the last parts (or first, after switching the order around) are commonly recurring
Not all GUIDs are "just random"
 
@R.MartinhoFernandes I wish i had more time to dedicate to Nomic, but alas, I'm going to have to withdraw
Will post in the forum
 
Cool, no problem.
 
2:12 PM
@MartinJames what's TPB?
 
The Pirate Bay.
 
@R.MartinhoFernandes get of me booty!
 
@ArneMertz Pirate Bay, where the episodes of 'Scones' come from:)
 
So it only took me like three years, but finally sorted out the company provided health insurance!
 
I don't know how my health insurance works
but I have a shiny card
 
2:14 PM
@thecoshman That's the point. If employees die before they work it out, it saves money.
 
and If I can stop being so useless at sorting out take returns, I can claim back what tiny amount I get taxed for the 'benefit'
 
@MartinJames uh I didn't know there wer actual episodes...
 
I had just seen a sign in front of a café some time ago saying "Game of Scones - breakfast is coming"
 
Xeo
@ArneMertz there... aren't?
it's just a reference to Game of Thrones.
 
NSA director Mike Rogers claims IAD wrote the patch for Heartbleed. Audience does not burst into laughter. https://www.youtube.com/watch?v=yhwy2ZWi_y8
 
Xeo
@R.MartinhoFernandes nice
 
Can you imagine having the world's oldest d20?
If I ever rob a museum, you know which one.
 
Xeo
seems brittle, though
 
How is that a problem :<
It's not for rolling.
 
Xeo
2:50 PM
true
 
Ell
Bagels are now in the oven
 
this is probably the coolest feature of MySQL that I've seen so far dev.mysql.com/doc/refman/5.1/en/load-data.html
as seen here
1
A: Enhance csv file database import

Elias Van OotegemWell this might just be my shortest post to date: Why? Why bother parsing, and manually inserting each and every row individually if you can use something like: LOAD DATA INFILE "/path/to/data.csv" INTO TABLE produse COLUMNS TERMINATED BY '|' OPTIONALLY ENCLOSED BY '"' ESCAPED BY '\\' LINES TER...

I had no idea MySQL can parse stuff like that
 
@R.MartinhoFernandes sure it is (cue Weird Al)
 
3:15 PM
> For those of you who like functional programming: [...] For those of you who are normal...
 
user1804599
@AlexM. yay for bloat
 
^ just said by Meyers in a talk :D
 
user1804599
Maybe if they'd concentrate on developing the actual RDBMS rather than useless features.
 
@Griwes Which Meyers and which talk?
 
Scott Meyers :P
The talk is almost over, though.
 
3:18 PM
:)
Woah, wtf just happened
Never seen this much activity on Nomic
 
@R.MartinhoFernandes flamingdangerzone.com just appeared for a moment on one of the reference slides (I think it was one of the type traits posts) at a Scott Meyers' talk. Such fame. Much recognition.
 
i ve resolved this issue, thanks a lot for ur help, I may sound cynical . can u please delte this answer so that i can delete my question I run the risk of being down voted ..:( — Marshel Abraham 33 mins ago
Oh my. The guy pushed all my wrong buttons.
You might have thought of that before I wasted my time answering? — sehe 31 mins ago
nope I ve put my soln well and before , i have lots of doubts with ur solution which is a completely diff topic..pleasee..:) — Marshel Abraham 30 mins ago
<expletive deleted/> No need to lie pathetically. Edit history is public, remember. What a child. I don't usually downvote misguided questions (because people make mistakes and can learn). This behaviour made me downvote, after all. With the apparent absense of all respect, I think I actually wouldn't mind if you didn't post again. — sehe 1 min ago
Well. Well. He is in danger of being downvoted now.
 
Also fucking dicsourse not tracking unread shit properly
It showed no new posts in regulations thread for me
 
user1804599
@sehe What an idiot.
 
Yeah, he's the highlight of the past several months
 
3:42 PM
@CatPlusPlus it's very good software
 
lol "1 topic updated", I click on it and there's no unread notification because I have it open it some tab somewhere
And it didn't update there
jesus christ
 
@Griwes Not a first in his slides, actually.
 
@sehe And the worst is this isn't his first time.
 
@milleniumbug Oh great. I didn't do the forensics. I think it's bad for my heart :)
I do remember that I spent a lot of time on another of his questions and he didn't really get it
 
Ell
There's something not right about my bagels
Maybe they're undercooked. Hmm
 
3:48 PM
0
A: Boost Serialization Binary Archive giving incorrect output

seheOkay, so, just to see how I'd do, I've tried to reach the optimum sizes I calculated on the back of my napkin: I can see how you'd expect 57, 63, or 75 bytes mProtocolVersion = 1*10000+14*100+4; // 2 bytes mSessionFlags = 1; // 2 bytes mMaxResponseLength = 0; ...

@milleniumbug Found it
 
@sehe Who are worse - the guys asking stupid questions again and again and not learning or the guys giving stupid answers again and again and getting rep for them, leading others to actually believe that crap?
 
@Ell Maybe they exploded
@ArneMertz Definitely the latter
 
@R.MartinhoFernandes I know :P
 
@ArneMertz I'm not too sure many believers in crap abound. The feeble minds that are susceptible to that, are precisely the kind that will just ask again if they need it, and hope for a canned response, so they don't have to take responsibility
 
I don't get it.
Why does the quoted message appear on the above message?
On discourse I mean
 
3:51 PM
@sehe I ran into Vlad today...
 
LIVE?!?!
 
@Jefffrey Wait, what?
 
If I click on the arrow
 
@sehe nah... simultanous answers - or non-answers in his case
 
3:53 PM
It doesn't appear on the above message, it's inserted above the message you're going from
 
@ArneMertz lol. was it bad ? :/
 
This is not an answer to the question. The question is about the realtion between rend() and end(), not between rend() and begin(). — Arne Mertz 3 hours ago
 
Note how the above message buttons are above it
 
But the line that divides each message is then wrong.
 
I wouldn't expect dicsourse to be good at HTML or CSS no
 
3:54 PM
@sehe he answered my comment "I cant help you if you are an imbicile" - got deleted by now
 
@Jefffrey lol
Discoquote.
 
@ArneMertz wow. that's food for downvotes in itself
 
@R.MartinhoFernandes Dicsquote
 
Don Dicquote
2
 
3:56 PM
@ArneMertz It's "nice" how he downvotes your answers if you disagree with him in the comment.
 
@ArneMertz The question is about iteterators.
 
@milleniumbug yeah - and aparently he searched for other of my answers and downvoted them, I got 2 or 3 more downvotes shortly after that.
@R.MartinhoFernandes yeah but it is explicitly not about converting an iterator to its reverse counterpart.
 

« first day (1481 days earlier)      last day (3482 days later) »