« first day (2141 days earlier)      last day (2793 days later) » 

12:05 AM
Single player is more fun anyways, except when the AI is frustratingly skilled and has mad hax in every fighting game and RTS.
 
lel
 
Good games have many distractions and few people have the patience to find playable builds when the AI punishes any sub-optimal builds. Snowballing easy-mode and a fun world to explore ftw
 
12:25 AM
@Ell lol, the guy spent like 5 seconds talking about the bottom half of the FPU. Clearly they don't want to emphasize that Zen can't do AVX very well.
If some later version of Zen turns all 4 of those those FPU pipes into 256-bit FMA-capable units, I'll be impressed.
 
@Mysticial Since time immemorial, if I recall their FMA's on Bulldozer weren't even fused :-)
 
user406009
The problem with multiplayer is that you usually have to lose 50% of the time.
 
user406009
Which sorta sucks.
 
@Mikhail They are. Bulldozer only had FMA units. So all FPU instructions were the same latency/throughput.
That's the case with Skylake right now.
All (common) FPU instructions are a flat 4 cycles. Doesn't matter what it is.
Because the core only has 2 FMAC units. No adders, no multipliers.
 
@Mysticial Wake me when Zen is out (if it turns out to not suck)
 
12:28 AM
In Bulldozer, it was the same, but at 5 or 6 cycles depending on whether the dependency crosses pipes.
So I'm very surprised that AMD "regressed" to the old separated add/mul design.
Which means they need to have a 104-bit datapath between the separate adds and muls to make it properly fused.
Btw, Knights Landing keeps the FMAC-only design. But at 6 cycles instead of Skylake's 4.
Clearly AMD has recognized that nobody outside of HPC uses FMAs, so separating the add/mul lets then flaunt 4 instructions/cycle for normal FPU instructions.
My hypothesis right now is that Zen might be a pretty good development and gaming machine. But it will suck at anything HPC related.
And when people run my Pi program benchmarks, they're gonna see that the performance sucks on Zen and blame me for favoring Intel. ahahaha
 
user406009
@Mysticial Well, gaming and development is still a huge market.
 
user406009
Gaming in particular.
 
@Lalaland TBH, if the 8-core AMD Zen is really that good, I'll get it and make it my main development machine.
I'd also love to free up my 5960X so I can actually run proper benchmarks on it.
Right now it's running Win7 and all shit installed. Win7 has a very shitty and noisy scheduler. Win8 and Win10 are much better. But you need to strip them down or they're even worse than Win7.
 
12:53 AM
    You read that right! Many schools across the country have added chickens to their curriculum. The birds are a hands-on way for students to learn responsibility, teamwork and animal care.

This month, you can help chickens in classrooms – with just a few clicks.
 
wat
 
receiving email from backyardchickens.com asking members to upload videos of their chickens
I plan to send one explaining why fat chickens don't need high fence
 
@Lalaland The other major problem is snowballing. In many games, each objective stacks an advantage on the team that takes it, so it becomes significantly harder to recover a losing game.
In single player, it isn't an issue because there usually aren't players on the frustrating receiving end
 
@Mysticial kinky
 
@Borgleader By "strip down", I mean remove everything from the OS and install a firewall that blocks everything that isn't FF and steam. lol
Back in my high school days, I cared about incoming connections and didn't give a shit about outgoing ones.
Now it has completely reversed.
 
1:25 AM
@jaggedSpire sorry, won't do it agian :)
 
eh, 's fine
 
user406009
1:43 AM
@Aaron3468 Yep. Slow losing sucks.
 
user406009
I don't know if you heard of a game called Empires.
 
user406009
It's a wonderful game, but it has a huge flaw in really boring losses.
 
user406009
I think a Lounge wide Empires match would be interesting.
 
Which one? Google unfortunately does not help here
 
2:07 AM
We could do CIV 4 :-)
 
CIV V
 
no
Can we kill questions for being obvious homework assignments?
0
A: C++ remove matching words from string

