« first day (636 days earlier)      last day (4314 days later) » 

Xeo
4:00 PM
I meant my personal RSS feed
 
Wtf is with that dude's eye?
 
@sehe I don't appear to be actually...
 
@Drise His eye class is a singleton.
3
 
Xeo
Okay nevermind, it's not tagged as "STL"
 
4:00 PM
@FredOverflow Good point.
 
Having only one eye allows him to concentrate on thinking and being awesome.
 
Xeo
@Drise He's a C++ pirate
 
@FredOverflow I've still not got all the edge cases for new C++11 stuff figured out yet
 
Give them out.
 
@JimNorton You're now being counter-trolled.
 
4:02 PM
@Flexo Nobody understands C++11 best practices yet.
 
@Drise Really?
I'm actually having a good convo over there
 
@JimNorton Most definitely.
 
@JimNorton You were just being flagged, that's all. It's what prompted my question "what are you doing?" earlier
 
I'm writing a simple parser for mathematical expressions, and I just realized that if I only allow doubles and functions, I can represent types with just a simple number. Like 0 is double, 1 is a function returning double, 2 is a function returning a function returning double an so on.
 
> bad parts about php: some stuff ; some stuff ; no IQ barrier
 
4:06 PM
Oh wait, I also need to encode the parameter type :( But hey, then I use two simple numbers instead of one.
 
Who the fuck uses that style of separation? Also note: No IQ barrier.
 
@FredOverflow Single argument functions?
What about the return type?
 
@RMartinhoFernandes currying
 
@sehe Oh, I'm actually having a good conversation over there... no worries... not causing trouble for you all
 
@Cat bitcointalk.org/index.php?topic=93074 I'm sure you'll find this funny.
 
4:07 PM
@RMartinhoFernandes Didn't I start with the return type?
 
@FredOverflow Oh right.
 
@JimNorton Except for the flagging, I guess
 
Why am I not paying attention.
 
But wait, the parameter can also be a function of arbitrary parameter and return type... I don't think a simple number will work after all :(
 
@RMartinhoFernandes You couldn't afford it if you wanted
 
4:08 PM
@RMartinhoFernandes g++ robot.cpp -fpay-attention?
 
You can make it a number (I think there's some Gödel thingy about that), but you need a very well thought encoding scheme.
 
Right, but the whole reason I was so enthusiastic was because I thought it could be a very simple scheme.
I guess I need something like this instead:
abstract class Type
//
class Double : public Type
//
class Function : public Type
    Type* parameter
    Type* result
Anybody got a better idea?
Why isn't it formatted nicely without the //s?
data Type = Double | Function Type Type
just one line of Haskell lol
 
@RMartinhoFernandes ohhhhhh bitcoins. trollolol
 
@RMartinhoFernandes Funny? I can't hardly believe my eyes?! Tell me that is a joke
> protip : not directly in the fucking source code
Is it php devs? Ah, ruby this time
 
Is sizeof(std::unique_ptr<T>) == sizeof(T*) guaranteed?
 
4:16 PM
No.
 
For one thing, it requires EBCO.
 
Really? What does unique_ptr inherit from?
 
As a library solution either you'd need struct { T* p; } to conform to a similar identity or you'd need first-class support as an exception for it.
 
@FredOverflow For the deleter.
 
4:18 PM
Oh, I always forget about the deleter.
 
Hmm, unless get_deleter is allowed to return the same for all unique_ptr<T>.
@sehe It's not a joke. But the Cat gets his kicks off of Bitcoin failures.
Don't ask.
I don't know.
And I don't want to know.
 
Well, that wasn't so bad.
 
> Hm, T must be int, that would make the types exactly match. Both pairs give me int, awesome. T is int, let's go party!
^ STL is so awesome :)
 
It doesn't have to inherit from the deleter, btw.
It can use a tuple for storage.
Because tuples are compressed!
It's EBCO in a package.
 
@RMartinhoFernandes what's EBCO?
 
4:23 PM
Empty base class optimization.
 
oh ok, thanks
 
Aka EBO.
 
Learned this from the PHP room: webtoolkit.eu/wt Looks cool
 
WHY IN THE NAME OF FUCKING SHITTY SHIT DO YOU KEEP COMING IN HERE TO BRING UP PHP AND REMIND US OF MISERY AND DESPAIR???!!!
2
 
4:28 PM
@JimNorton That sounds familiar. Isn't that used for Google Chrome?
 
@TonyTheLion Sorry, not my intent.
@Drise Don't know.
 
@JimNorton apologies accepted :) From me anyways
 
