« first day (1489 days earlier)      last day (3442 days later) » 

Ell
3:04 PM
hmm
why do we need string_view if we have const iterators?
 
because vOv
 
It’s a range.
 
@Ell because people want to cheaply refactor string -> stringview while keeping similar client interface (e.g. to validate optimization potential without spending a week of fidgety error prone coding)
 
Ell
I don't know why they go out of their way to do this
also they asked me for a username, and then shortened it and added a number
how annoying -.-
 
fucking git
 
3:19 PM
Because programmers are terrible
 
Xeo
@Ell bwahahaha
 
git stash -> still got uncommitted changes.
git checkout branch -> still got uncommitted changes.
 
Ell
@Puppy git stash save
 
stash doesn't touch untracked files
Nothing touches untracked files
 
horrendously dumb
 
Ell
3:19 PM
@Puppy what
 
Because they're untracked
 
Ell
it's not dumb, it's the right thing to do
 
it's a stupid thing to do.
what does it matter what form the changes I made are in?
it makes as much sense as randomly refusing to track a given subset of a file.
new files are nothing special in terms of changes.
 
Xeo
3:21 PM
erm.
 
Ell
@Puppy What is the expected behaviour?
for git to automatically track every change in the repository?
 
it's a repository management tool.
 
Xeo
I can tell you about the 10k files I have lying around that should not be added.
 
so yes, that is what's expected.
 
Ell
you should still have to explicitly tell it to track things
 
3:22 PM
If something is 'untracked' then it is, in fact, not tracked
 
Ell
I don't want to be committing log files by accident
 
that's true.
but new files should not be untracked by default.
 
Of course they should, no VCS does that
 
a tool whose sole purpose is to ensure that you don't lose data, should not default to throwing away your data.
 
Ell
it's not to ensure you don't lose data
backups are for not losing data :3
 
3:23 PM
@Ell Horrible, horrible site. They should destroy sites like that with an orbital laser or something.
 
It doesn't throw it away, in fact it doesn't touch it all
 
Xeo
git add -A . and a proper gitignore, jeez.
 
@Puppy you're looking for a backup tool
 
not saving it is pretty much the same as throwing it away.
 
VCSes are not made to think for you
 
3:23 PM
git doesn't save c:\windows or /usr/bin either, fyi
 
those things are not a git repository
 
@Puppy neither are your untracked files
 
@CatPlusPlus That is exactly what all computer programs are made for.
 
that's why they're untracked
 
3:24 PM
@jalf They are in a git repository, though.
 
Xeo
no they're not
 
No, they're in the working copy
 
Xeo
they just happen to be within the directory tree of your working copy
 
puppy you just suck
 
@Puppy no, they are in a directory which contains a .git subdirectory
 
3:24 PM
Which might or might not mean they're meant to be added to the repository
 
they are in the git repository when you add them to the git repository
 
@jalf Which is exactly the same thing.
 
@Puppy adding them to the repo is as probable as adding them to gitignore
 
Not really no
 
What is it about Puppy that everyone rushes to spoonfeed him everytime?
 
3:25 PM
which is exactly an entirely different thing
 
Xeo
a git repository is not a filesystem mirror
 
He's really bad at tools and I have no idea how he manages to be a programmer
 
@Xeo That's the exact thing I'm complaining about.
 
funfact: if the default was what you wanted, then object files and executables and debug symbols and whatever other gunk would be checked in too
 
that's what gitignore is for
 
3:26 PM
....
 
@Puppy that's what add is for
 
but honestly, I would not complain if I checked in a few log files now and then.
 
better to have to remove them than to lose my code
 
it doesn't lose your code
you never told it about your code in the first place
 
3:26 PM
you lose code only if you're dumb
if you're using tools the wrong way it's your fault
HTH
 
@jalf I told it to stash my changes. The new file is a change.
 
it's not. it's not even a new file
 
@Puppy not if it hasn't been added. Then there are no changes to the code you have told git to track
 
it's an untracked file
 
Untracked files don't need to be stashed
Because they don't participate in anything
 
3:28 PM
heck I utilize the fact that untracked files aren't stashed quite often
 
so I installed VC++2015 and checked coroutines/generators - it's awesome
they're stackless - so it's just an object with state machine
 
does C++17 get yield keyword?
 
No VCS I know of tracks unknown things in the working directory by default
 
@jalf I certainly did not tell Git to randomly ignore half my code. I use it to track all my code.
 
It doesn't randomly ignore anything
 
