« first day (2672 days earlier)      last day (2502 days later) » 

00:09
@Mgetz no
00:59
@Mgetz It could be except Mysticial doesn't know C
02:14
@StackedCrooked Found an answer.
Apparently x86 has an "out" instruction.
And, erm, you call it with a value and port number.
And that, somehow, makes things appear on the screen.
I suppose my understanding is still pretty vague.
 
1 hour later…
03:19
@RobertTroipartrois want some buttcoins?
 
1 hour later…
04:49
@LucDanton que du bon sens
 
2 hours later…
06:23
I can't do spacial rotation this afternoon
07:03
maybe I will stay dumb forever :'(
Somebody say something interesting
07:19
°w°
07:30
@Mikhail "Something interesting" Wait, maybe louder would help: "something interesting!" Yeah, that's it!
07:45
I want shining brain!
Burning more calorie while thinking ...
 
1 hour later…
08:49
@Puppy LMK when I can start outlining the tyeps for the renderer
BTW
when it comes to random gaems, it seems that Corona has been growing recently
it's apparently free now
Ven
Ven
09:10
Hi
@BartekBanachewicz Tried to write a game in JS with Pixi + ember but got messed when trying to make buttons for the user interface. Whats the paradigmatic way to make styled buttons with the webstack?
Ven
Ven
Pixi plus... ember?
pixi.js + ember
wait
it was Matter.js for the physics
Also UX controls like text input was a bitch
@StackedCrooked Could it be Coliru isn't giving any output anymore (if so, that has been for a few days already, I must admit I frequently use Wandbox these days if Coliru is giving me trouble)
I just started doing research and I am writing all programs related to the research in Matlab. For the first month, I used the 1 month free trial that Mathworks provides for free since the trial has expired my professor told me to download Matlab from the files he give me but those files have a cracked version of matlab. What should I do?
nwp
nwp
09:32
@sehe Works fine for me. Have you tried clicking "Restore defaults" -> "Command"?
hahahahahahahahahahahahahahaha
09:42
@Tyger Buy a conscience
@Mikhail DOM?
@Tyger write to your uni software department and ask for a license. If they decline, write to Matlab and ask them for trial extension, explaining the situation.
This of course assumes you don't want to buy a license for yourself.
10:15
Agent.cpp:76:10: error: expected ¬タリ{¬タル before ¬タリ:¬タル token
sweet
@sehe same thing with interviews: if they forgot about it they reschedule, but if you forgot about it they say "fuck you"
Ven
Ven
@BartekBanachewicz I love how half of the words are in english
@Morwenn When a company I telephone interviewed with forgot to call back to make an appointment, I did say "fuck you" (never heard from them again, I presume they lost interest/filled the position)
1
A: simultaneous read and write to child's stdio using boost.process

sehe This pattern: while (callback(CallbackActions::NeedMoreInput, src, read)) { in.async_write_some(...); out.async_read_some(...); } is most likely misguided (async operations always immediately return, so you'd simply keep adding more async operations without giving them a chance to run...

People are badlets.
Ven
Ven
@sehe Async is hard
Why are people bothering with Boost Process + Asio if they can hardly write a straight line of C++.
10:35
because they heard blocking IO is bad™
and asio is the first C++ async io lib that comes up
That Netflix thing, right "Blocking Bad"
async wouldn't be nearly as bad if the OS interface wasn't so crap. win32 is a mess and linux is very much tacked onto a sync api
@sehe s/Boost.*Asio/OpenGL/
11:15
Is there a performance hit when using boost::asio? Could this contribute to global warming, the melting of the polar ice caps, and declines in polar bear populations?
also EPOLLEXCLUSIVE is neat
11:32
@sehe If I do that I won't find many jobs in my town ^^'
@Mikhail performance hit compared to what
12:19
I might add quick_merge_sort to my library
it's the only sorting algorithm I know which doesn't fall bacl to an heapsort thingy while still being O(n log n) and using O(1) extra space
well, almost the only one
12:41
how do you get O(n) merge with O(1) extra space? or is merge sort only used when recursion exceeds limits?
12:53
the algorithm is basically like that: std::nth_element to partition the collection in two, with the first part being twice the size of the second, then mergesort the first part using the second one as a temporary buffer (except you swap elements instead of creating/destroying them), then call the algorithm again on the unsorted part
now I have to think more: the easiest solution is to build a recursive top-down mergesort, but then it's O(log n) space
neat, using a portion of your own array as the scratch space needed for the merge
but I recently found a paper about efficiently merging many runs, so I could probably make a natural merge sort with that
requires careful tracking of the data though
not really in my case: if you just take 2 thirds on the array, you know that you won't need more than 1 third for merge space
or at least being very careful to only use swaps
13:03
oh yes, but it's not that hard :p
I shared an implementation on code review a few years ago and it's actually rather straigthforward :p
actually even with a natural mergesort I would need to store references to runs to avoid having to compute them over and over again, so that wouldn't use O(1) space either :/
bottom up merge can be O(1) if you always take fixed increments, starting from 32 after insertion sort pass and then doubling each time
does not take advantage of natural runs though
yeah, but then it isn't natural :p
on the other hand only the first pass might take advantage of existing runs since the swapping destroys the potential runs after that
soooo, it might be better to have a bottom-up mergesort with fixed size indeed
nwp
nwp
I only use algorithms that are bio-compatible.
depends on if you think using natural runs is worth it
though you can simply scan for each run boundary
nah, for natural runs to be worth it you need book-keeping anyway
13:19
but that bookkeeping can be very small compared to the size of the array, for especially when you merge such that each run is at least twice as large as the next one
then you only need up to 64 pointers to hold runs as long as the memory space
the linux kernel uses a similar trick for mergesorting its linked lists
I just remembered that quicksort and friends use O(log n) memory due to recursion, so maybe if I make quick_merge_sort use O(1) memory it can be the fastest algorithm with the best complexities for both space and time x)
ok, block sort is equivalent as well as being stable, too bad u_u
@ratchetfreak I actually need the first run to be smaller than the second, which means that I could only track the first 3 runs, but the merge strategy of just merging the following until they are big enough don't feel super great :/
you have a list of runs and when you add a run you then check if runs[runs.length-2].length > 2*runs[runs.length-1].length if not you merge runs[runs.length-2] and runs[runs.length-3] and repeat the check
I'm lost with indices, it's not visual at all .__.
@ziwe Southern Baptist, Presbyterian, Catholic. We're done taking the blame for others.
nwp
nwp
Lucifer keeps complaining that "the devil made me do it" is factually wrong.
13:37
hell uses a lot of energy and is bad for global warming
if we could transport hell through worm hole to the middle of nothingness and build a planet close to it, we might harvest free energy from it
Ven
Ven
@BartekBanachewicz have you tried Protolude?
maybe hell runs on nuclear energy
@Ven I never really felt much pain with the default prelude. When it annoyed me, I just imported it manually hiding stuff
@Morwenn basically always make sure that run[i].length > 2*run[i+1].length and any operation that can increase a run's length (appending to the end can result in a merge of the 2 previous runs. Except at the start of the array which merges with the run that increased in length.
13:49
but then don't you store more than O(1) runs?
you only have O(log n) runs max because the length of each run gong back doubles each time, so with 64 spots you are already exceeding the possible address space
if you have 64 runs stored then the last run is at least 2^64 long
then it isn't the best from a theoretical point of view, too bad :/
it also has the advantage that you are only merging arrays that are close in length
it may as well be O(1) though
yeah, just like quicksort, but theory doesn't care about real world :p
there are more than 400 people interested in our next gig now, I hope the will be enough room to store everyone in the pub .__.
transposing a 3D angle into a 2D representation can be tricky
14:07
@Morwenn yeah but here we can exhaustively prove how much space we need max and the constant factor on it is tiny
@ratchetfreak we can probably do the same with quicksort, but from a theoretical point of view it will still be O(log n) v0v
but quick sort can reach up to O(n) with bad pivots
14:31
not introsort
14:42
and how's that bad you? :) @sehe — John123 2 hours ago
I alwas remind myself at this type of provocative "ignorance" that the OP might be 10 y/o (officially not, ofc)
15:28
@nwp oh look i.imgur.com/am7J3A5.png /cc @JerryCoffin
It looks like you stole their thunder :)
nwp
nwp
Oops.
Well it gives everyone a chance to keep an eye out for people who get 250k and fill out the form before the actual user does.
I wonder if JNat still has to pack the packages.
hehehe
Ven
Ven
15:49
@sehe you got SO swag?
Will be getting*
Ven
Ven
so cool!
Apparently I hit only 25% of the Skeet mark
Ven
Ven
@sehe you need 250k on SO only, as well? damn
@sehe Congrats on being the 117th to get to 250k ;-)
Nah. I had swap before. Maybe somewhere past 100k
@Ven ooohh thanks for putting it in a way that makes it sound impressive
Ven
Ven
15:56
@sehe It does say "top 0.03% overall"
I'm in the top 2%, so a pleb.
I'm used to seeing that in profiles all the time. "0.03% this week" and then it's some noob :)
Stats are deceptive
Ven
Ven
Well, "this week" isn't helpful. Especially in smaller communities like PPCG.
nwp
nwp
~12m reached vs my ~87k. It puts things into perspective -.-
Ven
Ven
@nwp I reached almost 10x more than you, and I don't have that much more rep
nwp
nwp
Guess I shouldn't complain about other people only answering unimportant noob questions.
Ven
Ven
16:01
;_;
muh virtual currencies
nwp
nwp
Today in 101 ways you know you are a good software developer: I was called because my software "doesn't work" and promptly diagnosed it as a hardware problem.
2
I'm such a pr0.
Ven
Ven
16:22
Everytime I go check the unanswered questions, I lose rep.
Downvoting all the awfulness there.
nwp
nwp
How? You don't lose rep on downvoting questions.
Ven
Ven
Because people rush to answer crap.
nwp
nwp
Right, downvoting answers as they come in.
Ven
Ven
i.e. someone asking how to calculate the next ID using MAX()+1. The upvoted answer is the one that explains how to do that.
That doesn't explain how it's an awful and horrible idea.
@Ven becouse i don't like Emojis — Emad 17 secs ago
@nwp that's my story too
@nwp Nice
nwp
nwp
16:28
@Ven I got your META tag emoji blocker right here!
(I heard it's an awful movie)
Ven
Ven
@nwp How could it not be?
nwp
nwp
I don't know. I expected frozen to be terrible too and it was not.
Ven
Ven
Why did you expect Frozen to be terrible?
hype backlash against Let It Go I guess
Ven
Ven
> Is my macro a little bit too naughty?
oh my god.
nwp
nwp
16:33
Because it's a disney cartoon with singing. That's usually a bad sign.
They have some star wars cartoon movie too and that was really awful.
room topic changed to Lounge<C++>: Let It Rust [c++] [c++11] [c++14] [c++17] [c++-faq] [go-lang]
lol wtf is this:
0
A: Why is reading lines from stdin much slower in C++ than Python?

microC++ is a general purpose programming language also known as an OOP. When you write code in C++ you have to do three things in order for your program to run, they are as follows: Write the source code and add the file extension being .cpp Compile the code in order for it to be machine readable la...

nwp
nwp
A community effort!
"Votes do not generate reputation". Seems like a good strategy.
I wonder why this got moderator attention.
@nwp It didn't. Deleted by 20k users.
That's a lot of users.
@Mysticial If troll, pretty hilarious.
Ven
Ven
16:47
> Enthusiastic programmer, languages of choice being; Python, C++ and Java. I'm an aspiring OSCP candidate, as I've started my path in working towards gaining a better understanding of how cyber security can be better enhanced.
ew
nwp
nwp
> We are using better enhanced cyber security.
Problem solved.
nwp
nwp
17:11
It doesn't matter for this question, but generally stay away from new. It just makes everything difficult. — nwp 3 mins ago
You used new so you got screwed. Remove it and things will work properly. (it's not ~MyServer() that didn't get called, it's ~QFile()) — nwp 2 mins ago
The crusade continues!
 
1 hour later…
18:14
@Mysticial I think they need to add "is seriously funny" as a reason for up-voting.
nwp
nwp
When taken seriously things tend to not be funny.
@nwp They remain just as funny, whether you appreciate the humor or not. "If you think an horse's tail is a leg, how many legs does a horse have?" "Five". "Wrong. It still only has four legs, regardless of what you think about its tail."
nwp
nwp
Very funny, but I don't appreciate the humor.
Sisters of Mercy is still pretty great by the way.
19:14
does anyone have articles and/or slides about tricks to reduce compile times when you've got trucks of templates everywhere in your code?
I had some back then, but can't find them again :p
20:13
I don't but it would be cool if you benchmarked a few compilers and wrote a blog post about it.
I only have a single compiler that actually works with my project on my computer x)
20:47
where is most of the time lost? linking or compiling?
compiling, by a large margin
@ratchetfreak writing the code
can you try only declaring the templates and instantiating them in another translation unit
the whole thing takes 3~4 minutes to compile for 1000 assertions
it won't solve the problem for users since I don't know what they will instantiate the templates with x)
but it could solve it for you ;)
20:50
the problem isn't for me, I don't care that much v0v
it's just that the library is way too heavy on compile times for a few algorithm abstractions ^^'
the only place where it actually bothered me was the CI, but I managed to more or less halve the CI times :p
what is templated exactly and does it need to be templated?
everything
can you get away with type-erasing some parts
it looks quite hard
I'd wager that the bottleneck is this class, which is a template monster XD
a lot of enable ifs there
20:56
yup
would it be possible to put the some of the enable if on the class level and using partial spec like that?
it was only meant to be a toy library and shit, but now that it's got quite a few stars and is available through a package manager I try to make it slightly better, but I don't want to break the fun abstractions
I thought of partial spec, but every SFINAE condition actually depends on the operator() parameters
so I'd need to add more tags everywhere in sorters to know when I can use a simpler version
I tried to complete the class to handle non-const operator() in the library and actually store sorters in sorters adapters, and compiling the whole testsuite skyrocketed to 30+ minutes x)
and it produced ICEs on Clang which I didn't manage to fix
also I couldn't even move my mouth during some steps of the compilation
 
1 hour later…
22:01
Sexy people, last call to nominate places for Uncon, I'll (hopefully) sort out actually voting for nominated places next weekend.
7
Don't forget, so far we've had a unique currency each year :D
23:02
Apple bootloader code casually ignoring the rule of 3+
nwp
nwp
Well, they can be pretty sure they'll not cause a segfault.
23:45
@sehe It works for me. (Timeouts sometimes happen without an the "execution expired" notice. Could that be it?)

« first day (2672 days earlier)      last day (2502 days later) »