« first day (1421 days earlier)      last day (3542 days later) » 

2:00 PM
then what's the point of the RNE pattern?
 
All crypto generators can generate random numbers but not all generators can be used in crypto.
 
is it used anywhere?
 
No, no one ever used MT.
 
@R.MartinhoFernandes ?
 
10 mins ago, by milleniumbug
http://en.cppreference.com/w/cpp/concept/UniformRandomNumberGenerator does not mention any constructors.
Well it seems the discussion was based on the wrong premise
 
2:01 PM
Concepts can be targeted at the end-user.
 
@FredOverflow Thank you, Captain Obvious!
 
They don't have to be used in the library, if that's what you meant.
 
I'm not only talking about library code
is it used anywhere
 
In that case I agree with Robot
Let the crypto algorithm concept-check your random number generators
 
I didn't realize there was a generator concept, thought the engine was what it is at
 
2:04 PM
FWIW, taking a URNG, even if checked will still do the wrong thing silently.
Because all RNEs are URNGs, even the non-crypto ones.
 
So then you create your own concept
 
What I have been hammering on about all along: you want a completely separate concept that explicitly signals crypto security, no just implicitly by pattern.
 
@R.MartinhoFernandes Nah, I can just make some CSRNG that's a URNG that doesn't have the insecure constructor
 
3 mins ago, by milleniumbug
In that case I agree with Robot
 
that's impossible if something requires a RNE, but I didn't realize everything used URNG and not RNE
 
2:06 PM
@nightcracker But your algorithm taking URNGs will accept LCGs as input.
 
hey robot
 
@R.MartinhoFernandes most algorithms doesn't have to make a distinction between CS and non-CS RNGs, if it's correctly implemented
 
what?
 
My KerboScript is overflowing the stack mid-burn.
 
2:07 PM
lol
 
@nightcracker So you define the concept CryptographicallySecureRandomNumberEngine by copying everything from RandomNumberEngine, removing the unsafe constructor and creating the safe constructor. And then you concept-check it.
 
I wonder why KOS doesn't use one of the normal scriptable languages like Lua, Python or JS.
 
Yeah. And it's awkward as fuck.
I thought about grabbing IronPython and hacking it in.
 
Ell
@milleniumbug Check your concept
 
s/concept/privelege/
 
2:11 PM
All the special features in Kerboscript are doable with functions.
 
yep that's what I thought,
 
So many bookmarks
morning
 
all the unusual language features are just functions or closures done badly.
 
wait_until(lambda), lock(r, lambda), etc.
I guess they thought HOFs would be too much for non-programmer players.
But meh.
 
well lock just looks like y = () => x + 2;
 
2:12 PM
Yeah.
True.
 
Suspending?
 
Not even a function.
@LucDanton Nah, just constantly recomputed.
 
That’s a weird name for it no?
 
Locking? Maybe. As I said, the language is quite awkward.
 
"Not platform independent" depends on what you are attemtping to do. Arguably, not "Java code", for example, is platform independent by definition. — Jongware 9 mins ago
> Arguably, not "Java code", for example, is platform independent by definition.
wat
 
2:16 PM
This is what I'm currently debugging, at the cost of ~1 rocket per bug: gist.github.com/anonymous/2e5a906eeb5a407598cb
 
Any success stories on anybody having sex with a horse?
 
I used to lock remaining_time instead of constantly setting it again, but that was overflowing the stack somehow (seems like it's very well coded)
 
Good morning friends.
 
It is horribly verbose, and ugh, those full stops as statement separators.
 
@R.MartinhoFernandes it shouldn't be too hard to write a simple preprocessor for it?
 
2:20 PM
I really want to use Python instead, but I don't want to start modding this shit because I know how it will end.
 
@R.MartinhoFernandes end?
@R.MartinhoFernandes what end?
@R.MartinhoFernandes there is no such thing, an "end"
 
Monday 6am "oh shit, I have to go to work".
 
C++ people are very exact thinkers (by necessity). The easier a language the more casual programmers who don't value good code. C++ has a high-quality audience. — usr 7 mins ago
<3
that's heart-warming
morning
 
2:24 PM
Good eve there
 
@LightnessRacesinOrbit Dunno. There's also a very-low-quality audience.
 
@LightnessRacesinOrbit so is napalm
 
In my humble opinion... you use C when you want to, for me: C is much more simpler and easier to use than C++ ... C++ might look like a "C With classes", but it's not anymore, now it's a very complex language, with things like Virtual Constructors and Templates. — dysoco Jun 21 '12 at 21:02
@dysoco Since when does C++ have virtual constructors? — FredOverflow 16 secs ago
 
What is missing is the middle class, I guess.
 
I wonder if he still participates on SO :)
 
