« first day (1825 days earlier)      last day (3124 days later) » 

12:04 AM
I'm literally falling asleep.
See you later. Have a good night :)
 
requiescat in pace
 
@se
 
@Slazer yeah?
 
@sehe too much C++11 for me, but anyway, I do not see where you tell me which of those pieces should I insert to achieve the maximum capacity
 
I was just demo-ing. No c++11 needed. Here's one that gives unique solutions and lists only the ones sharing the best efficiency coliru.stacked-crooked.com/a/94d853441b85cfa8
 
12:13 AM
Windows downloaded updates and proceeded to fill the rest of the drive
It crashed while updating and when I rebooted it I had 4.75MBs left
youd think they would check if there was enough space to do the updates before doing them
idgits
 
@sehe as for the second output - what does "5 11 30 EFFICIENCY: 30" mean?
@sehe 5+11!=30
 
5+6=11+19=30
 
5+6=30?
sory for being stupid, Ive never seen boost
 
@sehe: hi
 
@Slazer it means that 5 + 6 + 19 is 30 (cumulatives)
@Slazer you never seen partial_sum, not related to boost
 
12:21 AM
@sehe: I need your help.
 
@Morwenn night :)
@Borgleader why would they do a sane thing like that?
 
I dont get it at all
oh I get it now
 
could anyone help me in stackoverflow.com/questions/32808572/…;. ? The questions is still unanswered. Look, I am not promoting my question.
 
you are not?
I dont get it again..
 
@jaggedSpire oh... of course
how silly of me
 
12:29 AM
partial_sum(items, sums.begin()) ?
OutputIterator partial_sum(const SinglePassRange& rng,
OutputIterator out_it) ?
 
@sehe Was he canadian? :P
 
@StackedCrooked coliru is down
@Slazer Here's c++03 only version: melpon.org/wandbox
 
@sehe there is nothing there...
 
@Borgleader :D
 
12:32 AM
So I watched Andrei's talk today. Good stuff, it was interesting and he was funny.
 
 
It is just one combination right?
 
I think so. Let me change the output :)
Yes. @Slazer C++03, no-boost, reporting the actual items (unique solutions) melpon.org/wandbox/permlink/odefGKFHopLV02H7
 
@sehe you write a nice code sehe
 
And to be overly complete, that same but with minor c++11 goodness melpon.org/wandbox/permlink/2ZMbyA8GqH2nrMI4
@Slazer Thank you
@StackedCrooked coliru no longer down :)
 
12:44 AM
@sehe still reading...
 
Cicada is in real estate now
 
The shared idea is bruteforce (all versions do this):

loop through all permutations of items
for each,
do a running sum (partial_sum) and
find the first that still fits from the right

copy the solution first n items that fit and keep track of best

In the end, print all solutions that share the best packing efficiency
 
1. why sorting it if doing all permutations?
 
I thought so
so I have 15 6 5 2
 
12:49 AM
std::next_permutation cycles in lexicographical order and doing it like this makes it possible to detect when all possibilities have been seen
@Slazer you do?
 
say I do :)
 
I don't know where. Are you posing a new scenario/testcase?
 
running sum inicialises sum to 15 21 26 28 right?
yes I am posting a new scenario
just to make sure what does the running sum do
 
yes
 
then what?
oh I think I got it
 
12:52 AM
@PravasiMeet found a work-around for you, but no answer.
 
@melak47 what's happening there? I ignored PM because of obvious vampire attitude earlier
 
I did it.
 
how to make heder only with cpp?
oops wrong alt
 
I fixed my friend's phone.
@GregorMcGregor Lol.
 
@GregorMcGregor make love, not header only
 
12:54 AM
@sehe no idea. __attribute__((packed)) is packing strangely with mingw-w64 - but MS packing pragmas work as expected (lol)
 
21 hours ago, by Luc Danton
@GregorMcGregor Just include them.
 
