« first day (747 days earlier)      last day (4207 days later) » 

user142019
5:00 PM
The teacher said maybe a functional language will come in year two.
 
user142019
But I don’t believe it since they teach Java anyway.
 
user1182183
yay more games in shitty java...
 
@Zoidberg'-- You'll probably see some Scheme or something.
 
user142019
I hate this school.
 
user142019
It’s only 1% theory.
 
user142019
5:01 PM
I want 99% theory.
 
What.
WHAT.
 
@EtiennedeMartel No Lisp :p
 
user142019
I want to learn things.
 
user142019
I already know PHP and Java and JavaScript.
 
@VinayakGarg Scheme is a Lisp dialect.
 
user142019
5:01 PM
And how to make a fucking website.
 
You, sir, never saw what "theory" means.
Exams featuring exactly no code? Pain.
 
user142019
This is like coding school. (puke)
 
user142019
Where you learn to write terrible code with globals and infinite loops.
 
Oh, then blame the school, not the "no theory".
 
@Zoidberg'-- I always wished to be in coding school. But no more.
 
user142019
5:03 PM
for (i = 0; i < myarray.Length; i + 1) really?
 
i + 1?
 
@Zoidberg'-- The fuck is that shit?
 
user142019
It’s JavaScript. In that code: i is global, Length must be lowercase and i + 1 must be ++i or i++ or i += 1.
 
user142019
@EtiennedeMartel My teacher’s slides. :/
 
you should get certified by the DeadMG school of coding
 
5:04 PM
Why do you study at a school that has incompetent teachers?
@DeadMG You mean the one with ugly brace placement?
 
user142019
@EtiennedeMartel How could I tell before I attended this school?
 
@EtiennedeMartel Because it's impossible to find any that don't, and even if you did, it would cost a bomb.
 
@EtiennedeMartel Zing.
 
@EtiennedeMartel Heh. I like them :P
 
user142019
@DeadMG use std::unique_ptr and RAII instead of new and delete. Okay, I’m certified.
 
5:05 PM
@DeadMG Bombs are cheap these days.
 
@Zoidberg'-- I think not :P
 
user142019
:<
 
@R.MartinhoFernandes I heard they are in Northern Ireland, which isn't too far from the puppy's location.
 
ho boy
 
user142019
Classmates y u all übernoobs.
 
5:06 PM
@DeadMG The college I went to had incredible teachers.
 
user142019
Most of my classmates use either of these brace styles:
 
@EtiennedeMartel Lucky for you.
 
user142019
if (foo)
{stmt;
 stmt;
 stmt;}
// or
if (foo)
    {
    stmt;
    stmt;
    stmt;
    }
 
the university I went to had entirely shitty lecturers
 
@EtiennedeMartel Wow you were lucky
 
5:06 PM
@Zoidberg'-- holywtfAMAGADUGLYAAAAAAAAH
 
user142019
And of course, they write if else instead of else if.
 
@Zoidberg'-- That's so irritating
 
user142019
if (foo)
{stmt;
 stmt;}
break;
if else (bar)
{stmt;
 stmt;}
break;
 
there are only two brace styles- K&R and the other one is... Adlermann? That one VS uses for C#.
 
user142019
^ People really write that. :P
 
5:08 PM
the rest should be burned
 
@Zoidberg'-- What.
What.
 
that shit even compiles/interprets?
 
@DeadMG Completely agree
 
user142019
@DeadMG nope.
 
user142019
5:08 PM
And they don’t know about Web Inspector and Firebug so they ask me.
 
2 hours ago, by R. Martinho Fernandes
Puppy's getting a bit repetitive.
 
user142019
And I tell them to use Web Inspector or Firebug.
 
@DeadMG Allman. That's the one I use.
 
@DeadMG whistles
 
user142019
I always use this brace style:
 
user142019
5:09 PM
if (foo) {
    stmt;
    stmt;
}
 
K&R, and that's my style too.
 
Ell
and I
 
