« first day (1609 days earlier)      last day (3341 days later) » 

2:00 AM
@πάνταῥεῖ Yep.
What was the highest thing you jumped off from, everyone?
 
I'd never want to miss Whiskey actually :-P ...
 
@Nooble A volcano somewhere in Ecuador. About 5.2km high.
 
I once jumped off of a 15 foot (5 metres) tall monkey bars thing at a park.
 
@Nooble The 5m jump-off board at the local bath. It was terrible :-(
 
@ParkYoung-Bae I mean all the way to the bottom.
@πάνταῥεῖ Imagine landing on concrete. That is how I felt. To be fair, I landed on my feet. Most of the impact was cushioned by my legs and subsequently my palms. My palms hurt so much.
 
2:04 AM
@Nooble The bottom of what
 
@ParkYoung-Bae So you're telling me you jumped and fell from 5.2km down to 0.0 km?
 
Did you jump from 5m to 0?
 
@ParkYoung-Bae Yes.
I wasn't using the monkey bars, I was on top of them.
 
@Nooble I only did that to encourage my niece doing the same. And felt so bad afterwards. It wasn't fun for either of us :-(
 
So you were at sea level
 
2:07 AM
@ParkYoung-Bae I was on the moon conducting Apollo 19.
No sea level there.
How is sea level measured anyway? Wouldn't different seas have different levels?
 
@Nooble But there are other jumping challenges that require even more courage, and will leave you with less pain absolving them.
 
@πάνταῥεῖ Bungee jumping?
Although that may result in death.
 
@Nooble It's well defined
Sea level is generally used to refer to mean sea level (MSL), an average level for the surface of one or more of Earth's oceans from which heights such as elevations may be measured. MSL is a type of vertical datum – a standardised geodetic reference point – that is used, for example, as a chart datum in cartography and marine navigation, or, in aviation, as the standard sea level at which atmospheric pressure is measured in order to calibrate altitude and, consequently, aircraft flight levels. A common and relatively straightforward mean sea-level standard is the midpoint between a mean low and...
@Nooble Certainly not. I didn't mean physical things.
 
Nice, I love the graph on the sea level rising
 
@πάνταῥεῖ Oh god. Projectile motion problems in Physics class. My worst nightmare.
 
2:13 AM
But global warming isn't a thing, rite!
 
Of course not!
It's not like you have proof!
 
Teach the controversy!
 
“The optimist thinks this is the best of all possible worlds. The pessimist fears it is true.”
great, need to write a paper interpreting it, agreeing or disagreeing (how the fuck??), and supporting position with quotes from book -.-
 
@ParkYoung-Bae I can't get any proof if it is a thing or not, regarding it's anthropogen. But does this actually matter? You can clearly see and feel the effects, just at your backdoor. Any other opinion is just ignorant, of what we're experience here and now. And if it's anthropogen or a natural phenomenon doesn't really matter. We have to deal with it, and should avoid anything enforcing it.
Anyway that's all just samsara illusion, and doesn't matter in the long term.
 
Hi, I've come here because there are people here. I'm a n00b java writer. Can anyone tell me if it's generally aceptable to use someone else's code in your coursework? Obviously saying where you got it.

What I want to do is use their gradient code for the background of my work.
 
2:29 AM
@mikeeustace That’s really up to the teacher and may depend on the assignment.
 
@mikeeustace Did they provide any license for their code?
 
@πάνταῥεῖ "Shit happens"
 
^Sure, all the time.
 
@πάνταῥεῖ A free license doesn't mean he can just take the code and use it for an assignment, though
@mikeeustace Ask your teacher.
 
@mikeeustace Learn C++, it's a way more exciting language. Where else can you be troubled with koalas?
 
2:31 AM
@Nooble if you're troubled with pointers, you're actually writing C.
 
@Blob Well, depends on the teacher's intend probably.
 
@Nooble Java is a good place to be troubled with pointers though, despite a lack of pointer arithmetic.
 
@Blob Currently doing some memory injection stuff. I am definitely using C++ though.
 
user3010322
> you are expected to use the JOptionPane class
 
haha Nooble. We don't have a choice (and I HATE coding).

We can't ask the teacher... there isn't one. I'm doing an online degree.

We have to be creative in this part. I've written loops which create random tree fractal patterns when a mouse button's pressed. I've set music to it - thought I'd quickly make a gradient as the background... googled it and couldn't believe how much code there is for a simple gradient!
 
user3010322
2:33 AM
So it begins.
 
Then what passes for the teacher. Someone did set up the course.
 
@mikeeustace Why are you coding if you hate it?
 
@mikeeustace You may want to not use it to be safe.
 
A 3 year degree. You need to do Java in year 1, CSS and HTML in year 2. Other than that, it's not coding.
it's only 1/12 of the three year course.
 
what degree?
 
2:35 AM
Computer Science.
 
i may be biased, but why learn html/css? >.>
not even programming
there's basically no computer science concepts there
 
@mikeeustace And you hate coding?
 
I do. The majority of the degree is hardware stuff.
Kind of electronic-engineering-ey I guess.
 
i'm not saying this is a bad sign
but this may be a bad sign
 
A bad sign suggesting what?
 
2:39 AM
as long as your career avoids programming, i guess it doesn't matter much
 
@Blob IT is not C++ only. There is room for everyone. Except maybe the PHP guys.
 
You know what I hate? When code works... And it's not supposed to work. WHAT HAVE I DONE?!
 
@ParkYoung-Bae and the SQL people
 
Woops forgot to save.
 
Haha @ParkYoung-Bae

I want to be a primary school teacher. In the UK, you do a BSc / BA and then a one year post-grad in teaching.
 
2:40 AM
Then why the f are you studying IT
Go to a teacher school
 
my elementary school had a "computer" class :D
we did fuckall
 
OoOoH me too!
We played that game...
Run 2.
 
This is for the UK. As a primary teacher, you teach everything.
 
IT?!
 
You get a BSc / BA in anything then a 1 year post grad.
 
2:41 AM
we played some games too. can't remember name but there was this american revolution crap thing.
we had macs
 
:(
 
we used some tool to make retarded comics
 
The bachelors can be in about anything. My wife teaches 7-8 year olds. He first degree is Literature.
 
And you picked the one that is the source of all evil?
(get it guys? source?)
 
source :)
 
2:43 AM
are there different/specialized science teachers?
 
not usually. Are you from the US?
 
yes.
 
Our primary schools usually have less than 200 pupils.
 
mine had one. she didn't seem particularly knowledgeable, though.
 
You might have a specialised music teacher. Other than that, you teach every subject.
 
2:44 AM
oh yea, music too
i didn't learn crap
 
I was lucky. I went to a posh school. We had a PE teacher, music, art...
but the main teacher taught everything else.
 
i don't remember PE in elementary school at all.
i might've had it and just forgot
 
dodgeball?
 
pretty sure it's illegal in the US
used to play it in Denmark
best sport
 
what, dodgeball?
 
2:45 AM
Yeah I think it is.
 
litigation culture?
 
Best sport, only played in lunch.
 
@mikeeustace don't you know kids can get seriously injured from sucking at dodgeball?
 
I guess a game where the object is to smack your friend in the face with a ball....
haha blob
 
Maybe they should stop sucking and start dodging.
And throwing.
 
2:46 AM
i really liked team dodgeball ;_;
 
I'm in my 30s. There was no health and safety back then!
Do you guys know bulldog or is it an English game?
 
Not me.
 
never heard of it
the wiki article's called "British Bulldog"
 
Mass education is great - being educated in a top private school like 5+ million others in the past 10 years. You must feel really special ...
 
2 teams, 1 in the middle of the playground, others at one side. You have to run to the other without being caught.
as you are caught, you're out.
Kind of like American football without the ball
 
2:48 AM
@chmod711telkitty What're you talking about?
 
or pads :)
 