hi Luc what a surprise to see you awake at this hour
 
yeah very
 
@sehe make love. make: *** No rule to make target 'love'. Stop. (in the AT&T days make was more fun--the error message read: "don't know how to make love")
 
don't know how to mark down
 
12:57 AM
max is 10
6 5 4 3 2
6 11 15 18 20
find the first one from the right less then 10
check if it is higher than the max
if so, we have a new max -> write it down
next_permutition()
is this right?
 
30th WHAT
 
@sehe are there flags that change default packing for gcc or something? could be defaulted to different things with mingw-w64 I guess...
 
@Slazer yes
 
@wow thats kinda cool
@I would like to code like you
 
@melak47 I don't think so. I'd expect it to be only pragma/attributes
 
12:58 AM
30th month?
 
Who the fuck is @I
 
@GregorMcGregor You!
 
@Slazer beware: if this is some kind of coding challenge, be prepared to receive huge inputs, and brute force stops being viable.
 
@sege most of the good programmers have crappy style and are arrogant as hell
 
You'll need a heuristic search with some backtracking
@Slazer yup, you got me :)
 
12:59 AM
@sege no I was just told that problem yesterday in school
 
Ok, it was just a warning :)
Brute force rarely works for interesting problems
But premature optimization sucks badly, so if you don't need it, don't optimize
Simple beats complicated
 
@sehe you are the first programmer that codes the way I would like to...though I am still yet to fully understand the code :)
 
so you want to write code you don't understand? be careful what you wish for :p
 
@sege I have another solution in mind
@sehe
 
@sehe Simple is violent
 
1:01 AM
@Slazer The key is: know your algorithms
 
@sehe Don't just know them. Get truly intimate with them.
 
Yeah, fuck algorithms
 
@sehe suppose we have n items. We can than create binnary number with n digits and inicialize all to zero. Than we woul multiply i-th digit with i-th input and sum it up. then we would compare with global max etc. we increment the binary number and cycle unless we have all zeros in the binary number
*I mean all ones
for example
max is 10
6 5 4
0 0 0 -> 0
0 0 1 -> 4
0 1 0 -> 5
0 1 1 -> 9
1 0 0 -> {6}
1 0 1 -> {7
damn...it got send
anyway I think it is clear
 
I think that's essentially the same, but using indexed permutations instead of the in-place lexicographical generation. The latter is more efficient especially if you have repeated item sizes
 
which is "the latter"?
 
1:07 AM
"the last thing mentioned"
So, std::next_permutation automatically doesn't so { 6 5 5 5 4 }, { 6 5 5 5 4 } etc. because all permutations of { 5 5 5 } are indistinguishable
 
my solution is "using indexed permutations"?
 
If you use indirection through a bitmask, you lose that information
@Slazer That's how I understood it
 
oh I see..
but there is an overhead with next_permutation isnt it?
anyway...I should go to sleep
Its 3:10 AM here and I have school tomorrow
 
it can potentially move more items. For large data, the bitset could be more efficient (but: profile it and don't forget that brute force will lose appeal at larger scale anyways)
@Slazer It's 3:11 AM here and my kids have school tomorrow too
@Slazer sleep well
 
it is? we must be in the same timezone then
 
1:12 AM
astute observation
 
now it's 3:12!
 
another one
 
yeah, we should think about getting some sleep
 
@sehe can you think of any reason for #pragma pack and __attribute__((packed)) to behave differently?
 
yeah. implementation details :)
Lame, I know.
 
1:13 AM
:p
 
I might have expected them to behave the same, but I don't use them, really
 
oh well, not my problem :)
night
 
has the behaviour of 'delete this' changed over time in C++?
 
Ell
hi telkitty
I just watched andrei's allocator talk
it's good
 
I agere
aw. he edited
 
1:24 AM
hey ell
 
aaaa it’s fukken cold
 
Already?
 
yeah dunno what happened
 
