« first day (744 days earlier)      last day (4222 days later) » 

11:00 PM
@sehe, it's just out of respect for the project structure, over which I have no authority
@MooingDuck, I'd be totally okay for scripting that, is there any usable reference on how to script that kind of thing?
 
user142019
I’m really in the mood to learn Erlang.
 
@zneak nope
 
well then, I guess I'll add it by hand then
thanks for trying guys
 
static constexpr triplet complete(int size)
{ return F >= 0 ?
    (S > 0 ?
        triplet { F, size, S } :
        triplet { F, 0, S }) :
    (S > 0 ?
        triplet { F, 0, S } :
        triplet { F, -size, S }); }
The joys of constexpr functions.
 
@MooingDuck Yeah, I remember you mentioning that before. That was part of why I mentioned "at doing what". Like most programs that do a lot of different things, it does some a lot faster than others (even if you measure relative to other programs that do similar things).
 
user142019
11:10 PM
Erlang is weird.
 
This Ron Raimon guy was actually arguing with a Nobel Peace Prize winner in Physics.
 
@Chimera +1 for balls, -1000 for brains.
 
@StackedCrooked LOL. Fired up a windows machine just for that?
 
I can use shift-click.
 
11:13 PM
@StackedCrooked Oh. TIL. Might come in handy once I get a Mac
 
Shift-click selects a range. So I can't deselect the innocent messages.
 
Oh you mean as, in, you nuked the whole chat log. Wow. I could have helped. (Would have looked a bit weird)
 
@StackedCrooked That was a bit drastic don't you think?
 
It's ok really.
 
Dafuq did I miss?
 
user142019
11:14 PM
@Borgleader Lots of porn.
 
@Borgleader Read all about it in the bin.
 
@Zoidberg'-- yeah, popcorn
 
user142019
@StackedCrooked copporn
 
Pop porn.
 
@Chimera Actually, I think about 2 bits (2 bits can count to 3, and I think that's about how many of those messages may have been worth keeping).
 
11:15 PM
Not as good as indie porn.
 
user142019
Reno 911
 
@JerryCoffin LOL
 
Progressive porn is way too complex for me.
 
user142019
What Lisp dialect shall I learn?
 
@EtiennedeMartel Weekly charts on Saturday morning TV!
 
11:16 PM
@Zoidberg'-- Scheme. Wait.
No.
Racket.
 
user142019
What about Clojure?
 
@Zoidberg'-- I'd recommend Racket. Schemish and a decent IDE to boot.
 
user142019
I don’t want an IDE.
 
@Zoidberg'-- If you want to target the JVM, sure.
But Racket is the non sucky version of Scheme.
 
user142019
What does it compile to? Machine code?
 
user406009
11:17 PM
Fairly sure it's an interpreter.
 
@Zoidberg'-- Don't need to use the IDE if you don't want, but for anything Lisp, you want an editor designed for Lisp.
 
user142019
Hehe rainbow parenthesis.
 
@Zoidberg'-- It compiles to its own VM, but can produce standalone executables (but they're big since they include a complete VM).
 
@StackedCrooked there, restored the uncontaminated parts AFAICT
 
yes?
 
11:19 PM
@Ell BBC
 
@sehe Thanks.
 
@Zoidberg'-- Not necessarily rainbow, but you pretty much need at least some sort of parens-highlighting.
 
@zneak If you're here for the plink, it was nothing, it was just messages being moved
 
Ell
@DeadMG in what subjects?
 
oh okay
 
11:20 PM
Maths, Physics, Law respectively
 
I SHALL GO BACK TO MY SLUMBER
 
:)
@MooingDuck thanks for that. I appreciate the coolheadedness you had. And I will tread more carefully next time. I think. If I remember to. :)
 
Psyduck uses reason, it's super effective.
:)
 
Oh hey, Steam Linux Beta.
 
O.o Linux Beta? Damn... they must really hate Windows 8
 
11:28 PM
@Borgleader I think it's probably directed about as much at Microsoft in general as at Windows 8 in particular.
 
@Borgleader Who doesn't.
It's a turd.
 
Probably but then again, most of their user base is on Windows.
So probably more directed at Windows 8 than Microsoft
 
guys, the OS debate is over now
 
@Borgleader Well, I remember reading that the two biggest developers that still give a shit about the PC, Valve and Blizzard, both dislike Win8.
 
It's not an OS debate
 
11:29 PM
@bamboon Yeah, like that one's ever going to end!
 
@EtiennedeMartel And I'm not saying they shouldn't :P You'll pry Windows 7 out of my cold dead hands!
 
anyway, the cool kids discuss mobile OSs nowadays
 
you're a funny man
 
We're actually looking at porting our engine to WinPhone 8. So... yeah.
 
Where do you work at again? If I may ask
 
user142019
11:33 PM
(defn fact
    "Calculate the factorial of a given number."
    [n]
    (if (< n 2) 1 (* n (fact (- n 1)))))
 
user142019
My first Clojure function. :D
 
wtf, operator oper oper syntax?
 