I need to make a genetic algorithm.
Those sounds so cool.
 
what
 
Hi y'all
 
It's pretty much evolution -- in a program!
Machine learning.
 
2:49 AM
so, not genetic
 
Artificial Intelligence (sorta?).
Yes genetic.
 
genetic has to do with genes
 
I need to get back to trying to understand Java.

Wish it was c++ - this chatroom's much friendlier :)
 
Because it mimics genes.
With traits.
 
cheers. bye
 
2:49 AM
cya
 
bye :)
 
@Nooble the most simplest of genes, sure
 
@Blob It uses random mutations and such to find to best possible way to solve a problem.
Or at least a local optimum.
 
@Nooble not like genes. gene interaction is a fucking mess ;_;
 
@Blob Well it's not exact, but it's based on it.
Here's a neat video where a program learns to jump over a ball:
 
2:52 AM
don't have time.. doing homework ;_;
got home at 9
urgh
oh w0t. been 2 hours and i haven't done shit
 
Lol what did you do?
 
after-school shit
 
Who does those.
 
and trains are dicks
this assignment is stupid. what do i even write
 
That's what's giving you the fun stuff in real-life engineering. The more you know about this, the more you're able to force the hardware-engineers to provide you with an appropriate and powerful platform, to solve the problems coming up with the actual requirements.
Learn to love your hardware platform, and how to configure it regarding your actual needs.
 