7 degrees says gargle
 
Ell
@chmod711telkitty hey
7 degrees indeed
 
1:30 AM
@GregorMcGregor And >10 last week, makes sense.
 
Here's it's getting cold too, I can now walk to work in the morning without sweating liters
@LucDanton W... Winter is... Winter is coming!
 
Ell
but hey, a high of 12 today!
 
I just gave a group of processes the affinity to run on cores 7 to 10 and for some reason the kernel schedules them on 7,9,10 and never 8
 
Ell
8 isn't a rel number
I need to sleep
night forks!
 
@Ell night ell
 
1:37 AM
@Ell Night
 
I'm getting closer, works with: 3 + /* x/* yz*/ */ 4, but not with: 3 + /* x/* yz /**//**//* /*.*/ /* .. */ */*/ */ 4
auto const inner_comment_def = *((char_ - "/*") - "*/") >> *(comment > *(char_ - "*/"));
auto const comment_def = "/*" > inner_comment > "*/";
 
2:04 AM
awwwwwwwwwwwwwwwwwwwwwwwwww yiiiiiiisssssssssssssssssssssssssss
 
2:14 AM
@ElimGarak Procedural planets :3
ok, i really have to go to bed now T_T
 
oh look yet another procedurally generated space game
 
why? but I am sure the machine you are using have a lot of procedurally written modules
there is probably one running right now
 
@chmod711telkitty No.
 
1
Q: Adjective for someone who doesn't react when someone insults them?

JanetWhat's a good adjective to describe someone who doesn't react when someone does something immature or insults them?

^^ "doesn't give a fuck"? Or someone who gives zero fucks?
 
2:38 AM
fuck-giving failure
 
Nilcoital.
Nilcoitoferous?
Sounds right, e.g. coitophobia
dunno how to make the Greek version
 
add a few debt defaults
:overusedjoke:
> A small number of fixed or standardized groups are used by millions of servers; performing precomputation for a single 1024-bit group would allow passive eavesdropping on 18% of popular HTTPS sites, and a second group would allow decryption of traffic to 66% of IPsec VPNs and 26% of SSH servers. A close reading of published NSA leaks shows that the agency’s attacks on VPNs are consistent with having achieved such a break.
good job everyone
Time to switch to 64 MiB keys with elliptic curves
 
2:56 AM
if you use a hyperbolic curve your keys will leave the solar system and be out of reach of the NSA
 
No Sun Attached
 
~(^_^)~
 
> Ton post cultive la culture du viol, seigneur caca !! Je suis déclenché !
 
XDDDD c'est où
 
3:04 AM
welp
> Sinon : c'est en Bretagne.
 
contribuons à ce sous reddit
 
Why is FF being poopy.
 
can’t stop
 
selfies are cancer
 
sois fier
 
3:19 AM
Des fois je me dis que je devrais arrêter d'être dev de façon pro, devenir garçon dans un restaurant ou autre, et coder à côté.
:dépression:
@Nooble because it's free so it must be bad!
 
sois bière
 
sois Pierre
Looks like someone here was on rampage:
std::vector<std::vector<std::vector<std::map<uint16, std::map<int32, ...
 
fix<std::vector>
 
Mais j'y pense, l'arrêt Jacques Le Viol c'est à Quimper !
 
ah en fait le Viol c’est la routine pour toi
 
3:24 AM
matin et soir, parfois le weekend
 
j’ai un poteau qui joue de la viole de gambe
 
Un poteau EDF ?
 
je crois pas, et pas SDF non plus
 
> Are you literally fucking retarded?
> If trolling was an olympic sport, you are a quadruplegic attempting to win the gold medal in the pole vault.
 
/r/bestoflegaladvice curates the better (and not as trollish) threads :v there’s not a lot though
 
oh look a 2891 lines long file
if that doesn't scream "quit right now" then I don't know what does
 
You can run a script to remove a handful of \ns and thus keep the line count in check.
 
