« first day (1940 days earlier)      last day (3005 days later) » 

Ell
12:01 AM
You get my point though bruv?
 
I could use a monitor with a larger resolution
or two monitors
I should buy a 2nd monitor
atom gets crowded once I bring panels in and try to split
 
that’s risky
 
@ElimGarak bruh im adding u on fb k?
 
@AlexM. sure thing bby :D
 
k added
 
user1804599
12:05 AM
@StackedCrooked now I finally know where that meme comes from
 
You already got Scott and Shoe, there's Tony and also Nooble
if you want to complete the cool collectio
collection
 
@MadameElyse it's so crazy
 
user1804599
Why?
 
@ElimGarak dang how do I get to them
 
giving a car to every single member of the audience is rather unsual
dunno who paid for that
 
user1804599
12:07 AM
Well it's good advertising.
 
@AlexM. inboxed them to ye :D
 
user1804599
Maybe the people didn't get the cars at all and they were just actors.
 
user1804599
It's murrica after all.
 
@TonyTheLion @Nooble I'm addin u guys on fb pls accept I'm nice I promise <3
@ElimGarak thx
 
There's also Bartek under his real name, so hard to miss :D
 
12:10 AM
yea I got him already
 
Oh, I'll have to add the dewd myself as well
Cat Plus Plus has a FB, but he's CPP there as well, so kinda pointless :D
 
I'm building this because we have like 1 GB of strings to be allocated and I'm using a pool that allows to segment each allocation based on memory segments.
 
dang nooble has hot asian gf
 
If I use a chunk from the memory mapped pool, a char pointer, for example, how could we measure the string length?
 
respect++
 
12:13 AM
I'd like an asian gf as well
 
I'd like a gf
 
^^ this.
 
Can't say anything bad about her performance really.
She's doing weird stuff, but she's doing it perfectly.
 
Hat, hat this. Dereference got over 9k.
 
if (boost::filesystem::exists(it->first)) { boost::filesystem::remove(it->first); } is a classic anti-pattern
 
user1804599
12:16 AM
@milleniumbug I call that "duplicate code."
 
@milleniumbug probably delete it and warn someone "Hey, exception here because the file was not found".
 
user1804599
Even ignoring the atomicity argument, remove already does the check. Therefore, checking it yourself is duplication of logic.
 
user1804599
This is the reason I use at and catch std::out_of_range with maps.
 
I didn't know that I was duplicating the logic, I hate it when I duplicate the logic.
 
user1804599
12:19 AM
Ideally at would return boost::optional<V> instead of throwing an exception but yeah.
 
user1804599
Exceptions suck.
 
Ell
I'm not sure how I feel about exceptions
 
@MadameElyse not expected<V>? :p
 
@milleniumbug Oh ok, the file system locks the file?, the runtime? Could it lead to security bugs?
 
12:25 AM
@VictorLopez the point is: don't check if you can do an action on a file, and then do it, because this can change between the check and the action.
 
@AlexM. <3
 
just do it and let the system inform you of the result
for example in if(exists(file)) open(file); between the evaluation of exists(file) and open(file) another process can remove the file
 
Ell
exists is for UI n shit
 
@StackedCrooked I was much more weirded out by this:
 
lol
Those extra dancers are like WTF am I doing.
 
12:39 AM
oh and this:
 
@Borgleader And that's her most popular song on the YT channel.
@Borgleader Pop really has changed :P
 
hey guys. How do you feel About homework questions about programming being asked in SO?
 
depends. is it a good question? :p
 
I feel like killing dolpins.
 
@Nathan I dont remember seeing a good one, in general i close them on sight.
Why?
 
12:42 AM
@Borgleader I was curious. I am however working on a program for class.. but Im gonna do mine the old fashioned way...by actually trying to solve it myself. ;p
 
@Nathan good
 
before I ask for help.
 
@Borgleader "Like a virgin" used to be taboo-breaking. But now there's no taboos left, so you just do wacky stuff.
 
@StackedCrooked whacky like this yeah
 
@Borgleader or lyrics like this
But those are Dutch people.
They are a little off.
@Borgleader That's just fun wacky.
 