2:25 PM
@LightnessRacesinOrbit if only it was true
 
ALSO WHY THE FUCK DOES THIS THING START RUNNING MY LAUNCH SEQUENCE AS SOON AS I LOAD A SAVEGAME
When I'm in orbit the last thing I want is to be firing all engines and dropping stages like mad.
 
@LightnessRacesinOrbit Then how come most C++ code I have seen sucked donkey balls?
 
user3010322
Drop the base rockets!
 
@nightcracker Also, as soon as I start modding, I know I won't be actually playing the game for a long time.
 
for what game are you modding?
 
2:31 PM
@Mgetz It is true.
@FredOverflow Because you work with idiots and spend too much time on SO?
@R.MartinhoFernandes Compared to other popular languages, not really
 
@LightnessRacesinOrbit My coworkers don't write C++.
One of them writes C. That's always fun.
 
@FredOverflow Well there you go then
 
And yes, I probably spend too much time on SO. Not as much as I used to, but still.
 
Yeah you haven't been around much lately
Aug 21 at 22:40, by Lightness Races in Orbit
 
I have been busy with my Karel project.
 
2:36 PM
@Xeo Doesn't mean he's necessarily alive today
 
@Borgleader except the imagined "opposite" is merely a side product of projection :)
 
Is that supposed to be a pancake or a pizza?
 
Probably an air pizza.
 
Xeo
@FredOverflow ow
 
@LightnessRacesinOrbit Subject
 
2:45 PM
@msw - you're right that they're guesses, but I've done this long enough to know that a C compiler is not going to generate what I wrote and mine will be much faster. — BitBank 6 hours ago
no evidence of his claims. sigh.
his code may well be fast but he's admitted twice that he's just guessing from the top of his head and expecting us to "just trust him"
 
How can I be talking about implementation when showing signatures ?
 
typical "old programmer" arrogance
@Nelxiost Yeah, I suppose you can't
 
You disturb me.
 
Still, you might have been clear about whether you saw it in implementation code (then, which implementation?) or in a standard reference.
Since some library implementations aren't fully conforming
These details matter
Just add "in the standard" into your question somewhere
 
Oh, right. I thought that linking cppreference.com would be sufficient.
 
2:52 PM
@Nelxiost Oh, yeah, it is
Didn't spot the link
never mind then
 
Edited anyway, but thanks for the advice.
 
Proud of my first "nice question", by the way. :D
 
=)
yeah it's a good one
 
user3010322
You say "STL" containers. Do you mean the signature of these standard library container member functions as mandated by the standard itself, or the code of some specific implementation? — Lightness Races in Orbit 16 hours ago
 
user3010322
2:58 PM
:l
 
user3010322
You and your nitpicking.
 
In this case it was warranted
Well, until it transpired that the answer to my query was already present in the question after all
 
welp
 
Why the standard has changed, and why some implementation has changed contrary to the standard, are two different questions!
 
won a game of PA by firing the Death Star at my opponents and blowing up all their planets
guess it's a good thing that it's hard to get a game of that thing.
 
user3010322
3:19 PM
@melak47 What triangulator did you use to construct surfaces?
 
@ThePhD I was going to implement constrained delaunay triangulation for my thing (if i couldnt find a lib to do it)
 
user3010322
@Borgleader Delauney is very hard, apparently.
 
righty then
time to work on... oohh... normalizing header include paths.
 