3:29 PM
@BartekBanachewicz it's possible
 
what would be wrong with, I dunno, a .gitadd which adds new files by default?
 
It ignores things until it's explicitly told to track shit
 
which is dumb, because it's whole function is to preserve data.
 
No it's not
 
@BartekBanachewicz MS did a proposal and now they implemented it in VC++2015
 
3:29 PM
@Puppy you didn't tell it to randomly ignore c:\windows either
 
Xeo
oh ffs. just add your own git mystash command or something
 
No its function is to version data
4
 
Xeo
that automatically does a git add -A . or something
 
@jalf I did not tell it to create a repository there.
 
@Puppy What does that have to do with anything?
 
3:30 PM
well, in the directory where I created a new file, I most definitely did create a repository there.
 
Xeo
@Puppy You seem to have the wrong idea about what a "repository" is.
 
@Puppy once again, that is called a backup system. Git is a version control system
 
Xeo
@Abyx eeeh. why stackless :<
 
@Xeo because stackless >> stackful. it's faster and don't eat 1-2Mb of memory
 
3:34 PM
also
@Xeo why would you want it stackful? o.O
 
if they'll improve the optimizer, you'll be able to use generators for simple math stuff, e.g. Fibonacci numbers
 
@Abyx still not haskell though :D (but admittedly this is a good change)
 
Xeo
maybe I'm misunderstanding something here, but "stackless" means "no local variables" for me
 
Ell
@BartekBanachewicz stackfull coroutines are useful
oh wait. what xeo said
 
Ell
3:35 PM
time to google
 
they are stateful, but stackless. Right @Abyx?
 
@Xeo nope
 
user3010322
Does anyone know if there's a proposal to make std::tie and std::tuple language-level kinds of things? Or even to support tuple literals?
 
@ThePhD never. Also you haven't been here for quite some time
 
Xeo
@Abyx Not "nope", it does mean that for me. Can't just say "nope" to that. :P
 
3:36 PM
@Xeo local variables become members of the coroutine object
 
@Xeo and no yielding from subframes, or throwing exceptions etc.
 
Ell
@ThePhD make_tuple() isn't so bad
 
Xeo
@Abyx Okay, that would be "stackful" for me.
@sehe hm
 
@sehe throwing should be fine, but yeah, no yield from subframe
 
Xeo
@Abyx okay, so that's the important distinction
 
Ell
3:37 PM
Meh I've only used stackful coroutines
 
@Xeo welp, usually "stackful" means fibers (or green threads?)
 
user3010322
@Ell make_tuple unrefs / unwraps the types inside of a tuple before setting: std::tie doesn't and enables (wonky) syntax like
 
Ell
but yielding from another frame was necessary
@Abyx fibers
 
user3010322
std::tie( result, iterator1, iterator2 ) = do_compare( itbegin, itend, begin(), end() )
 
Ell
I think green threads imply non-cooperative multitasking
 
3:38 PM
Not really
 
Ell
whereas fibers implies cooperative
maybe I just don't know what I'm talking about
 
Welp that is what you said
I need to eat something
 
"green" usually means user-level context switching, when normal threads use kernel-level context switching
 
I really want to merge that branch
 
Stackless shit just shares one stack
 
3:40 PM
so yeah, it is non-cooperative multitasking (inside single system thread)
 
Ell
@Abyx Yeah. But to me it implies that scheduling is done by a runtime or virtual machine
As opposed to explicitly like in fibers
 
@CatPlusPlus stackless shit is just a nice way to write an iterator
 
It can be cooperative or preempted, whether it's user-level or kernel-level just means the scheduler is somewhere else
 
e.g. generator<int> counting() { for (auto x = 0;; ++x) __yield_value x; }
and then for (auto&& x : counting()) ...
 
Xeo
Yeah, that's fine then.
 
3:44 PM
@Ell @thecoshman 0.2.1 is being deployed :)
 
Ell
Portable fibers aren't possible in c++ are they?
 
@Ell it's boost.coroutine (boost.context)
 
@BartekBanachewicz btw are you deploying from CI?
 
@CatPlusPlus yes.
 
Ell
@Abyx Yeah but I mean, boost.context isn't portable is it?
I thought maybe the memory model or whatever update in c++11 that made threads portable could have made fibers portable?
I'm guessing not though
 
3:47 PM
@Ell it works on different platforms
 
Ell
maybe I'm using the wrong word for "portable" though
 
yeah
 
It's not using standard facilities probably
So it's not as portable as C++
But what is really
 
