« first day (2043 days earlier)      last day (2897 days later) » 

12:02 AM
but it would just be C++ icing on top of a C typedef with an attribute
one little annoyance is the ability to say, "give me an integer vector with the same number of components and components the same bit-width as a given vector of floats/doubles." For now I just assume int == float and long == double, but that won't be reliable
and vice versa
comparisons will give you a vector of all-0 or all-1 (binary) integers, when you compare two vector floats
great because you can use branchless merge of an if/else paths very easily
"branchlessness" is probably going to become more important with crazy core counts and more gpu-like massively parallel architectures
short circuit evaluation defeats branchless code, so you are telling it to branch everywhere if any SCE happens
you can only hope the compiler will see that it is okay and will use cmov or something
anyway... I wish there were something portable in C++ for vectors
 
user4196492
1:01 AM
Is Visual Studio a bad IDE if I plan to export as a standalone exe for my c++ program?
 
wat
what are non-standalone exes?
 
user4196492
I am used to using Java. With java you can compile and put all of your classes into a jar file and share it for anyone to run. How can I do this in c++? What are the best ide's to do this with? (Can't seen to export it with Visual Studio)
 
user4196492
What are you confused about?
 
I'm confused about what just compiling your executable isnt doing
that this "exporting" thing would do
 
user4196492
okay, let me try and understand this. So you start with a .cpp file and an .h file.

I want to compile both of those into an exe. How?
 
1:09 AM
@pebble225 It should be done for you. All .cpp and .h files will be compiled into one binary.
 
@pebble225 Ctrl+Shift+B
and wait a while
 
user4196492
okay
 
user4196492
I am still trying to get the hang of this language
 
user4196492
jesus, tons of errors.....
 
user4196492
So what I was asking was if there was a better thing to use rather than Visual Studio if I wanted to code games in C++ and stuff it into and .exe file and put it on the web.
 
1:13 AM
Dont bother learning C++ and just use Unity? they even have a build type for web that can run in abrowser
 
user4196492
@Borgleader Unity give me migraines. Guess I have no choice :/
 
Sorry bub, but unity is way easier to make games with than whatever custom thing you plan to do in C++
 
user4196492
I have been developing games with Java and I wanted to try new things. I though C++ would be the way to go.
 
user406009
@pebble225 If you want to distribute your games easily via the web, you might wnat to consider writing them in JS.
 
user406009
Then things are really easy.
 
user406009
1:17 AM
Anyone can just go there and play them.
 
user406009
No security/virus risks.
 
user406009
No cross platform issues.
 
user406009
Everything is very easy.
 
user406009
The canvas api is quite good, etc, etc.
 
user4196492
I have used canvas a lot with JS. I am just told that it is really bad for games design.
 
user406009
1:20 AM
@pebble225 Well, it depends on the scope and type of game.
 
user406009
For 2d stuff, it shouldn't really matter at all.
 
user406009
(Well, except if you want to get into fancier stuff like particle effects, but those are a relatively smaller scope and there is always webgl)
 
user406009
And if you are trying to work on a 3d game, getting something like Unity to work is much easier than all the alternatives.
 
user4196492
Alright, thanks again for the help
 
1:34 AM
The presence of a wedge-tailed eagle often causes panic among smaller birds, and as a result, aggressive species such as magpies, butcherbirds, masked lapwings, and noisy miners aggressively mob eagles (see video).
Hopefully I will get to see one of those babes next week
 
 
1 hour later…
2:36 AM
imagining noisy miners aggressively mobbing an eagle is an amusing thought.
 
about noisy miner (a video taken by me)
 
awh
I was having fun imagining burly men in overalls and pickaxes wearing headlamps
 
that's a noisy miner in my backyard a few years back
the other bird was a brush turkey of course :p
 
I mean that seems like quite a fight, really
that's a pretty big bird
wait never mind
 
noisy miners are aggressive
 
2:45 AM
pretty tailfeathers
 
3:06 AM
@blelbach Just send me an e-mail whenever you like, unless you have another preferred medium of communication.
 
4:06 AM
 
4:21 AM
So I got this email today:
> could you please send me and attachment with the current number of pi up to the 1.2 trillionth
I should respond with a screenshot showing the error that gmail shows when your attachment is too big.
 
say yes, say YES!!
and asking a box of baby chickens in return
 
@Mysticial Why do people keep asking you for it? What do they do with it?
 
@Mysticial What would be the size of such a number, really?
 
@EtiennedeMartel 1.2 terabytes uncompressed
 
