« first day (1623 days earlier)      last day (3549 days later) » 

16:01
This is going to get a lot of personal opinion. I personally find the C way best even in C++ code. — Eugene K 5 mins ago
Loungers Assemble
oh my, Pillars of Eternity is out...
$ dmd -release hello.d
$ upx -9 --overlay=strip hello
                       Ultimate Packer for eXecutables
                          Copyright (C) 1996 - 2013
UPX 3.91        Markus Oberhumer, Laszlo Molnar & John Reiser   Sep 30th 2013

        File size         Ratio      Format      Name
   --------------------   ------   -----------   -----------
    687073 ->    181704   26.45%  linux/ElfAMD   hello
687 kb for Hello World... D is even worse than C++ :-)
dayum I would love me some good ol' BG-like
@ScarletAmaranth 10/10 on Steam; 92% on PCGamer
meh executable sizes
every time I see people complain about code bloat, I automatically file them in the "utter noob" category, unless they have a fairly high hardware constraint like kernel or embedded.
16:08
@LightnessRacesinOrbit yeah I'll buy it tonight; just need to finish some code first - I wouldn't be able to resist the temptation
@Puppy we would need to stop calling 4core smartphones embedded first though
> This mirrors the battle between science and religion throughout our own history, although animancers do a lot worse than tell people the world is round and clone farm animals. They implant animal souls into children, power automated war machines with them, and perform all manner of bizarre, ungodly experiments that, understandably, have given them a bad reputation.
lol
hmm, I dunno
I might be inclined to scoff at code bloat bitching on such devices, but I might not.
depends on the scale, but I would not be inlcined to suggest it's importance
@ScarletAmaranth Yeah, no.
Smartphones are quite constrained.
@Puppy For mobile, I've read that large executable sizes play a factor in how many people will bother downloading an application... even though technically its not really a big deal. Just a psychological thing I guess
@R.MartinhoFernandes in terms of battery life
16:11
the executable size is almost never the dominating factor in the size of the application, though.
See that "too many names" or whatever bug in Android. Or the kill triggers on high memory usage on both iOS and Android (probably WP too).
@ScarletAmaranth No, no, really in terms of storage.
That was a famous one.
@R.MartinhoFernandes There's a difference between deciding that the device is constrained and that executable size is a big contributor. I find it hard to believe that if you have 1GB of RAM, saving 500kb of executable is going to make a huge difference.
user1804599
Alright, let's check out Poco::ThreadPool.
user1804599
And Boost.Coroutine.
16:13
@Puppy Well, number of methods is a kind of measure of executable size.
@Pris That guy is complaining about content, if you read and look at the folders he was removing.
not executable code.
Actually, that's method references, not methods.
> Ive just packaged a new project with no starter content, deleted the basic assets such as lights from the scene, and this still comes up 20 mb for the apk
@R.MartinhoFernandes Sure, but the reason they're not allowed is little to do with executables of that size being overly-large- it's just that their file format doesn't support it.
20mb for a base lib is big enough to be a concern for some people imo
16:15
> Deleting these engine 2 folders remembering to back them up and replacing them - else UE4 will not load the next time!:
Engine/\Content/\Slate/\Fonts
@Puppy Well, it means you still can't go willy-nilly on smartphones.
yep, I agree that Fonts is a big part of the executable size.
@Pris it's a UE4 project, come on...
You don't measure it in kB, but it is still the size that matters.
@R.MartinhoFernandes DEX is for Java only, not the native code that D targets, AFAIK.
16:17
@BartekBanachewicz github.com/excessive/hate
@Puppy I know. Scarlet brought up the smartphones.
@Jefffrey seriously
I just find it silly to call a device with 4gigs of RAM and a 4core CPU @ 1.8GHz an "actual" embedded device
> Installation
One does not simply install HATE. Really, please don't, it doesn't work like that.
meh amateurs
@ScarletAmaranth Most smartphones don't have 4GB of RAM.
16:18
In smartphones with 4GB your app cannot use 1GB.
It gets killed long before.
alright; we're close enough tho
it's "basically" there; soon; ish :P
@ScarletAmaranth Yes, and an app that uses 1GB needs to be designed with lots of care, or it never gets to use that 1GB.
It's not just the memory on chip.
lol mobile
sure, but there's a big gap still between even 20MB of executable and 1GB of RAM.
16:20
and of course I can't install windows 8 Pro N if I have the key for Windows 8 Pro
ugh amazing
@Puppy You get a few megs of RAM max.
If you want more you need to jump through hoops.
@R.MartinhoFernandes some of those hoops are artificial tho
The executable is not loaded entirely into memory also native pools are counted differently
When a smartphone says '2gb of ram', does that include gpu? is it all shared memory
@ScarletAmaranth Artificial, real, call them whatever you want. Pretending it doesn't matter doesn't work.
You need to manage that memory, one way or another. You can't do it like on the desktop where you just assume there's enough and all works fine.
16:24
well, I somewhat agree, but I also think that there's a big difference between really managing the memory and kneejerking over the contribution of one small part of it
which is what most "code bloat"ers seem to be doing
much like the "omg exceptions so slow" folks
well better be safe than write a N! instantiations metaprogramming class.
How is this question not related (or even identical) to stackoverflow.com/q/24954220/85371? — sehe 8 secs ago
@Veritas No, that's exactly the wrong conclusion. Write the class first if it's the best way to program it, and then check the executable size later.
depending on the class, the compiler might not generate any executable code for it.
@FredOverflow I think it has an "--insane" option or something? Is that upx-nrv I rememeber
16:30
@Puppy It will probably blow up the compiler so you don't get to check the executable :P
heh
well in Wide you probably could write a compile-time-infinite-loop that infinite-loops the compiler.
@sehe Can one use tee_device (or similar stuff from Boost) to split input of a stream into two, from which one goes, say, into a logfile?
@Puppy I am mostly concerned about compile time instead of executable size.
Hmm, hashlife would be really easy to implement in Haskell, but I don't wanna deal with graphics afterwards.
@R.MartinhoFernandes you could use Hate
:P
16:44
in Room for haywire and Lightness Races in Orbit, 27 mins ago, by haywire
how can a girl interested in C++ be so beautiful? :D
I think I might have done the decision to split backend implementations too hastily
I never got this sort of attention when I was just a beautiful guy.
inb4 all your hatred
@Veritas Then don't use C++.
@R.MartinhoFernandes Actually you could use Hate as a playground for your shader DSL idea, do your game in it and help me a bit; everyone benefits! :P
@LightnessRacesinOrbit Oh ffs.
16:46
xkcd.com/1501 How is the Dyatlov Pass Incident easier to explain than MH370?) It's the other way around IMHO
@BartekBanachewicz I'll use more or less pass-through shaders.
What am I doing wrong
well I support those OOTB
@Columbo How do you explain MH370?
actually the shaders are my problem right now
16:46
@R.MartinhoFernandes Insane Pilot killed himself and crew
that's the original problem it all started with
I went back
I'm home early!
:D
and the problem is that GL3.3 doesn't have uniform (binding = ...)
so I can't store uniform binding information in the pipeline source source directly
it has to be processed in some other way
mmm perhaps I could make it so it can't just go ShaderAST -> Pipeline, it might need additional IO calls....
@Columbo And no evidence was ever found. Yeah.
@Puppy aggressive much? I love template metaprogramming but this is not a valid reason to increase compile time unnecessarily.
16:48
What happened to starboard? Filled with one-star things.
@R.MartinhoFernandes I assume that's not the one that got shot down in Ukraine.
@Columbo Compare with avalanche and paradoxical undressing.
@Puppy Nah. The wormhole one.
@Puppy It's not.
@Veritas No, it's a perfectly valid point. C++ has the slowest compile time of pretty much any language by a really long time.
@R.MartinhoFernandes Evidence isn't provided in both cases. I thought that the meme is about what incident is easier to give a plausible explanation for.
16:49
@Columbo No, no, there is a lot of evidence about the Dyatlov pass. Bodies were found, ripped out tents, clothes, etc.
@R.MartinhoFernandes Wiki says nothing about paradoxical undressing. The only reference to undressing there is that the two dudes who died last took clothes from the dudes who died before. And that some of them started out in low dress, which may not be surprising if they were hit by an avalanche or something
Is a practice of creating a lot of show-like typeclasses sensible?
or should I just use appropriately named functions
@Puppy Some left the tents in socks or something.
@R.MartinhoFernandes Not really unreasonable if your tent is about to be smacked by an avalanche.
16:52
@Puppy Well, that is an even easier explanation anyway.
@Puppy I should probably read it again, but didn't some bodies have damage consistent with avalanche damage, implying they didn't run out before it hit?
wiki says six of them died of hypothermia and the other three either fell into a ravine or got hit by a Russian military mine, depending on what you want to believe about their injuries.
none of them were actually in the tents when found
@Puppy Yeah, but I remember reading that there were barefoot footprints leaving the tent.
Might be misremembering.
Still, no paradoxical undressing makes it even simpler.
that's still somewhat reasonable if your tent is about to be hit by an avalanche
@Nooble people are bored
@sehe Oh.
Found a sad photo.
17:00
doesn't look sad to me
@Pris OMFG. Good reason not to give teens a driving license.
Kid thought that the journalist was holding weapon, so she surrendered.
@wilx so tempting :)
shit I committed commented out code
There's another jam????
17:01
Kind of
it's a snake-only jam
What are the rulez
Not for Andy. He just got disqualified.
@Nooble And the journalist took a shot.
@wilx s/teens/anyone/?
@R.MartinhoFernandes with his shotgun.
17:02
@Mr.kbok You can do whatever you want, in whichever language you want, use whatever library you want, as long as it's a snake game
The deadline is next sunday
boy I feel like a tremendous amount of shit
Do I know that feeling
and I've got a bunch of cookign and cleaning to do
@AndyProwl Hopefully you don't.
I think I do
else I suggest you seek medical attention.
17:03
yeah me and doctors is already a neverending story
@Nooble There is actually a lot of photography terminology that comes from firearm terminology.
@R.MartinhoFernandes What else is there?
Lena
STOP STARRING RUBBISH THANKS
user1804599
alright
17:06
> Did you know that it has been proven in a study that most people think they're checking their phone for 1 second when it's actually closer to 6-8? That includes you as well. Get off the fucking phone!
user1804599
Time to make the VM multithreaded.
@Nooble "Shot", "barrel", "background", "flare", "duck", "cover", "cap", "exposure" to name but a few
@Nooble ow.
@LightnessRacesinOrbit barrel and duck are photography terms?
@AndyProwl IRTA a nerve-ending story
17:08
@Nooble Your lens has a barrel. And you may take photos of ducks.
quack
@sehe That, too...
@sehe, @R.MartinhoFernandes: Well, I think the driving license age is too low in the USA. Age 18 seems like a better limit.
I don't know what age they use in the US
17:09
Apparently not 18 then
16 I believe
3
Q: Why is the sky of the moon always dark?