3:37 PM
Let's see whether mobile chat experience hath improved
Noy really. I'll keep it in mobile view for now though
 
4:01 PM
Yay
 
> This weekend I was planning to publish the first Linux benchmarks for Intel's incredibly powerful Core i7 5960X Haswell-E processor with X99 motherboard and DDR4 system memory. Unfortunately, all I can tell you now is that it's smoking, quite literally!
 
@sehe link fail
 
5:03 PM
@LightnessRacesinOrbit This + some whimsical but slightly creepy music = the start of a Cyriak youtube video.
 
Nice talk as well.
 
@OmnipotentEntity I liked your latest Starbound post, by the way.
 
Thanks!
 
user3010322
Starbound post?
 
user3010322
Where?
 
5:14 PM
they're up nearly every day on playstarbound.com
I gotta wonder though how you/kyren/whoever ended up with the impression that a specific shared_ptr instance was safe to mutate concurrently :P
 
@PolymorphicPotato I can't watch this stuff
SO TV orly
dat msg from feeds
 
@Puppy it was actually a copy and swap happening at the same time
not mutating the object.
 
oh, a reader and a writer
 
well, not even that, in one case it was a reader, and in the other case it was a pointer assignment change that triggered the dtor
boom
dumb oversight
 
that stuff is pretty painful
 
5:26 PM
yeah, singletons are playing with fire.
making Root a singleton was probably a big mistake, but it's too late to fix right now
 
for Starbound 2, I guess
 
Xeo
if (auto oldIndexByteArray = db.find("_index")) :)
I like doing optional / Maybe that way
doesn't leak a use-once name into the local scope
 
I agree.
 
@Xeo Syntax error: Unexpected : after )
 
for Wide I've been thinking about something like optional<T> : T&
 
Xeo
5:31 PM
You mentioned that before. And I think it's a not-good idea
 
yeah
 
Xeo
alright, off to some grocery shopping
 
I guess what it really boils down to is that for the if, I'd like to check one value, and then set another.
 
@Puppy I don’t understand the notation.
 
@Xeo Yeah, sucks that it doesn't work for compound statements.
if (something && auto somethingElse = *something)
 
5:35 PM
> WordPress is a remote shell with a blog as a side effect
 
@OmnipotentEntity why would you need to do && auto somethingElse = *something
 
@Borgleader pointers to pointers or pointers to values that might be false
like if you have a shared_ptr<optional<t>>
 
@LucDanton I mean that the optional<T> would be treatable as a reference to T. But Xeo's right, it's a bad idea.
 
A billion-dollar bad idea.
 
@OmnipotentEntity those both seem like unlikely use cases
in any case, if(someting && *something) { auto somethingElse = *something; } is clearer.
 