12:45 AM
@Nathan actually i wouldnt mind people asking questions in order to solve a homework question, but they have to abstract the homework from the question (which students practically never manage to do).
 
@Borgleader Ok, I stopped watching after he wiggled his dick in his pants.
 
for example, drilling down from "oh im trying to do this but it doesnt work heres 60 lines of code" to "oh my loop condition for reading the file reads the last line twice heres the 4 lines of code involved" (id close as duplicate but at least its a much better question :P)
 
TBH if I were a student I'd exploit SO to the fullest.
 
@StackedCrooked did you notice that Ron Jeremy and Fez (from That 70s Show) are in there?
 
I don't know that show..
 
12:47 AM
Oh :(
 
@Borgleader my program was involving binary files, but my teacher realized that somehow or another, our previous teacher didnt teach us binary files yet. So he changed them to text files, which Is easier.. but now Im trying to solve a few things.
1.) refreshing my memory on dynamic arrays. and 2.) string functions like .find() etc
 
oh... let me guess you cant use vectors?
 
@Borgleader for some reason that I will never understand.. yes. I cant use vectors. Instead we have to use pointers allocating memory.
ex: int *thispointer = newint[];
 
just remember new[] -> delete[], new -> delete, dont mix them
 
I remember that for sure..
 
12:54 AM
^ best source for looking up function signatures, requirements, ...
 
most of them have examples too
 
ayyy lmao, red dead redemption running on Xbox One
 
@ElimGarak They got Witcher 2 to run, and it was free that month (might still be)
thats a pretty sweet deal for those who hadnt played it
 
Inside information, basically. What proper emulators are doing, with all the documentation they have on it, it's nearly trivial to move it to Xbox One (and by extension, PC) from PPC. Especially as the GPU side is driven by a variant of DX9. On the other hand, Cell's selling point has become its chokepoint (PPU + SPEs + zero copy memory with no partitioning). :D
 
1:01 AM
Yeah, they wont be able to pull off emulation
 
I kinda wanted to play Heavy Rain. :(
 
You mean watch Heavy Rain ;)
 
. The process went full "nope".
Freezed, then the song played "Ale Ale jandro", freezed again, then the song played "Roberto".
Do we have to add a \0 character for raw char pointers?
 
@VictorLopez Depends
Show code (just the lines where you init the pointer)
 
char pointers are just pointers
only when using the functions that expect the null-terminated string convention you terminate the buffer
 
1:13 AM
like if you do uh... char const* p = "some string"; the \0 has already been added
if you allocate a buffer yourself though with like new, you have to account for it, if youre gonna use it with functions that expect null terminated strings
 
this is the full mmap_pool thing, we're using rapidxml and by the way, it seems that allocate_attribute has a method for allocating with fixed size.
 
we didn't want the full thing ._.
 
4 mins ago, by Borgleader
Show code (just the lines where you init the pointer)
 
windy::mmap_pool<char> pool;

auto str = std::to_string(tile_layer->index_keys[i]);

char* memory = pool.consume(str.size());
memcpy(memory, str.data(), str.size());

char *node_value = memory; //doc.allocate_string(str.c_str());
 
Stack Overflow exists for a reason
just saying
also, evening
 
1:18 AM
It's a snack dispensary
 
sup tony
 
just finished watching the first series of Mr. Robot
was quite nice
 
I believe the thing was here:

tile_node->append_attribute(doc.allocate_attribute("gid", node_value, 3, str.size()));

With rapidxml the values can be specified by size, now iteration with while(ptr) no longer end up in infinite char iterations.
 
@TonyTheLion oh, ive been meaning to watch that, but it wasnt on netflix last i checkeed
 
1:19 AM
Also evening :D
 
@Borgleader amazon prime
 
yeah... i'll prob get it on bluray at some point
 
amazon prime also has X files
 
the new ones?
 
or at least, here it does
Donno know about the new ones
 
1:20 AM
wait... i have amazon prime... o.O i should check this out (the old ones are on netflix too)
 
:)
they're not on the UK netflix
 
