« first day (1073 days earlier)      last day (3875 days later) » 

9:00 AM
why would I open Lundi project to check it :F
 
using makes a lot more sense than typedef tbh
 
@Xeo WOOORKS
 
using x as y flows better than typedef y as x
 
Xeo
@BartekBanachewicz whee
 
9:01 AM
@Xeo You can't define a class type in a using alias declaration. (I think.)
 
Xeo
Oh wait, we knew that before already
 
Xeo
@Potatoswatter using X = struct{ /* ... */};is just fine
 
Okey so RC is really starting to become proper C++11 IDE
by the time C++14 comes out, we might have more or less fully conformant VS
 
Xeo
9:02 AM
@MarkGarcia You can even do using X = struct X{ /* ... */ };
 
@Xeo Oh. Same name typedef.
 
Xeo
@Potatoswatter using works as if it was typedef, and you can do typedef struct { ... } whee; :)
 
@Xeo Ugh. Horrible.
TBH I don't see what's so great about it… it's just trivially rearranged a small part of the confusing grammar of typedef. Instead of a declarator list, now you have a single abstract-declarator.
 
@kbok was break-tests branch introduced just for that one negative case?
 
Hm, my GDD is now 3 pages long.
didn't even write that much
 
user1804599
9:06 AM
@Xeo I like how D uses this instead of the class' name for constructors. I miss that in C++ because I can't have unnamed classes with ctors. :<
 
this(...) and ~this()? lol
 
… but types may not be defined in an alias template declaration.
 
@Potatoswatter Source?
 
In C++ this at class scope may only occur in a local class, and refers to the enclosing local scope. You can't evaluate it; only decltype(this) and sizeof(this) are valid.
 
I was doing using yes = struct { char lol[2]; }; for a while.
 
user1804599
9:09 AM
Why?
 
@Rapptz GCC experiment just now. I'd be very surprised if it were allowed, since such a type would be a non-template class with template parameters.
 
@not-rightfold um, type traits.
 
Xeo
@Rapptz alias template, not alias
 
I do something else now but I did it before.
@Xeo Oh.
 
user1804599
I want C with templates.
 
9:10 AM
I should probably go to sleep.
 
user1804599
Or C++ without classes.
 
Work in ~3 hours 30 minutes.
 
@BartekBanachewicz in Polish. I don't even. :_)
 
Hmm.. need to push something.
 
@sehe I won it at a programming contest, didn't buy it myself :F
 
9:12 AM
@Rapptz nice
Early riser? I guess not.
 
I sleep in on the weekends.
 
@BartekBanachewicz Wokay!
 
I think my issue is I get all the cool ideas when I'm supposed to be sleeping at night.
 
Write them down. You'll know if they were really cool if you still think so next morning
 
user1804599
If I have a regex /<\$([a-zA-Z0-9][a-zA-Z0-9_]*)\$>/g, how do I loop over all matches in Perl?
 
9:15 AM
mhm, that's a good advice
 
I started doing that with my daytime ideas while at work in a notebook, and those are awful.
 
@not-rightfold Step 1. don't use perl.
 
user1804599
foreach ($_ =~ /…/)? :v
 
wow many ppl here
hello to all :)
 
user1804599
@BartekBanachewicz Well, avoiding Perl makes it quite difficult to do this in Perl.
 
9:16 AM
im from c# ahaha
 
@Elegiac it shows.
 
It doesn't.
Hello.
 
user1804599
@Elegiac At least it ain't Java.
 
lol @not-rightfold
 
@Rapptz he is happy. If he was coming from C, he'd be grim.
or "Can you help me with a problem?"
see, C# peeps have no problems.
 
9:17 AM
I never realised how small pdfs were.
 
@not-rightfold Ha, this is a perfect question for SO.
 
user1804599
I want Greek food right now.
 
yep
 
I mean perfect. You should get a reply very quickly.
 
@not-rightfold Hm.. [a-zA-Z0-9] is the same as alnum isn't it?
 
user1804599
9:19 AM
@Rapptz Mayhaps. :v
 
@Xeo Is that a thing? Do you mean hexagonal?
I don't think you can fill the plane with regular octagons.
 
I don't know if Perl even has alnum.
 
@Rapptz Not locale dependent.
 
Xeo
@R.MartinhoFernandes hm... fuck, right.
 
When we played with an hex grid, we handcrafted our own.
 
Xeo
9:21 AM
Octagons would be nice though, since they'd cover all 8 directions you may need when attacking or moving :/
 
@not-rightfold granted
 