Mikhail#include <iostream> #include <string> #include <stack> int main() { std::string s("Somewhere down the road"); std::string tab[3] = { "The", "the", "THE" }; std::string::size_type prev_pos = 0, pos = 0; std::stack<std::pair<int,int>> erase_pairs; while ((pos = s.find(' ', pos)...

 
I don't think so
 
These Indian kids need to learn to do their own work before they come to our school for graduate studies, or as post-docs
 
lel
Buuut, I don't think blatant homework is a valid close reason
Still a technically ontopic thing
 
2:15 AM
Well its too specific to be of any use to anybody
-1
Q: Change keyboard shorcuts in Turbo c++

PriyaranjanCan anyone suggest any method to change default keyboard binding in MSDOS Turbo c++.

Questions with turboc++ or similar are overwhelmingly negative, is this a reason to auto-flag them?
 
2:31 AM
Why are they overwhelmingly negative?
 
Because its Indian kids trying to cheat on homework
 
Why you stereotype
 
look at the user name
 
lel
Not all the indian people are homework cheaters though lel
Only an overwhelming majority
 
2:51 AM
Rather, Turbo C++ is still the most common compiler in the Indian school system. Turbo C++ implies cheating or non-professionals, being Indian does not.
 
Why is Turbo C++ not professional?
 
Many features missing, more like C++ with classes
also conio.h
 
3:15 AM
@Darkrifts I've heard it was okay
in 1999
 
It's an old compiler from back when C++ was a lot more like C. The current stable release is a decade old!
 
Oh poo, this is lounge not C++
My mistake
 
4:04 AM
c++ needs a not keyword like in python
I feel dirty writing .wait_for(lk,timeout,[&] {return !input_queue.empty();});
Also std::array needs a better syntax for multi-dimensional arrays
 
? It already has a not keyword, it's just not widely used.
Same for or, and, etc
 
4:20 AM
Hmm, I think its in <iso646.h>
Might be an MSVC problem:
Because in C++ these are built into the language, the C++ version of <iso646.h>, as well as <ciso646>, does not define anything. Except it does...
#pragma once
#ifndef _CISO646_
#define _CISO646_
#include <yvals.h>

#include <iso646.h>
#endif /* _CISO64
 
Yes, under msvc you need that include. lol
 
Fucking cisco, somehow they got into the compiler game
 
On other compilers you do not
 
Also Copyright (c) 1992-2012 by P.J. Plauger. ALL RIGHTS RESERVED.
 
4:59 AM
> Shared Inventory Slot - 595 each, 3 for 1606, 5 for 2380 (15% OFF)
Copper-Fed Salvage-o-Matic - 640 gems (20% OFF)
here we go
 
TIL:
In theoretical physics, a kugelblitz (German: "ball lightning") is a concentration of light so intense that it forms an event horizon and becomes self-trapped: according to general relativity, if enough radiation is aimed into a region, the concentration of energy can warp spacetime enough for the region to become a black hole (although this would be a black hole whose original mass-energy had been in the form of radiant energy rather than matter). In simpler terms, a kugelblitz is a black hole formed from energy as opposed to mass. According to Einstein's general theory of relativity, once an...
That's an awesome name.
 