user142019
-- Or, in Haskell when using record syntax:
data Foo = Foo { A :: String
               , B :: Integer
               }
 
user142019
But those are not for statements, so it’s different.
 
user142019
Not to mention the inconsistent indentation and identifiers.
 
5:11 PM
@DeadMG I recently dropped my aversion to K&R brace style after finding out that it makes for more compact presentation (e.g. on Stack Overflow)
 
@sehe Yeah. I find that Allman's style just wastes a bunch of lines on empty braces.
 
user142019
GNU style is the most terrible.
 
@DeadMG I like it for readability, but 'overview' is also a worthy goal
 
not that K&R doesn't do that too, but it's less bad.
 
user142019
if (foo)
    {
    stmt;
    stmt;
    } // WTF STALLMAN YOU’RE A FUCKING IDIOT
 
5:12 PM
@DeadMG I mostly code in A-style, but for print outs I change them to K&R :p
 
@Zoidberg'-- agreed, unequivocally
 
@sehe Thirded.
 
user142019
Lisp-style, because you can.
 
@VinayakGarg That's what I end up doing. But for template plumbing helpers, I use K&R style too (too remove distraction)
 
but a disgusting bracing style is hardly the worst thing Stallman ever did.
 
5:14 PM
I heard he speaks French fluently.
 
user142019
if (foo) { stmt;
           if (bar) { stmt;
                      stmt; }}
 
that's definitely worse
 
@EtiennedeMartel That's disgusting too.
 
@R.MartinhoFernandes <3
 
Have you seen Whitesmith's braces?
 
user142019
5:14 PM
Stallman’s beard is made of parentheses and braces.
 
@Zoidberg'-- Oh, that's the one.
@Zoidberg'-- That's not GNU style.
 
user142019
Oh.
 
GNU style is like Allman, but the braces are indented two spaces (and the code four).
 
user142019
I thought it was GNU style. :P
 
@R.MartinhoFernandes Pretty sure it is.
 
user142019
5:15 PM
Oh even worse.
 
Ell
darrrn
 
@Zoidberg'-- Even worse: except for functions.
 
@Zoidberg'-- It also contains food.
 
user142019
        if (foo)
        {
        stmt;
    if (bar)
    {
stmt;
stmt;
    }
        }
 
5:16 PM
The worst thing is mixing spaces and tabs
 
user142019
Reverse indentation! :D
 
This allows Stallman to survive for long periods of time in hostile environments by storing sustenance in his beard.
 
user142019
@EtiennedeMartel LOL
 
@EtiennedeMartel Fortunate, since almost every environment should be hostile to that guy.
 
Xeo
5:18 PM
Man, I hate that you can't really generically deal with non-type template parameters.
 
Cat's vim suggestion "set listchars=tab:▸-,trail:·,extends:»,precedes:«,nbsp:⍽" has made tracking and killing tabs so easy
 
@Zoidberg'-- you just made that up right?
 
user142019
@MooingDuck nope. I have seen it once.
 
arsgtkjrhgw . I am a total failure. I left the card with my e-banking codes back in Portugal.
dsjkgfksba
 
@R.MartinhoFernandes Hahaahahahahahahaah
 
5:20 PM
@EtiennedeMartel It's not funny.
 
In Vim how can I make copying easier? "+y is too much
 
It could be worse. You could have been mauled by a bear.
 
Xeo
Fun is in the eye of the beholder.
 
Oh. I don't need the codes to make transfers between my accounts.
All is well.
@VinayakGarg :help 'clipboard' IIRC.
 
@VinayakGarg I just got used to it. pastemode is related though and see help
 
5:24 PM
If you want it to use the system clipboard for everything, :set clipboard=unnamed
 
@sehe I have also got used to it. But I was teaching Vim to one of my friend, so ... :)
 
My desk is a mess.
I got like a million empty cans.
 
@VinayakGarg ah
 
I also absolutely *love*
`void myfunc(int, int, int)`
`int x,y,z;`
` {`
` stmt;`
` stmt;`
` }`
 