Chrome uses WebKit
 
@DeadMG Ah.
 
something which is quite fairly confused with Web Toolkit, honestly
 
4:30 PM
@TonyTheLion Thank you... I'll not be the first to bring it up in the future.
 
Y'all thought I was going to start trouble in the ... room.. lol... sorry if I scared you..
oops.. sorry... shit
 
@FredOverflow Let's just hope that Haskell never becomes major then.
It would suck if Haskell sucked too.
 
@RMartinhoFernandes Wide isn't either.
 
4:34 PM
Wide isn't.
 
So let's say I have a char [] in a struct because I need to use it for a function call that expects a C style NULL terminated string. In that case, is it acceptable to use char[], or is it still better to use std::string.c_str() ?
 
@JimNorton Use c_str().
 
The latter exists just for that purpose.
 
Hello @AgainstASicilian
 
4:35 PM
the memory and safety guarantees gained by std::string are streets ahead of the minute effort caused by having to call c_str()
 
streets ahead lol
Community?
 
@DeadMG Ah ok, that makes sense.
 
@RMartinhoFernandes by ze vay
thinking about, in Wide, removing indexing from pointers.
 
@DeadMG D:
 
@DeadMG I don't recall if you still have arithmetic in.
 
4:37 PM
What is ?
 
@RMartinhoFernandes Well, I was originally going to use them as RA iterators, like you can see in std::array/std::vector.
 
@Drise Where have you seen that? (Hint: it's where you will find the answer) (Hint: don't ask there) (Hint: read the answer there, because it is already there)
 
but I figure that it would be easier to simply write a different thing for RA iteration and ban arithmetic on pointers.
there's no reason to have pointers be iterators when I have real iterators
and the type system should distinguish properly between pointer-to-one-element and range
 
As long as you have some interop range that lets you grab pointers to its middle.
 
well, I figure that it does need to be allowed, on some level
 
4:40 PM
But I totally support that.
 
but I'll bury it in the interop namespace
and I might force you to do a bunch of nasty explicit casts.
 
in PHP, 4 mins ago, by tereško
http://stackoverflow.com/questions/11474627/the-best-way-to-show-hide-a-div-in-yii
 
Yes, pain is always good.
Well, not.
 
Close vote please?
 
in PHP, Jul 1 at 14:09, by hakre
Stack Overflow Closevote Backlog | Mirror 1 | What does mean: http://gist.github.com/1689430
Seriously.
They pinned that.
 
4:42 PM
@RMartinhoFernandes Ok, ok...
 
I might have like
RangeFrom(ptr begin, ptr end)
 
Xeo
> If you say "pls" because it's shorter than "please", then I say "no" because it's shorter than "yes"
 
I'd put RangeFrom(ptr begin, int size) too.
 
Xeo
Good ol' Ragnarok Online times
 
and StringFromCStr
 
4:43 PM
@RMartinhoFernandes it's cause they obviously have nothing interesting to talk about, so they pin crap.
 
@TonyTheLion Wut?
They pinned it because they get asked all the time I'm sure.
 
also, I was debating with sehe last night
how aggressive should lookup be for extension methods?
 
@RMartinhoFernandes about closevotes?
 
