« first day (1078 days earlier)      last day (3860 days later) » 

user1804599
4:01 PM
 
@CatPlusPlus Say you have billions of phone numbers that you need to identify the country of. Would there be a big difference in computation time between using Python(CPython) for this and C++ for this? Consider that you would use regular expressions in both languages to determine country. I ask this because regular expressions in Python are compiled .
 
How should I know?
 
user1804599
Use grep.
 
@not-rightfold grep?
 
Also the fuck you need regexes for here?
 
user1804599
4:05 PM
You don't know about grep? You're not a programmer.
 
@CatPlusPlus What would you hypothetically do, instead of using regexes?
 
user1804599
Substring.
 
Uh, substring 1:2, because country code is always +XX or 0XX?
Or was it two zeroes, I don't remember.
Either way it's easily doable without regex.
(Also I wouldn't use C++ because fuck C++)
 
Okay, now add the requirement that you also need to know the mobile operator. Still substring?
 
user1804599
Use a phone number library be done.
 
4:10 PM
Now add the requirement that it also needs to make fucking coffee
How should I know jesus
 
user1804599
How you should know Jesus? He's been dead for longer than you're alive, so you can't know him.
 
lol. Just asking guys. I don't know what to make of my current assignment, so I thought I'd ask for some advice.
 
user1804599
 
user1804599
Also just use Python.
 
Also dunno about your country, but here determining operator from a number is p much impossible to do because of transfers and shit
 
Ell
4:13 PM
@not-rightfold when you write parsers, do you make them re-entrant?
 
user1804599
Downgrade to PyPy if you find it to slooooooooooooow.
 
@not-rightfold Or use Cython ;)
 
user1804599
@Ell No, I make them so fucking annoyingly limited that you need to spawn a new process if you need to run them again.
 
Ell
Why don't you write a reentrant parser for some simple grammar over the weekend?
 
user1804599
Because it's as boring as American television.
 
Ell
4:14 PM
I'll pay you
 
user1804599
If it’s not at least $500 per hour then I CBA.
 
Ell
that's crazy :L
 
user1804599
And if it is $500 per hour, I’ll work very slowly.
 
Ell
How would you do it?
 
user1804599
Using Parsec.
 
Ell
4:16 PM
I was imagining a recursive descent parser with a manual stack instead of callstack
 
user1804599
Why would you do things manually.
 
Ell
idk, I don't know any better
 
user1804599
Use a parser generator or a monadic parser combinator library.
 
user1804599
Bison and Parsec both support re-entrancy.
 
user1804599
And if you write a non-re-entrant parser with Parsec, you’re even a complete idiot.
 
Ell
4:19 PM
What if I want to write it by hand?
 
Why would you want to do that
 
Ell
For education
 
user1804599
 
Ell
What about in c++? :3
 
user1804599
Why would you use C++?
 
Ell
4:20 PM
because I don't know haskell
 
user1804599
Learn Haskell.
 
Ell
and I don't know how to expose haskell functions as a library
 
user1804599
By exporting them.
 
user1804599
:v:v:v:v
 
ARGH DAMMIT I WAS ALMOST THERE AND I FELL DOWN ARGH
 
user1804599
4:21 PM
@CatPlusPlus What game are you playing?
 
Spelunky
 
user1804599
Looks fun.
 
user1804599
Is there still a Lounge<C++> Minecraft server? I’m in the mood.
 
user1804599
Vanilla server would be cool.
 
^
I'm with you
 
user1804599
4:24 PM
I could run one on my VPS but I’m not sure about the bandwidth.
 
Is it good to use in-class initializers?
 
user1804599
I have only 500 GB of bandwidth per month.
 
Digital Ocean has 2TB VPS for 5$/month
Bandwidth I mean
 
Ell
what about cpu?
 
No, 1TB. 2TB is 10$.
1 VCPU
You can look it up gods
 
Ell
4:27 PM
but you're telling me about it
 
Also buy Spelunky
 
user1804599
> a 100Gb/month bandwidth allocation on a VPS would get you about 30 people-hours of playtime per day.
 
user1804599
Wait.
 