@R.MartinhoFernandes you can't.
Regular triangles, hexagons and squares.
for 8-direction movement though, you can "cut" a tiny bit from each square corner
to visually represent the possibility
heh I sometimes think that working at Intel gives me unfair advantage in
 
9:38 AM
@Xeo Just use an irregular partitioning with octagons getting smaller further from the origin. Or a highly curved playing field.
 
@Xeo So... it would be just like a square grid?
 
@R.MartinhoFernandes shhh!
 
Xeo
@R.MartinhoFernandes eh, how so?
 
@Xeo diagonal movements
 
Xeo
if you want to move diagonally 3m, and you only move in squares, you actually get further than moving straight
@BartekBanachewicz wat
yes
 
9:42 AM
hope you're not offended
 
Why would he?
 
dunno, because he's native German?
now that I think about it it's much less funny
 
@Xeo Use an hex grid.
 
but then you can't move diagonally :P
 
Erm, what?
 
9:47 AM
it's about the funny assumption that we should divide directions in 8
 
Just disconnect yourself from the idea that there are 8 directions. There are more.
 
or less.
any number is valid. (within the quantum order of magnitude)
Proof: A direction can be represented as its normal vector, and you can't create a vector with a greater resolution than Planck's length
 
What.
Of course you can.
A vector is not a distance.
 
a triple of values :v
 
Still not a distance.
 
9:50 AM
hmmm
fuck.
that's...
@R.MartinhoFernandes let's say we have a star. It emits photons. A photon has a size. The surface area with infinite density grows with r^2. That blows my mind.
> Well, the closest O and B supergiants are something like 1,000 light years away. So, the photon flux at Earth from one of them is (1E50 photons/sec)/(4*pi*(1000 ly)2) = 9E6 photons/s/cm2.
 
evidence solar charger works in front of a camp fire @ night
 
@BartekBanachewicz Does it have a size?
> A man who fucks bicycles is on the loose in Sweden.
 
well, the next post questions it
> You don't need to invoke an infinite number of photons to account for a star emitting light in all directions. Sure, the numbers of photons involved are huge (as other posters have mentioned), but even a single photon can be emitted in all directions at once, although it will necessarily only be detected in one particular direction. This doesn't make sense in terms of classical particles, but it's par for the course with quantum particles.
@R.MartinhoFernandes The more I am reading the less I can know say for sure :<
> The classic experiment that demonstrates this counter-intuitive quantum phenomenon is the double slit experiment. In that experiment, we're only concerned about two families of paths that photons can take, but the basic principle applies more generally to light paths going in all directions.
 
It only has a size if you look for it. Waves have wavelengths, but that's something different.
 
it's so fucked up.
 
9:58 AM
> In 2007, a 35-year-old man was arrested and convicted of masturbating onto at least 20 bikes around Stockholm.
2
WTF is wrong with those people.
 
light can be both waves & particles
 
@R.MartinhoFernandes s/those//
 
@CatPlusPlus There's a version with mdo notation that makes generating IR the awesomest.
 
@Telkitty猫咪咪 Not can be, is. The "particle" is just how we describe something that causes an action at a given time and place, and the "wave" is how we describe the fact that the possibility of an interaction propagates through space over time.
 
10:13 AM
@Potatoswatter I thought particle is the probabilistic bit & the wave is the certainty bit?
like you can calculate the intensity by using the the superposition of the waves
 
@Telkitty猫咪咪 Other way around. The square of the real part of the wavefunction is the probability. Once the particle "does something," you can be certain about when and where it happened. Statistics over many particles allow you to observe the wave as an interference pattern.
 
@BartekBanachewicz awesome series !
 
@Potatoswatter The emission of the particles (photons) is probabilistic (e.g.) not certain
But you can predict the intensity of the light using the wave property (i.e. the two light source experiment)
 
@Telkitty猫咪咪 Usually optics deals with photons that have already been emitted. The photoelectric effect experiment is an example of measuring the probability of emission, but of electrons not photons. All quantum interactions of any sort are probabilistic.
 
hm I wonder what would be a best way to deal with polymorphism in that project
 
Xeo
10:20 AM
"iOS 7.0 is now available for iPad." -- Yeah, thanks for the notification *dismiss*
 
@Xeo I wanna update but don't wanna be an early adopter… when will it be safe…
 
@BartekBanachewicz Wait till you get to delayed choice erasers.
 
Had that on the iphone since last Friday
 
@Potatoswatter I've been using it since beta, and the current stable is OK
 
Xeo
(I really like the punchline)
 
10:32 AM
First thanks. But for security reasons, my buffer must be of type unsigned char *. — user1459961 36 secs ago
7
 
