« first day (2000 days earlier)      last day (2963 days later) » 

12:00 AM
...A four hour commute is too much, yes?
 
4h x2 or 4h total?
 
the first
 
oh god, not doable
24hrs in a day, sleep 8, commute 8, work 8
theres 0 time left
 
my teacher told me to not use std::map in C++, it was then i realized i had to use std::map
14
 
We are announcing our second North American event! – DreamHack Montreal! #DHMTL16 http://montreal.dreamhack.com/ https://t.co/S61uelw4wZ
yes
yesssssssssssssssssssssssssssssssssss /cc @EtiennedeMartel
 
12:12 AM
random question: anyone here that has the lyrics to rise to remain - over and over?
 
@Borgleader Apparently that fox died today. :(
 
Oh no :(
 
> The Wu Hu Era sounds like a lot of fun.
 
12:29 AM
cpp empty destructor or just drop the destructor?
 
@Nican :(
 
user406009
@Borgleader simple
 
user406009
Stop sleeping.
 
i wish i could, what a waste of time
 
12:49 AM
@sciencefyll Depends on whether you're defining it to make it virtual.
 
danke
 
@Borgleader Sleep is a disease caused by a dietary deficiency of vitamin Caffeine.
15
 
@LucDanton :star:
 
1:16 AM
@JerryCoffin Heh, Im not caffeine deficient, I'm caffeine free. Might explain why I need so much sleep.
 
I drink a lot of coffee and yet, I still sleep a lot
sleep & coffee are not mutually exclusive
 
@Borgleader I actually don't drink caffeine any more either (well, not often, anyway). Actually, I'm pretty sure without caffeine you end up needing less sleep. With caffeine, you end up sleeping poorly enough that you need a greater quantity to compensate for the poor quality.
 
Oh I sleep poorly enough alright, its just not caffeine related.
Speaking of sleep, time to do just that. toodles.
 
toodles my love
 
@Borgleader Sleep as well as possible, anyway.
 
1:35 AM
@Borgleader night <3
 
Does anyone know grails?
I need help
please take alook at this question
0
Q: Grails, google visualization plugin

Don CodeI am very new to grails and I'm trying to develop a simple application. Can someone please give me a step by step guidance on how I can create a google visualization chart in Grails, given that I have two domain classes. User Transaction The relationship is User { static hasMany = [transac...

i'm desparate
 
pull yourself together
 
I just need help man
 
2:06 AM
You're in the wrong room.
 
> Vim: caught deadly signal SEGV
Vim: preserving files...
It's taking awful long though
 
it’s preserving in vinegar, it takes time for it to seep through
it’s understandably annoying in a pickle
 
Killing it just adds Vim: double signal, exiting. Still hung :)
Good ol'e SIGKILL helps
 
what did you kill with at first?
 
Ell
SIGMAIM
 
2:15 AM
@LucDanton TERM
As it should
 
oh yeah
 
Everything recovered fine - except my Ex history I think
Actually, a lot is there. Maybe just not the last few commands (?)
 
> deadly signal
 
This is end-user friendly software!
 
2:40 AM
struct Test
{
static constexpr int t() { return 100; }
char b[t()];
};
does anyone knows why that doesn't work? :<
 
make t a free function
 
i already know that :u
 
auto tp = Cock::now();
kinky typo...
 
the question is why that exact code doesnt owrk
:<
in my eyes it feels like it should
 
something about the class not being complete, I forget
ask @LucDanton
 
2:50 AM
Hello, you’ve reached my auto-reply. I am out of the office at the moment, but I’ll be sure to get back to you once I’m done with my business.
4
 
7
A: constexpr initializing static member using static function

Ben VoigtThe Standard requires (section 9.4.2): A static data member of literal type can be declared in the class definition with the constexpr specifier; if so, its declaration shall specify a brace-or-equal-initializer in which every initializer-clause that is an assignment-expression is a constant ...

 
may i enta
 
> _NtReleaseMutant@8
step into?
 
what could go wrong
 
3:07 AM
can someone help me with something real quick
USE DATABASE(db_name); CREATE TABLE IF NOT EXISTS db_table;
in a prepared statement, once the table is created i can use my super long insert thing..
I thought you could string commands together as long as you ended them with a ;
USE db_name just worked
 
user406009
@GettingNifty Yeah, prepared statements might only allow one command at a time.
 
3:24 AM
Develop a custom library to provide message queue functionality without using standard APIs.o (Library is not required to work across processes)Develop in C++ exposing following functionalities- Create Message Queue- Post message- Get message- Delete message queue
Any help please i am new to c++ .
 
user406009
@AndroidDev Do you have a particular question in mind?
 
user406009
That's quite vague.
 
user406009
A "message queue" could mean almost anything.
 
massage queue
 
how to create a message queue without using System calls ?
 
user406009
3:29 AM
@StackedCrooked I wish.
 
> Delete message queue
 
user406009
@AndroidDev What are you trying to pass messages between?
 
Is that a listed requirement?
 
user406009
Processes? Threads? Computers? Universes?
 
threads
by using threads..
 
user406009
3:31 AM
What does it mean without using standard APIs? Are you not allowed to use pthreads or something?
 
user406009
Or the C++ threading library?
 
Only non-standard API's. Like Facebook Folly.
Btw, it's not very hard to build a simple thread-safe queue using a mutex and condition_variable. But that requires standard components.
 
It means with out using msgget, msgsnd , msgrecv system calls which generally used to implement message queue
 
user406009
@StackedCrooked Nah, he is clearly supposed to start from bare metal. Got to first implement his own atomics using assembly. /s
 
How do you write to stdout if you can't use printf?
Is it there hardware address that I need to reinterpet_cast or something?
 
user406009
3:34 AM
@AndroidDev Are you able to use the C++ threading library?
 
we can use printf and all , except msgget, msgsnd , msgrecv
 
user406009
Your simplest solution is probably to just wrap a std::deque with a lock for an unbounded queue.
 
user406009
If you need a bounded queue, look into en.wikipedia.org/wiki/Producer%E2%80%93consumer_problem and condition variables.
 
user406009
@StackedCrooked You do a write syscall to file descriptor 0.
 
user406009
IIRC syscalls are implemented using the trap assembly instruction.
 
3:38 AM
Message queue has some special properties, compare with queues
 
Is there any merit in using POSIX message queues?
 
user406009
@StackedCrooked Cross process communication?
 
I suppose that's nice.
 
@StackedCrooked uh?
write on fd 0?
 
no need of cross process communication , in one process there should be two threads
 
3:41 AM
@StackedCrooked Are you programming on a microcontroller or what :p
 
user406009
@VeronikaPrüssels Do you have @AndroidDev plonked or something?
 
yes it's a help vampire
 
no i need to create .lib which implements Create Message Queue- Post message- Get message- Delete message queue
 
asking about queues and whatnot
why?
 
@VeronikaPrüssels Just curiosity :)
 
user406009
3:42 AM
@AndroidDev Yeah, Stacked and I were just joking around. As I said before, your best bet is to either wrap a std::deque with a lock for an unbounded queue or use condition variables around a std::deque for a bounded queue.
 
Answered to the wrong question.
 
we're just trying to bother you
u can help us get better at them by ignoring us and letting us figure it out ourselves
whoa i misread something
 
io_service is my current go-to solution when I need a simple task scheduler. but that's probably not what the prof had in mind.
 
user406009
@AndroidDev Let us know if you have any other particular questions.
 
3:46 AM
I started writing my own task system it's nice
In the process I discovered a lot of linux niceties
timerfd, signalfd, ...
 
A interesting challenge is how to deal with many times. If you have 100k TCP connections and each of them has a few pending timeouts, how to you manage all the timers efficiently.
I ran into this problem when I first tried to have 10000 concurrent TCP connections.
Fixed by reducing the timer resolution to 10ms. But that's not very satisfying.
 
user406009
@VeronikaPrüssels Yeah, it allows interesting stuff like libuv.
 
user406009
If only it had a nice C++ api.
 
user406009
@StackedCrooked But does the precision for the TCP timeouts really matter anyways?
 
user406009
3:51 AM
As long as you round up, all is good.
 
user406009
It's not like you are going to get a really fine degree of clock synchronization across computers anyways.
 
@StackedCrooked priority queue?
or what do you mean
 
@Lalaland Hm, not really. But it was part of the general timer code in the stack.
 
SQLException: A table must have at least 1 column
SQLState: 42000
VendorError: 1113
 
@VeronikaPrüssels Yeah, that's an interesting option.
Currently using std::multimap<time_point, Task>. Which also does the job.
 
user406009
3:56 AM
@StackedCrooked If you know the range of the timers and are willing to put them in buckets, you can use a std::array<std::vector<Task>, num_buckets>.
 
Very nice.
In the book Network Algorithmics there's a chapter on timer wheels.
 
user406009
Yeah, that was the name for the technique.
 
I think that's very close to your buckets idea.
 
user406009
It wasn't mine from the very beginning. I just vaguely remember it from somewhere else.
 
@Lalaland In old-style C code it would typically be an intrusive linked list instead of vector. I wonder why this is not common in C++.
I suppose implementing vector in plain C is too complex.
 
user406009
3:59 AM
@StackedCrooked It's hard to create generic intrusive linked list structures in C++.
 
Hm. I don't have the experience.
But there's boost intrusive, which I plan to have a look at.
My OCD hates that vector has a size of 3 pointers.
I wish I didn't know :P
However, if I use a stateful allocator I can bump it to 4. And life is good again.
 
@StackedCrooked What would you want it to be
 
Ideally 2.
Pointer + u32 size + u32 capacity
 
so 4 billion element at most is OK?
 
Sure.
 
4:05 AM
that's not webscale!
 
I think the largest vector I ever had was 200K elements.
uint16 would be sufficient for almost all cases.
 
@StackedCrooked Have you tried a priority_queue? That's kind of the old standby for tasks like this.
 
I did experiment with it.
 
@StackedCrooked ...and?
 
It worked fine. I don't remember why I eventually resorted to the multimap...
Since a heap is much cooler than a binary tree.
 
4:08 AM
@StackedCrooked Certainly a lot more compact, anyway.
Worse, a map isn't just a binary tree-to fulfill the requirements, it typically has balancing information, and an extra pointer to make it a threaded tree, so each node has three pointers plus balance in addition to the data.
 
@StackedCrooked a heap is a binary tree :w
but I think we've had this argument before
 
Well, technically.
I was referring to the differences in memory layout.
 
binary trees are defined by the set of operations you can do on them, not their memory layout :p
 
This is what a racist algorithm looks like. (H/T @epopppp) https://t.co/FnGLy4Y648
oh noes
We can't risk google being biased by humanity!
@VeronikaPrüssels Depends a little bit on how you actually choose to define them of course (I agree though)
 
let no common sense get in the way of pedantry
 
4:20 AM
Which is why I'm going to sleep :)
 
that being said and while I perfectly understand @StackedCrooked's POV, I choose to define structures purely based on their expressable abstract properties
a binary heap does differ in shape from a tree and you can express that with mathematical constraints
irrespective of any implementation details
but reasonable assertions are not fun
so good night @sehe
 
Actually, I just decided against it. It'd be less than an hour.
 
heap doesn't provide all the operations of a binary tree though
 
I'll just arrange some flexible office hours.
 
i.e you can't erase/insert in the middle
 
4:24 AM
@VeronikaPrüssels You've summarised the whole point of objects; make it easy to change the implementation, but do the same thing
 
I've recently realized two cool things about the stl:
I can do boost::circular_buffer<T, tbb::cache_aligned_allocator<T>>; and there's no STL code involved at all.
But it works thanks to stl :)
Second cool thing is that std::sort on a deque works without any special code.
It simply works because deque's iterators comply to random-access-iterator concept.
It's magic.
 