IIRC it's OS fibers on Windows, and register-hacking on other platforms
 
setcontext/getcontext maybe
 
3:50 PM
@BartekBanachewicz lost link :P
 
aaaaaa you're using polling
 
@CatPlusPlus sue me.
 
@BartekBanachewicz you'll pay soon enough :P
 
why? :P
seriously, it was the easiest shit to do
 
3:54 PM
Wasting resources
 
I send keepalives from server so it should work more or less like sockets really
the only overhead are HTTP headers
and yeah well the fact that it asks about data
 
polling bandwidth > pushing bandwidth
bandwidth = $
 
I thought about EventStreams
 
Headers are a bigger overhead than you think :v
 
But they are implemented more or less like this shit.
 
3:56 PM
@CatPlusPlus why else do they call them headers :P
 
user1804599
The amount of bandwidth wasted by this discussion is more than the amount of bandwidth that game will ever use.
5
 
so I would need websockets, and they are much more complex to write
 
Plus it needs more CPU on both server and client
 
BTW I think Shitloadnam is winning
@CatPlusPlus but less developer resources :P
 
@BartekBanachewicz Use Socket.io
 
Ell
3:56 PM
The more important issue is that my uniforms aren't being set for some reason
 
Even just for longpolling
 
@CatPlusPlus yeah, right. Uses xhr polling and doesn't work with WAI
there's websockets library but dunno how that works with WAI either
 
@BartekBanachewicz lol, town spawned over water tile :P
 
@thecoshman what
 
Longpolling/comet is slightly better than firing off a request every 50ms
 
3:58 PM
shit
@CatPlusPlus it's 500ms right now. And still, it all seemed way more complicated
 
@BartekBanachewicz look fool :P
 
@thecoshman I see
oh fuck
it can be taken
god
 
I haven't tested it with water
yeah we need more tests
 
Ell
oh it's working now
 
4:05 PM
Food needs to get here asap I'm starting to actually feel weak
 
Xeo
I should prolly eat too
I've eaten a whole 5 candies today.
oh wait, and some yoghurt for breakfast
 
how do you convert sigma notation back into series notation?
 
Miau
 
@corvid with "..."
 
Ell
I've had a lamb shank
 
4:09 PM
@Xeo What.
 
user1804599
@dwvaxaz In my opinion it is not a good idea to change the original string. I think you shall not change the original string. You only need to say whether it is a palindrome or not. — Vlad from Moscow 7 hours ago
 
user1804599
lol vlad
 
Xeo
@R.MartinhoFernandes Bonbons.
 
std::transform(... &std::tolower);?
Shame on you @rightfold.
 
@rightføld Classical Vlad
 
user1804599
4:12 PM
Fix it. vOv
 
FWIW, the primary complaint is it risking UB, not anything about Unicode.
> If the value of ch is not representable as unsigned char and does not equal EOF, the behavior is undefined.
Basically, if char is signed, you're more or less fucked.
 
user1804599
Oh, I see.
 
It needs a stupid wrapper to be usable there.
 
user1804599
What about boost::algorithm::to_lower?
 
@CatPlusPlus Pussy
Morning
 
4:15 PM
@rightføld Pretty sure that doesn't have the same braindead behaviour.
 
user1804599
ok fixed
 
@thecoshman lol
 
user1804599
> Default constructor. Constructs a copy of the global C++ locale, which is the locale most recently used as the argument to std::locale::global or a copy of std::locale::classic if no call to std::locale::global has been made.
 
user1804599
Ah ok so that's good.
 
Hm.., static void fun() {} is less cluttery than namespace { void fun() {} }
I might start to prefer that.
 
user1804599
4:17 PM
Make a compromise. #define static namespace.
 
> There are 3 classes of service: first class, better than first class and real expensive.
 
And there's Ryanair.
 
@Jefffrey hi
 
user1804599
> And yet Eiffel contains one major hole in the type system by allowing derived classes to override virtual methods by introducing covariant parameters. If a virtual method is called through a polymorphic reference (the binding happens at runtime) then the compiler allows that the method is passed an object of an incorrect type. In this case undesirable behavior may occur ranging from run-time exception to program crashes and other UndefinedBehavior.
 
user1804599
epic fail
 
4:27 PM
Food is laaaaaaate
 
shit
I've no idea why this thing is broken
 
Wow.
No fucking way to get from Panama to Colombia by land other than by your own foot.
Central and South America are weird.
 