@Xeo too bad he doesn't really explain anything
like "that's the way it is and it's a mystery"
nothing about the observation forcing deterministic choice to appear
just like with electron spin.
 
@Potatoswatter Did you just imply quantum interactions are UB?
 
@Telkitty猫咪咪 That's real life… anything can happen. Any of us could just vaporize for no good reason; there's a well-defined probability of that.
Woot, I just got this monster to build again! Last bug: linker was complaining about a constexpr value. Fixed it with unary +.
 
@sehe he isn't particularly good at security
@Potatoswatter #C++
 
@Potatoswatter waiting for it to crash at run time ... any time now ...
 
10:37 AM
@Potatoswatter FWIW, 0 would be a well-defined probability as well.
 
@Telkitty猫咪咪 Yep, you must be psychic. I'll fix it tomorrow.
 
Nope, I took a bet, but the chance of that happening (crash) is quite big
like 80+% or something
 
Oh, crashing. Not spontaneous combustion. :D
 
If you need to extend the array, not changing the address of the first element and not loosing the data that existed, it seems to me that you severely need a length variable. May I suggest std::vector::reserve()? — sehe 11 secs ago
 
fuck my exam results will be known at the evening prolly
 
10:39 AM
A good psychic is very good with probabilities
 
@BartekBanachewicz Burn down the university. Do it, you know you want to.
 
@Telkitty猫咪咪 No, that's a bad psychic. Good ones can know for sure.
 
If you know things for sure, you are an oracle
 
@Telkitty猫咪咪 No, that's someone that knows the future specifically.
 
What is the difference between knowing the future specifically and knowing it for sure?
 
10:44 AM
@Telkitty猫咪咪 There are other things you can know for sure besides the future.
 
Are you calling 'good psychics' crooks?
 
user1804599
Yum.
 
user1804599
Grapefruit juice.
 
Where is crooked these days?
 
user1804599
@sehe inb4 “garbage collector keeps sensitive data in memory longer than needed”
 
user1804599
10:47 AM
@GamesBrainiac Ghent.
 
user1804599
Ghentoo!
 
Oh dammit, the crash is because GCC doesn't sequence constructor arguments passed as an initializer list. How to work around this…
 
Xeo
got a variadic list?
 
(And don't say Clang, it doesn't even parse my program.)
 
user1804599
@billz He obviously means job security, silly. — not-rightfold 10 secs ago
 
10:49 AM
@Xeo If you mean initializer_list, the arguments are all different types.
 
Xeo
@Potatoswatter No, I mean Args&&... kinda deal
 
:F
@user1459961 You're a Java developer, you write C code, you call it C++ and then you lecture as on security. Seems legit. — Bartek Banachewicz 30 secs ago
 
@Xeo That's what I have… I need to evaluate expressions generated by the pack in sequence.
 
derp typo didn't fix in chat.
 
Xeo
0
A: C++ : create custom function dispatcher from variadic template

XeoI have done something similar for my stream_function class. The basic idea is that you pass a type to a function template, which does The Right Thing™, and expand that call: callback(magic<Args>(/* sth */)...); However, if your functions aren't pure and modify some state, and as such have the ...

Might be of interest to you
You basically aggregate the results by manually evaluating from head to tail.
 
10:51 AM
@not-rightfold :D
 