wait, what the... "The build has been restarted. The failure was due to two independent changes running into each other. Kind of the thing that just happens once in a while no matter how much care you take." ISNT THIS WHY WE HAVE SOURCE CONTROL?
 
5:25 PM
@R.MartinhoFernandes That seems good, I will go for that.
 
markup, y u no werk
 
@MooingDuck Vat?
 
@melak47 Now we all love it
 
Ell
does newegg ship to UK? I can't see the option
 
@EtiennedeMartel build failed at work because "two independant changes ran into each other"
 
5:27 PM
@VinayakGarg why doesn't my markdown work :/
 
@melak47 Multiline.
 
Is it does me, or did the option next to the flag queue is now always "review" - even if I last visited "tools"?
 
@R.MartinhoFernandes Zoidy had a multiline code block :/
 
@melak47 But it's all code.
 
I hate that Netbeans inserts closing brackets for me
I type function(castee(myobject).toString()); and on my screen I see function(castee(myobject).toString());)))
 
5:36 PM
Haha. I love R# doing that for me.
Because R# is smart enough to not put an extra one if you still type it,
It's just made of awesome, while Netbeans is... wel...
 
@R.MartinhoFernandes yeah, if typing ) manually caused it consume one of the automatic ones that would be tolerable maybe.
 
Xeo
VAX removes the parens (and quotation marks) if you type them, same goes for Sublime Text
 
@MooingDuck Yep, that's what it does.
 
Ell
anyone here know what a8-3870k graphics are like? (6550D graphics)
 
Xeo
Anyways, I think paren insertion for languages with statement delimiters is kinda meh. I mean, after those parens, I need to type a ; anyways, and I don't want to stretch my fingers to hit the "End" key
Same goes for quotation marks, there's something after that anyways.
 
5:42 PM
@R.MartinhoFernandes FWIW, Eclipse > NetBeans.
 
@EtiennedeMartel That's not worth much.
 
@EtiennedeMartel No Eclipse <= Netbeans
 
@R.MartinhoFernandes It's still worth something. Even if that's just a IEEE 754 double precision epsilon.
 
Seriously, Eclipse refuses to crash. It flat out sucks.
0
Q: Safe and convenient generic hashing (for STL unordered set and map) idiom?