5:22 AM
@Luc très bon fil sur air france comme quoi que les amerloques savent pas écrire (mais on s'en doutait)
 
@AndreasPapadopoulos mouais
 
Quel enthousiasme
(Non mais en vrai je trouve ça incroyable, ça fait tellement Fondation d'Asimov)
 
tu délires là, tu dois être en manque de jeux vidéo trouve toi une prescription
 
Marc est développeur GCC, mais Marc marche sur une banane. On dit que Marc Glisse.
 
en intraveineuse même
 
5:34 AM
Ça fait plaisir d'être apprécié
 
quitte à ramener un truc t’aurais pu choisir mieux quand même, genre ça
 
Oui ça c'était bien aussi
Tu remarqueras que les capitales sont dépourvues d'accents ce que je considère une offense grave
(Et je dis pas ça que pour le jeu de mots)
 
Ven
6:06 AM
Tu as transmis, du coup.
 
Je constate non sans effroi qu'on ne peut rien te cacher
 
Ven
6:27 AM
>MVVM is lipstick on a pig
Yes sir but what a pig!
 
> internal compiler error: Segmentation fault (program cc1plus)
great start
 
Ven
Oh my god, I hate people with their shitty ads supposedly opening a popup on desktop, but that just redirect on mobile. Fuck you dearly.
 
6:56 AM
I don’t think I’ve ever shared this trick for testing concepts and their models on the spot
2
the diagnose function itself is just to help with testing a type, if you have a value available then sometimes I just do [](Incrementable) {}(the_value); on the spot
 
Xeo
that still seems like an awful lot of unnecessary cruft there (in the error output) :/
also, why the .operator()?
 
@Xeo otherwise there are two candidates for the call expression, once for operator() and for a surrogate call through the conv op
 
Xeo
ah, so it would error twice?
 
@Xeo my eyes are trained to jump from error: to candidate: to error:, but then again I have coloured output so it helps
@Xeo yeah
 
Xeo
I see
 
7:02 AM
actually speaking of readability I would like some separation between separate instantiation traces
sometimes my eyes jump to one error: too far
 
Ell
7:24 AM
Do any compilers provide structured error output?
Errors in JSON or some such which could be parsed and formatted in a particular way
 
@Ell oh yes
 
nwp
@Ell kind of, you will probably need to select what is being printed and parse it by hand.
 
Ven
that's only for fix-its though?
 
nwp
seems like it
they seem to expect you to parse the error message as is
 
> Nginx generates DNS txids using ngx_random() which is a macro for random() on Linux/Unix, and rand() on Windows.
wow how can you be so bad
I mean you're not only not using CSPRNG, you're also using rand()
 
Ven
7:41 AM
ugh, obviously there's no easy way to replicate a string in C++.
 
Ven
1
A: Create string with specified number of characters

Zan LynxNot enough information to say really. From what you said, it sounds like its valid to just use your text editor to make a string 256 long with your name repeating. std::string name = "Zan Zan Zan Zan Zan Zan Zan Zan Zan Zan Zan Zan Zan Zan Zan Zan " "Zan Zan Zan Zan Zan Zan Zan Zan Zan ...

that answer tho.
 
Kiss & ride ... I can't be the only one who thinks there is some kind of dirty connotation to that sign
 
#SOReadyToHelp
 
Ven
And the palm of the most complex answer for a for loop is... @xeo.
29
A: Create string with specified number of characters

XeoTaking a look at the constructor reference of basic_string, one can see that there is no easy way of repeating a complete string. For a single character, you could use (2) like this: std::string s(5, 'a'); // s == "aaaaa" For generating a string repetition, you'll need some workaround. It's ea...

 
Xeo
7:45 AM
@Ven Haha, that is so old
 
just use std::basic_string<std::string> super_s(5, "aaa"s)
 
nwp
@Ven I'm trying to use those and stare at them until they don't seem too complex. So far it has not been working.
 
homework question with upvotes
 
Ven
@LucDanton what, no! don't ever.
 
makes sense though
 
Ven
7:47 AM
it makes sense that it's UB yes
 
is there a char_traits for std::string? probably not
 
obviously write your own, duh
 
@Ven kek
 
Ven
There's no need for a CharTraits for std::string...
 
well then you’re good to go
 
Ven
7:49 AM
std::basic_string(std::string::size_type, std::basic_string) is already defined as slicing.
2 mins ago, by Ven
it makes sense that it's UB yes
 
@Ven that would only apply for std::basic_string<std::string> super_s(5, another_super_s);
(Friday got you down?)
 
Ven
well, your snippet segfaults anyway.
 
probably a bug in the compiler
 
Ven
dont blame the cimpopler
 
7:53 AM
another buggy compiler, no doubt
 
nwp
appears to be my problem -.-
 
great, more PoI issues
 
@LucDanton you're on the good track
just have std::vector<std::string> s(5, "aaa"s);
then you could join it... oh, wait, it's C++
3
 
Ven
):
 
8:04 AM
don’t be sad, it’s just c++
 
Ven
my dayjob
 
k the test TU is mostly empty but it already takes 3.5s to compile, this can only bode well
 
Ven
8:23 AM
i have a well-made body that's true
 
et du coup t’es bien vascularisé ?
 
8:41 AM
> Value returned is $20 = 192
is that normal in a bool returning function?
I guess it is
 
nwp
uhm.. no
in my experience that only happens when you forgot to return a value
 
well I still haven’t discounted the code jumping to the wrong location just yet so we’ll see
 
nwp
or the bool was uninitialized
 
Looks like GCC's error messages are still improving.
 
@Telkitty only on school days
 
8:47 AM
ikr
 
@AndreasPapadopoulos That's a first
 
yeah okay the code jumps into nonsense
here we go, a new shiny assertion to save us from future trouble
 
9:06 AM
code with great intuition. I bet it was looking for a cliff, but none was nearby
 
if GDB is to be believed, instead of landing in an equality comparison it ended up in code to destroy a variant. which it did, then carried on (computing the correct result by accident)
Precondition violation in [snip way too long lol]:
	0 <= offset && static_cast<std::size_t>(offset) < sizeof...(ArgLists)
Additional information:
	offset	2
	sizeof...(ArgLists)	2
is that nice or nice
 
Ven
very nice
 
it also comes with a useless backtrace because I forgot how you make the symbols available, just -rdynamic doesn’t cut it—any idea?
 
Xeo
> 0 <= offset
guh
 
well I can’t write offset in [0, sizeof...(ArgLists)) now can I
 
9:18 AM
what's wrong
 
nor the Python thing
 
Xeo
I know. And I know it looks good if you look at the whole condition as min <= x && x < max
But the condition is... too long for that?
the static_cast<std::size_t> part offsets the right side too much for me
 
how would you feel regarding a sizeof_<ArgLists...> that does the right thing :Þ
or should that be sizeof_dot_dot_dot
 
Xeo
lol
 
nwp
9:21 AM
offset == std::clamp(offset, 0, sizeof...(ArgLists))
 
Xeo
how bout in_range(offset, 0, sizeof...(ArgsLists)) :P
 
@nwp lol what
 
@milleniumbug std::clamp
welcome to the future
I promise great things are available
 
no, I mean this obscure use of this function
 
Ven
@milleniumbug add boundaries to the value, and make sure it stayed within the bounds
 
9:22 AM
alternatively: since we know the second comparison is valid regardless of the cast but the compiler doesn’t, that’s a clear sign that we really need refinement or dependent types
3
 
but .then, some are horribly broken
 
Xeo
@nwp passes for offset == sizeof...(ArgsLists) but that is wrong
 
can you make it more obscure?
 
Ven
> that’s a clear sign that we really need refinement or dependent types
Famous last words
 
I'm sorry to everyone who understood the punnyness of those messages
 
9:22 AM
@milleniumbug my go-to in these situations is liberal use of std::exchange
actually
 
Xeo
no
don't
 
I was considering refactoring the sizeof... into something more readable
 
Ven
@Griwes i'm .rejecting those puns
 
so why not constexpr int size [[maybe_unused]] = sizeof...(ArgLists); and then that strikes two birds etc.
 
Xeo
not sure how much more readable that can get, other than to return int
 
9:23 AM
@Ven are you going to accept a variant of them?
 
Xeo
that's fine too
 
sheesh and I was writing the commit message just now, well done us
 
optionally, we could try to find a solution
 
Xeo
@LucDanton Wait, that wasn't what you came here for?
 
@LucDanton type it in the box below so we can spellcheck it
 
9:25 AM
@Xeo I dunno I was shooting the shit
> 0 <= offset && offset < size
now Xeo-approved
 
Xeo
\o/
Still, you surely have a constexpr in_range function or similar?
 
Ven
surely you're using python and write 0 <= offset < size
 
also that was babby's first [[maybe_unused]] use, I forgot I moved to a snapshot that supports it
@Xeo I don’t think so
@milleniumbug the commit will not be milleniumbug-approved
 
Xeo
0
Q: Why implicit cast from strongly typed enum to its underlying type is not allowed?

ivaigultLet's consider the following code: #include <type_traits> enum class foo_bar : unsigned { foo, bar, }; int main() { foo_bar bar = foo_bar::bar; // unsigned a = bar; -- error: cannot convert ‘foo_bar’ to ‘unsigned int’ in initialization unsigned a = static_cast<std::underlyi...

lol
 
9:36 AM
lol
someone's missing the meaning of "strongly typed"
 
strongly typed - typed by applying a large force on the keyboard keys
 
@Ven: It's pretty clear why I'm unable to cast unsigned to foo_bar implicitly (because such a cast potentially loses information), but why foo_bar to unsigned is not allowed? — ivaigult 2 mins ago
For a second I wanted to try to answer.
Then I realized that'd mean I'd be stuck in that thread forever.
 
Ven
Stringly typed and Strongly typed are almost the same, if you're Stringly typed, because "Stringly" and "Strongly" very much look the same.
 
strongly typed on a tough keyboard
 
Xeo
Stringly typed on a 26-dimensional keyboard
 
Ven
9:47 AM
WITH a (aa) AS ( VALUES (NULL) ),
     b (bb) AS ( VALUES (NULL) )
SELECT a.aa IS b.bb
FROM a, b
this doesn't work with either MySQL (removing the CTEs) or PostgreSQL. I am sad :(
 
10:06 AM
@Xeo Geeky
 
10:36 AM
one of my chickens is severely overweight, there might be some health issues involved ...
 
Now that's a very long chicken.
 
Ell
@Ven you must be rightfolds twin
 
Damn.
I suck at graphics stuff.
How do you do tone mapping or whatever it is called when you (I) have shot 3 images with different exposures?
I tried using Luminance HDR tool on Ubuntu but the results are weird. Too dark and too colourful. I just want tiny bit more details on places that would otherwise be under- or overexposed.
 
Darkroom tool only wants to work with RAW images which I do not have.
@набиячлэвэли That is your answer to everything! :D
 
10:46 AM
@wilx convert to RAW
 
@набиячлэвэли Does it make any sense?
 
your face doesn't and you ain't questionin' it
 
@набиячлэвэли lol
 
11:19 AM
@JerryCoffin Is it bad that this pretty much describes me?
 
Ven
@Ell ?
Lol, no man's scam lost 88% of its players these last 2 weeks
 
11:39 AM
Holy
Someone was dedicated
That must be one of the longest videos with non-repetitive music on YT
 
nwp
for some definition of non-repetitive
 
Ell
@Ven your love of SQL & obscure languages
 
Ven
my love of SQL..?
 
Ell
@Ven what actually happened to it?
 
Ven
I was just saying I hate how something doesn't work, and it means I love SQL? ;o)
 
Ell
11:53 AM
@Ven not love, just public use of I suppose haha
 
@Ell It's absolute shit
 
Ven
SQL is nice for certain tasks. Knowing how to exploit its strength is very useful.
I agree with some things rightfold says, some I don't, but my passion for polyglotism and obscure languages goes beyond me talking to rightfold :)
 
Ell
@Ven Of course - I wasn't implying that it was because of him
 
Ven
I gather :)
 