Xeo
Although in your case, since you have a pack of values where you need to apply a function, you'll likely want to use a simple uint_<N> counter
(Oh yeah, and you'll need to wrap them in a tuple, with std::forward_as_tuple(std::forward<Args>(args)...))
 
@Xeo Thanks… I hope I don't need to add another level of looping…
 
Xeo
sec
 
what of it?
inb4 they just have good business sense!
 
The C++ gold badge has been awarded 192 times, and Python 142. Hmmmm...
 
10:58 AM
meh. badges. look who has a boost badge... Q.E.D.
 
I want to get to 2000 votes before I get the c++11 gold badge (not gonna happen).
 
C++ badge is much harder to get imo.
 
@GamesBrainiac There are lots of crappy recurring questions you can farm.
 
Then it's true what they say about those ... scripting languages! It's for lazy people :/
 
@R.MartinhoFernandes ahhh. I see.
@sehe Nope, just use the best tools that are available to you. I mostly work on a server, so Python is just fine. For desktop dev, I'd probably use C# (not hard to pick up at all)
 
11:01 AM
Kewl, solved it by loosening some architectural slack so the offending function is called by a member-initializer-list. Got another crash XvP
 
lol taking the bait are you?
booom! not lazy enough
 
user1804599
I'm going to write a FUSE program.
 
What for
 
OK, time to quit, take a shower and be less stanky. Stay cool all!
 
Oh it was you
 
11:02 AM
lol wat
> framework.lua:49: incorrect string argument to function 'gl.Ortho'
@sehe strangely relevant ^
 
@sehe lol
 
stringly relevant
 
IUP does typechecking on it's own, then. Or LuaGL, rather
 
Xeo
Kinda fugly :/ (also needs some more perfect-forwarding sprinkled all over it)
 
I wish Lua had Haskell's type system :(
but then again, I might just write in Haskell instead.
 
user1804599
11:05 AM
@sehe Having an rx-only directory that is an aggregate of multiple other directories. Kinda like libraries in Windows.
 
@not-rightfold So that you can blow yourself up? :P
 
now jokes aside, I am not passing a string to that function
oh FFS height not heigth
 
@not-rightfold meh. symlinks will do. fuse would require at least the lowlevel driver implementation to potentially feature memorymapping.
 
god dammit.
 
11:08 AM
Oh the joys of danymic tipyng
7
 
Xeo
... oops. I might just have killed Coliru.
 
@Xeo Thanks.
 
@Xeo unlikely. sometimes the queue is just full and you wait for other jobs to complete before yours advances
 
@sehe I want my local newbzords to extend the thing I am writing, so I can't use Haskell
 
user1804599
11:09 AM
@sehe I don't know if symlinks to files in other volumes work with Samba.
 
Xeo
@sehe Try connecting to coliru
 
user1804599
Also lemme have fun. :c
 
These load averages make zero sense.
8.4 5.5 2.5 -> Machine is a quad-core.
 
cough. so: sambda over fuse (particularly your own fuse impl) is advised?
that's... interesting logic
 
Xeo
11:10 AM
As I said.
 
Load averages never make sense to me.
 
@Xeo No!
 
It's only "bigger = worse".
 
@CatPlusPlus I thought it was 1 = 1 CPU.
 
gl.Begin('QUADS') why am I doing this to myself :/
 
Xeo
11:11 AM
@StackedCrooked Can you give Coliru a defibrillation? :D
 
user1804599
@sehe There is no advise.
 
hm it's down
 
fadvise, madvise
 
coliru.stacked-fuckedup.com
 
11:12 AM
not that C intly-typed API is better or something
 
Even considering HT, 8.4 is almost half a processor more than existing.
 
Xeo
@BartekBanachewicz Atleast you can't typo
 
@LightnessRacesinOrbit also down
 
Restarted the webserver.
 
@Xeo good luck on GL_TEXTURE vs GL_TEXTURE_2D (hint: they are completely different enums used in completely different places)
 
11:12 AM
@BartekBanachewicz it's more efficieeeeeeent
 
@R.MartinhoFernandes It also shows overload, i.e. processes that wait.
 
Mixins ftw :P
 
@CatPlusPlus Weird. How much do those contribute?
 
Xeo
@BartekBanachewicz ow
 
11:15 AM
hm it works.
does anyone have any resource on adaptive-number-of-polys circle drawing?
 
Xeo
Hm... variadic packs that are not in terminal position are not deducible, right?
oh, fuck
 
hm, so assuming I have a circle of radius R in pixels, I need no more than 2*Pi*R segments
 
@R.MartinhoFernandes Apparently on a quad-core 4.0 is 100%, everything over that is overload.
So 8.4 is 4.4 processes that wait.
Something like that.
Bigger = worse. vOv
 
@CatPlusPlus Doesn't it account for HT?
 
Look at cpuinfo.
It probably does.
Then it's 0.4 waiting or something.
So not that bad I guess?
 
11:21 AM
Ah, wait, this box doesn't HT. Ooops.
Time to change -j8 in make.conf to -j4.
 
@R.MartinhoFernandes -j1 use spare time to drink coffee and watch cats
 
Use -j and watch your box die.
 
@StackedCrooked electronic murderer
 
@BartekBanachewicz you mean to enact starwars in the hallway
 
11:26 AM
@CatPlusPlus I use that one a lot.
 
@StackedCrooked workses nicely for me. anyways, ccontrol makes it all rather moot
 
Graphics 101 with Bajtek: Circles.
 
I tried make -j a few years back on my old quad core at work. It killed the machine.
 
user1804599
@BartekBanachewicz That's not a circle.
 
@not-rightfold that's an approximation that's good enough
 
11:28 AM
That's not a pipe, either
 
user1804599
:P
 
Looks like a peep hole
 
wait, it's a disk
okay.
 
@StackedCrooked This baby was holding up rather well, even with the stupid overload due to not reading the specs.
 
It looks like a portion of my LCD monitor.
 
11:29 AM
At first I thought it was a full moon in the sky
ITT trying to imagine robor with a baby
 
The scheduler should be able to handle -j8 even if you only have 4 cores.
But it will be a little slower.
 
I've heard that with HT it should be 2*Cores + 1
 
sehe & his friends
wonder whether sehe is going to garbage collecting these
 
@StackedCrooked Hanasaku Iroha is not bad. You might like it
 
Github question
I want to close a prototype and start working on a new release from scratch, should I make a new repo or a new branch?
 
11:36 AM
@BartekBanachewicz The +1 is useful when you have some significant I/O involved. While a process blocks on I/O, another can take its place.
Since I'm building on tmpfs, it's not useful.
 
Here's a vastly more legible version of your code (with fixed predicate). coliru.stacked-crooked.com/a/3f90bd7b88593bbf This is what your post could have looked like :/ — sehe 5 secs ago
I never remember what header contains std::pair (it's not <utility> or did I ninja typo?)
 
user1804599
> This chapter will appeal above all to people who are excited by the fact that print ${array[(r)${(l.${#${(O@)array//?/X}[1]}..?.)}]} prints out the longest element of the array $array.
 
user1804599
lol
 
That would be funny if it weren't comedy
 
Xeo
@sehe should be <utility>
 
11:44 AM
okay then I ninjaed myself :/
 
lol god what the fuck
the guys managed to fix my old Zoom and they won't charge me shit for that /cc @Ell
and my new one is already ordered
lol what do I do now
 
Trying to cancel your new order?
 
user1804599
@BartekBanachewicz Jack off.
5
 
@GamesBrainiac I've seen it. I liked it, but it got a little boring near the end.
 
@StackedCrooked Hmm, I just started watching it. The drawing is good, but it can be punishing at the beginning. Intro song is nice too :P
 
11:57 AM
Either the gods of C++ are rewarding me for ignoring my GF and not taking a shower, or I'm just living a charmed life… I solved that order of evaluation problem by wrapping everything in lazy evaluation by implicit conversion. And now it all works, no crashes, a compiler with introspection into the options defined by its separate submodules.
 
Xeo
ew, implicit conversion
 
explicitly implemented
 
Xeo
now it depends on the order you're accessing the values with, no? :/
 
I want the ability to explicitly declare things implicit.
 
@Xeo Yes, but they're accessed in the correct order by a mem-initializer-list. (Freeing GCC from the requirement to handle {} correctly.)
 
Xeo
12:00 PM
@StackedCrooked explicit operator bool!
Oh wait, the other way around
@Potatoswatter sounds iffy
 
@not-rightfold oh you
 
@Xeo As an approach to life yes, in this particular situation as a stopgap, it'll hold and that's enough.
 
@Lumen it's undefined behaviour. It doesn't "decide" to do something: it promises not to handle exceptional circumstance prohibited by the specification (i.e. ill-defined comparator predicate) — sehe 7 secs ago
 
The guardian for trolls is a Goddess too
The twin sister to the Goddess of hacking and good coding
 
I can't help but feel there's a use for it somewhere, but I'd have to encounter a very specific situation first.
 
12:16 PM
@chris type erasure to ad-hoc interfaces, maybe. it's all jolly and good that limitations are getting removed, but I fear the herds of C++ whizzes (?) looking for opportunities to use it all
IMO the limitations should be removed, so people won't run into awkward corners unnecessarily.
 
@BartekBanachewicz, hey boss. If I'm constrained by mythological forces to use OpenGL 2.1, what is the correct way to do things? Like, not using the fixed pipeline and shit?
 
12:28 PM
@sehe Interesting.
 
Xeo
@chris return []{...};
 
user1804599
My teeth hurt.
 
Especially when you bite someone with them
 
user1804599
Well, my gums hurt.
 
user1804599
12:36 PM
I need better toothpaste and an electrical toothbrush.
 
@not-rightfold mine always do
 
IKR. ehlo != eloh
 
i know
 
12:42 PM
never said i have to make sense
 
but you still do
 
I love when people speaking Garbage gibblish
 
FCOL gibblish?
 
user1804599
@sehe Je moet tandenstokers gebruiken. Die stoken je tanden, zodat ze niet meer ontstoken zijn.
 
12:52 PM
i agree
 
it's the truth. no need to agree
 
user1804599
it's the tooth
 
Say you have two internet connections, both giving you an Ethernet cable. Is there any router that would allow you to have two WAN ports, and a couple of LAN ports?
 

« first day (1073 days earlier)      last day (3875 days later) »