@R.MartinhoFernandes And it’s not recommended IIRC.
 
Surely there will be boats around, though.
There's the freaking Canal there after all.
Hmm, however, the Pacific coast of Colombia seems rather uninhabited.
 
Hello guys. Does anyone know how to flag a revision?
 
4:40 PM
Just flag the post and mention it in the message.
Yep, there's literally nothing there. I can find boats to the Atlantic coast.
The Darién Gap (Spanish: Región del Darién or Tapón del Darién) is a break in the Pan-American Highway consisting of a large swath of undeveloped swampland and forest within Panama's Darién Province in Central America and the northern portion of Colombia's Chocó Department in South America. It measures just over 160 km (99 mi) long and about 50 km (31 mi) wide. Roadbuilding through this area is expensive, and the environmental cost is high. Political consensus in favor of road construction has not emerged. Consequently there is no road connection through the Darién Gap connecting North America...
Literally no-man's-land.
 
yup
 
I never thought this would be one of the hardest bits to get past.
 
Guess I'll need to go to the Atlantic coast and then travel to the Pacific coast inland. WTF.
 
I'm still on level 18.
 
4:43 PM
my payment failed twice
@LightnessRacesinOrbit at square game? :)
 
> The first vehicular crossing of the Gap was by the Land Rover La Cucaracha Cariñosa (The Affectionate Cockroach) and a Jeep of the Trans-Darién Expedition of 1959–60
Holy shit that is... late.
 
@BartekBanachewicz ya
 
> taking 741 days to travel 125 miles (201 km).
I'm convinced now.
 
Time to canoe up the Orinoco!
 
That is crazy.
 
4:48 PM
yes finally
they took my money
 
Sailboat it is.
 
how do I reuse the comparison operators in class hierarchies?
 
You probably don't.
 
@gnzlbg they just work?
 
If I have a class B that inherits from A, and A implements equality, I would like to implement in B equality for its components and delegate the rest to A.
 
4:51 PM
Yeah, good luck.
Oh, wait, you mean you're not making them virtual?
 
I mean, for a B : A I want to implement equality for the B part only, and call the equality operator for the A components. Like:

friend bool (B const& l, B const& r) { l.b1 == r.b1 && static_cast<A const&>(l) == static_cast<A const&>(r); }
 
That could work.
@gnzlbg Yeah.
 
@R.MartinhoFernandes I would not recommend doing so unless you have a death wish
 
yes, nothing is virtual
@R.MartinhoFernandes that is as clean as it gets?
 
You can upcast only one of the operands but that’s not really much of a difference.
 
4:55 PM
@thecoshman for fucks sake
it wasn't a bug
client just didn't refresh the whole page after game restart
my haskell code works perfectly
 
In what seems to be a recurring theme around those parts, Colombia's rail operator went bankrupt recently.
 
You've been hit by You've been hit by A smooth criminal~~ http://t.co/795yYxG8MO
 
Tricolours? Mmh…
Is the series in general known for its accuracy?
Apparently not.
 
5:13 PM
uh wtf why can't I approve the edit myself
what kind of bullshit is that
I can edit posts without review. I give my OK to this review.
 
user1804599
boo
 
> Relational database experience - SQL, NoSQL etc
fuck off recruiters
 
epic fail
 
@BartekBanachewicz and who wrote the code for that ¬_¬
 
@thecoshman Cicada :D
no okay it was me
 
5:23 PM
nearly had me :P
 
but it wasn't a bug in haskell code!
 
@LightnessRacesinOrbit glad to see you back
@BartekBanachewicz I never said it was. A bug is a bug though.
Launch failed
any way, home time
 
@thecoshman true
 
@thecoshman hugs
 
this is rather dangerous advice IMO, the unique_ptr can be passed in such manner as to allow the ownership transfer to be deferred until after the exception might be thrown. Ideally that would be the best outcome as it prevents data loss and destruction of invariants on an exception. — Mgetz 27 secs ago
 
Xeo
5:32 PM
hm
I think I'll order something today
 
okay, enabled -Werror
 
Ell
me too
Work time
bye all
 
Hippo birdbath, @Mr.kbok
 
5:48 PM
i'm hungry
 
I have beer :3
 
@LightnessRacesinOrbit ah, glad to see you have your sarcasm functor working
@BartekBanachewicz inb4 everything is broken
 
@thecoshman no, I made sure it builds first
 
@BartekBanachewicz a pirate bee?
 

« first day (1489 days earlier)      last day (3442 days later) »