« first day (1918 days earlier)      last day (3256 days later) » 

21:00
And that the article mentioned to not use volatile on builtin types.
Sorry. Just blurting random memories now.
Can you send him here?
personally
I don't mind people acting superior, or at least may tolerate it, if they actually are superior
@Puppy Btw, did I mention his concurrent has a base class which declares all the methods virtual?
Let's throw away inlining.
@Puppy ok, unsigned integers, say unsigned int32_t
My buffer is so fast it doesn't need it anyway.
21:01
that's... completely pointless.
Not sure what his reasoning was.
@StackedCrooked Not all inlining
@SashaMN Is completely irrelevant.
@набиячлэвэлиь Yeah, compilers can be smart these days.
If I remove the virtual methods the build still works.
So they really served no purpose at all.
Wide can devirtualize in a few cases.
I don't really do any "interesting" devirtualization though
Do you have a chart of his Whiskey consumption?
@StackedCrooked Those getters are just such a massive red flag it's not even funny
Notice the documentation. Never fails to mention the "Default Destructor".
There's even a method called "Bottom()".
In one of his other queues.
3
Q: does the incrementation of unsigned int cause undefined behavior when the variable reach the Max

Anis_StackI have a counter in my code and I want my counter back to 0 when it reach the unsigned int max value. I tested with a small code and it works but I do not know if it's an undefined behaviour #include <stdio.h> #include <string.h> main() { unsigned int a = 0; a= ~a; // Max value of unsigned ...