user1804599
I have a friend with a dedicated server with 64 GB RAM and a couple of cores. Lemme check if he can run Minecraft server for me.
 
4:28 PM
@Jefffrey Initializer lists?
 
@Tuntuni Nope.
 
@Jefffrey Ohh, right. Remembered just before I clicked the link.
Why wouldn't it be good? You'll save yourself time if you have multiple constructors.
 
The class definition and declaration wouldn't be that well split anymore.
I don't know.
 
Class definition and declaration are almost never split.
 
Aren't they split in two files?
 
user1804599
4:34 PM
I'm trying the new MC snapshot of 1.7.
 
@not-rightfold the new fish rod system is cool
 
What changed?
 
user1804599
NEW FLOWERS <3
 
@Pawnguy7 New biomes. New flowers. New fishes. Fish rods can be enchanted and can return precious loot instead of just fish.
 
New fish isn't going to help me. I didn't fish before. I don't have the attention span to stare at it for a minute.
 
4:36 PM
Oh yeah, finally they set ocean biomes to be ~10% of the map, not ~60%.
 
user1804599
New terrain generator.
 
Still boring
 
Ell
@Jefffrey ahh finally! I've been waiting for fishing forever
 
Are you serious?
 
Ell
Yes :L
Honestly. I don't know what it is about fishing
but I like it most games
 
4:38 PM
:/
 
Ell
Yet for 3 years I've never caught anythig in real life :(
 
@CatPlusPlus There are cats.
 
Ell
I forgot what order stream things are applied
What is the output of std::cout << *it++ << *it++ << "\n"; where it is an istream_iterator of a stringstream of 012?
 
@Jefffrey So?
 
So you don't feel alone.
Yeah, that was bad. I'm sorry.
 
4:42 PM
I seem to have made invisible walls.
 
@Ell istream_iterator templated on what?
 
Ell
char
 
I'd say the output is 01.
 
Lol me neither.
 
4:46 PM
unspecified.
 
Why?
 
Hey you can update all npm global modules like this -> npm -g update
now that, is awesome :)
 
std::cout << *it++ << *it++; could be easier written as f(f(std::cout, *it++), *it++); where f is std::operator<<.
 
ya
ahh
evaluation order?
 
yep.
 
4:47 PM
right right
 
Ell
is that the best way to write it then? Manually with std::operator<< ?
 
of course not
who'd be able to read that lol
 
That won't change anything.
 
Ell
yes it will
Wait.
Why won't it?
 
because it's the same thing
writing + is the same as writing operator+
 
Ell
4:51 PM
I thought the brackets... but... okay.
 
Because there's no specified evaluation order of arguments
 
If you want to enforce the order, split them up into two lines.
 
user1804599
lol “lines”
 
Fine.. two statements :S
 
user1804599
// inb4
std::cout << …
          << …;
 
4:53 PM
lol
 
grep is really cool
glad there's a windows port
 
user1804599
ack is cooler.
 
@not-rightfold checking that out right now
Before I did not really understand what was meant by "php is a dynamic weakly typed language", but today, I sure as hell do
 
Ell
So std::cout << "Hello" << " World!\n"; isn't specified to give "Hello World!\n"?
 
@Ell o.O
 
5:01 PM
yay my GF will be here at 9pm
 
@Ell Of course it is.
 
god finally
 
Ell
@BartekBanachewicz you gonna get laid? :D
laid with hard facts about how true your love is <3
 
...
we've got a lot of videogames scheduled to play
and rest of Bourne movies to watch
and in general a lot of shit that should be done over summer :/
 
...
 
Ell
5:03 PM
@DeadMG Okay. But "hello" could be evaluated after "world!"?
 
@Ell Yes.
 
I don't understand. Why would be the second *it++ evaluated first?
 
irrelevant.
all that matters is that the Standard says that it can be.
 
Oh. Okay.
 
@DeadMG If you had a choice, would you go to Oxford or Cambridge? Silly question, I know.
 
5:08 PM
Cambridge.
 
user1804599
Fucking weekend.
 
user1804599
I’m so fucking bored.
 
Ell
I need to learn how bit shifts work man
 