4:24 AM
if only we had a convenient website to download more Pi from
 
@Nican I have no fucking clue. I get those questions so often that it's at the top of my fucking FAQ: numberworld.org/y-cruncher/#FAQ
 
how do you even know those 1.2 trillion numbers are correct?
 
Search requests are also very common. I'm not Google, I don't have the ability to index 13 TB of data for quick searches.
 
Well they are stored sequentially
 
4:27 AM
@Mikhail Yeah, at 100 MB/s it'll still take days to search all of it.
So fuck that shit. I do not do search requests.
 
But its sequential, so can't you jump to the location?
 
@Mikhail That's for digits at offset requests.
Search requests require that I scan all the digits in search for a specific digit string.
Supposedly Google has a something internally that'll search the first 500 billion digits.
 
search means 'hey at what index does my phone number appear inside Pi'
 
People want "I wonder at what index my name is located"
 
I'd love to be able to just point everyone at Google's thing if they make it public.
They have the resources to do it. I don't.
 
4:31 AM
Make a business "I will send you a 1TB drive with the digits for $600"
 
lol, totally not worth my time to set that up.
I also don't want to deal with the complications of hard drives getting damaged in shipping.
 
Price = base cost + my need for money * my will to put up with customers
Then they can show to their friends "Hey! I got a hard drive with a trillion digits of pi", and the friends reply "cool story bro"
 
"I spent $600 on it!", and then "You're an idiot."
I'm actually not entirely sure if the place I'm working right now will be happy about me running a side-business.
 
Physical drives are too hard, just setup some crap on EC2 and charge them per download
bonus points if they loose internet during the transfer, and need to restart
 
I had enough complications with day trading that was done in my name before the company would let me start work.
 
4:37 AM
Obviously if you could get away with day trading while working at a trading company, I'm pretty sure you can get away with this.
Also if I were a day trader my handle would be Trader Joe.
 
@Mikhail I didn't. I had long talk with my parents to tell them to stop using my account to day trade.
 
yes, listen to a bunch of C++ programmers for business ideas :p
I used my dad's name for day trading when I was working for an option trading company
they were afraid of inside trading (rules by asic I think), I was a lowly software developer, I had no access to any sensitive data
 
@Mikhail (Unfortunately) most trades are anonymous nowadays. So you don't know who you're trading with, let alone have the ability to pick who you trade with. So you can't boycott specific entities.
 
But combine my postgrad knowledge in finance, my sound knowledge in economics (even taught by a financial minister at one stage) and my superior intelligence, of course I made money on the stock market (unlike 80% other daddy & mummy day traders)
</shameless self promotion>
 
Sometimes it's obvious when a hedge fund places an order, because not too many people can blow out multiple price levels with a $100+ USD million order. But you usually don't see those coming. And they tend to be active trades, rather than passive.
 
4:43 AM
actually I have to admit that my finance knowledge has regressed since I have not traded shares for ages ...
 
@Telkitty Do we look like we give a fuck?
 
you replied so ...
 
We need to correlate black swan events with cache misses.
 
black swan events?
 
The black swan theory or theory of black swan events is a metaphor that describes an event that comes as a surprise, has a major effect, and is often inappropriately rationalized after the fact with the benefit of hindsight.
 
4:54 AM
@Telkitty it's like what you could have done is more important than what you actually did
to paranoid people
 
Tech companies generally don't give a fuck. It's mostly finance that's a lot more controlled. Unless you steal something like the source code for the iPhone there isn't much you can do with it other than sell it on the black market or something.
If you steal a hedge fund's trading algorithms, you can use them to make money in competition with the firm.
If you had access to a firm's algorithms, you know what it will do, and you can front-run those trades.
That'll land you in jail easily.
 
Okay, so how do you become the person at the top of the algorithmic trading ladder?
 
The CEO and founder. lol
 
How much math?
 
@Mikhail you don't
 
5:00 AM
@Mikhail No idea. Not my area.
I'm only familiar with the most basic trading strategies. But even those require a lot of math if you want to make a profit from them.
Math that I don't have.
 
I had an disappointing interview at GS where they basically said: "you will calculate some parameters that we came up with quantify risk". I was hoping for something more intellectually stimulating.
 
@Mikhail I recommend reading "The Physics of Wall Street" - Pretty good book showing the history of the math behind trading.
 
What if I like know that?
 
@Mikhail I'll give you a semi-made up real life example:
 
I know B====this_much======D math
 
5:03 AM
plenty of books on maths involved in derivatives
 