@Puppy Yeah, they don't make sense for lock-free programming.
21:05
@SashaMN You seem to have mistaken me for somebody who was discussing anything about unsigned integers.
@StackedCrooked Any concurrent programming.
making the getters useful in concurrent programming would require a with_lock style interface
if you just permit the getter flat out, that's beyond wrong.
These things are so painfully obvious to me that I am unable to speak my criticism in a normal way. It's like trying to burst out too hard. So I force myself to be silent.
user406009
@Puppy Some concurrency libraries offer them as just an "estimate". IIRC Java does that.
And it's not just concurrency. Just everything.
@Lalaland It's meaningless to offer the estimate, since it's outdated the moment you get the value back.
the caller can't make any decisions based on the value.
user406009
@Puppy It can still be useful for things like logging or GUI stuff.
user406009
21:08
Just to indicate something to a user.
user406009
It doesn't have to be 100% accurate.
it's not "not 100% accurate", it's completely worthless and inaccurate.
you can log the value if you like logging complete bullshit to your logs
user406009
Well, sometimes it's good to know the depth of your consumer/producer queues.
@Lalaland I would accept that if it mentioned that it should only be used for debug or profiling stats.
user406009
It's one way to determine if you need to add more resources to either side.
21:09
yes, but you don't actually know that.
if it returns false, you don't know you don't need to add resources; and if it returns true, you don't know you do need to add resources.
It's important to have an idea of how big the queues in your system get. I don't mind breaking the rules to get a sample ther.e
there's nothing to be sampled in this case.
But that's different from the code mentioned above :D
user406009
I was referring to the get_size methods.
if you returned a literal integer size, you could say that it can't be more than num_hardware_threads outdated.
maybe.
user406009
21:11
Is_full and is_empty are almost useless.
@Lalaland The push and pop methods internally branch on isempty/isfull. In addition to that each method reads the atomic members again.
Push and Pop should only read the write & read counters once at the beginning of the method. Followed by a single write at the end.
user406009
@StackedCrooked Seems like a nice good old, thread.yield could cause some chaos right there.
user406009
And IIRC, thread.yield never breaks valid code.
There have been a few nasty mysterious bugs in his code.
It took him months to fix it.
Now things seem to be working.
If you keep fiddling enough you eventually find a combination that seems to work.
Sigh..
Fuck it. Anime time.
always a good decision
21:20
@Borgleader Exactly. I read that article years ago. Thanks.
@AlexM. Are you watching GATE? I still need to see last ep.
nope it will take a while before I start watching another anime
gotta let chaika sink in
Youtube autoplay in background mode can take me from C++ talks to other stuff and it often takes me a while to notice. Last time it was at this point in a music video
:D
Why do you have autoplay on?
ye I always disable it
Autoplay is the shittiest piece of shit on YT
21:29
@набиячлэвэлиь I disliked it. Until I accidentally turned on when being sleep-deprived.
Now it's this song. Never heard it before.
I always use it to listen to podcasts while falling asleep
Lol, browser history revealed Adele Hello was played. I don't remember hearing it.
Why did it go from Alexandrescu to this?
I found Cat Plus Plus, yet again.
user image
9
is that sailor moon
@StackedCrooked Ad deals
21:34
The background talking in this video made me think I had two youtube browsers open.
@Puppy At least I have adblock so I don't need to see the ads.
by the way, if you're bored, I have a feature request for coliru api
It's very scare how youtube now plays a commercial before each video that can only be skipped after a few seconds.
I didn't even know this until recently.
AdBlock, Stacked, Stacked, AdBlock.
I could use a GET method
I can compile shit and I can share shit, but I can't get that shit back again
21:36
I mean. Not sure what you mean.
user406009
@AlexM. I think it's Ghost Stories
the one with the hot purple hair chick?
well
I used to watch that on TV
many years ago
if I make a share through the API
there's no API for me to get back what was shared
21:37
@Puppy So you want a download method?
the compile output or the source
Ghost Stories (学校の怪談, Gakkō no Kaidan, lit. "School Ghost Stories"), also known as Ghosts at School, is a 20-episode anime series created in 2000 by animation studio Pierrot and Aniplex for Fuji Television, based on a book series by Tōru Tsunemitsu. The series was licensed for the North American market by ADV Films whose English dub replaced the original script with a comedic one. It was also aired in Latin America by Cartoon Network, which had broadcast the entire series unedited on October 1, 2005. The series was also picked up by the anime television network, Animax, who broadcast the series...
what is the difference between using operator new and std::make_unique? coliru.stacked-crooked.com/a/c77b4a1cf02090dc
@StackedCrooked essentially
I remember it, it was nice
user406009
21:38
@AlexM. this
Spying using smartwatch
https://www.youtube.com/watch?v=ZBwSfvnoq5U
There are clever ways to do it. Like printing the binary as base64 to the output. Then copy paste it and reeencode on your machine.
But I suppose you just want a download button..
well what I actually did is "shared" a blob of json
typing toooo slow
then make a "compile" request where the command was "cat the_file.cpp`
user1804599
21:39
%!variables not just one but two sigils!
then made another "compile" request that actually attempted to compile the source.
which is really a waste of space on your hard drive and a waste of requests
Not sure if helpful, but you can also get the archive with this URL syntax:
http://coliru.stacked-crooked.com/Archive/
user406009
Arg, fuck Comcast. If any of you guys ever moves to the states, avoid Comcast at all cost.
user406009
21:43
I mean really, 30% packet loss?
oh, that includes more than just the main.cpp?
... well of course it does, I'm a muppet.
> moves to the states
aaaaaaaaaa
well
@Lalaland lol
21:44
this could work for me.
How are you checking? You're on a wired connection, yes?
user406009
@Nooble Pinging Google. 100 requests. It was actually 28%
@Puppy It's on old feature people have forgotten about :)
@Lalaland Ah.
user406009
I also did a traceroute and pinged the first hub outside my local network.
user406009
21:45
Same results.
@StackedCrooked I've used it all the time- just not for more than the main.cpp
It will not contain any files you generated. Only cmd.sh, output, timestamp and main.cpp
Not sure if you were expecting that.
yeah.
the temporary files are for Clang's benefit, not my need- they only need to exist whilst the program is running
the main.cpp contains their contents anyway
21:46
It only stores your stdout and stderr.
so
how does that interact with your caching/hash jobby?
ISTR that you hash the output of e.g. gcc --version and re-compile shares if it's changed
If you compile then the the contents of main.cpp, cmd.sh and the currently active versions of g++ and clang++ are combined and hashed.
(
    # Wide requires boost lib in /usr/local/lib
    LD_LIBRARY_PATH="/usr/local/lib" /usr/local/bin/Wide/CLI --version

    type g++ && g++ --version
    type clang++ && clang++ --version
    cat main.cpp
    cat cmd.sh
) 2>&1 | shasum | awk '{print $1}' | cut -c -16
so if the g++ version updates, the links still contain the output from the previous version?
Looks like I even had some Wide compatibility in the hash script.
yep
21:50
@Puppy The links will still work. But if you recompile after an update with exactly the same input your code will rerun with the new compiler.
perhaps in that case, the sensible thing to do is make 1 get request for the source, and then make 1 new compile request.
or I'll do something stupid like get the source and the output, and just dump the version in the output so I know whether or not to re-send a compile request.
@Puppy The thing you get back is stdout. And you can actually put a lot in there.
@ThePhD Fixed in C++17 actually.
@Rapptz I'm not seeing the overload for it. ;~;
21:58
Oh C++14 actually
If you are on linux it's trivial to reverse the process
@ThePhD You have to change the comparator to be std::less<>
@Rapptz TIL.
Is there any reason they don't make that the default?
@StackedCrooked I'm not on Linux; I'm in the browser ;p
iunno
I guess it's technically a breaking change
22:00
@Puppy curl coliru.stacked-crooked.com/Archive/50/7073689fc919ac/output | base64 -d | gunzip >main.o && g++ main.o
since some people might rely on the copy constructor doing something
RIP.
But yeah, templated find
Time to do a c_str lookup then.
really I think I'm happy enough with GET requesting the source and then making a plain compile request after that
This decodes the string, unzips it and writes it to disk. Then tries to link it but that fails because there's not main method.
you can disregard my feature request ;p
22:02
People always back of when I start talking about how all they need to do is base64 encode the stdout and copy the string to their machine.
heh
well if I wanted to have that information available when loading a share, I'd have to put it in the URL.
so I'd have a base64 encoded binary in the URL.
which is frankly hilarious but also would probably not make the thing really usable ;p
it's so goddamn painful to search for solutions when your problems are haskell related on google
I either find something totally different or nothing at all
@AlexM. are you searching GHC errors? yeah that’s kinda hit or miss
22:05
right now I'm trying to figure out why I can't run a test suite with cabal
what I need to do next is convert my integration tests to use the JSON interface.
@Puppy You only need the first 16 bytes in order to have a unique id.
@StackedCrooked Yes, but in order to turn that hash into something useful, I'd have to make a request, and the whole point of this exercise is to try and reduce the load that I'm placing your server under ;p
Well, I assume you'd already have downloaded it and started serving it from your server.
nvm I made it work
22:08
@Puppy If the files are not too big it shouldn't be a problem.
my main test module was in a module called Tests and apparently building didn't generate an exe for it
until I removed the module thing
@Puppy And honestly. I don't think Wide is popular enough atm to bring Coliru down.
@StackedCrooked I doubt anybody will want to share 1MLOC programs ;p
@AlexM. was main-is set correctly?
@LucDanton yep I think so
22:09
@StackedCrooked No, I don't think so either, but since I'm using your resources for basically nothing, I feel an obligation to be efficient.
main-is:
      Tests.hs