5:40 PM
ugh, I typed out something like 3 times and then hit Esc instead of `
if (flagFoo && auto item = db.find("bar"))
 
@JerryCoffin I tried it in the end and found it quite acceptable, I'll take a bottle with me once I leave my parents' house tomorrow
 
which it's kind of dumb having flags
but for dry runs it can be useful
 
I got a tip from my dad that Gewurztraminer is also used for similar wines so that will probably be my next target
 
and it avoids pointlessly nested ifs.
 
@Borgleader It isn't. You specified *something twice- that's bad.
 
5:43 PM
bah, why do I fail so hard at math you guys?
 
do you really want me to answer that question?
 
yes
 
@Mysticial ping me when you're here
 
@remyabel Error: The program has stopped workingusar 50 mins ago
 
it's clearly because your brainpower is insufficient.
or simply directed down a different path.
oh tits.
I just spent 20 minutes trying to fix a bug in my code when it turns out I simply forgot to pass that parameter in.
 
5:49 PM
@LightnessRacesinOrbit
Something
whatever
Last night was p terrible
 
I'm scratched in many places thanks to friends who were much more drunk than me, had to haul a short-circuited friend across the city, fell into some fucking hole in the process and damaged myself even more, overpaid for the stupidly expensive taxi
 
well is verlet integration supposed to be complicated?
 
And I woke up specially for that
Fuckin
 
LLVM 3.5 was released a couple days ago
 
5:54 PM
Hmm, I wonder if you can do import x; x() if x has __call__ function.
 
@PolymorphicPotato are you talking python? There's a callable method
 
> TypeError: 'module' object is not callable
beh
 
@Mysticial wait, they don't?
I have a samsung HDD on my desktop
 
5:55 PM
lol python2
get with the program
 
it's in python 3.4.1 as well
 
@nightcracker What's up?
@AlexM. Either that, or their HD department got acquired.
 
yeah my HDD is at least 3 years old
maybe 4
 
-1
A: Need help in the scope operator

Ishaan Narulaint Stack::push(int numb){num[arr+=1]=numb;} here you are creating a stack(a firstin-lastout type of array) of int type, on which you are performing a push() operation by pushing number numb after incrementing the array by 1 through this num[arr+=1] . Moreover its a preprocessor line , as its ...

 
it shows signs of wear, before I moved the OS on an SSD, it was regularly corrupting data
 
6:07 PM
This is pretty spectacular.
 
the partition on which I keep my games now seems to be unaffected
so I still use it for storing data and games
 
migrations hurt my brain
 
migraines you mean?
ba dum tschh
 
django migrations
 
6:10 PM
@AlexM. you are terrible
 
:D
 
speaking of brain pain, I tried to play a game on my phone for two minutes in the car and almost an hour after I'm still dizzy and feel like throwing up
mum has been very supportive, "you're healthy as fuck"
 
@Mysticial actually, nvm :( had a question about a potential optimization, but it became irrelevant
 
lol
 
6:13 PM
welp
 
I had a poke around in LLVM/Clang 3.5 and it seems like they haven't finished the Win64 EH stuff
 
do you guys know any code/algorithms where a power function is used with a variable integer exponent?
 
what do you mean by that?
 
well, I'm wondering if there are any use cases for int ipow(int base, int exp) rather than template<int exp> int ipow(int base)
 
6:23 PM
Your string runs out of scope when the main function ends, so the memory is managed by the compiler. By the way: main must return a value. — Machtl 53 secs ago
suckerrr
 
Any use cases... in general?
 
@LightnessRacesinOrbit Can you tell me if you are the girl in your profile picture? It seems to beautiful to be true, but maybe it's true — usar 1 min ago
oh dear
 
sure
if you're interpreting a script/whatever that calls an ipow function.
 
@LightnessRacesinOrbit told you it was a good choice
any money yet?
 
Aug 31 at 1:29, by nightcracker
lightness reveals herself as a big breasted beautiful blonde
 
6:25 PM
time to enjoy waiting an hour for LLVM and Clang to rebuild.
 
@LightnessRacesinOrbit ffs
 
This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. — ruffp 2 mins ago
Oh this shit :(
 
lol the text is too small to read and clicking it gives a 404
 
6:29 PM
@nightcracker meh
 
Xeo
@LightnessRacesinOrbit Can that please be a bananable offense?
 
Permaban them from internet and life
 
29
Q: What does "Seven" and "nine" mean in "Seven of Nine"?

DVKShe is one of a gajillions of Borg drones. What exactly does "Seven of Nine" means as far as drone identifications? Shouldn't she have some GUID instead?

nerrrrds
 
I'm going to "steal" one of those grilling pans or w/e they're called from my parents
so I can half-decently cook things that are not chicken
e.g. pork
or beef
I sure as hell won't pay $40 for a new one
 
@LightnessRacesinOrbit Dude... what the actual fuck did you write here?
 
6:41 PM
@LightnessRacesinOrbit its explained in the series IIRC
 
@Borgleader Read the actual thread
@Arcoth What?
The question has two possible sets of answers: those from people who believe there are reasons to use that construct, who may then give examples; and those from people who believe there are no reasons, who have nothing to say other than "no". I don't understand the problem.
 
@LightnessRacesinOrbit "No" (in other words, simply stating your opinion) is not a sufficient answer. You should give reasons - explain why certain examples of its use can be reduced to other methods, etc.
 
@Arcoth More generally, if your opinion alone is a sufficient answer, then the question is primarily opinion-based and should be closed.
 
@Arcoth Usually, but in this case the OP already listed the reasons. I'm just saying "yeah, you're right". There's nothing further to say, at least in the context of my answer being right (and whether or not that's the case I leave out of this particular discussion :D)
 
@LightnessRacesinOrbit Do you have any idea in how much trouble you are right now?
 
6:45 PM
oh noes, he got downvoted a bit
nobody cares about that
 
@Arcoth Darude - Sandstorm
 
@Arcoth 42 trouble
 
nooooooo not my internet points
 
please not the internet points
 
you can't take my repz from me
 
6:46 PM
take me where I cannot post
 
it's called "Close the browser"
 
@CatPlusPlus Sounds like the lyrics of some song....
 
:thejoke:
 
No, i mean an actual song
No, i don't, actually
 
6:48 PM
You're all badlets
 
@LightnessRacesinOrbit Cool story, bro
 
I revoke your licenses if you even have them still
Absolute disgrace
 
@Cat Tried TWBT, but no TTF support is dealbreaker for me.
 
i don't care
i'm still hot
you'll take my repz from me... NOT
 
twbt?
 
Dwarf Fortress plugin that does multi-level rendering.
 
first result on google
 
aah
 
lazy wanker
Has Tesco signalled the end of the free current account?
 
Fuck y'all you web designers
 
7:04 PM
lol closing VS after building LLVM takes so long
 
7:14 PM
I feel bad for pfultz2.
Every article he makes is always met with 'How useless' comments lol
 
question; how do games "pause" cutscenes when you alt-tab out of them? Is there some kind of way to know if a window isn't in focus?
 
Yeah it's an event.
 
Xeo
@Rapptz isn't he just posting links to all kinds of blogs?
 
@Xeo I meant his articles specifically.
 
Xeo
7:19 PM
ah, ok
 
@corvid Yes.
 
I bet that in 1905 they thought that relativity would be useless
 
@Puppy economically, you mean?
 
I'm in hell. 7 big screens in this bar, all showing Shit-Factor:((
 
waddafuq
seems like I've randomly been totally ignoring a critical ABI element for C++ types.
 
Xeo
7:32 PM
@MartinJames haha
 
oh no
the default implementation was sufficient.
 
7:51 PM
@Xeo Could you explain this a little better?
I'm asking cause I'm working on this again, and there's nothing failing or any trouble.
 
@Rapptz The Function source object is a parameter to modern_callback, so you have to watch its lifetime. If the C API calls you back after modern_callback has returned, you're screwed.
 
What if its just storing it?
 
Xeo
if it ever accesses that callback, you're fucked
because the actual thing it's referring to is dead
well, if it accesses the userdata, to be more precise.
 
Fuck Italians and their air traffic controllers.
 
it doesn't 'access' the user data
it just passes it
 
7:56 PM
or it calls you back and you try to access the user data to call it as the modern callback
which has now been destroyed.
 
Xeo
^
 
i.e. it stores it and then passes it as a parameter
 
Xeo
what puppy said
 
Why did they have to strike today. And what kind of strike is "strike until 16:30" anyway?
 
Xeo
It's a simple lifetime issue
 
7:57 PM
I'm not seeing how this applies if it stores it.
 
@Rapptz It only stores a non-owning pointer to it. That will not keep it alive.
 
I suppose.
 
Xeo
you create your modern callback thingamabob on the stack, pass that off to the C API, which stores it and returns. You leave the scope, the thingamabob dies, and the C API now has a dangling reference stored.
Which it then passes to the callback, where you access it
and thus get UB
 
all he's saying is that you're passing as your "userdata" a pointer to a function-local variable with a fixed lifetime.
if the C API calls you back after that lifetime is over, then you're accessing a dead parameter.
 
Xeo
7:59 PM
That's fine - the callback you pass there outlives any call to it
 

« first day (1421 days earlier)      last day (3542 days later) »