user173342To prepare a struct to be used in an unordered_set, a hashing function is required. This can either be accomplished by overloading operator size_t() (ew) or annoyingly making something like this: namespace std { template<> struct hash<MyStruct> : public unary_function<MyStruct, ...

Yay, Java.
 
Java used to be good in 1995.
It did not age well.
 
Ell
5:50 PM
what does "Expedited shipping available." mean?
 
Sounds redundant.
Is there such thing as non expedited shipping?
 
yeah
 
@Ell Means you can haz expdit ships.
 
that one where you pay less but it takes forever
 
Ell
I just want to know if it ships to the UK
 
5:52 PM
@R.MartinhoFernandes: I added the line "set clipboard=unnamed" to .vimrc, so shouldn't yy be enough to copy into clipboard?
 
Xeo
template<class... Ts>
using back = identity<...>;
template<class... Ts>
using Back = Invoke<back<Ts...>>;
// how can 'back<...>::type' work and 'Back<...>' not? :s
 
Ell
meh amazon sucks for finding a pc
 
I once ordered something and it took forever to get here. Then, when it arrived, it had a "Royal Mail" stamp on it, and I thought "Well, that explains it".
 
@VinayakGarg Hmm, yeah.
 
@Ell Go to scan.co.uk. They are a computing specialist e-tailer
 
5:54 PM
@R.MartinhoFernandes But it doesn't
 
You may need to restart, or run :set clipboard=unnamed manually for this session instead.
 
Xeo
@R.MartinhoFernandes If I use back<some_args>::type, the code compiles, but if I use Back<same_args> it does not (with the usual definitions of Invoke and identity).
 
5:56 PM
Yesterday at work, I received an email that said "English will not follow" followed by the French version, and then the English version. I was confused.
2
 
Xeo
It works for back_nth<N, args>::type and BackNth<N, args>. :(
(The code, if you're interested.)
Maybe I messed up something blindingly obvious.
 
the obviousness, it blinds you!
 
Yeah, that was in Michael something's report a few days back.
 
"There were favorable votes on runtime-sized arrays void f(int n) { int arr[n];" <- darned politicians
 
Xeo
5:59 PM
@R.MartinhoFernandes Wong
 
@Cheersandhth.-Alf Really?
FFS.
 
@R.MartinhoFernandes very bad
 
oooh, the next meeting is in Bristol
 
You should go and teach them all a lesson, puppy.
 
Xeo
So I heard they'll need someone to walk a puppy in Bristol?
 
6:01 PM
depends on whether or not I'm studying in Linz, no? :P
 
I still don't understand what reflection is
 
@Cheersandhth.-Alf what would the type of such a thing be? const T*?
 
@DeadMG Oh, you're taking the offer?
@bamboon Something that is useful for serialization and for doing silly stuff.
 
@MooingDuck it looks like c99 compatibility. if so then it's politics, destroying the language.
 
@DeadMG why are you actually planning to study again? I thought you wanted to start working for a bit
 
6:02 PM
I will be doing both
 
@Cheersandhth.-Alf you seem to hate it because it was in C99. That's politics. Have you tried looking at it objectively?
(You might have, but you haven't expressed that yet)
 
Xeo
So, robot, no idea for my problem?
 
@R.MartinhoFernandes No opportunities here
 
@Xeo Sorry, I'm troubled by iterators currently.
 
Xeo
heh
 
Ell
6:03 PM
I don't understand, this motherboard supports the a8 APU but has no graphics connector o.O
 
@Ell link
 
@Ell APUs are built into the CPU.
 
Ell
@DeadMG but the motherboard must have a graphics connector? else where do you plug it in? o.O
 
@MooingDuck objectively there is existing practice for vlas in c and c++ across the board of systems, namely alloca, indicating a strong need for standardization of a proper feature. c99's feature is known to not be that. e.g. it messes up sizeof.
 
they're on the fucking CPU
 
you plug them into the CPU slot.
 
just to put it succinctly, c++99 vla's are shit
 
Ell
you plug a hdmi cable into the cpu slot? say whaaaat?
 
wait, HDMI cable?
 
Xeo
@Cheersandhth.-Alf I think the C++ proposal on VLAs included that a sizeof on a VLA was a compiler-error.
 
6:04 PM
who said anything about HDMI cables?
we're talking about an APU
 
@Xeo So awesome. More inconsistencies on the damn type system.
 
@Cheersandhth.-Alf alright. Good to see an actual argument. I hadn't thought of sizeof, my problem with the VLAs is that I don't know what the type is.
 
It's one thing to carry them from C. It's another to deliberately introduce them.
 
Ell
sorry, should have been clearer, I understand that the gpu is on the same die as the cpu, but this motherbaord claims to suppor the APU's gpu but there is no graphics connection, as in hdmi/dvi/vga so how can the gpu be used?
 
6:06 PM
@VinayakGarg only 5 people
 
Xeo
@R.MartinhoFernandes Really, you can't go right with VLAs, I think. You'll break the type system one way or another.
 
@MooingDuck Yes that must be mentioned too
 
@Ell Perhaps, like a GPU, the APU itself comes with it.
 
Ell
okay now I'm definitely confused
 
@Xeo well it's possible to do something like vector. the support doesn't need to be very much more than ensuring it's only used on stack. possibly we could be talking about a core language feature that could be used to define vla-like types
 
Ell
6:09 PM
so the thing going into the cpu socket will have a hdmi slot on it? o.O
 
@MooingDuck: I have a feeling that you are a codechefer
 
Xeo
@Cheersandhth.-Alf Yeah, was just thinking about that. New built-in type vl_array or something.
 
@VinayakGarg yes, though so far only the practice problem
 
Xeo
That might just work, but meh.
 
@Ell Apparently not.
 
6:10 PM
@MooingDuck oooh Please solve Jam Board then!
 
@VinayakGarg still reading
 
@Cheersandhth.-Alf The real problem is that the Standard doesn't define useful allocators.
a memory arena allocator can best _alloca on Visual Studio anyway
there's no reason for a VLA when you have a decent memory arena allocator
 
@VinayakGarg one thing I dislike about codechef is the tiny byte limit on input
 
well there's a little more, namely ensuring that the allocator allocates outside of any expression
that's where core language supports is required
 
@MooingDuck What? Isn't 50000 Bytes enough
 
6:12 PM
*1: Requires additional VGA card to output display.
 
My code are under 50-80 lines most of the time. Do you use macros too much?
 
i mean for an allocator that does alloca-like stack allocation
 
sure
but what I'm saying is that there's no need for variable-length stack allocation
the heap is fine if you just manage it appropriately
 
@VinayakGarg for one I wrote a bignum class. Then I had to rewrite the code because the class was too big
 
@MooingDuck I never required bignum, because they use modular arithmatic
 
6:17 PM
well it can never be as fast as stack allocation. you can allocate a big fixed size chunk of memory and implement lifo sub-allocation. but then using permanently big chunk of memory :(
 
@Cheersandhth.-Alf Faster than _alloca on VS2010.
 
It's hard to beat a register addition/subtraction.
 
I've been looking around for a bit. In the interest of not wasting my time. Is it possible (if so I'll keep looking) to create a template function which works with all stl containers? Something along the lines of:
template<typename C, typename T>
void SomeFunction(C<T> container) {}
 
@Mysticial Actually _alloca is quite a bit more than that.
I've seen the source code, and it's a lot more than one instruction.
 
@VinayakGarg codechef.com/problems/FCTRL2 requires bignum, have to accurately calculate 100! with a 2000 Byte limit
 
6:18 PM
@Borgleader Yeah- template<typename Container> void SomeFunction(Container c) {}
 
@Borgleader you'll miss a bunch of defaulted template parameters if you do that.
 
What if I need the type of what is contained ?
 
@Borgleader typename Container::value_type
 
@DeadMG yeah, the MS implementation is imbecile. the only reason to use alloca is for speed, and it can never be entirely safe. they traded away all the speed for silly make-believe safety
 
or decltype(*c.begin())
balls, I died cause I was typing rather than playing :(
 
6:20 PM
@rubenvb Not if you use variadic templates :P
 
@R.MartinhoFernandes right. But he didn't :p
 
@DeadMG What else does it do besides subtracting from (r)esp and undoing it when it falls out of scope?
 
something to do with stack alignment, I think
 
@MooingDuck Normally it is much large, I think they kept 2k specifically for this problem. A simple array implementation would have been enough
But you can use python, if you really need bignum
 
@DeadMG Which is one AND instruction.
 
6:21 PM
@VinayakGarg I suppose that's to prevent hardcoding the table.
 
don't ask me I didn't implement it
 
@R.MartinhoFernandes I was thinking the same, because 100 values can be hardcoded
 
They probably have a shitty implementation of alloca() then. Alignment and stuff needs to be done by heap allocators as well.
 
You can use ICK as a language?
Is that what I think?
No way.
Can't be.
 
6:23 PM
Is it better to use an archaic object script or just do ar -ru somelib.a somedir/*.o?
 
@R.MartinhoFernandes: What? ICK what's wrong?
 
wait ooops
 
@VinayakGarg The ick I know is the INTERCAL compiler.
 
@R.MartinhoFernandes heh, probably
@VinayakGarg Can you... remove that?
 
@DeadMG Thanks :) Sorry I killed you :(
 
6:25 PM
@VinayakGarg thanks :(
 
@VinayakGarg You should really delete it.
 
I didn't realize I'd used CodeChef with my real name :/ Username definintely isn't my real name
 
Room owners can still see it, but at least that's not everyone and their dog.
 
woof woof
 
@MooingDuck: This is rather surprising! Anything wrong in showing real name
 
6:26 PM
@VinayakGarg Jam Board doesn't look all that complicated.
 
@MooingDuck Ofcourse, that's why I am surprised too
 
@VinayakGarg if people know who I am, they can know who I work for, and I can't badmouth my job :P
Also just feel safer. Also wife doesn't like people knowing who she is
 
@MooingDuck Oh got it ;) Shhh... I don't know your name
 
@MooingDuck She's Mrs. Duck. We all know that.
 
lol
@MooingDuck More strange. But I am not curious
But let it not be a secret that JABO is my problem :D
 
6:29 PM
@VinayakGarg HAHAHA
@VinayakGarg so it is
@VinayakGarg At first I was irked at the base 52 input. Then I realized it's awesome
 
@MooingDuck Please tell this to @DeadMG
 
@DeadMG But the heap is so far away and slow... I'll just allocate 1000 bytes and hope nobody ever needs more ;)
 
lol Jimmy is a Dick
 
Can I use initializer_list to do static initialization of arrays of various lengths?
 
6:32 PM
@TonyTheLion Compile-time reflection or runtime reflection?
 
struct foo { int x; std::initializer_list<int> ys; };
foo foos[] = {
    { 0, { 1,2,3,4 } },
    { 1, { 5,6,7,8,9,10 } }
};
// does this mean static initialization?
Don't answer, I'll ask on Stack Overflow.
 
@MooingDuck Why is it awesome?
@R.MartinhoFernandes lol how you felt the need to leave a link.
 
@DeadMG I didn't. See source.
 
oh yeah
I keep forgetting about that
 
6:37 PM
@MooingDuck: You have only solved practice problems?? Take part in Long or Short challenge. It's fun.
 
I'm making progress :) Won't be the best C++ LINQ wannabe but it'll be something
 
@VinayakGarg your question isn't clear as to if multiple voltages can be applied to the same point as eachother or as wires
 
@MooingDuck By multiple voltage, I meant multiple voltage source inserted in same cell
Same goes for wires. Multiple wires can be inserted in same cell/hole, for which Jimmy must be excused
 
@VinayakGarg question doesn't say that multiple voltages can be applied to the same cell.
@VinayakGarg that sentence implies that only one voltage can be applied to a cell.
 
@MooingDuck Let me check
You are right. I will have to fix it.
But you know what, it shouldn't make difference!
 
6:48 PM
@VinayakGarg if only one can be applied, there's optimizations that can be done. Since it's vague, I have to code with the possibility that multiple voltages can be applied. Both are valid.
 
@MooingDuck Wait, I will just check
@MooingDuck: I have checked, Multple voltages can be applied at same point. I will fix it in the statement.
Thanks for pointing it!
 
@VinayakGarg it's also unclear from description if input is row/column, or column/row
 
@MooingDuck It's mentioned in beginning. "How can we refer to the point 3 on Jam Board, using coordinate system? Candy for taking a guess! It is (2, 9), from Top Left."
 
@VinayakGarg oh, there it is. Nevermind then
 
hmmm
there's a youth hostel about 200m away from the Marriott Hotel in Bristol
£28/night for a private room
I could spring that
 
6:56 PM
What are you planning?
Can you go to the meeting without being a member of the committee or whatever?
(Next committee meeting headlines: Stray ravenous puppy attacks standard committee members)
4
 
@R.MartinhoFernandes He is probably planning to convince everybody in the standards committee to abandon C++ and work for him on the evolution of Wide :)
 
@R.MartinhoFernandes, from what I've heard, they have no problems with listening people that cared about getting at the meeting.
 
@VinayakGarg "And when he removes wire from a point, he removes only one of it at a time." There's no input to signify the removal of a wire, only a removal of a voltage. Also, it implies but is not clear that removal is FILO.
 

« first day (747 days earlier)      last day (4207 days later) »