Ell
merely that you appear from the outside to have similar interests in the domain of programming
 
Ell
@Ven UB, right?
so no requirement to burn in a fire
 
Ven
I think so, yeah. but it never crashes.
 
Ell
well
I think the answer is because it's undefined behaviour
and that's all
 
does anybody know if human ashes are good fertilizers?
when i die, i want to return what earth gave me, at least what is still with me
 
12:06 PM
i don't know if it's a better option to be buried or cremated
 
Ell
@Griwes man I was about to post this
2fast4me
 
...okay it doesn't explode on clang where it's non-zero
but then it's just straight-up UB. :P
Watch out for velociraptors. They're pretty good at tracking you.
 
Ell
looks like Trump is having influence somewhere :P
 
Ven
RIP coliru.
 
That's how UB ends.
:D
 
Ven
12:10 PM
So in the end, I just polluted to stack to force a crash. \o/
 
It's possible that originally the compiler recognized the UB and just removed the call to free.
 
Ven
only with optimization enabled.
(I went to godbolt)
 
Yes, that's what I meant.
 
I've had bad days but not I shot a girl in the head and she ended up winning the Nobel peace prize kinda bad day
Hah. I predicted the build time of our code base in a VM. My estimate came out 49ms high.
 
Ven
12:28 PM
@sehe didn't get it
(did I miss some nobel peace prize event recently?)
 
