« first day (1567 days earlier)      last day (3607 days later) » 

23:00
^ delicious exotic word ordering, also what makes Flemish appealing
Goesting om de straat te kuisen.
@sehe heh, really?
Alleeje, ennek'ik heb ginne goestin
Sounds totally normal to me. But hey, I'm Flemish.
user1804599
Ok, fuck curly braces.
@sehe West-Vlaams
23:01
@StackedCrooked I might have pushed the envelope there a bit, but I'm sure I could have fooled any Dutch person I know into thinking that word order was "perfectly normal" in Flemish
@рытфолд Run while you can!
What's the Dutch for kraantjeswater?
user1804599
This is much more beautiful:
user1804599
sub fib (x: N) do
    fib (x - 2) + fib (x - 1)
end
@StackedCrooked d'n Antwerp, da waor wel dichtbij (dichtbij klinkt uit de context hier)
@StackedCrooked kraanwater?
23:02
"Gemeentepils"
user1804599
@sehe doet me denken aan dit: youtube.com/watch?v=cgeDXSx-lGc
@sehe Ah, the ennek'ik sounds from Antwerp indeed.
The transcription was purely my imagination.
We could sell that as zuid-Zeeuws
23:05
For some reason people from Zeeuws-Vlaanderen sound like people from Vlaanderen. :)
Interesting lemma
@рытфолд lol sub
user1804599
sub is great.
user1804599
It reminds me of Perl.
user1804599
And Perl is great.
23:07
lol Perl
user1804599
Perl <3
@рытфолд is that the full implementation? (how does it know fib(0) and fib(1)?)
user1804599
@StackedCrooked No.
user1804599
sub fib 0 do 1 end
sub fib 1 do 1 end
sub fib (x: Z)
    require x >= 0
    do
        fib (x - 2) + fib (x - 1)
    end
user1804599
23:10
Or maybe that.
user1804599
I haven't designed numeric types yet.
So you can implement politicians. They're rarely integral types
user1804599
:v
user1804599
23:14
I could make Z be bigint.
What is Z?
user1804599
The type of integers.
interesting stuff.
user1804599
And dividing integers results in a Q as it should be.
what is a Q?
23:17
welcome to basic maths :)
user1804599
A rational number.
user1804599
inb4 sehe joke about politicians being neither integral nor rational
> society kinda trains you out that [play], because society requires predictable workers to keep society running...
... you don't have to do that
still a decent joke
@рытфолд Unfortunately, they are very real.
23:18
@рытфолд real integral politicians are imaginary!
user1804599
And coincidentally, politicians tend to be very bad at numbers.
user1804599
Especially when those numbers have currency symbols before them.
They are good at obtaining the currency though.
s/obtaining/spending other's
user1804599
Or I can make Z an interface.
23:22
Yesh
Make it a abstract singleton factory bean.
user1804599
And different integral types can implement it, and N can be a subinterface of Z.
@StackedCrooked Proxy, dude. Everybody knows it's gotta be a proxy.
I'm ashamed.
ya fookin' shood be
user1804599
23:23
Good thing they're all immutable.
I want to go to bed now
you could try
but I got a haircut so there's still random hair on my head
people have been known to succeed
but taking a shower is soooooooooo much work now
23:24
fap
you want me to fall asleep on the chair?
i want to be happy and achieve self fulfillment
what is missing?
alrighty, here's a mystery
how can a std::string lose it's value without being moved from?
By clearing it.
23:29
it's const
By means of UB then..?
yeah, I guess so.
Xeo
Xeo
@Puppy Destructed
don't think it's that either
How do you know it lost its value?
23:30
debugger says so
Maybe the first char is '\0'?
nope- size 0.
> Playing is a series of happy accidents
> Goal orientation doesn't work
@Puppy so, that's it
@Puppy ah. MSVC debugger so superior, don't trust it :|
@рытфолд How do you feel about them not being symmetric?
Maybe the string was moved implicitly (and unexpectedly)..
23:32
@AlexM. Is that truly random hair, or just pseudo-random hair? What tests have you used to verify the quality of your random hair generator?
it's not movable, since I explicitly defaulted the copy members (of the containing struct)
user1804599
This is so stupid:
user1804599
user=> (numerator 1/2) (denominator 1/2)
1
2
user=> (numerator (* 1/2 2)) (denominator (* 1/2 2))

ClassCastException clojure.lang.BigInt cannot be cast to clojure.lang.Ratio  clojure.core/numerator (core.clj:3306)