> #include <cstdint.hpp>
okay
 
3:45 AM
Neither C nor std, but all garbage!
 
Hepatitis C is an std.
So apparently I can't use n***** as a nickname on IRC but WhiteSupremacist is fine
Time for lunch but where
 
What if there’s a Mr. White who wants to showcase his Constitutionalist Supremacist views.
@GregorMcGregor I know a Kurdish place near Gare d'Austerlitz
 
What's their best kur-dish?
 
> Les Fils à Maman Hong Kong
 
@LucDanton That one is very good btw
 
3:54 AM
Fils de ta mère !
 
politesse svp
 
@GregorMcGregor It’s like a fractal, I keep zooming and there are more places that pop up
Lots of Italian & French, no?
What about Nepal Nepalese?
 
Well Google Maps isn't very up-to-date, I usually use this website instead, which features a lot more local restaurants than gargle
 
Couscous @ Le Souk
 
@LucDanton could try
 
4:00 AM
@GregorMcGregor ages to load on this piece of shit browser
 
here too so I think it must be the website
 
> Bee Two French Baguette & Coffee
???
 
I'll go for Taiwanese :w
brb
And Luc every day that passes the less I believe you're in the TZ you claim to be
 
> Korean / Mexican / Takeaway
this is so fun
 
What nationality is that 3rd one
 
4:03 AM
that place where they invented takewondo I think
 
+1 pun point
 
4:35 AM
headache won't go away, I need a break
 
4:48 AM
Ended up having a burger
17 euros
(Not even kidding)
 
5:25 AM
That's a lot of burger
 
> rmmod -f ioatdma
> WARNING: The command above may hang the system
thanks for the heads up
> InfiniBand (IB) has been something of an anomaly for years now. While it's clearly the fastest storage interface [...]
what
reducing infiniband as a "storage interface" is silly
 
5:43 AM
Depends on what's in the burger, if it's a lobster burger, it's probably tiny.
 
this whole article is shit
 
Bjarne commenting on everything
 
> I just had a fanboy-ish squeal of delight reading that username.
> I am seriously hardcore freaking out right now. Total honor that you're here.
 
morning
 
6:24 AM
> You can use C++ as a "better C" or as "C with Classes", but if you do so you lose something like 30 years of progress.
5
 
Idk, memory management is easy compared to meta-programming
 
@Mikhail That doesn’t make too much sense.
Meta-programming is programming but with a lot of features trimmed down. OTOH if you know how to manage memory you already have a handle on a lot of programming.
 
How about a middle ground, meta-memory-management?
 
std::default_delete? :smirk:
 
Basically writing templates takes me too damn long so I copy and paste code. Yolo
╚═( ͡° ͜ʖ ͡°)═╝
 
6:35 AM
is there a portable alternative to __builtin_expect ._. mebby some hidden boost lib
 
> My very first C++ program, I decided to try out multiple inheritance.
 
fairly sure Boost has one, yeah
 
lol this guy is hardcore
 
> I woke up the next morning in the hospital with tubes in my throat and an intravenous.
 
hope the doctors managed to get the tubes out
 
6:37 AM
Hah, appkit has no notion of user-resizable panels. Well, besides the iOS port of the split views. Shiet. Now I have to port mine into this atrocity.
 
@LucDanton Intrusive pointers?
 
@LucDanton BOOST_LIKELY(X) and BOOST_UNLIKELY(X), thank youu
 
@GregorMcGregor I didn’t write em
@fredoverflow embedded subobjects
 
Wow, vimeo even offers 1080p download...
Does YouTuve have 1080p?
 
@elyse dude... isn't that like, obvious
please don't bother me with trivial stuff ok
 
6:40 AM
@fredoverflow yeah, can also go higher than that
 
Cool. I'm still fine with 720p though :)
 
Only 4.4 million of us?
 
yep
 