@not-rightfold go make a language or something
 
Ell
@not-rightfold have 4 bytes stored in little endian order. want integer. wot do.
 
user1804599
5:11 PM
int32_t x;
memcpy(&x, bytes.data(), 32 / CHAR_BIT);
// do endianness conversion
 
@DeadMG Just wanted to ask, how are you feeling? Got any sleep?
 
terrible, and, I only managed to squeeze in like, 8 hours
 
Ell
@not-rightfold what about on a big endian architecture where CHAR_BIT == 8?
 
@DeadMG Erm, don't humans normally have 8 hours of sleep?
 
maybe
but when you've already been awake for more than 24 hours, you expect to sleep for a little longer
 
Ell
5:13 PM
@not-rightfold std::copy?
 
user1804599
Who stores data in little endian.
 
Ell
me.
 
user1804599
Use a decent language with a decent standard library that has endianness conversion functions.
 
@not-rightfold intel
 
@DeadMG I know we're all rude to each other and stuff. But I really hope you get better. A really good Physics teacher of mine has ulcers and is really suffering a lot. So, I kinda know its not pretty. I really hope you get better soon man.
 
user1804599
5:15 PM
Or do I know, use Erlang. <<X:32/integer-little>> = Bytes
 
@GamesBrainiac Well, six and a half weeks from now, the hospital will think about scheduling surgery.
 
@not-rightfold Python has an awesome standard library <3. Except datetime.
@DeadMG think ?
 
user1804599
The only language with an awesome standard library is Go.
 
@not-rightfold Yes, go is quite awesome :) But you gotta admit, Python does have a good stdlib. I mean, things like Counter from collections are just plain awesome :)
 
@Jefffrey want to help me find a bug?
 
5:19 PM
@Pawnguy7 sounds really interesting
 
lol, ok.
 
wanna mow my lawn?
 
@GamesBrainiac You aren't Jefffrey.
 
@Pawnguy7 he's got the point tho :P
 
5:20 PM
@Pawnguy7 jeffrey is me, i am jeffrey
we're both blue
 
@BartekBanachewicz Yes. On the bright side, I am pretty sure this bug is better than the last one.
 
I don't know who Jeffrey is, but I'm Jefffrey.
 
@Jefffrey liar! I am jeffrey
 
Oh, so you are Jeffrey. I'm Je**fff**rey though.
 
5:21 PM
Now, I wanted to destroy the bullets when they collide with the blocks.
But... well, they seem to be hitting invisible walls, and going through some real ones.
 
@Jefffrey You missed a f there.
 
@Pawnguy7 collision failing
 
@BartekBanachewicz Hm?
 
@Pawnguy7 use a vector<Bullet handle> markedForRemoval;
 
Just a change in identifier name?
 
5:22 PM
@Pawnguy7 well obviously if they hit invisible walls, it's bad collision code
@Pawnguy7 no, that's the idea.
 
Yes. That is the issue here, so I think it is simple.
 
and change the name of "BulletManager" for fucks sake
 
But it manages them.
6
 
lol
 
There really is no more accurate word. It tells them to draw, they draw. It tells them to update, they update.
 
user1804599
5:24 PM
Why do you need it?
 
@BartekBanachewicz Not certain what you mean.
 
@Pawnguy7 seriously, dude
 
user1804599
std::vector<Bullet> bullets;
for (auto& bullet : bullets) bullet.update();
for (auto& bullet : bullets) bullet.draw();
 
user1804599
Weeeeeeeeeeeeeeeeeeeeeeeeee!
 
5:25 PM
Changing the name doesn't change what it does.
 
@Pawnguy7 then change what it does too
you need to read up
 
user1804599
Remove it from the code base.
 
big time.
 
That wasn't the idea for this project.
 
user1804599
Write two functions.
 
5:25 PM
who cares what it was
it has a manager, burn it.
 
user1804599
You don't need fucking class to keep a vector with two operations that call functions on all the elements.
 
Ell
^
 
Perhaps.
 
user1804599
Write two generic functions update_each and draw_each and put them somewhere not in a class.
 
