« first day (913 days earlier)      last day (4027 days later) » 

7:02 PM
@DomagojPandža I found this (NSFW - torture device) today.
 
Indeed, my +1 because though the title might be a tad hilarious to the IT-savvy, the OP simply didn't understand the behaviour, and apparently panicked a little on the sheer number of unexpected symptoms. I actually commend this: he noticed the CPU load, console closing etc. Paying attention is the first thing required when learning. — sehe 14 secs ago
 
this guy hates us
 
Which guy?
 
@sehe this guy
He must hate us to use Dev-C++. That's the only rational explanation.
 
@sehe Your comment actually made me revert my downvote.
 
7:04 PM
lol@coming back to 16 responses
 
@MarkB Actually, my shortcut wording was quite careful. Read Pete's comment at the question for the actual details. So, indeed, "names with leading underscores are frequently reserved". Not always. (I didn't say it depends on compiler or library; it only depends on the rest of the identifier :)) — sehe 42 secs ago
@EtiennedeMartel It did that? It's like maaagic :)
 
I didn't downvote or upvote, just closed :S
 
@kbok He's clearly a victim of a 80's curriculum still being taught at some make-shift university
 
probably.
My uni probably still tell people to use Dev-C++ too
 
@EtiennedeMartel Indeed - the trend of downvotes seems to have magically reverted. It stood at -8 when I added my +1. It's now back at -5
 
7:07 PM
@sehe Friendship is magic.
 
@EtiennedeMartel Yay. He got the reference. Aaaaand:
8886969 GET GOT!?
Darn. Markdown Letdown
 
And I just made it -2.
+5/-7 right now.
 
I have no idea you're talking about.
I found the answer. scanf(" %d", &choice); is problem. I declared "choice" in while loop top of the program and I store user input inside "choice" again. This made cumputer crazy. I stored user input in different variable now it works withoutt hassles — user1939432 2 mins ago
cumputer.
 
only Tony uses one of those
 
Obviously not an English speaker.
 
7:11 PM
@EtiennedeMartel He has one of the rare early models that run Win7
 
holy shit this tattoo is awesome
 
@Rapptz Obviously a student at the College of Vatican City
 
 
let's hope that my other two papers fare better in front of the Committee
 
One of your papers got rejected?
 
7:14 PM
both of the ones that went before them, the Committee chose not to pursue for C++14
 
So it was deferred?
 
"they", and yep
I might get one or both of those through yet, but it's not likely.
 
Which papers? I only recall the unicode support one.
 
N3573
basically, it turns out that it's far more complicated than it initially seems
the Unicode one, the Committee basically disagreed with the direction of the string type I introduced
the remaining two are additional allocators and stateful function object binding as function pointer
 
Xeo
You might want to go over those papers with others before the actual presentation, if they and you have time
 
7:19 PM
I don't really
the rest of tonight is allocators basically
 
Xeo
mhm
Well, it might help them make it, is all I'm saying
 
yeah
 
Buy your way in via drinks.
 
I have a query. It seems simple, I am surprised I have not encountered it before.
Given a percent - say, 23% - how can I calculate whether this probability is successful?
 
what?
 
7:22 PM
what?
 
you mean, "How can I write a function that returns true 23% of the time?"
 
That could work.
 
you need <random>
 
This is Javascript. But there must be simple maths for this, I thought. Problem is, the random is in integers, not decimals.
 
@Pawnguy7 rand()/RAND_MAX is old as fuck
there are no real numbers in computers
 
7:24 PM
Use Math.Random to generate a number 1-100 and if it's 1-23 return true
 
@Pawnguy7 The really trivial/somewhat biased implementation would be if (rand() % 100 < 24) ...
 
Something trivial
 
For example, if it is 50%, you can do 100/50 = 2 possibilities. but with 23, it is 4.35.
Should I just take the inprecision?
 
oh my god no more poles on SO
 
if you were talking about C++ we could be of more help
 
7:25 PM
@JerryCoffin That's a fat 23, isn't it?
 
What Rapptz said makes sense.
 
It isn't uniform or really 23%.
It's just "Working with what you have" :|
 