2:54 AM
@Puppy I lived alone for a while and I can't say I enjoyed it more than I enjoy living with nice people.
 
@Blob The E-Train was being a dick on Wednesday.
Machine learning is awesome.
 
@Nooble it mostly got fixed by the time i was taking it (7 to 8:30ish)
but it was making local stops
 
@Nooble Machine designing is even more awesome ...
 
@πάνταῥεῖ Maybe so :)
 
don't have time to research it, but any brief description of what's covered in "Electric Engineering and Computer Science" (EECS) courses?
 
2:57 AM
@Nooble It is for sure!
Cost for a particular CPU is an annoying factor :-( ....
 
@πάνταῥεῖ your previous statement was fine
cost is indeed an annoying factor
 
3:14 AM
shh no tears only only dreams
 
19 messages moved to bin
 
YOU BINNED ME
 
ye
fite me
 
Only Pappy may bin my messages
 
None of that ever happened
 
3:15 AM
@name here
 
@ParkYoung-Bae Puppy isn't leading here this time now ....
 
come on man
 
dammit
 
pennjillette.png
 
I thought it won't onebox.
 
3:16 AM
@πάνταῥεῖ RIP Binmeister
 
I just had a huge dejavu of having a dejavu
Of typing the above message in chat
 
@Jefffrey dejavu circlejerk
 
i really need to finish this shitty essay
;_;
cya
 
Ew essays
 
@ParkYoung-Bae Meet DEATH (the incarnation of the methaphoric personificacion). In deep grief of loosing Terry Pratchett :-( ...
 
3:22 AM
Let's not exaggerate it
 
So how is "name"? Should I plonk him?
 
@Jefffrey Should meet them as well, of course ...
 
Them?
 
@Jefffrey "them" inb4 DEATH of course
 
You are not making any sense
 
3:27 AM
what does plonk mean..
 
@Jefffrey May be, I'm just too drunk, and mourning too much for Terry actually :-(
 
I thought you linked to the ~"We're closing down" page. "cool" would still be appropriate.
 
3:51 AM
@Rapptz Cool indeed.
 
How big is your repository?
GitHub has a friendly limit of 1 GB
 
It's not that big.
> Your project is using approximately 1214 MB out of 4096 MB total quota.
Hm..
It's bigger than I thought.
 
Oh right Coliru. :(
 
@Rapptz What’s the limit where they come at night, break your legs and kidnap your loved ones?
 
@LucDanton 1025 MB.
> For best performance, we recommend repositories be kept under 1GB each. This limit is easy to stay within if large files (typically, binaries) are kept out of the repository. If your repository exceeds 1GB, you might receive a polite email from support requesting that you reduce the size of the repository to bring it back down under 1GB.

In addition, we place a strict limit of files exceeding 100 MB in size. For more information on why this is, see "Working with large files."
"polite email"
 
3:55 AM
"No."
 
100 MB ought to be enough for anyone.
Because you can always split them.
 
using be_uint8_t = big_endian<uint8_t>;
using be_int8_t = big_endian<int8_t>;
using be_uint16_t = big_endian<uint16_t>;
Big endian uint8_t, very useful indeed.
 
..what?
what's the point of these?
 
Transparent serialization I guess
 
In OSX you can make a "sparse disk image" which is basically a non-contiguous disk image (split in multiple files). It's wrapped inside a "bundle" so it looks like a file to the user. This alone is a great argument in defense of the bundle concept.
 
4:03 AM
I keep using auto.
 
It's a level-of-indirection over a file.
 
It feels bad.
 
I've been reducing my use of auto lately.
 
// not obvious which type this returns
auto options = getOptionData();
In such cases I prefer to be explicit.
 
4:05 AM
that's most of my auto usages.
I don't care about the type
they're verbose
 
lol, I forgot you are already using C++14.
 
C++11!
 
@Rapptz Why so many variables???
 
No C++14 for me yet.
 
Haven't toyed with auto params yet. But they are so attractive.
 
4:06 AM
@MarkGarcia A lot of intermediate steps.
 
@Rapptz Oh.
I thought I saw auto params.
 
all variables.
The code isn't really pretty though.
I wish I knew a better way to do it.
 
less variables
 
auto aside.
@StackedCrooked It's complicated!
 
Then simplify!
Words are easy :P
 
4:12 AM
I count 12 variables (sans player and loops)
 
// maybe get_tournament can be simplified
// by adding an overload like this:
get_tournament(const std::string& url) {
    return get_tournament(get_config(), url));
}
 
get_config is expensive
it has to parse the config file etc.
 
You could wrap it in a config class which internally uses shared_ptr<const config_impl> like in Sean's talk :)
 
Oh it's x.insert(pos, beg, end).
Doh.
 
@Rapptz Yeah. Most intuitive interface ever. Btw, what does set.insert(x) return again?
 
4:16 AM
@StackedCrooked lol that's so ugly though :(
const_iterator now I think
 
IIRC it's std::pair<iterator, bool>
 
yeah and iterator
 
bool indicates whether a new element was created has been inserted.
 
yup
same with std::map.
 
It's a technically a minimal and complete interface but it's not bearable.
 
4:17 AM
I don't ever use the bool bit.
I don't care for it.
Just give me the iterator.
 
if (!map[key])
{
map.reset(new T);
}
 
I guess I should link this here.
 
// nice pattern with map<key, unique_ptr<T>>
if (!map[key]) {
    map.reset(new T);
}
Esp in a get-or-create type of context.
It requires only one binary search.
 
well that 'messy' code above works
Why would you use that instead of insert?
map.emplace(key, new T); // doesn't insert if it already exists
zzz
 
Remember Scott's rant on how emplace can be slow in case of duplicates.
 
4:24 AM
No I don't.
I don't see how operator[] is any better.
 
@Rapptz Rust has a nice, although provisional, API for that.
 
Those teens wearing that shirt think they are "different".
 
TIL there's a study group for UB.
> for undefined behaviour study group.
 
4:29 AM
@Rapptz What I do is that I indent around =.
 
UB is a key feature in enabling zero-cost abstraction.
 
Yeah.
 
hmrh..
I thought I could hide away the 'mapping' step but it seems I use it later.
@LucDanton Looks weird with that if statement no?
 
I do try to group by blocks. I can’t tell if that if is part of it or not, it’s your call.
 
4:33 AM
@Rapptz You're making a game?
 
No. I'm ranking players for seeding for tournaments and leaderboards.
 
@Rapptz Uh, I don't have an idea. Nevermind.
 
:p
 
Might want to enable this syntax:
auto participants = json::to_array(tournament["participants"]);
 
@MarkGarcia Clicking on a series of articles reminds me that it's been 2 years since Chavez's death.
 
4:40 AM
Or you might end up writing code like t.template as<json::array>();
In generic contexts.
 
I was thinking of adding json::value_cast<T>(...) soon-ish.
 
Can T be anything? Or is it a closed set?
 
closed set
 
It can only be array, string, number or pair<string, object>, right?
 
array, string, numbers, object, nullptr.
I'm planning on adding something for UDTs.
You can already do UDT -> json::value but not vice versa
 
4:47 AM
If you make json::object explicitly convertible to those types then you can use static_cast.
 
I don't know how to do the vice versa API.
to do UDT -> json::value you just specify a free function called json::value to_json(const my_udt& x) but the obvious alternative from_json doesn't work very well.
 
void from_json(json::object obj, Person& person)
{
    Person person;
    from_json(obj, std::tie(person.first_name, person.last_name));
}
You'll need overloads like this.
 
Implement to_string(to_json) & from_string(from_json) maybe?
 
Injected into the namespace of the UDT.
 
Actually.
Lemme see if I can cook up some SFINAE
 
4:51 AM
And a generic from_json which accepts tuple of any length.
Lol, my code example is kinda wrong.
Basic idea is to enable from_json on a tuple. Then the next step is to enable conversion from UDT to tuple and vice versa.
 
from_json you need to reconstruct the object from json, so it depends on the object
 
Why a tuple?
 
Or you could implement a boost::serialization archive.
 
FWIW I'm not really talking about dumping to string
I already have a full API for that
It's quite intricate.
I was talking about conversion from json::value to a specific UDT.
The different overloads you mention reminds me of the dump function above.
Which is a 'building blocks' sort of thing I guess
You can call it recursively.
 
I'm saying UDT -> json::value should split into UDT -> tuple<...> and tuple<..> -> json::value
 
4:56 AM
why the intermediate step though?
 
I'd kinda consider json::value to be a implementation detail.
implementing UDT -> tuple doesn't require json headers etc.
I'm probably too biased by my recent work on a RPC project.
 
Hm :v
It's public API though.
besides the fact you already have json::object as a parameter means you included it right?
 
json values are usually just strings or primary types like int?
 
null, true, false, arrays and objects too
 

« first day (1609 days earlier)      last day (3341 days later) »