And that's one of the only things I dislike about idiomatic python; it discourages objects that aren't list, dict, etc. In many cases, this makes better code. In some, it makes it less replacable
 
@Aaron3468 or functions
 
(Also allocators aren't even considered a successful part of the STL.)
 
@VeronikaPrüssels touche. I'm still walking the tightrope in Python of 'when is a function good, and when is an object'
 
user406009
4:29 AM
@Aaron3468 Hah, you would really hate Clojure then!
 
lol, why?
 
user406009
@Aaron3468 One nice thing about everything being lists and dicts is that we already have so much tooling and functions to work on lists and dicts.
 
user406009
@Aaron3468 Clojure is even more obsessed with avoiding custom classes.
 
@Lalaland Oh god no! I like using standard objects, but it's also nice to package custom behaviour onto them so that they have some structure. Writing code like open_address_in_url_binary_tree((dict_to_url_binary_tree(foo)[0]) and having five other functions with that suffix is often an ugly side-effect of avoiding classes when they are useful.
/rant about how I'm writing code that is nearly simple enough to use a dictionary and a couple lists, but needs a class to avoid blowing up my calls to it if I change the implementation. (of course, the odds I will once it works is slim >.<). To be quick, or to be good?
 
4:44 AM
great labels
 
Even though it's not designed for this specific problem. (Buffer overrun with a single flow is not really congestion.)
Y-axis is the congestion window.
X-axis is time.
Units of 100ms. The test took 200 seconds.
It shows how the algorithm reduces its window when confronted with loss. Then grows quickly until it encounters the previous point of loss when it slows down the growth.
 
Cubic has so many nice properties. Like window growth it does not depend on the number of acks received. Which is good since recently many devices use ack suppression.
 
@StackedCrooked That's the real core of it. The containers, iterators, and algorithms in the base library are really just a starting point--the real genius is in the basic design, so you can extend all of them, and know they'll still work together seamlessly.
 
Yeah.
Also the syntax: for (auto i = c.begin(), i = c.end(); i != e; ++i) which works on vector, deque, list and map.
And it explains need for operator overloading.
 
4:57 AM
Does it?
 
IIRC Stepanov used the C loop as a starting point: for (int i = 0; i <= len; i++);
Because it has the familiar syntax.
Then he discovered the loop condition should use != rather than <=. And the increment should be pre-increment for efficiency.
And in order to make it work with list and map the iterators should be wrapper classes. So operator overloading is required if we want to keep the syntax.
 
@StackedCrooked I don't believe using pre-increment was his idea.
 
Could be.
 
@JerryCoffin So sweet! :)
 