@LucDanton Probably -- I never could count properly.
 
@Rapptz A keyboard with no '3' key?
 
True, but... I doubt it matters much in this case.
 
7:26 PM
it would have to be rand() % 99 < 23, since 0 is a valid result I think.
 
all randomness must be perfect
hardware random number generators required for everything
 
@Collin newer Intel processors have hardware generators
 
@DeadMG Sounds right -- but still biased. Limiting the result to a range (without introducing bias) is slightly more complex.
 
I know
I have no intention of really going there :P
 
lol
 
7:29 PM
Hardware RNGs work by amplifying shot-noise and putting it through an avalanche-effect exhibiting hash function.
 
Podrick Payne is my new best character in The Game of Thrones. :)
 
@Mysticial and same to you :)
 
@BartekBanachewicz wut?
 
@Mysticial that's in case your statement was an insult (hint: a lot of hard terms)
 
@BartekBanachewicz ah
I'm so much fail that I don't even know when I'm being insulted.
 
7:31 PM
@Mysticial Some do. If you look around, you can find plans for some based on the uncertainty of radioactive decay.
 
I was about to say it didn't work, then I realized I had made the mistake yoda conditions avoid.
 
@JerryCoffin hey, that's a PIC!
 
@JerryCoffin I can imagine the PR they'll have to deal with if it ever goes into production. "Our processors are so awesome, they are radioactive!"
 
@Pawnguy7 if (x=nullptr) { /* FAIL!*/ } :)
 
@Mysticial I lol'd at "Aluminium shield" and then "Large Aluminium shield"
 
7:34 PM
erhm, no.. nothing to see here.
@sehe how is that fail, if x has a operator= that doesn't return anything evaluating to false you will instantly get inside that fail!
 
@Mysticial A processor with a built-in single-bit upset generator...might not be the best idea. Oddly, that happened with some early memory though. They used "high purity" aluminium as a cap over the memory chip. Problem was, the aluminium was coming from WW2 aircraft that used radium paint to glow in the dark...
 
<- trolling
 
@JerryCoffin Oh great... Reminds me of this:
 
Xeo
Man, Vsauce is awesome
 
Hm. My code is still messed up, but it might not be that part.
I am generating an island randomly.
 
7:39 PM
@Mysticial Yup -- another of those links that just keeps coming back... :-)
 
@Mysticial I think I've read (or heard of) this before
 
Does cooking bacon affect the distribution of the output?
 
The sovereign citizen movement is a loose grouping of American litigants, commentators, and financial scheme promoters. Self-described sovereign citizens take the position that they are answerable only to common law and are not subject to any statutes or proceedings at the federal, state or municipal levels, or that they do not recognize U.S. currency and that they are "free of any legal constraints". They especially reject most forms of taxation as illegitimate. Participants in the movement argue this concept in opposition to "federal citizens" who, they say, have unknowingly forfeited the...
TIL that this exists.
 
@Mysticial I don't remember hearing about that, used to live like 30 minutes from there
 
7:42 PM
man
 
@JerryCoffin Years ago, I meant.
 
the presenter started talking about Java and you should have heard the boos here
woulda warmed the cockles of even the ape's heart
 
Xeo
Hmm... to order, or not to order pasta.
 
lol
 
Xeo
@DeadMG lol
 
7:43 PM
@Xeo Pasta is good.
 
Xeo
I mean, it's already close to 10pm now, so really a little late you might think
 
@Xeo It's never late
 
People order pasta?
 
Xeo
@Rapptz No kitchen yet.
 
Ok.
I am trying to randomly generate an island.
 
7:44 PM
Read a paper on procedural terrain generation?
 
My theory was this: start with an ocean. The tile at the center has 100% to be grass, and further out has less and less %. I measure this by sum of the absolute values of differences on x and y axis.
 
@Pawnguy7 Look up on noise.
 
Have you tried logarithms?
 
I cannot seem to calculate the chance correctly, though. Not sure why, but I cannot seem to wrap it up in my mind correctly.
 
7:46 PM
Also, perlin/simplex.
 
