« first day (1815 days earlier)      last day (3119 days later) » 

8:00 AM
@elyse Things may change here as well.
 
user1804599
Fuck Belgium!
 
@JohanLarsson This stuff is actually better: but... I think 1857 isn't a time period I can justify to my Professor as being close enough to the Classical Era of Music
I'll try anyway, though.
Grieg's stuff sounds interesting.
 
@elyse Any other places I should check for the absence of effects?
 
> Tchaikovsky - 1840
Fuck
 
user1804599
8:03 AM
So cool. Perl 6 JIT compiles functions while they are being executed and then hotswaps them before they return.
 
Come ooon, why is nobody like this around in the 1600 or 1700s? D:
 
user1804599
Because that's useful with long-running loops.
 
Is Perl 6 the fastest JITted language ever?
 
user1804599
@fredoverflow comma operator
 
user1804599
> Audrey Tang coined the term that Perl 6 is optimized for fun, short -Ofun.
 
user1804599
8:05 AM
> Perl 6 has a fun-driven community: writing a Perl 6 compiler is fun, developing applications too, and most of all dealing with friendly, intelligent people.
 
user1804599
Fun-Driven Development
 
And it doesn't help that WHOLE swaths of music
are just... Mass. Mass Mass Mass Church Mass Chant Mass ugggh.
 
Where should I keep the conf files when using cmake ? is the any tutorials on that ?
 
@sehe: Arc = Atomic Reference Cell
 
mmm. Misreply?
@ThePhD Blame commerce
It was the only way for composers to be employed
 
8:11 AM
yesterday, by sehe
Arc<Tic> POlar
 
Ah. :)
 
@elyse I already do that, see 2nd warning.
 
You probably knew the whole time
 
user1804599
oh nice :p
 
@JohanLarsson What? No on both probably accounts
 
8:12 AM
ok
 
user image
4
without commenting on the meme, how dafuq does the lhs work? I'll never understand physics
 
magic
 
@AndyProwl center of gravity
 
@fredoverflow I still don't get it
that coin will fucking fall
 
it is clamped by the forks
 
8:15 AM
@AndyProwl The end of the forks are much heavier than the rest
 
@Mr.kbok oh, right, the forks are actually bent inwards
I didn't notice that
 
The engineered solution is much more robust thought
 
honestly I think the analogy is bad, they're both engineering
 
user1804599
@AndyProwl no, the forks change the centre of mass.
 
8:17 AM
1 min ago, by Andy Prowl
@Mr.kbok oh, right, the forks are actually bent inwards
 
and a date and time
I can put music like this in there. >_>
 
user1804599
also MAGNETS
 
and invisible wires
 
user1804599
Invisible MAGNETIC wires.
 
Just make a new class for handling the switch statemement and that is your refactoring done. Refactoring is not about reinventing the wheel, it is about segmenting your code to smaller logical pieces. Basically any piece of code that does something and can be described with verb should be class/method. — The Law 18 mins ago
ouch. "Make a new class for handling the switch statement" sounds so wrong
 
8:21 AM
I thought refactoring was about merging code that was doing similar things
hence factor ing
 
Is Vim free?
 
refactoring is not necessarily about merging
 
@JohanLarsson really?
 
it's changing/improving the code without changing its behavior (give or take)
 
@JohanLarsson Nope, it's donation ware. You need to donate for starving children in Uganda.
 
8:23 AM
can I donate for starving adults in Uganda?
 
If they make it past the child stage why not
 
@Mr.kbok hmm
 
@GregorMcGregor Maybe you can donate some potatoes?
 
Morning. Plenty of love ♥
 
<3
 
user1804599
8:25 AM
@TheLaw Why make a new class? The class already exists, and it's called List<BiConsumer<FacebookFields, Cell>>. — elyse 20 secs ago
 
wow, it looks ugly in chat
 
@elyse you have the weirdest memory for trivia. +1
 
@elyse lol I didn't know Facebook had LGBT classes
 
what's a BiConsumer?
 
market segmentation
 
8:27 AM
@GregorMcGregor Facebook iOS app alone has 18k classes. Of course there would be LGBT classes.
 
user1804599
@AndyProwl A binary function that returns void.
 
oh
Java no templates/generics/whatever?
 
user1804599
It has generics, but no variadic generics.
 
@AndyProwl super glue
 
8:28 AM
So they have like TriConsumer, TetraConsumer, PentaConsumer, etc.?
 
@AndyProwl Java Generics are a thing... just not a very good thing
 
Java generics suck
 
user1804599
@AndyProwl No, up to two.
 
@AndyProwl what do you mean?
 
@Mr.kbok Refactoring is also about minimizing the truck factor ;)
 
user1804599
8:28 AM
Scala has Function0, Function1, ... up to Function22. :P
 
@elyse Almost as broken as C++. wow.
 
lol
@elyse still better than 22
 
@elyse Why does it stop at 22 though? Catch 22?
 
user1804599
And Unit, Tuple1, ... up to Tuple22.
 