Well. He didn't get it either. Not right, anyways
@Ven Not at all. You just live under a rock :)
Malala Yousafzai S.St (Malālah Yūsafzay: Urdu: ملالہ یوسفزئی‎; Pashto: ملاله یوسفزۍ‎ [məˈlaːlə jusəf ˈzəj]; born 12 July 1997) is a Pakistani activist for female education and the youngest-ever Nobel Prize laureate. She is known mainly for human rights advocacy for education and for women in her native Swat Valley in the Khyber Pakhtunkhwa province of northwest Pakistan, where the local Taliban had at times banned girls from attending school. Yousafzai's advocacy has since grown into an international movement. Her family runs a chain of schools in the region. In early 2009, when she was 11–12,...
 
Ven
2014, huh...
 
Ven
12:54 PM
@rightfold > String offset access now supports negative references, which will be
counted from the end of the string.
(PHP)
@rightfold void return type... Checked at compile-time!
 
Ven
A is a type. use A{} or A() if you want an instance...
   list(
        "name" => $this->name,
        "colour" => $this->colour,
        "age" => $this->age,
        "cuteness" => $this->cuteness
    ) = $attributes;
 
@Ven that is some fucked up shit, thanks
 
Ven
PHP is becoming really nice.
8
 
i don't believe that's what i want though
i gotta do something else
 