I don't think this is in need of noise, it really is quite simple.
I am calculating the probability wrong.
Any ideas?
 
That's not how you calculate a distance...
 
A straight line distance, you mean?
 
Yes.
 
A valid point. Still, the effect should be the same: the further out, the less chance.
 
7:50 PM
@Rapptz Damn, people really need professional help. :D
 
@Pawnguy7 No. in var chance = (100 - (distanceFromCenter/(WORLD_WIDTH + WORLD_HEIGHT)))*100;, the second term can go over 100.
 
I realized that.
I think the *100 is left over.
ah
 
@DomagojPandža No need for a torture device when you have C++!
 
@Rapptz is this correct?
if (100/chance >= Math.random()*100)
 
What does Math.Random() return again?
iirc it was a number between 0 to 1
 
7:53 PM
Apparently, 0-1.
 
[0.,1.[
 
That's going to always return true.
 
nub-scrub
 
Always true? That doesn't appear to be the case.
 
Sorry can't think straight.
 
7:54 PM
In fact, I would say it is hardly the case a tall, as this is the grass generated:
 
Anyway this is not how you usually do terrain generation, you know. Generally you'd start with a noise map and assign to each interval a terrain type (for example).
 
100/23 is about 4.35 so you'd get a value between 0 to .43 to get a 23% chance
Not entirely proper.
 
@DomagojPandža: I've been taking a close look at the DeferredShading demo I found. It seems when he does his first pass the screen is black and it is only on the second "ambient lighting" pass that something appears on the screen. Is that strictly necessary?
(he does a weird thing with a vertex shader that creates a triangle covering the whole screen)
 
Fixed, sort of.
Kind of ugly haha.
 
7:57 PM
@Rapptz Weird typo there. 0 to 0.043.
 
@Borgleader That's called a fullscreen pass, the only way to invoke pixel shaders on the entire screen is to render something that covers it entirely, because the rasterizer checks both coverage and depth and only invokes the pixel shader when it is necessary (ie. something needs to change the state of the backbuffer, otherwise fill with clear color)
 
Oh I see thanks
 
Optional passes LEWG
 
but issues remaining that might cause rejection by LWG
 
7:59 PM
distance factor emphasized 4x
What am I doing wrong? :\
Well... I could fill in sand-enclosed water.
 
Depends, what's the result you want.
 
@Borgleader On the first one: There's a bazillion flavours of deferred rendering, there's the light pre-pass, there's deferred shading (where the shading is done as a deferred stage rather than a second forward pass). The thing in the brackets is what CryTek did with CryEngine 3, it's called Deferred Lighting. They didn't want to abandon their old pipeline.
 
More... er, less... holey.
 
=> noise
 
Rather than randomizing water, randomize sand and trees and then fill the rest with water
 
8:02 PM
@DomagojPandža Are they all pretty much equivalent in terms of flexibility/quality/ease of implementation ?
 
Xeo
@DeadMG Specifics at 10?
Oh wait, it is 10
for me, anyways
 
I wasn't there
so I've only got the cliff notes and I summarized them to boot
 
Xeo
mhm, k
 
@Rapptz I started with all water, and filled in grass in the manner described. Sand and trees are purely visual, one could say, in that sand was once grass that was touching water.
 
@DomagojPandža What is the fastest?
 
8:04 PM
@Borgleader All of them balance out with their pros and cons. I was actually curious enough to enable multiple renderers due to good abstraction. Every one has a winning and losing situation. If it were only feasible to figure out which scene could benefit from which "model", I'd swap them out dynamically. But this is quite painful.
 
@Pawnguy7 is it in js? looks like minecraft 2d :)
 
They look like regular tiles to me
 
hey @DeadMG do you know any apple llvm/clang folk?
 
these are totally 2d cubes
 
8:05 PM
hypercubes*
A cube is by definition 3D
 
@BartekBanachewicz This is javascript and canvas, yes.
 
@Pawnguy7 funky. I stumbled on what notch did on canvas.
 
hm?
 
@StephenLin The LLVM IRC channel is the main place to meet them
 
he procedurally generated textures :3
 
8:06 PM
@DeadMG oh i didn't know that existed...anyway i'm trying to get objective third-party information about them though
 
What did he make using canvas?
 
@Pawnguy7 check my twitter. I'm kinda busy now
 
I do not know your twitter... what do they call it?
 
@DeadMG That doesn't include optional references right?
 
no idea
 
8:07 PM
 
@bananu7, Poland
I am a nerdy C++ programmer and someone who thinks game design matters.
174 tweets, 38 followers, following 65 users
 
Making it so water next to two grass blocks turns to grass makes it look much better.
I could go further and eliminate the one-block isles as well.
 
@Pawnguy7 I really really really really really encourage you to use noise generators. Everything looks so natural when you use them.
 
I think I'm going to research implementing a feasible physically based depth of field bokeh. The current solution while beautiful is faker than Pamela Anderson's tits. And it's been bothering me for months.
 
Those tits tend to be rather traumatizing
 
8:10 PM
@user703016 that seems to be the message going around, but I have never quite understood how noise works, or why it is theoretically better.
 
I saw optional<T&> in the notes before, but most of them just disappeared
 
@Pawnguy7 Time to read up on how it works, then :) It's not overly complex (well, the simplex is a bit complex).
 