ClassCastException clojure.lang.BigInt cannot be cast to clojure.lang.Ratio  clojure.core/denominator (core.clj:3314)
@Puppy swapped with an empty string?
user1804599
For some moronic reason, numerator and denominator don't work on integers.
23:33
@JerryCoffin It's wrapped in an immutable struct.
user1804599
Rendering the two functions useless.
which has an assertion in the constructor that the value is not empty.
@sehe sorry /cc @AlexM. obviously meant "I want you to be ..."
which doesn't trigger.
@рытфолд denominators could violate their integrity
23:34
see. don't trust debuggers. They get sidetracked with optimized code
it's a debug build.
... gee. Are you confident that nothing was inlined then o.O
ohhhhh, it probably was destructed.
@Puppy Insert logging in all constructors. Verify the problem does not occur anymore. Remove the logging. Find that the bug does not occur anymore. Problem solved.
IOW "debug builds" just means "attempts to describe debug information" these days
23:35
@Puppy In that case, it seems like losing (or in any other way modifying) the value would be a sign of a bug.
I s/auto/auto&&/ to catch some MSVC shit about inaccessible move constructors.
uhoh
and I happen to have done auto&& var = *optional_value(); which of course does not extend lifetime.
@Puppy Oops.
oh wait it's still empty.
time to check out my optional implementation... or just get around to scrapping it now that I require boost 1.57 that supports move-only optionals.
23:36
@Puppy erm doesn't MSVC do extend the lifetime there?
@sehe * returns an lvalue ref, because MSVC doesn't support ref-qualifiers so optional can't forward it's rvalue-ness.
@Puppy Don't let @Bartek hear you! It's still a secret you know
what is?
> Many people consider single letters to be the most readable choice in the circumstances they are typically used. That is why we use them.
alright, so I swapped a bunch of fucking compiler errors about copy constructors I never called for a bunch of bugs where I reference shit I should not.
23:38
10 hours ago, by Bartek Banachewicz
@R.MartinhoFernandes that's actually a good idea.
And about 1 hour of ranting before that
wat
I thought single letter variable names were considered horrible most of the time.
@Jefffrey a bit tautological
@Jefffrey also true
naturally this bug would not exist in Wide as I extended all temporary lifetimes.
"this is typically used in situations where it's considered most appropriate" vs.
"this is considered most appropriate in situations where it's typically used"
@sehe this guy and 6 more people do not agree
apparently
23:40
@Jefffrey hah. You can DOS their puny brains by mentioning goto, then duck
> Single letter variables have been considered a problem for decades, in the programming community
> No, they have been considered a problem by beginners who blindly follow rules that make no sense.
and that's "the area where it's appropriate is quite limited"/"it's rarely useful to use this"
Two sides of the same coin
@sehe Well, the message really doesn't give that hint AFAICS.
@Jefffrey Depends on scope. For a small maths function they are perfect imo.
@JerryCoffin I'd have to ask the barber
or maybe not
23:42
Let me unclutter: Bad variable naming is bad.
Single letter variable names can be bad.
I don't want to get my barber angry
hair takes a long time to grow back and all that
Of course, in the remote chance I'll use a loop, I'll choose j or i as the looping variable. Or c for counter if I really feel lazy. But I'm clearly not talking about that there.
hair is easy
BREAKING: People get hung up about pet peeves.
@Jefffrey Enumerable(0, 100).Select
23:44
std::rotate, std::accumulate, etc...
yeah, I know.
@Jefffrey I don't use c for counter (because it's counter or count or countEvents etc.). Also, when I need i and j, I'll really consider making them verbose descriptive
@Puppy *Enumerable.Range(...
But I'll happily write auto f = c.begin(), l = c.end();
@Puppy boost::irange(...)
I do auto first = c.begin(); auto last = c.end();
sometimes begin and end instead of first and last.
I do that when I'm feeling generous
I like first/last unless I intend to really match the begin/end of an existing range
23:48
I sometimes use b and e.
Because I need them to form phrases.
@FredOverflow lol
@sehe Wide has such too
@Jefffrey The length/descriptiveness of a variable name should be directly proportional to is scope. For a one-line for loop, a variable name like i is perfectly fine. For something in the scope of a large, long-lived class the name should be equally descriptive.
lol just got fucked by boost::get again.
this time it was unique_ptr<const T> not looking up unique_ptr<T>.
that shit should really static_assert on impossible lookups
@JerryCoffin Hey I formed this theory for myself a few months ago.
Cool, I'm smart like Jerry.
:D
what, you're not smarter than Jerry?
get out of this Lounge.
23:56
I'm only being humble. And I want to avoid embarrassing him.
@Rapptz I wasn't generous yesterday
@Puppy again?
    template <typename CompatibleKey>
    const_iterator lower_bound(CompatibleKey const& key) const {
        auto f(begin()), l(end());
        while (f!=l) {
            auto m = iterator::mid_point(f,l);

            if (m->key < key)
                (f = m)++;
            else
                l = m;
        }
        return f;
    }
> (f = m)++; // this, even
Dat (f = m)++.
I find it expressive. But I agree, writing f=m; ++f; is equally expressive
23:58
I find it C-like (in a bad way)
Just requiring ugly braces
Does it have symbolic meaning (f = female and m = male)?
@Puppy It should be. It's a generic algorithm implementation. Write-once, reuse
that does not excuse cramming everything into as few characters as possible, C-style.
That doesn't make sense
C-style is not golfing
23:59
tell that to strchr and friends.
@Puppy ..excuse?
I want the code to express that it's not doing anything really. Breaking up in steps creates distraction

« first day (1567 days earlier)      last day (3607 days later) »