my current idea is kinda like ADL, except of course, extension methods must be tagged as such explicitly.
instead of "Find Everything" ADL
 
@TonyTheLion And they have a script for grabbing links they post with that tag and puts on that page, so they can see them all in one place.
They get that a lot more than us.
@DeadMG Like C#?
 
4:45 PM
@RMartinhoFernandes oh wow.
 
@RMartinhoFernandes Yeah.
it's way better than ADL, really.
 
Hey all
 
@DeadMG My only annoyance with the C# extension method lookup mechanism is that you can't disambiguate at all.
 
disambiguate how?
 
You bring them into scope with using. Let's say you bring two sets of extension methods, from namespaces A and B. You bring A because of A.Extensions.Foo, and B because of B.Extensions.Bar. But, there's also a A.Extensions.Bar that you're not interested in.
You're stuck with making that a partial class.
 
4:50 PM
right now, my plan was to actually not make people bring them into scope.
 
I just found this in our code here at the office, but I cant seem to find the reason for it:
void sighandler(int signum)
{
  std::cout << "Received signal " << signum << std::endl;
  if (signum == 9)
	  exit(42);
}
 
I'd like to bring the extensions into scope one by one.
 
What does exit(42); do?
 
@DeadMG How will they be found then?
 
but you can also call them directly, like namespace1.extensionmethod(object_that_would_be_this, flib)
 
4:51 PM
Sorry interrupt
 
@RMartinhoFernandes Something similar to ADL.
 
@Neal Exit the program, with error code 42.
 
I was just curious ^_^
 
the problem with forcing people to bring them into scope is that you cannot call extension methods generically, like.
 
@RMartinhoFernandes yes, but I can't find documentation for exit code 42 anywhere lol
 
4:51 PM
if you do t.Swap(x);, say
in a template
 
@RMartinhoFernandes Don't worry, Haskell is still underground. Apropos Haskell:
0
Q: Computing all possibilities of replacing one character by another

FredOverflow> magicFunction 'l' '_' "hello world" ["he_lo world", "hel_o world", "hello wor_d"] Is there such a magic function in the standard Prelude or can it be composed easily with other functions? And no, this isn't homework, but still, please don't spend too much time hand-rolling your own compli...

 
then there's no way for you to get an extension method for Swap
if you have to bring it in manually
 
@Neal It's probably meaningless. en.wikipedia.org/wiki/…
 
so extension methods cannot meet type requirements for generic methods
 
@RMartinhoFernandes lol i know that one :-P I just asked the person who wrote it, and he doesn't seem to remember why he used exit code 42
I asked him if it was a joke, but he did not get it...
 
4:54 PM
@DeadMG In your implementation, you mean?
 
@RMartinhoFernandes No, I mean if you have to pull them in manually.
 
where's that jalf guy, wanted to tell him he was wrong
 
because you don't know what type t is and cannot know where to pull them in from.
 