@Pawnguy7 hint: "Manager" violates SRP
 
5:27 PM
@Pawnguy7 bullet.getPosition().x/blockSize
why are you dividing for the blockSize?
 
well whaddya know. Go IDE is on the IntelliJ platform :)
 
To figure out what square it is in.
 
user1804599
Go IDE is on the Vim platform.
 
Right.
 
I feel slightly unpleasant knowing that Vim is written in C
 
5:28 PM
If anyone wants to be entertained by a troll:
in Anime and Manga on The Stack Exchange Network Chat, 7 hours ago, by Logan M
For anyone who wants to see the posts, click here. Warning: the image is pretty big, so don't try it on a low bandwidth connection.
 
user1804599
Who cares what something is written in jesus christ.
 
user1804599
@Mysticial lol
 
@Mysticial is that religion.se or something? T_T
 
@BartekBanachewicz Well, at some point, something needs to both draw them and update them. Might not be a class, though.
 
@not-rightfold every piece of software written in C is a security risk
 
user1804599
5:29 PM
@BartekBanachewicz Christianity
 
@Pawnguy7 what about line 333?
 
user1804599
@BartekBanachewicz ah, so basically almost everything is eventually a security risk.
 
@Pawnguy7 fail. Doing two things. And when you actually want to abstract drawing engine, you'll feel it
@not-rightfold oh my fucking... is the reason dead here?
seriously, SE is for knowledge
not fucking lunatics.
 
user1804599
@BartekBanachewicz Eh, so?
 
user1804599
If you want to know shit about Christianity you can ask it there.
 
5:30 PM
I guess.
 
user1804599
That’s also knowledge.
 
knowing how fucked up it is, indeed.
 
@Jefffrey they are dead when still quite inbounds. Also, the pattern isn't a box.
 
user1804599
Get fucked up the ass.
 
Ell
@BartekBanachewicz not all of christianity is fucked up
 
5:33 PM
@BartekBanachewicz What do you propose in place of it?
 
user1804599
@BartekBanachewicz I want bartek.stackexchange.com, for knowing how ignorant Bartek is.
 
@Jefffrey are you able to run it?
 
@not-rightfold
 
@Mysticial Guy looks really bitter.
 
> The Q&A site bartek.stackexchange.com doesn't seem to exist…yet.
lol
 
5:35 PM
@Ell what?
 
@EtiennedeMartel Same guy who posted the racist stuff about India on meta.
 
Ell
@BartekBanachewicz Not all denominations of Christianity are fucked up
 
Really?
Got a link?
 
@Ell the whole idea is.
 
@Mysticial link?
 
5:36 PM
@not-rightfold Since when bashing religion is ignorant?
 
Ell
@BartekBanachewicz You assume all the denominations have the same idea
 
@Pawnguy7 dunno.
 
12 hours ago, by Mysticial
user image
 
Ell
@BartekBanachewicz It's not. But you are generalising a lot
 
@BartekBanachewicz stop with the religion bashing, and get back to bashing languages
 
5:37 PM
@Ell there's an idea that Christianity is the best religion on the planet, for example
@Ell I am bashing the concept, not the people, mind it.
 
From what I have seen, most bashing isn't required, of anything. Then again, this is the internet.
 
@BartekBanachewicz or managers :P
 
Ell
@BartekBanachewicz Not all christians have that belief
Well. I guess they do
but everyone thinks they have the best thing don't they?
Otherwise why would they use it
for example I believe c++ is the best for me, so I write it
 
@Ell there you go.
 
@BartekBanachewicz Not very constructive criticism. Do you think I would know if you don't?
 
Ell
5:39 PM
@BartekBanachewicz but that isn't to do with christianity. Everyone in the world does that
why would you do something you don't think is best?
 
@Pawnguy7 yes.
 
@Pawnguy7 seriously, Bacon Q&A would make more sense
 
@BartekBanachewicz I don't really want to get into this debate, but can't this be said about every religion?
 
@Borgleader that's why all religions suck.
 
dammit, i wanna have mod privileges, so that i can take a look at deleted questions :P
 