@DomagojPandža LOL
 
@user703016 ... make sense...
 
@user703016 I have looked into it quite briefly, but the articles I found explained how to use it, but not why, and Wikipedia lost me.
 
Also, seems like I've got a pdf in which images are not gamma correct when they land on the iPad. Infuriating.
 
@Collin They probably didn't want you to hear about it. :)
Ha, if asking whether P=NP is solved leads to a product recommendation, I'd love to know what that product would be. That said, recommending a product (if not spammy) is not really a problem. Asking for such recommendations is. Often it's a matter of simply rephrasing your question. As pedantic as that may sound, it can dramatically increase the overall quality of questions and answers. I don't know what answers you got in your case though. — Bart 47 mins ago
 
Xeo
@DeadMG Is there even a point to optional<T&>?
 
@Xeo >:(
 
Xeo
Haha
Is it maybe an alias for T*? :D
 
8:24 PM
@Xeo Why not?
 
user142019
@Xeo of course.
 
@Xeo No. Again, I'd rather have deduction of the parameter.
 
user142019
@Xeo more like implemented in terms of.
 
So... Tuesday.
 
user142019
8:26 PM
@DomagojPandža lol
 
@DomagojPandža Dumb & Dumber
 
It would've been a lot more interesting if the police had seen it. And gotten involved on probable cause. Hell, "certain" cause.
 
Ell
yeah xD
 
@DomagojPandža wut
 
user142019
They made the "New repository" button on GitHub green.
 
8:28 PM
@Mysticial Croatia.
 
IMPAHTANT
The end of the world is nigh!
 
user142019
I kidnap people every day.
 
user142019
I feed them to my tigers.
 
user142019
Alive.
 
user142019
8:29 PM
SIIIIIIIIIIIIICK
 
user142019
@sehe Impotent? I am impotent.
 
@Xeo, is that you on LLVM IRC?
 
@Zoidberg Very impotent
@StephenLin my guess: yes
 
user142019
public interface IIRC
 
Xeo
@StephenLin I'm usually just stalking Richard Smith there
 
user142019
8:32 PM
Reddit's favicon has also changed.
 
@Xeo hey what do you think of apple llvm people?
 
Xeo
What of them?
 
how much kool-aid do they drink?
 
Xeo
Does it really matter where they work?
 
I see you have some graph paper. You must be plotting something.
2
 
8:33 PM
@Xeo i might interview with them
 
Xeo
They brought us LLVM, so I'd say they're plenty cool.
2
 
INST ALL THE DRIVERS!
(I know how you love late replies)
 
okay
 
Xeo
Ah screw it, no Pasta today
 
@Xeo Example: apply([]operator[], some_vector, maybe_an_index) returns optional<reference>.
 
8:35 PM
When a clock is hungry it goes back four seconds.
 
@Xeo, you're also on record as saying chat.stackoverflow.com/transcript/message/6891164#6891164 though :)
Dec 27 '12 at 16:43, by Xeo
Apple is irrelevant, since fuck Apple.
 
Xeo
Apple != Apple devs that brough us LLVM
I'm distinguishing there
 
yes yes
 
DiscriminatioN!
 
that's why i'm curious how autonomous they are
i like llvm/clang plenty
i am not an apple guy though
 
Xeo
8:36 PM
@LucDanton I gotcha at the deduction part, sorry for not replying.
 
@DomagojPandža I don't get it?
@EtiennedeMartel omg lol
 
@kbok Four seconds. For seconds. For more. Food.
 
You can hate an organization without hating its employees.
 
@Xeo Not related to deduction (that was for demolishing the 'optional as an alias' joke). It's an example of using an optional reference.
 
Oh "for seconds" I didn't knew about that expression
 
8:39 PM
Initially I didn’t see the point of Haskell’s algebraic data types, but I am starting to see the wisdom of avoiding nonsense combinations.
What, Carmack's doing Haskell?
Damn it, my heroes are falling one by one.
 
ISTR he wanted to make a foray into functional programming some months back? Not sure.
 
user142019
Carmack once mentioned he might wanted to use Haskell in a game.
 
Or perhaps he made another comment related to FP.
 
@EtiennedeMartel What do you have against haskell?
 
user142019
@kbok I like it.
 
8:40 PM
@EtiennedeMartel He fell a long time ago. I mostly just appreciate him for his Armadillo efforts.
 
25 secs ago, by Zoidberg
@kbok I like it.
 
Xeo
@LucDanton Hm... how would that look like in do notation in Haskell? do{ i <- maybe_index; return $ list !! i }?
 
I dislike what Zoid likes.
 
That makes sense
 
The upside is that I don't dislike a lot of things.
(See what I did there?)
 
user142019
8:41 PM
@Xeo you need $ after return.
 
user142019
</pedantry>
 
Xeo
@Zoidberg I knew I forgot something
 
@Xeo In applicative notation (apply? Get it?) it's (!!) <$> l <*> maybeIndex.
In idiomatic application brackets it's (| (!!) l maybeIndex |). Don't think Haskell has that.
 
user142019
That's the same as (l !!) <$> maybeIndex, isn't it?
 
@EtiennedeMartel I'm still here, resisting fiercely against the storm!
 
8:43 PM
@user703016 Oh you.
 
Xeo
@LucDanton What are those operators?
 
You should watch MLP.
 
Xeo
@Zoidberg How often did you change that now?
 
@EtiennedeMartel You should not watch the ongoing debate on gay marriage in my country
 
8:44 PM
@EtiennedeMartel Also I started watching Adventure Time
 
@user703016 Too late for that, I'm afraid.
 
user142019
 
@DomagojPandža Dynamic time of day with procedural HDR skybox: 100 parameters
 
@user703016 Did you know that David O'Reilly made an episode for that?
 
@Xeo <$> is an alias for fmap. <*> is the (small) leap from Functor to Applicative. It's Applicative f => f (a -> b) -> f a -> f b.
 
8:45 PM
@EtiennedeMartel On gay marriage you mean?
 
user142019
Next question: what's an applicative?
 
Ell
A fatal error has been detected by the Java Runtime Environment: :(
 
@user703016 No, Adventure Time.
 
user142019
@Ell and that is why you don't use Java.
 
"A Glitch is a Glitch".
 
8:45 PM
@Borgleader The more, the better. Apparently, artists told me that they like turning knobs and curves.
 
@EtiennedeMartel Oh you confused me for a while.
 
It's weird as hell.
 
Ell
I'm doing android >.<
 
user142019
Oh… then you're powned anyway.
 
@EtiennedeMartel I haven't seen a single non-weird episode so far.
 
Xeo
8:46 PM
> We'll also take a look at monoids, which are sort of like socks.
lol
 
@EtiennedeMartel I'm sure I'd get into it if what-his-face didn't use his Bender voice :s
 
@Xeo Hey! I finally get it!
 
user142019
I can't see the relation between monoids and socks.
 
user142019
Socks have no identity element nor binary operation.
 
@LucDanton Eh?
 
Ell
8:46 PM
an interactive console is incredibly useful
 
user142019
REPLs are awesome.
 
Xeo
@sehe Monoids?
 
user142019
Languages for which no REPLs are available inherently suck.
 
@Xeo Hemorrhoids.
 
Obviously. I mean... SOCKS - eureka!
 
Xeo
8:47 PM
lol
 
@EtiennedeMartel DiMaggio, VA for Bender and I don't quite know the name of the dog from AT since I don't watch it.
 
But just to clarify, is that SOCKS4 or SOCKS5?
 
@LucDanton Jake?
 
socks2
 
Yes.
 
8:48 PM
Pairs of them
 
user142019
Winsock
 
Have I mentionned I don't watch the show?
 
Don't think so.
 
@DomagojPandža Hehe I see. I just cant fathom how they even came up with that many. I'm going through one of the Crytek pdfs (Lighting In Crysis 2) on the evolution of their engine. So many purrty things to implement. I'll never go through all of them T_T
 
Well, except for that "A Glitch is a Glitch" episode because The External World was a fucking masterpiece and I felt like I had to see that.
 
8:49 PM
... that episode name is terrifying
 
@LucDanton The episode is terrifying.
 
Ell
clojure vs groovy for a REPL on the JVM. Anybody used it before?
 
No one
Ever
 
user142019
I use Clojure.
 
user142019
It's nice.
 
user142019
8:50 PM
Unwritable, though. But yeah what would you expect from a Lisp.
 
You know, I always thought AT was one of those shows that look like they're for kids but quite obviously aren't, and nowhere is that more obvious that with that episode.
 
@LucDanton Quasiquoters :v:
 
Ell
Meh. for some reason I thought I'd write a gui to test, but I'll just go cli. I'm so stupid sometimss
 
@CatPlusPlus Oh yeah!
 
I mean, there's a fucking spider/rattlesnake hybrid for fuck's sake.
 
8:51 PM
( idiom | lol wat |) I guess? Who knows.
 
[something| |]
 
Those bananas are weird man.
 
All bananas are weird
 
@Borgleader It's incredibly satisfying, though. Other fields can only dream of the satisfaction response of graphics programming. But it can go negative, as well. And be very unsatisfying when something fails. :D
 
@EtiennedeMartel I'm not quite sure what crosses the minds of the people who write the scenario of AT. "Oh actually we just cat /dev/urandom"
 
Ell
8:54 PM
LogIn() vs Login() vs login() vs Log_In() vs Log_in() vs log_in()?
 
user142019
@Ell "login" is a noun.
 
@user703016 Oh, right, I forgot that randomness isn't part of typical French humor.
 
Ell
I want the verb
 
user142019
Do logIn, log_in or LogIn.
 
8:56 PM
@Ell I've seen "login" more than "log in" so remove all split words variants.
 
Hint it doesn't matter
 
@Ell Login
 
@EtiennedeMartel Oh yeah? You probably haven't seen much Les Nuls or De Funès. AT just doesn't make sense at all.
 
authenticate()
 
user142019
Login would be a property that returns a login.
 
8:56 PM
That's as likely as not having seen a sunset.
 
@user703016 It does make sense. Or at least the little I saw did.
It's internally coherent.
 
user142019
LogIn would log in.
 
It's just that the rules they follow aren't the same as our rules.
 
A rare glimpse of Zoidworld
 
@EtiennedeMartel 'consistent'
 
8:57 PM
@EtiennedeMartel Internally yes. But it's still an incredible mindfuck.
 
@CatPlusPlus lol
 
user142019
login |ˈlɒɡɪn| (also logon)
noun
an act of logging in to a computer, database, or system.
• a password or code used when logging in: you need to remember your user login.
 
user142019
Nothing about verbs.
 
user142019
PHRASAL VERBS
log in (or on) go through the procedures to begin use of a computer, database, or system.
 
@user703016 Sure, because you have to do context switches every time.
 
8:58 PM
 

« first day (913 days earlier)      last day (4027 days later) »