4:55 PM
Humm I want to watch something
but there are no new Family Guy episodes
and I watched all of rocket jump :(
 
new Futurama today or yesterday
 
Firefly marathon.
 
@DeadMG Yesterday x 2
Twas good ^_^
 
humm I don't like Futurama
 
@Neal O really? I only saw one new ep yesterday.
 
4:56 PM
maybe Simpsons
 
but I liked the old Episodes better
 
@DeadMG lol i mean it was 2 days ago :-P
 
(Yes, I know I've posted that like twice or more before. I really like it)
 
@Neal oh
 
4:57 PM
What?
 
@DeadMG sorry for the hacky way of saying it ^_^
 
@RMartinhoFernandes My brother has all of the Culture novels. Should I read them?
 
@SamDeHaan Yes!
 
there was a new White Collar a few days ago too
and new Leverage is also due soon
 
0
A: Computing all possibilities of replacing one character by another

JedaiIn fact replace is not in the standard, this is actually something tha

^ lol?
 
4:59 PM
@RMartinhoFernandes Hmm, okay. I'll push them around 6th or 7th on the list.
 
@FredOverflow Pushed "enter" too soon.
 
@SamDeHaan Hehe, I know what you mean.
 
happened to me before.
 
@DeadMG Oh, and I thought it was "being the first to answer under all circumstances and then edit to gain rep" syndrome :)
 
@FredOverflow I think that is a very goo
 
5:01 PM
lol
 
@FredOverflow Hmm, that's an interesting trick.
 
user784668
@FredOverflow Why do you think tha
 
@RMartinhoFernandes Don't pretend like you've never heard of it before!
 
@RMartinhoFernandes I've got about six authors I'm supposed to try that I'm working my way through, but most of my author-test books are pretty short, so I should get to it before too long.
 
I decided that I can't finish my comment
t I once told my buddy down over the — Neal 1 min ago
 
5:03 PM
@FredOverflow Nah. Not randomly in the middle of a sentence like that.
0
A: Difference in assignment between references vs pointers?

DeadMGYour pointless micro-benchmark code is likely broken in some trivial fashion. I would recommend that you learn about what pointers and references actually are, and what "profiling" and "premature optimization" are. Then you will gain the knowledge that, one, your question is irrelevant in every c...

too much?
 
@SamDeHaan There's no strong order between them, but start with Consider Phlebas. It is the on that gives the best introduction to the Culture (what they are, their motivatiosn, concerns, etc). It's a bit long though.
 
@RMartinhoFernandes Eh, I've read the wheel of time series twice. Whatever it is, it's not long.
 
Hah
 
This is gunna be fun ^_^
alps where we live in a giant house under a big tree which — bamboon 1 min ago
 
5:05 PM
So tempted to finish the sentence with 'penis.'
 
user784668
Do eet.
 
Somebody beat me to continuing it, doesn't work as well now.
 
norla screwed it
 
@SamDeHaan Doo it now!
 
5:07 PM
The answer has two upvotes >.>
 
user784668
@SamDeHaan Five. No, six.
 
6
 
...wow
 
@SamDeHaan ... that I once told my buddy down over the alps where we live in a giant house under a big tree which totally doesn't look like a giant bug because it doesn't have... penis.
 
well
arguably, he doesn't need the rest of the sentence to answer the question.
 
5:08 PM
@RMartinhoFernandes ... that I once told my buddy down over the alps where we live in a giant house under a big tree which totally doesn't look like a giant penis. Stupid minitech.
 
@SamDeHaan lol flag his comment, it might get removed :-P
 
lol
Bad puppy.
 
...and enjoys feeding upon penis? That was the best you could give me, @DeadMG?
 
wtf, what do I care about your penis obsession?
 
It's the robot's bad influence. I thought everyone was poorly influenced by the robot.
 
5:11 PM
awww mod delete
 
user784668
"In fact replace is not in the standard, this is actually something that I once told my buddy down over the alps where we live in a giant house under a big tree which totally doesn't look like a giant bug because it doesn't have eight legs, it actually has four, and several mouth parts for no apparent purpose, and enjoys feeding upon rocks and sweet dirt which…"
 
user784668
Makes perfect sense.
 
@SamDeHaan Wut.
 
@Fanael Add it as a new answer!
 
Don't.
You had your fun.
 
user784668
5:12 PM
@SamDeHaan No, you add it as a new answer.
 
 
@Fanael But then I can't get a free helpful flag from it!
 
wtf
 
user784668
@SamDeHaan Deal with it.
 
why do people edit to remove one apostrophe?
bad bitch
 
5:13 PM
lolwut.
 
@Fanael QQ.
 
and the edit summary is "ARGH"
:P
 
It's a reaaaaally frustrating apostrophe.
My money's on it's.
 
@DeadMG Well, it was an error.
 
true
but you need more than "Minor grammatical error" to go touching my stuff.
well
in two weeks, the Olympics will start, and the country will go to shit in every possible respect
 
5:17 PM
@DeadMG How so?
 
1. Every news broadcast will be at least 50% irrelevant Olympic shit.
2. All public services will be massively overcrowded and almost unusable. Even the Internet is predicted to have problems with everybody and their dog streaming pictures and stuff.
3. We'll be paying for this for decades
4. A whole shitbunch of businesses in London have had to move out or stop trading over the Games because of the disruption.
all of this so that we can watch a bunch of idiots run around a track?
giant waste of money
 
Wow... I would love for the Olympics to be held near my city.
It's usually considered an honor to be selected to host the games.
But I can see your points as well.
 
right
but unlike the idiots in my public office, I don't consider spending billions and billions of public money for a little "honour" to be a worthwhile investment.
 
@DeadMG Haha :P
 
waste of money?
heh
 
5:23 PM
maybe when we're strolling in money
but not in the middle of a giant recession cutting all our budgets for all public departments
"Hey guys, I'm a police offer, but couldn't respond to your call because my job was cut due to funding cuts to pay for the Olympic Games. Sorry you got brutally axe murdered. Hope you find the 100m sprint totally worth it!"
 
@DeadMG The world economy as a whole sucks right now.
 
an excellent reason to cut all funding for all nonessentials
including all art, sport, foreign aid, and such things.
 
right we need that money
to save banks or something
 
pfft
 
lol save banks
 
5:26 PM
if I had the choice, they would have all been allowed to collapse.
 
If you bail out the banks, you're just paying their executives larger bonuses
That money doesn't actually help things
 
in Haskell, 5 mins ago, by FredOverflow
@RMartinhoFernandes I managed to enumerate my types in the parser :) Not practical, but certainly interesting:
 