Let's say you are 90% confident that AMD's Zen processor is complete shit. So you want to take a very large short position on AMD. The problem is that if you are wrong, you're fucked because the price will go up and blow out your position. So you can hedge that by buying a call option to cover your ass in case that happens. But call options have a price to them. And you need to do the math to decide if still worth it given 90% probability that AMD will plummet.
 
Yeah, so in my research I do stuff similar to that to make my images look better
 
@Nican So it's some kind fo funky fresh regression in the latest compiler, or some kind of source encoding issue.
 
So. I'm seriously starting to think about having a dedicated PC in my living room that I'll use for streaming, video capture, media, that kind of shit.
But I'm too lazy to build a PC.
Mehhhh.
I mean, I want one of those newfangled GTX 1080, so I could always reuse my old GPU for that. But that still means I have to get all the other parts.
So much work.
 
Except the "video capture" part-
Steam Box? PlexTV? XBMC/Kodi?
 
5:17 AM
I'll need a capture card.
But it'll be a Windows box.
 
hipsters would use a Raspberry Pi
 
If a Pi can handle OBS, maybe.
 
5:33 AM
@EtiennedeMartel PCs are amazing right now. You can basically buy $200-400 worth of parts and have a video streaming machine. No need for a GTX 1080 even, unless you're doing rendering or 4K encoding
But it really depends on how much you'll be doing at the same time. Embedded CPU graphics are getting pretty impressive.
 
Yeah, I don't even need video cards anymore to run my compute boxes with full resolution with Aero glass and all.
 
I'm kinda pissed off by the way hybrid graphics cards are implemented on my laptop, When using an external port the NVIDIA GPU will copy data to the Intel HD card wired to the HDMI. The results are extreme choppiness.
 
lol
Is it a shitty laptop?
As in those $400 ones you pick up at Best Buy or something.
 
Its actually pretty powerful with a 970M and 64GB of RAM, but yes it was a budget Sager
 
64GB in a laptop? Fuck, you've one upped me.
I only have 48GB.
 
5:47 AM
Did you break a stick?
 
No. It came with 16 GB mounted on the back of the mobo. I put 32 GB in the front. I can't access the slots on the back without ripping out the entire mobo which I'm not willing to do.
Since I also need to unmount all the heatsinks and cooling for both CPU and the 970.
If it were easier to access the back slots, I'd probably have 64GB right now.
 
Yeah, I ripped everything open just to realize there were screws on the other side :-)
 
AHAHAHAHA
Mine doesn't.
Everyone says you need to take the entire thing apart.
48GB is sufficient for now. But I'm not sure if that'll still be the case after a couple more generations of ICC updates.
That things gets more and more bloated with each new version.
 
Maybe Intel is getting into the RAM market?
 
What model is your laptop?
 
I would hope that it doesn't have the studdering problem that you have since it's a gaming laptop. But on the flip side, I can't run Linux on it. I tried and failed miserably. MSI and Linux don't get along.
 
Hmm, you might have more luck the a newer kernel. My problem is that battery life is also abysmal, like 90 minutes when it was new, now its down to like 50 minutes.
 
The moment I boot up, the screen starts flickering. My guess is that the video drivers are fucked up.
And nobody cares to fix it.
Since the target audience for that laptop isn't programmers.
 
Well, you might benefit from a newer kernel? I usually use Gentoo so I don't have many of these problems.
 
That was with Ubuntu 16.04. Does that have a newer kernel?
 
6:05 AM
So, Gentoo gets the newest kernel in ~24 hours.
So, I think Ubuntu 16.04 is 4.4? I think we're up to 4.6 now
 
6:54 AM
Yes, this is actually a thing. The Timberjack Walking Machine. https://t.co/5SGHkftM25
 
7:13 AM
> Mac Pro<sup>®</sup> Rackmount Kit
why /cc @Ell
 
morning
 
Ven
ahoy
 
mornin'
 
so it turns out that those ultrawide screens aren't that expensive
 
Ven
oh, you wanted comonads, Bartek
thought of another one. When using some kind of quickchecking lib (property-based testing), a "value" generator is a monad, but a "function" generator is a comonad
 