@Puppy stdout is limited to 256000 bytes.
what do you call a source file that isn't contained within a module explicitly?
I noticed that it expects the main entry point to also be outside of a module
@AlexM. Main.hs
although I do have one thing that might make you jealous
currently, live reporting is only for lexer errors, but I hope to add parser and eventually semantic errors as well.
22:11
@AlexM. to explain the joke, you get module Main(main) where implicitly in such a situation
@Puppy Ooh, it shows a tooltip for the warning.
i.e. source files and modules map 1-to-1
got it
@StackedCrooked Well, you probably can't have it unless you want to Emscripten Clang and run that on the client ;p
@Puppy I think it would look better if it was blue and yellow.
22:13
which is also going to make my life difficult for offering semantic errors.
Ell
Ell
@Puppy is there a reason you can't emscripten the whole wide compiler and run it on the client?
I guess having to emscripten g++ is the issue?
Nah, I'm not gonna do Emscripten just for a tooltip.
Ell
Ell
or clang
I'll have to emscripten Clang and LLVM to do that.
I should check out Emscripten though.
22:15
apparently the Emscripten folks have done it, but not all of it.
I recall there was some cool stuff there.
however
I did change the Wide compiler to be able to emit error information as structured JSON, so you will still be able to get semantic error tooltips when you push "Compile" (in the future)
and in theory even for C++ source files
but that is to be done
@Puppy Be careful to not pollute your core program with auxiliary stuff like tooltips.
I certainly haven't
Ok then :)
22:19
I simply report errors in sufficient detail
although I have technically polluted my core program with Emscripten bindings ;p
Ell
Ell
♫sittin' in the railway station, got a ticket for my destination♫
@Puppy "It sounded like a good idea back then." - You, 20 years from now.
well
I haven't bound anything other than my already public APIs
Famous last words :)
lol
So Netflix is "remaking buffy" ?
22:24
6.7/10 is basically shit :D
Ell
Ell
@ElimGarak it's above average
right?
@ElimGarak i didnt say they were doing a good job of it :P
i just read the description and thought "gee that sounds a lot like buffy"
@ElimGarak 7.6 however..
Alright, brb. Going to shop.
only the 9.5+ are good obviously
@Ell In theory, yeah. :D But it's quite non-linear when it comes to entertainment reviews (gaems, movies, shows etc) :D
Ell
Ell
22:26
@ElimGarak ugh that sucks
why do reviewers do that? :V
Publishers pay for ads, if they show that something is truly shit, no more ads.
Ell
Ell
publishers are bad
People got fired over honest reviews (Gamespot)
my biggest complaint about the gaming journalism industry
They usually only drop the hammer on companies who have never paid for ads or are indies.
22:28
is that an inept person who asks why underrail has no quicktravel function is going to write a review for underrail in a local magazine
I hope the magazine goes bankrupt the 2nd time before this is launched
I don't buy it
but just the cringe it would irradiate from the shelves in the stores
inf
inf
0
A: What's the difference between span's and array_view's?