DeepakWhy is the sky of the moon always dark compared to the sky of the earth, doesn't it have day and night like earth?

Good question, Deepak.
@Nooble In addition to what Lightness said: "rapid fire", "snapshot", "shoot from the hip".
I almost added "camera", but apparently English calls the firearm bit "chamber" :|
> Clearly, it's time for automatic driving! 
I'm so tempted to reply with "On the contrary; time to remove the requirement to wear seatbelts for teens"
what, let evolution take care of it?
17:12
tempting, yes
Ah found the list I was looking for.
> People load cameras with cartridges or magazines of film; they cock shutters, and they fire off films.
I wouldn't mind that so much if they didn't also remove a bunch of random other people from the gene pool
Though film terms probably count as antiquated.
what is this "film"?
is it like, a new kind of SD card?
@Puppy lol
user1804599
17:15
void start(
    Runnable & target
);
@Puppy It's a maxi-format SD-card. It's 35mm across!
user1804599
Poco::ThreadPool y u no templates.
I like this bit from my answer the other week
> Adding threads doesn't make things faster. It makes things slower. Always.
The trick is that you can do other things at the same time.
also non-const/value? fail.
@MartinJames I don't think that can fit in my SD card slot.
@Puppy You need to buy a magazine.
17:17
what's a "magazine"?
is it some kind of game?
cause I don't see what that has to do with SD card slots
@Puppy A thing to store ammo. In this case, SD cards.
(FWIW, I've seen people taking the weaponry metaphors way too far and jokingly referring to film as "ammo")
@Puppy It's a queue struct for shells.
> But instead of occupying 2^(2n) units of storage, a macro-cell of size 2^n requires just five units.
in Room for haywire and Lightness Races in Orbit, 1 min ago, by sehe
Plot twist: "haywire" is also the name of a library developed by ... you got it. An awesome human being!
https://github.com/kellabyte/Haywire
17:22
Holy shit that's what I call space savings.
> OMG it's in C. And has nerdy graphs. And it rocks too?
@райтфолд (cough) because PoCo (cough)
user1804599
> The Poco::RunnableAdapter class template can be used to specify an arbitrary no-argument void member function as a thread entry point.
user1804599
lol
PoCo is more or less the antithesis of Boost in many respects. A bit like Qt
The fuck's with those stars
user1804599
17:23
Boost has no thread pool library.
And there are people using PoCo who swear that using Boost gives you cancer
@райтфолд Nobody mentioned that. You asked "PoCo [...] y u no templates". I answered/
user1804599
C++ y u no anonymous inner classes.
@MarcoA. "practical experience of several years of brothel visits."
Better get cracking
user1804599
Or even, capturing local classes.
@райтфолд ? lambdas not good enough for you?
user1804599
17:26
@sehe No, I need to subclass Runnable and override run.
Yeah. That's what you get when you write a fucking Java API in C++
user1804599
aaaaaaaaaaaaa and RunnableAdaptor takes by non-const ref.
user1804599
Let's make a file terrible_api_wrappers.hpp.
user1804599
wait, ThreadPool::start also takes by non-const ref
user1804599
how the fuck can you design such a terrible API
17:32
Very easily
user1804599
I find it rather difficult.
> Candidates must be university-educated, preferably in business or the hotel industry and have "practical experience of several years of brothel visits."
lol
This is, quite simply, an absolutely fantastic answer, one of the best examples of this kind of thing I've ever seen, and a privilege to read. Massive kudos to you, Shog. — T.J. Crowder Mar 18 at 19:02
alright chill out get a room
@LightnessRacesinOrbit Jealous?
user1804599
Alright then, Boost.Asio.
user1804599
17:45
ugh
user1804599
boost::asio::io_service::post creates a fucking COPY
user1804599
WHAT THE FUCK HOW CAN YOU EVER DO THREAD POOLS IN C++
@райтфолд Lotsa shared pointers, sigh.
user1804599
auto fuck = std::make_shared<F>(std::move(function));
ioService.post([=] { return (*fuck)(); });
user1804599
17:48
:'(
user1804599
Yay, it works.
Mar 23 at 11:40, by Andy Prowl
Why does Boost.Asio's io_service::post() takes a callable object that needs to be copyable? I don't get it. This way I can't pass a packaged_task
@райтфолд Uh it's the safest thing to do for inter-thread communication
user1804599
@CatPlusPlus Why not a move?
17:51
Probably because it predates moves by years
@райтфолд Yeah :(
Also don't use cee plus plus
user1804599
Alright, threads work now.
user1804599
Now fibers.
I wonder if I'm smart enough to figure out how to do 6dof zero-g controls in UE4
17:58
@LightnessRacesinOrbit How does that differ from a regular bitmask type a la std::launch?
Xeo
Xeo
@LightnessRacesinOrbit It's not shit?
It's the right way
Hm, maybe std::launch is not the best example, but still, it's a bitmask type

« first day (1623 days earlier)      last day (3549 days later) »