@StackedCrooked C gives a prime one-word example of why a lot of languages hate extensible syntax like overloads; macros. But extensible syntax is a wonderful tool if it creates new functionality, rather than the people who turn C++ into Java >.< So I think making an for_iter(i = iterator; i != value) loop is a good use of syntax extension
 
5:06 AM
> if we want to keep the syntax
for (auto i = std::begin(c); i != std::end(c); ++i)
for (auto i = std::begin(c); i != std::end(c); std::advance(i))
huhu
except of course advance doesn't default n = 1 unlike next but use your imagination
 
I’ve trained you well, haven’t I
now you’re doing your own nitpicking
 
@LucDanton Veronika always nitpicked. Now it's helpful ;)
 
@LucDanton nobody warned me it would be contagious
 
fucntion declaration : void sendto_message_queue(int , string ); its showing error , can we use strings as arguments in c++
its showing : syntax error : identifier 'string' ...
 
@VeronikaPrüssels Of course it doesn't default it--since there is an overload of ++, the only reason to use advance is when you're advancing by more than 1.
@AndroidDev Sorry, but no. No string arguments in C++. There was such revulsion at the idea of stringly typed code that it was prohibited.
 
5:12 AM
the other reason to use advance is to prove people's point about syntax wrong
 
@AndroidDev I'd switch to SNOBOL 4 if I were you. No problem using strings with it.
 