unfortunately :(
 
hey, anyone have time to help me sort out this algorithm problem I'm working on?
 
If the puppy was here, I would've heard at least 2 pings. :)
 
rofl
 
1:31 AM
kek
 
I never, NEVER, want to touch memory mapped files again.
 
@VictorLopez they're fairly harmless to be fair
 
I worked a lot more than I intended to today
so tired
 
1:49 AM
@VictorLopez why?
I'm considering using them for logging purposes.
 
@StackedCrooked Because there are so many things to take in consideration when building a memory schema. If the memory will be autoreleased, if you will use them inside a vector, if X or Y for the memory size, how big will be the container, etc. And during that process my computer freezes because I'm identifying what is consuming >4 GB of ram.
 
I'm learning dank bitwise tricks
 
Hm, maybe that's just caused by lack of experience.
Anyway. Interesting stuff.
 
We'll be releasing the memory mapped data structures once they're ready, right now we have a static allocator/deallocator, a memory pool and building memory mapped stl containers.
 
I'll be the master of dank bitwise tricks by the time I'm done with the emulator
fuck
 
1:54 AM
They should all go to temp folders and cleanup on destruction or removal. Oh, by the way.
There is a neat project called. Hmm.
 
2:13 AM
@jaggedSpire !
 
@Borgleader ?
 
yesterday, by Rapptz
you guys should join the discord server https://discord.gg/0oF7WvtiGICd6cpU
 
@Prismatic example of a CRTP base as some folks mentioned
there are variations on the theme, some closer to e.g. what Boost.Concepts does—but the core of it being using dependent types and special member functions
:28614232 lol, I actually did click on the link to make sure it worked
'yup, that’s the message I want to link to'
 
brainfart capacity maximum, triggering reallocation
 
typedef std::vector<brainfart> milleniumbug;
thats who you are now, your whole identity
 
2:21 AM
milleniumbug y2k; // hey that's me!
 
> It would probably help if there were more Haskellers that didn’t sneer at web devs.
but it’s so easy
 
it would also probably help if Haskell replaced JS as a front-end language for web
 
someFunc =
   print x
can’t even into syntax
I’ll sneer at you m8 nothing you can do about it
 
MUUUUBLE
 
@milleniumbug what happened
I'm curious
 
2:23 AM
what's the mumble server
 
loungecpp.sehe.nl:default_port
 
what's the default port
 
64738
 
it's default
 
anyone on mumble?
 
2:25 AM
 
@TonyTheLion
 
11/10 would read again
 
fart part sells it :D
 
smells it
 
ayyy
 
2:26 AM
girls fart?
 
I'm on mumble
who comes?
 
@Shoe get on discord
 
is that the new mumble
She sits and she waitsby the tree
And she thinks no one comes to me
She sits there all alone
Staring blank at her telephone
 
@Shoe mebbe. It looks to me like you already have an account
 
I love my life
I honestly do
@jaggedSpire I do, I never set up the audio settings
 
2:31 AM
@AlexM. Luc posted the link to the "example" (which was actually the link to the message), I said that this isn't an example. Luc edits the message to make it the link to Coliru example.
 
eh, it's like mumble: no one's using the voice chat anyhow
 
@LucDanton Quite clever
 
@milleniumbug We can go real far away. Away from here.
 
I like the mostly self-documenting function named requirements()
 
@milleniumbug CRTP seems to have fallen off people’s radars but C++11 and C++14 have made it more reliable and easier to use
I guess when it was popular it was treated more as a curious than anything else though
 
2:33 AM
There anywhere you want to go I'll take you there. Oh, we can go out of your mind.
 
and mixins don’t seem to ever have had that much foothold in the C++ world maybe
 
@LucDanton cool!
also terrifying
 
@Prismatic you could try a more usual example of CRTP to get familiar with it maybe
then 'splicing in' static_asserts into a derived class would seem like business as usual
 
Is there someone on discord
 
in text chat, like 5 of us
 
2:36 AM
yup, splitting checking into another class is a good idea from SRP perspective
 
I think Ive been writing some of the ugliest code I've ever written recently
feels bad
 
fix it then
 
Yeah it'll take a few iterations
Plus the class I've been working on is fairly complex imo, hard to break it down into neater chunks. For some stuff it feels like to follow DRY I need to make the code more verbose and uglier
 
> .boo ghosts and spooky business
nice tld
 
anyone here a football fan? I didn't even realize that the super bowl is tomorrow
I hope they have come cool commercials
 
2:48 AM
@Prismatic My son is (and a Broncos fan as well)...
 
@Prismatic I found out from /r/superbowl
 
There are, I believe, some regulars who are football fans, but their idea of football is...somewhat different (i.e., soccer).
 
Always wondered why they called called it football instead of rugby 2.0 or something
They should have called it tackleball
 
@Prismatic rugby is rugby football
 
2:50 AM
@Prismatic Handegg
 
they’re all called football because they are a game of ball played on foot (as opposed to e.g. on horseback)
 
@milleniumbug lol
 
@Prismatic Can we look at it and make improvements make fun of it?
 
inb4 2000 lines of code
 
2:53 AM
lol I don't know if that's a great idea. I can paste the source file up but its part of a larger project and you won't be able to compile or test it easily
 
Anybody going to SPIE conference in SF?
 
err ... why people pay for photoshop when they can just get gimp?
 
gimp is harder to use imo
 
I imaging because "get gimp" is a curse in my part of Chicago
 
to be fair, photoshop isn't easy to use either
 
2:56 AM
And the workflow with Photoshop for certain asset creation pipelines is much nicer... or at least it was when I used it around a decade ago
 
> .horse horse-related businesses and interest
blatant lies
 
I think gimp, like lots of similar open source / libre software could use a better user interface
 
photoshop also has better in-painting tools
I worked 4 years in publishing and our 2k PS license was the cheapest thing we've ever gotten
 
Thats the code I'm working on right now... though at a glance its probably not easy to tell why I think its bad (or maybe its obvious idunno)
Mostly my ListView class needs to support multiple directions and orderings (column, row, ascending, descending) and I'm finding it tricky to do that in a clean way. It actually kind of works though so thats nice (tested column only so far)
 
` class ListViewTODO : public ks::Exception`
 
3:03 AM
lol, I do that when roughing in my code
It won't be there in anything resembling the final version
 
throw std::runtime_error("Fuck it");// <-- This code requires MSVC
Idk, you included a bunch of stuff, could it done in a simpler way using Qt?
 
lol
 
@Mikhail what? (also, don't you mean runtime_error?)
 
fixed
 
all the gui stuff I'm making is because I cant really use qt
 
3:07 AM
but why?
 
@Mikhail and what about that requires MSVC?
 
~gpl~
 
@melak47 I think std::runtime_error needs to be implemented in gcc, in msvc they have some default as a convience
 
what??
 
Also qt's listview implementation looks pretty ugly too (github.com/qtproject/qtdeclarative/blob/dev/src/quick/items/…)
 
3:09 AM
are you thinking of the default constructor
 
@melak47 Okay I tested it. Fails on GCC 4.9, works on GCC 5x, goo.gl/g6S4ob
 
lmao
<stdexcept>
 
.......
 
well fuck it
I tried
but in newer gccs you don't need to include that?
 
and if you read a garbage pointer sometimes demons fly out of your nose
none of those are a feature
 
3:13 AM
@Mikhail you can't rely on that across stdlibs/compilers
 
@Prismatic have you ever used 3ds Max?
 
yeah when I was much younger... why?
 
I was just wondering if you came up with that color scheme all by yourself or if you had "inspiration" :D
 
nah the color scheme is just random lol
I wonder how ListViews add sections in for groups in the list
that seems tough
 
3:23 AM
Is it actually random or is from here:
 
I use dark grey stuff because its easy to remember the RGB triplets and everything else is random colors I pick from simple.be/web/color/codes
I don't put much thought into it, its just whatever
 
For anyone who watches basketball, I can't stop watching this gif: sbnation.com/lookit/2016/2/6/10929084/…
 
@Mysticial lol
so much consecutive fail
 
The spurs are the 2nd best team this year. And the lakers are the 2nd worst. That's hilarious.
 
The lakers are the second worst? Did Kobe retire
 
3:31 AM
Not yet. He is after this year though.
 
I heard Raptors did good this season
Its always when I don't bother watching
 
3:54 AM
I miss the Chicago Bulls from my childhood
 
github going bananas
 
> $2 billion startup GitHub
lol
 

« first day (1940 days earlier)      last day (3005 days later) »