Bjarne StroustrupWe talked with people in the library working group in the standards committee. They wanted the array_view they are trying to get into the standard to be read only. For the core guidelines, we needed an abstraction that was read and write. To avoid a clash between the (potential) standards and the...

would completely overload my brain
Ell
Ell
@ElimGarak is there an honest gaming review site?
and if not, why not? surely that is a gap in the market?
The problem is the people who are willing to advertise on your site are the subjects of your reviews. :(
Ell
Ell
then don't use ads
make it subscription based
22:31
Those models usually flop, people don't like to pay for content. :D
Ell
Ell
surely there are enough people who want honest stuff?
@ElimGarak then the future of the internet is doomed
because ads will flop too at some point
Many of them say they do, but still frequent IGN/Gamespot
Ell
Ell
Obviously it would have to start out costing
It's like people shitting on games and then voting with their wallets by buying the shit
Ell
Ell
or preordering
there is no reason to preorder in this day and age :V
22:32
There is also the problem of publisher review events and other crap, getting copies ahead of time to get a review when it launches. Review embargos and other bullshit. You make an honest review of a shit game, the publisher blacklists you. You're no longer competitive and boom.
Ell
Ell
I still think there is a market for it
if only I enjoyed video games/could write for shit
@ElimGarak Like how you bought Fallout 4? hue hue hue hue hue hue hue hue
Ell
Ell
^yeah this mayn
@Borgleader I think it is shit, but I enjoyed it regardless. :D
Ell
Ell
How was fallout 4 so successful?
I guess bcos of 3
and 2
and 1
22:35
Fallout 3 was successful because OMG THE GUYS BEHIND MORROWIND AJIOSjaopfkafg
@Ell They are flopping right the fuck now.
Fallout 4 was successful because of Fallout New Vegas (Obsidian) and people were thirsty after 7 years of no Fallout.
that's why they're super intrusive and everybody is panicing the fuck out because of adblock.
Ell
Ell
right
so subscription will be the way to go at some point soon
22:36
yep
Ell
Ell
I almost paid for phoronix subscription this year
but I don't use it enough vOv
fact is
I think that the Internet is going to come to a better place soon
since ads will be unsustainable and people will really have to compete on having good content to get subscriptions
like new scientist, whom I subscribed to and then unsubscribed to because they were shit.
Ell
Ell
the problem is trying before buying IMHO
what, that we have it or that we don't have it?
Hard to compete with piracy. I could never pay for all the anime I've seen.
22:45
I dunno
Steam has basically beaten piracy for me
when it comes to things like TV and films, they don't have even remotely as good a user experience for legitimate paying customers
Yeah, I mean bying the dvds.
A subscription should be affordable.
@Puppy Once again, I find myself agreeing with Puppy. Weird feeling.
I could pay money for a competitive experience, but paying money for a massively worse experience is silly
@ElimGarak Do as I say, not as I say with my wallet!
films in particular
if I could pay a price, even one that was more than at the cinema, to own a copy of that film, download and stream it in the highest quality whenever I liked, at the same release date
I probably would.
but these days I don't even pirate films because it's just so terrible
not to mention that they're a fundamentally inflexible and just generally bad medium
Ell
Ell
22:48
@Puppy yeah
@Puppy I pirated games when I was a student. I had no other choice simply because I didn't have any money.
Now everything is different.
@StackedCrooked I called FBI
I did buy Rayman 2, Homeworld and a discount version of Myth II.
Got bored with Homeworld pretty quickly tbh.
same
I bought Homeworld but it was full of stupid shit, like can't cancel hyperspace commands
I expected it to be good because it got really good reviews.
Myth II was cool though.
@Puppy Yeah. Also during battles it was hard to keep track of what was going on.
Anyway. If I'm interested in a game I purchase it.
And then never play it.
I do intended to finish the recent Starcraft Protoss mission though.
But kinda forgot about it.
Ell
Ell
22:55
I paid for games 90% of the time
more than that even
I remember my worst purchase ever
red alert III from woolies
Starcraft's cinematics have become embarrassingly cheesy.
Ell
Ell
for 45 frickin pounds
I heard that LotV's plot and pretty much everything is awful
I've been there :)
^_^ /cc @Borgleader @ElimGarak @TonyTheLion @набиячлэвэлиь
22:57
"I'm of the suffer frost bite for the night" -- @thecoshman
@Puppy It's so cliche and stupid acting. And too much showing off of rendering.
LIke the Zerg one ended with the bad guy dying in an explosion.
Yeah that'll impress me.
yep
Such rendering.
@jaggedSpire So cute :3
It's a shame because Starcraft was an extremely cool game back in the days.

« first day (1918 days earlier)      last day (3256 days later) »