629 #if !defined(BOOST_LIKELY)
630 #  define BOOST_LIKELY(x) x
631 #endif
632 #if !defined(BOOST_UNLIKELY)
633 #  define BOOST_UNLIKELY(x) x
634 #endif
very useful
that's efficient branch prediction hinting /cc @Mysticial
 
@ElimGarak So 0.1% of the human population consists of C++ programmers? :)
 
6:43 AM
oh I thought he was speaking about loungers
 
Yeah, rounded, closer to 0.06%. Either we're doing something terribly right... Or terribly wrong. :D
 
I think that's an insane amount of people.
 
I don't even think there are that many programmers in the world
 
Now, how many of those 4.4 million are actually writing C++ (as opposed to C with classes)?
 
maybe 5, tops
 
6:45 AM
Pretty much the Lounge + attendance of CppCon and stuff.
 
like, one person out of 1000 is a C++ programmer? no way
 
3 mins ago, by fredoverflow
@ElimGarak So 0.1% of the human population consists of C++ programmers? :)
 
yeah
 
If someone made me guess, I'd say 100k people.
 
Well, the number of programmers has been exploding like Moore's law, hasn't it?
 
6:47 AM
100k seems more reasonable
how did they even get that number
 
rand()
seeded it with bjarne's bday.
 
@AndyProwl C++ already had 400,000 users by 1991.
@ElimGarak Isn't RAND_MAX 32767 or something? :)
 
@fredoverflow how did they even get that number?
did they count the number of C++ codebases and multiplied it by the average number of employees or something
 
@fredoverflow Biased scaling factor :P
 
@AndyProwl The number was handed down by god in "The Design and Evolution of C++".
 
6:48 AM
Yeah, how did they get it? :D In 1991 of all places in the time continuum.
 
@fredoverflow ok, that makes sense
 
@GregorMcGregor anet just b& VM and Wine users in a likely overzealous move that I expect to be overturned soon
 
@ElimGarak Rounded-down estimates based on sales of C++ compilers.
@AndyProwl We probably still have 100k users of VC6 nowadays ;)
 
Well, that's like counting Navy SEALs by the ones that managed to get into training.
 
apparently the number comes from here
doesn't really explain how they got those numbers though
 
6:51 AM
How are numbars formed?
 
@LucDanton ow
 
"we've analysed a range of sources to estimate the number of worldwide developers"
hm
 
So their numbers are based on something!
 
can we check if the range is empty?
 
What range?
 
6:53 AM
range of sources
 
> C++ is relatively more popular than other languages and technologies in Russia, Czech Republic, Hungary, France, Singapore, Finland, Israel and Germany
 
Personally, I've met 2 great C++ developers in Germany!
 
Both of them in the Lounge ahah
 
lol
 
Lounge doesn't count, I meant meetspace or whatever you call real life in here.
 
6:54 AM
> C++ compilers on Windows: Clang 12%
wot?
 
meatspace
 
Clang doesn't even work on Windows
 
'the alleged physical world'
 
Tabs vs. meetspace
 
@AndyProwl That’s how much it works.
 
6:55 AM
@AndyProwl I thought clang has been working on Win64 for several years now?
 
@LucDanton haha
@fredoverflow AFAIK it can't SEH
 
What is that, exceptions?
 
yeah, windows Structured Exception Handling
oh shit
sorry
 
Well, someday C++ will get Either<Left, Right> and Monads, and exceptions will be deprecated :-D
 
yay
 
6:57 AM
Probably not. Aren't exceptions well-supported in hardware by now?
 
@ElimGarak So the range wasn't empty.
 
10 - million - users
 
Yaaay.
 
I use Stackoverflow, GitHub and Reddit. Does that count as 3 C++ users?
 
6:59 AM
you've got like >100k so you count as at least 100 users
multiply by the number of stars you have on GitHub
elevate to Reddit karma
 

« first day (1825 days earlier)      last day (3124 days later) »