7:21 AM
:(
 
Ven
what am I looking at?
 
Information about the recrutation process for the most famous military pilot high school in Poland
@Ven yeah today on my way to work I was thinking about contravariant functors, and the intuition seems to point at wrappers of functions being instances
like functions invert everything
 
Ven
well im just trying to help
i dont know haskell
 
bullshit
besides, it's not really related to hasklel
 
Ven
bullwat?
 
7:24 AM
"We check the package.loaded table to see if a requireF call with that key was already made"
> Check the implementation
> They check a _LOADED global table
Thanks, Lua
 
Ven
Day 32: I manage to trick the Bartek into believing I know Haskell. They think I'm one of them. The chase continues.
 
hmm
Dell U3415W looks nice
the only thing I'm kinda afraid of is how would "regular" games work on it
 
Ven
ITT "fool" is flag-worthy. @rightfold is gonna get SO-banned
 
7:40 AM
@Ven you know category theory. That's half of haskell
The other half is unicorns, zerglings and operators
 
Ven
I seriously don't. But like everything else, I can pretend well enough.
 
That's like Poe
so yeah, my simplistic reasoning on the tram seems to make sense
whenever you have a hole that takes things instead of producing things, you can use contramap and not fmap
And comonads work in exactly the same way more or less
Are all comonads contrafunctors @Ven?
 
Ven
what are their laws
 
contramap id = id
contramap f . contramap g = contramap (g . f)

-- comonads ver A.
extend extract      = id
extract . extend f  = f
extend f . extend g = extend (f . extend g)

-- comonads ver B.
extract . duplicate      = id
fmap extract . duplicate = id
duplicate . duplicate    = fmap duplicate . duplicate
I think the fmap here might be problematic
 
Ven
it's easier to see when you line up the types
very good example here
lining some shit up to see what we can notice https://t.co/24legECYTU
 
7:53 AM
So ive looked into using Qt, but after installing the program it slowed everything down a bit, I decided to stick with win32 api, is there anyone who likes using it & who wants to help?
 
Ven
hahahahhaahhaha
 
@Gerwin no
@Ven this is great
 
Ven
it is :)
 
Ven
nice
 
8:11 AM
this one is better
Homo sum, etc etc
 
Ven
alea jacta ergo sum
 
it's "iacta"
but yeah well lol
 
Ven
it's meaningless, so it doesn't matter
 
user1804599
@Ven lol
 
8:28 AM
Answer by @Xeo from 5 years ago still applies to CLang today. .-.
Can't handle a function with "internal" linkage as a template parameter.
 
user1804599
My job is getting people fired. :(
 
Ven
?
 
user1804599
By automating their jobs.
 
Ven
do you work with google cars?
 
user1804599
> comonads are objects
 
8:30 AM
@Ven it's also not really ok
 
user1804599
all type class instances are objects
 
Ven
@BartekBanachewicz ?
 
read the article linked from the comments
 
Ven
oh cool
 
Ven
8:34 AM
and old :P
 
Xeo
@ThePhD lolz
 
Ven
@Xeo don't laugh, it happened to me as well
 
My fellow eliminated an loop-switch anti-pattern but got a 20% slow down. Any idea?
 
nwp
@johnchen902 the problem is in line 5, you should move it to line 3
 
user1804599
@johnchen902 SSCCE + benchmark
 
8:40 AM
Oh. That's cute. luaL_requiref is implemented wrong by Kepler Project's compatibiltiy wrapper.
Fffffffffffffffffffffffff FUCK.
Why is everyone so fucking BAD at this.
 
heh
Because people are bad at programming? :D
 
Ven
can confirm I'm bad
 
Like. All they had to do was look at the Lua sources and copy the implementation.
 
nwp
@ThePhD because lua wrappers belong to the category of "I need this" and "I don't want to spend time on this" so people never care to do it right and just use the code that noob wrote all those years ago
 
... And all the Lua people had to do was not fucking lie on their documentation.
 
8:44 AM
@ThePhD :D
 
For 2 verisons now they claim they put shit into the package.loaded global table... which ISN'T TRUE.
 
guys, any experiences with 21:9 screens?
 
Ven
none
 
THey put it into the registry's _LOADED[] table, and if the user opens the requires library, they link the _LOADED table to package.loaded. But package.loaded doesn't even exist otherwise, and it's not used in their source code at all since the first time they've added the requireF function!
 
Feb 6 '14 at 4:13, by user3010322
template <typename TTo, typename T>
TTo cowboy_cast ( const T& cow ) {
	union u {
		T hat;
		TTo boy;
	};
	return u(cow).boy;
}
whistles
 
8:52 AM
@BartekBanachewicz more like ub_cast
 
more like unsafeCoerce am I right
 
Ven
:D
 

« first day (2043 days earlier)      last day (2897 days later) »