@DeadMG I would have preferred it as well. Maybe things would have truly changed then.
 
the main problem here is
the reckless lenders are not taking hits, which they really should.
 
@JimNorton They outright copied Qt's design. I'm not sure it's a good thing.
 
5:28 PM
There has been a backlash in America. It's now harder than ever to get any sort of credit or loan.
@EtiennedeMartel Hmm didn't know that...
Even for people with nearly perfect credit.
 
and the ratings agencies fuck me off too
before the crisis, they're like, "Oh, no problem, EVERYONE TRIPLE A, every loan is FINE!"
then after the crisis, they're like, "We're gonna downgrade you now" as if they have any credibility left.
 
Sadly, they inexplicably do.
 
I've had to actively work hard to get my credit rating back up... tedious.... wanting to buy a home..
 
> 127.0.0.1 sweet 127.0.0.1
 
I'm practically creditless at the moment. I don't have a credit card. No loans. Need to get a card and start building some.
 
5:36 PM
> ~ sweet ~
 
@FredOverflow localhost sweet localhost?
 
Erm... yes? Not an expert on networking, I thought it also meant "home" :)
 
@FredOverflow it usually does
But you know.. pedantry and all...
 
and Parliament takes too fucking long to do anything
we should split it up into several subgroups and work on lots of legislation concurrently
 
@DeadMG Whoops, it looks like you're mistakenly applying logic to government.
 
5:41 PM
I'm of the opinion, that generally, we'd be better off if the government did less
 
@DeadMG Isn't Wide supposed to solve all those problems?
3
Everything except cancer.
:P
I'm off now. Later.
Have fun.
 
Great another reason Facebook sucks.
http://yro.slashdot.org/story/12/07/13/1247257/facebook-scans-chats-and-posts-for-criminal-activity
 
There was this April fools joke that Haskell and Perl should be merged into Haskerl. How about merging Haskell and SQL instead and name the language Hasql? :)
 
lol
 
5:56 PM
Or Haskell and Brainfuck into Hasfuck?
 

« first day (636 days earlier)      last day (4314 days later) »