@fredoverflow good one (but I think it's bus factor)
 
8:29 AM
@AndyProwl Not a TransConsumer or a CisConsumer
 
user1804599
@fredoverflow Because if your function takes more than 22 arguments, you have 99 problems.
 
@sehe I was wondering
 
@AndyProwl Wow. That's atrocious. Why would you starve adults in any country!
 
Maybe the US
 
user1804599
8:31 AM
java.util.Optional is stupid.
 
user1804599
It disobeys the functor laws.
 
@GregorMcGregor You donate to children starving, not to starve children
 
cuz their fat!!!11 topkek
 
Hi guyz
 
@Mr.kbok lel
 
user1804599
8:31 AM
But still better than null.
 
user1804599
Fuck null.
 
user1804599
null ist Krebs.
 
@Rerito hi
 
@sehe it's this feeling of power over their lives I can't get rid of you know
 
I ordered the Yoga 3 finally
 
8:32 AM
I like how loungers check in one by one on monday mornings
 
@Rerito delete superfish cert
3
 
i7, 256G SSD and 4G RAM
 
@elyse That reminds me, I haven't implemented null so far :)
 
@Mr.kbok Hint, they never check in in herds
 
@sehe Gonna star this to remind it :)
 
8:33 AM
@Rerito yoy
 
user1804599
@fredoverflow Good.
 
@Rerito Don't remind. Like goldfish, superfish have bad memory
 
why don't we like null again?
 
user1804599
@fredoverflow does your implementation croak on many cases of UB?
 
@elyse When would I need null in C, except for when malloc runs out of memory?
 
8:33 AM
reminds me of
 
user1804599
@AndyProwl The type system does not guarantee that a value is not null.
 
user1804599
I.e. you're on your own.
 
@Mr.kbok Hehe, just after the morning workout :p
 
@Rerito Wow! All this 4k HD, SSE4.2 accelerated porn you're going to enjoy!
 
user1804599
The whole point of the type system is to catch bugs.
 
8:34 AM
@elyse I detect reading uninitialized variables and out-of-bounds array access. I think that's about it. Any other low-hanging fruit on your mind?
 
so optional is also bad?
 
user1804599
No.
 
@AndyProwl Maybe.
 
@GregorMcGregor On a 14' screen, not so much
 
user1804599
A good optional requires you to do a check first.
 
8:34 AM
ah, so it's one specific flavor of null we don't like, not the concept per se
 
user1804599
For example, through pattern matching.
 
@Rerito At least it fits my dick
 
user1804599
Or map.
 
@AndyProwl Implicit nullable often means illegal state is default ime.
 
p.m();   // can fail at runtime
o.m();   // does not compile
 
8:35 AM
@Mr.kbok I'd love to sneak something like that into a system one day
 
@thecoshman And then no one logs in, lol
 
@Mr.kbok makes it cheaper to run :P
 
user1804599
In C and C++ it's even worse, since dereferencing NULL is U-fucking-B.
 
user1804599
Rust wins once again.
 
does std::optional throw on opt.value() or *opt if empty?
 
8:36 AM
so street
 
user1804599
@AndyProwl hahahahha you really think they'd do something good
 
int * p = nullptr;
int * q = &*p;   // UB?
 
user1804599
of course it'll be UB
 
user1804599
@fredoverflow yes, UB
 
@elyse well, it mostly makes sense, because it makes no sense
 
8:36 AM
wtf
:26098227
 
@elyse I don't think so. At least not what I've seen
 
@elyse no, not UB I think
 
@elyse But gsl::not_null and required tooling :(
 
anything worthwhile written in rust yet?
 
there was a Q&A on SO about stuff like that
 
8:37 AM
@Mr.kbok the Rust compiler ;)
 
user1804599
@Mr.kbok rustc
 
I said worthwhile
 
@Mr.kbok Google Servo
 
@Mr.kbok Pascal and Modula-2 are wirthwhile!
 
dunno how far they have come
 
8:37 AM
@Morwenn I keep seeing gsl and thinking they meant to type glsl
 
There's this PKI book I was looking for. 80€ on Amazon, found it second hand at less than 6 (including shipping fee)
 
@JohanLarsson fun
 
user1804599
Type systems are in place to prevent you from making bugs. The more bugs they catch, the better. null dereference is a bug that is easy to make, and for type systems incredibly easy to check, hence null dereference being unchecked is absolutely retarded.
 
@Johan I thought Servo was mozilla?
 
@Rerito fee
 
8:38 AM
@nishantjr so is Rust no?
 
@Mr.kbok Shhh no one noticed
 
Ah. You had said google.
 
@Rerito (IRTA flea)
 
user1804599
@nishantjr he doesn't mean Servo is from Google.
 
why would you ship fleas???
 
8:39 AM
@elyse so basically what you don't like is that -> on a pointer gives UB instead of throwing?
 
user1804599
He means kbok should google it.
 
yeah should have been google: Servo
 
user1804599
@AndyProwl no, it should be impossible
 
user1804599
it should just not compile
 