Ven
1:03 PM
don't inherit std::string..
 
@Ven that was just an example, but yeah
before it made sense, now that i've changed some stuff in my program, it makes no sense
better to have a std::string member and that's it
 
Ven
much much much much much much much much better.
Keep the gun in your pocket, don't merge with it.
 
@Ven zactly, not cool to be a weapon
 
user1804599
@Ven well, not for indirect calls
 
@Ven Bait granted
 
user1804599
1:11 PM
PHP is now officially typed!
 
Googles "Officially typed languages"
 
user1804599
still, no HKT
 
nwp
@Xeo I wonder what kind of people thing these kinds of things are a good idea
 
Sales people. And they're right
 
user1804599
1:17 PM
@Ven although
 
user1804599
PHP is now no longer the best untyped language :(
 
Ven
@sehe You're in a good mood. :P
 
Always. Have to hide it though
 
The 95% confidence interval suggests Rexthor's dog could also be a cat, or possibly a teapot.
4
 
nwp
1:33 PM
my code doesn't compile because of C4351 and treating warnings as errors
WARNING!!!! WE FIXED OUR BUG!!!! THIS IS VERY UNEXPECTED!!!!!!111
 
user image
10
 
@nwp ...good, it's in my disable_bullshit_warnings.h header
 
@Columbo I believe that would mean you have a serious personality defect. It's called "being human".
@wilx That's HDR (High dynamic range) photography. Warning: doing it well is excruciatingly difficult. Lots of people try, and I'm not sure the average rate of decent (not great, just decent enough it doesn't make you want to claw out your eyes) results is probably fewer than one per year.
 
@nwp kek
 
1:49 PM
@JerryCoffin Hehe.
@JerryCoffin Well, I have given up. I cannot make it work.
 
nwp
I think I have a fetish for obscure syntax. float const (&get_factors() const)[256];. I really should use a typedef, but that would ruin its beauty.
I can put the const before the float, that totally makes it better
 
@nwp so it returns a 256 array of constant pointers to floats and modifies nothing within the object it's in?
 

« first day (2141 days earlier)      last day (2793 days later) »