@AndroidDev You need to pass the string as a void pointer for security reasons and type safety. It's safer to hide the types.
 
dey turk ma jeb
 
remember that 99.9999% of missing children are found and usually it was for publicity
 
@JerryCoffin Out of curiosity, why? reads chat - sees answer by Stacked
 
5:44 AM
@VeronikaPrüssels Can you do for (auto i = std::begin(c), end_it = std::end(c); i != end_it; std::advance(i))?
 
> Hey Français, voulez augmenter votre FPS? Officiellement Vendu via Steam - [nom du produit censuré] - Augmentez votre jeu FPS!
 
5:59 AM
Is it poor design to create a class that wraps list, yet needs a list in the constructor? I feel like this is really sloppy code I'm working on
 
The constructor in itself doesn’t sound problematic, although that wouldn’t excuse the class to begin with of course.
sometimes a range-taking constructor is favoured over a container-taking one; but in turn it’s not unusual to have a wrapper convert from the type it wraps so it depends on which semantics you want
 
I'm scraping a web-page at the moment. The web-page outputs movies/shows from a database and includes fields that are often accompanied by links. For example, it would show the producer's name as a hyperlink. I'd like to keep the hyperlinks in the object so the end user can go back to the website for additional information I don't care about scraping.
I've got a wrapper class for an std::map<std::string, URL> I call Entry for now. While I'm extracting the data from the HTML I received, it's easiest just to make a temporary map for any values available and pass that to the constructor. Alternatively, I could store the html, but that means each Entry object will store about 300 characters of html.
 
@Aaron3468 That is not bad. That is containment, or a "has a" relationship. It is sloppy if the wrapper adds no value.
example: you might make a thread safe producer consumer queue, which is just a wrapper around an actual queue. it has a queue
 
6:19 AM
I didn't like that the object required lots of helper code before construction, so passing html to the constructor is probably best in this case
@doug65536 That's a good example, actually!
 
6:36 AM
@LucDanton Voilà un commentaire ayant pris un tournant inattendu et francophone.
 
6:47 AM
@wilx Optimizing compiler will do that if it can prove the optimization doesn't change the program's result
wow I'm lucpedanting hard today
6
 
@VeronikaPrüssels *Luc peDanton
I approve!
me: needs a simple test case for parsing html entries from webpage - writes real entry to file and uses for test - probably infringing copyrights
 
7:07 AM
@slaphappy I summon you!
 
@Puppy Joke/troll question in case it wasn't obvious...
 
user1804599
Hello, world!
 
user1804599
 