5:40 PM
@BartekBanachewicz I think I was referring to my code?
 
I mean apart from made up shit in books, the whole idea that there's one way to heaven is as dumb as it gets.
@Pawnguy7 ah damn.
 
@GamesBrainiac you only need 10k rep
get to it
 
@GamesBrainiac it's not mod.
 
@Borgleader only
 
@GamesBrainiac bah I need ~700 more
 
Ell
5:41 PM
I need 9k more
 
Or I should rather say, "our way is guaranteed way"
 
@GamesBrainiac Rep cap for 40 days and you'll have them :P
 
Because our god is da best god.
 
He created world and shit.
 
5:41 PM
@BartekBanachewicz you forgot piss
 
user1804599
@BartekBanachewicz Didn't say it was.
 
WHAT DO YOU MEAN HE IS NOT REAL HE IS
I saw a painting he has a beard.
sigh
okay, that's nuff for today, I feel vented.
 
@Jefffrey the idea was something along the lines of, run across while things are shooting at you. I also had some moving turrets (?) planned as well.
 
THIS IS NOT SPARTA.
 
@BartekBanachewicz if you thought that was bad, you should see the Snake project.
 
5:45 PM
I cannot use Haskell if it’s going to keep complaining about tab indentation.
bah, someone is mad.
also that's a nice way to go around Twitter's protected accounts, huh.
 
I notice, I make these little collections a lot.
 
I'm not sure who this Ryan O'Hara is but I hate him (not because of the above remark but the contents of this twitter feed)
 
What should I make instead?
 
@Pawnguy7 one collection to rule them all
 
rsync does not excel at making anime backups
 
5:47 PM
@BartekBanachewicz where's the protected account/bypass?
 
Ell
I do not excel at converting from LE to host encoding
 
@StackedCrooked IRTA excel excel excel excel anime
yeah enough internet for today
 
user1804599
I do not excel at using Excel.
 
I excel at not using Excel.
 
@Pawnguy7 The whole x/blockSize is wrong. Specifically the conversion to int (with static_cast) truncates the decimal values. What you want is to floor that float number.
 
user1804599
5:48 PM
I hate how =SUM doesn't work in Dutch Excel, but =SOM does.
 
user1804599
At least, last time I checked.
 
user1804599
Horrible piece of fucking shit.
 
@Jefffrey why do I want the decimal values?
Also, I added those after. It worked the same before.
 
@Pawnguy7 you don't. You want to round the resulting floating number to the closest integer.
 
user1804599
It's like having a C++ compiler that accepts sjabloon instead of template if you're Dutch.
 
5:50 PM
a meaningless gesture
 
@not-rightfold how do you even pronounce that ?
 
user1804599
@GamesBrainiac sja-bloon.
 
@not-rightfold is the j pronounced as a y?
 
user1804599
With o like in “oh.”
 
user1804599
“sj” as in “sh” in “she” and “oo” as in “ow” in “gives me a blowjob.”
 
5:51 PM
:12061830 For a second there, I thought you made an animated gif
 
@Jefffrey Why round? You get the square it is in by flooring it. If you round it up, you might get the square to your right, for example.
 
shablown
 
user1804599
Here translate.google.com/#en/nl/Template hit pronounce button.
 
Ell
@GamesBrainiac turns out I was right in the first place xD
 
user1804599
Basic HTML Gmail is so much better than regular Gmail.
 
5:54 PM
@Pawnguy7 you might be right.
 
Ell
Idk why this endian thing doesn't work coliru.stacked-crooked.com/a/e827ba0ee98160b1
@not-rightfold ewwwww
 
@BartekBanachewicz I have Input elements in Snake - say, textboxes and the like. I had a collection of them, much like in this. I think this is common in GUI frameworks, though. What is the difference here, do you think?
 
Ell
uh oh
my mouse has run out of battery :S
 
user1804599
Gmail is so fucking bad.
 
user1804599
What the hell.
 
5:59 PM
@Pawnguy7, the problem probably lies in the isSolid function (being that if you comment that function out, returning false, the border collision works fine). Can't say where though.
 

« first day (1078 days earlier)      last day (3860 days later) »