Oh I see.. google as a verb
 
8:39 AM
@elyse Kotlin is completely null-safe as long as you stay within Kotlin. Interop with Java is potentially dangerous, of course.
 
user1804599
@fredoverflow good
 
@elyse oh, I get it
so you're forced to check
 
user1804599
There are various ways to catch this.
 
user1804599
One is to abandon null altogether and have an option type (like Haskell, and Rust do).
 
google servo is a completely unrelated thing
 
user1804599
8:40 AM
One is to introduce dependent typing with refinements.
 
gargle cerveau
 
user1804599
One is to have special language rules for checking nulls (like Kotlin, Eiffel and Hack do).
 
@AndyProwl Also nice to be able to say that something cannot be null, arguments for example. Skip noisy checking.
 
@elyse It's not really special rules, nullable types are different types, plus Kotlin has flow-sensitive typing.
 
user1804599
@fredoverflow "nullable types are different types, plus Kotlin has flow-sensitive typing" is what I call special rules. :p
 
8:41 AM
@JohanLarsson Well, in C++ you can just use references
 
user1804599
but yes, that was what I was referring to
 
user1804599
In Eiffel you can't dereference nullable types.
 
@AndyProwl inb4 what if you pass *p ;)
 
user1804599
You either have to write check attached x (i.e. assertion) or if attached x as y then ... end.
 
overly attached pointer
 
8:43 AM
@fredoverflow well, yeah, but then chaos ensues before the function is called - at least it should, not sure it does
 
@AndyProwl apropos references:
0
A: What is the functional difference between a const pointer (not a pointer to const) and a reference?

fredoverflow what can I do with the pointer or reference that I can't do with the other? References allow you to write certain constructors and overload operators: class X { // copy constructor X(const X& a); // move constructor X(X&& a); // copy assignment operator X& operator...

Take that, "references are pointers" folks!
 
user1804599
References in C++ are a lot better, but still not foolproof.
 
user1804599
They can be dangling.
 
If you restrain yourself to reference parameters, you are safe ;)
 
user1804599
And both to-mutable and aliased, which can cause surprises.
 
8:46 AM
@fredoverflow and since pointers and arrays are also the same thing, references are arrays!
3
 
user1804599
void f(int& x, int& y) {
    auto old_y = y;
    ++x;
    assert(y == old_y); // oops!
}
 
user1804599
DANGEROUS
 
al(i)as
 
Oh yeah, aliasing. I keep not taking that into account when I code...
 
user1804599
@Morwenn Use Rust. :P
 
8:48 AM
@elyse Will it let me reimplement my sorting library with the same classy interface?
 
user1804599
Do I know?
 
user1804599
You can't do aliasing when at least one alias is to-mutable. If you need that in your interface, then no, you can't.
 
man still 5 hours to go till this working day ends
 
Or we can wait for foo(const value| bar); in the C++, lol.
 
how am I going to survive
wasn't there a proposal for restrict
or is that not relevant
 
user1804599
8:49 AM
restrict is not checked by the compiler. :P
 
@elyse what is aliasing?
 
user1804599
@JohanLarsson when you have two pointers to the same value.
 
@AndyProwl I think there were too many problems with it.
Hum, some parts of the C decimal TS won't make it into C++ without modifications.
 
user1804599
Boost already has decimals.
 
user1804599
@fredoverflow In C# and Rust, references are pointers.
 
8:53 AM
Since there were battery issues, Nvidia sent me another tablet
 
user1804599
They call'em references, but they really are pointers. :]
 
Lounge<NotC++>
 
cpppointer.com
 
double reduc_sum(size_t n, const double p[static n]);
@elyse I was thinking of the part about supplementary math functions.
 
There was a soft brick meant to happen when I would launch the new one. Flashed cyanogenmod on the old tablet: didn't brick :)
 
8:54 AM
@AndyProwl lol
 
That one where function names have so many prefixes and suffixes that they become basically unreadable.
 
user1804599
@Morwenn ooh :(
 
user1804599
I think Boost should be renamed to std-contrib. :P
 
The decimal types by themselves shouldn't be a problem. The only quirk is that they may or may not be built-in types.
 
Apparently, there is no A language because SEO. There's A+, A++... Etc.
 
user1804599
8:58 AM
Clojure was named so partially because of SEO.
 
A#
> A# is a port of the Ada programming language to the Microsoft .NET platform. A# is freely distributed by the Department of Computer Science at the United States Air Force Academy as a service to the Ada community under the terms of the GNU General Public License.
...oh wow
 
user1804599
@Morwenn I'm more interested in rationals actually.
 
user1804599
Unbounded rationals are perfect for monetary values.
 
Well, A+ used to be A, but A+ was the final variant. Or something.
 
@elyse Yes, let's hope that the Numeric subgroup will start a TS of some kind.
 
user1804599
8:59 AM
I don't do square roots or other operations that result in irrational numbers on amounts of money, and unbounded rationals provide exact computations, which is excellent.
 

« first day (1815 days earlier)      last day (3119 days later) »