user1804599
This exists since today.
 
std::cout << "Hello, Zoidberg!" << std::endl;
 
user1804599
7:14 AM
Hahaha that is funny you write the welcome message as a C++ statement that prints hello that's really original and funny.
 
@fredoverflow I don't really feel that that matters to me.
 
That's me! Original and funny
 
user1804599
> WW II discussion always ends with Hitler
Bokhoven's law makes normal conversation impossible
 
Xeo
@Zoidberg That has existed for a while
 
user1804599
DAMMIT FUCK
 
user1804599
7:29 AM
Why is GNU Make so difficult to install on Windows. ~_~
 
user1804599
 
7:53 AM
does SO put a notification in your inbox when someone updates an answer on a question you asked?
it must, right? cant be that dumb :D
@Zoidberg lol, the z-index arms race
people try 10000 before they try 2
 
@Zoidberg Is it? You can get it with MinGW or Cygwin.
 
8:18 AM
> Hi everybody

Are there going to be any hardware modification in order to make windows run ubuntu, or just is it a software change ????
If will be a hardware change , what are the change????

With regards,
Khalid
> متفائل بدنياي ولو الزمن عاداني
 
;_;
 
lol
@VeronikaPrüssels that's Arabic, it's like a forum signature where he's implying that he's an optimistic person (forum signature cliche)
 
Khalid Khnefer
 
that wasn't me for you info
 
@KhaledKhnifer I don't think so
it looks like pakistani
(a eastern indian dialect)
but I could be wrong
it also looks similar to tibetan so definitely something in that area
 
8:31 AM
it's Arabic, neither Pakistanee nor Indian people speak or use that language
 
lol you seem to be pretty unaware of other cultures
 
They majorily formally use Urdu which has similiar literals
 
@Rerito im here
 
So, interview this evening
I'm told to learn "swaps, swap pricing, rates, rates pricing, rates curves" and whatnot
Am I going to screw it up or what?
 
swaps are easy just talk about std::swap
rates curves are just sinusoids
and for pricing give a 10% rebate to everything
 
nwp
8:39 AM
they probably mean something different
 
@KhaledKhnifer so it's urdu then
see
 
So I wanted to make sure they know I'm not up to date with finance stuff @slaphappy
 
did you read the job specs
 
Yep
I'm only matching the C++ requirement lol
 
just fyi
those guys don't do pricing
they won't ask you pricing questions
 
8:42 AM
I know a bit (from the Hull book), that's very superficial atm
 
you know they only do shitty COM interfaces for excel spreadsheets right
and that's like 10% of the job
the rest is excel formulas
 
and pivot tables
 
at least those "shitty com interfaces" are calls into native code
 
From the job sheet, it seems they're looking for some maths/C++ prodigy :|
 
it's an omen
 
8:46 AM
maths/C++ prodigy in france means you can count to 4 and print "Hello world" in less than 78 segfaults
hourly reminder that software in france is a catastrophe
 
everyone is looking for mr smartpants von geniusville to work on their shitty stuff
 
It should go well then
At least for the C++ part
 
I just think you can do better
 
"oh but you use auto"
"yes what about it"
"we don't use it because of the runtime cost"
"...say again?"
 
lol
 
8:48 AM
you don't run in an auto, you just press the pedal
 
@slaphappy You're referring to the stuff you texted me about?
 
which stuff?
 
The stuff you were mysterious about, saying I should send my resume to a certain person
 
@VeronikaPrüssels go tell that to Google Translator language detector
 
@Rerito lol no he just fucked up. I'll explain later.
 
8:51 AM
Beer or smth this evening?
Although I suspect the interview will end up too early
 
@Rerito my point is that your resume on efc is 20+ recruiters begging you to call you back so that they can give you a job. I don't think you need to settle for excel spreadsheets in the most technology-impaired team of the place.
 
@KhaledKhnifer looks like a bug to me, you could report it
 
@slaphappy When you put it that way...
 
@VeronikaPrüssels As an Arabic native speaker?
 
Henri has some other stuff in the pipe though
Maybe I'll get to choose whichever I prefer
 
8:53 AM
@KhaledKhnifer I'm not native no
 
@VeronikaPrüssels you're not even a European business woman
 
your claims are unfounded, dismissed
 
@VeronikaPrüssels we already know who you are
 
who am I
 
@slaphappy What about BNP? Apparently there's a gig near Opéra
 
8:56 AM
there's also several in HK at BNP
just saying
 
do you wanna work in the city's highest building
 
wow phallus++
 
second highest actually now that ICC opened
 
that looks like a middle finger to me..
 

« first day (2000 days earlier)      last day (2963 days later) »