@Zoidberg'-- Condo rats!
 
@Zoidberg'-- what does the square brackets mean
 
user142019
brb I need to take a shit.
 
11:35 PM
formal argument?
 
user142019
@Cheersandhth.-Alf function arguments.
 
user142019
And the string is a docstring, like in Python.
 
@Zoidberg'-- It needs a few more ((((((((((((((((((((((( )))))))))))))))))))))))))))))
 
Could anyone explain to me what the "=0" repesents in:
`class Cents
{
private:
int m_nCents;
public:
Cents(int nCents=0)
{
m_nCents = nCents;
}`
 
thanks, that's what i half guessed
@Josh it's a default argument value
 
Ell
11:37 PM
@Josh it's the default value for nCents
 
and since the only argument is defaulted, it makes the constructor callable without arguments, hence by definition a default constructor
 
meaning if nothing is provided to the constructor, m_nCents = 0?
 
@Josh Default value -- if you call the function without specifying a value, that value that will be passed. In other words, Cents() is equivalent to Cents(0).
 
i see
 
@Zoidberg'-- You should indent that if
 
11:39 PM
so it's basically a default constructor and a regular constructor in one?
 
@Josh yes
@Josh that constructor should also have the explicit keyword in front of it.
 
@Josh yes, and you should be using member initializer lists instead of initializing members in the body
Cents(int nCents=0)
: m_nCents( nCents )
{}
 
unless you also want it to be an implicitly converting constructor
explicit Cents( int const nCents = 0 )
: m_nCents( nCents )
{}
 
i see, thanks guys
 
The const is technically superfluous, but it's just a generally good habit to drop const everywhere you can
 
11:43 PM
i'm coming from java, so all of this is very new to me
but i'm having a blast trying to figure it all out
 
C++ is more fun than Java
 
vs started faster now, just half a second, but i think that means it must be leaving sort of a ghost of itself in memory instead of terminating completely?
 
it's definitely more versatile
everything seems to be much more explicit whereas java seems to have a much greater level of abstraction
particularly pointers and references
 
Java has no operator overloading :(
 
@Josh I'm curious, why are you learning C++?
 
11:48 PM
to expand my programming knowledge
it's really interesting seeing the differences between different languages
 
Ell
I can't programme without pointers
 
What?
 
also, c++ is a compiled language, which means it's more efficient, given the code is written efficiently
 
Fair enough, although there's not much of a difference between Java, C#, and C++ when you break it down
 
user142019
@Pubby TIL
 
11:50 PM
You might wanna check out a different style, like functional, concatenative, or logic
 
user142019
@Pubby everything is more fun than Java except PHP.
 
Ell
@Pubby concatenative?
 
user142019
 
@Ell Factor, forth, etc
 
user142019
You can change “awesomeness” to “fun”.
 
Ell
11:51 PM
@Zoidberg'-- I think you made an error in that?
 
@Zoidberg'-- I don't know clojure style and I'm not a lisp programmer but indentation seems to make sexps much more readable
 
user142019
@Ell no, it’s an old chart.
 
Ell
Haskell is top? Probably just entered an extra zero or something
 
user142019
Haskell is the bestest.
 
Ell
;)
 
11:52 PM
Python > C++? Nawwww
Dont get me wrong I like Python but... not more than C++
 
C++ is way underrated on that chart
 
Ell
Right. In a language without pointers and stuff, nothing copies does it?
 
user142019
Nah, it’s overrated on that chart.
 
Ell
How do you get a T**?
 
@Ell What?
If you don't have references then everything is a copy
If you only have references then you have copy functions to do copying
 
Ell
11:54 PM
I mean, in python/ruby/java/etc. you only have references, don't you?
 
@Zoidberg'-- This is how I imagine you right now
 
user142019
@Borgleader not really.
 
I think primitive types always copy
 
user142019
C# > C++, but on the chart it’s the other way around.
 
C++ is way more interesting than C#
 
11:55 PM
i know in java objects can only be instantiated by reference
 
user142019
I know in Java objects are terrible just like Java itself.
 
always on the heap
 
user142019
@Josh The compiler can do optimizations.
 
user142019
Oct 24 at 17:32, by FredOverflow
@WTP'-- Java is free to put objects on the stack (see "escape analysis" optimization), the programmer just has no way to make sure it does.
 
@Zoidberg'-- i see
i tend to have trouble knowing exactly when to instantiate on the heap vs the stack though
in C++
 
user142019
11:58 PM
Well
 
Don't think in terms of heaps or stacks if you're talking about design
 
user142019
just make sure you never use new in C++.
 
think in terms of automatic/dynamic
 
user142019
Don’t use new: tinyurl.com/fuck-pointers
 
Ell
only allocate dynamically when you need to
 
11:59 PM
^this
 
user142019
Use std::unique_ptr when you need polymorphism, use boost::optional when you need an optional.
 
isn't the point of pointers to avoid stackoverflow though?
 
user142019
No.
 

« first day (744 days earlier)      last day (4222 days later) »