Search found 5326 matches

by Xanthir
Tue Mar 28, 2017 10:46 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9563
Views: 1345004

Re: Coding: Fleeting Thoughts

Don't know official words, but those are reasonable terms imo.

"call signature" is usually just "arguments" or "passed arguments", but "call signature" works as a contrast with "function signature" for clarity.
by Xanthir
Tue Mar 28, 2017 9:45 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9563
Views: 1345004

Re: Coding: Fleeting Thoughts

Yup. Technically, Python doesn't protect you against a call signature like "build_dict(default=3, a=1, b=2)", but most of the time you'll be okay.
by Xanthir
Tue Mar 28, 2017 8:41 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9563
Views: 1345004

Re: Coding: Fleeting Thoughts

I already explained why I find the "frees up the argument" thing confusing - it means that passing a named arg to a function can do totally different things depending on whether you provided a positional arg or not. ...but shouldn't it? If I'm calling an argument with a positional in addi...
by Xanthir
Tue Mar 28, 2017 7:44 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9563
Views: 1345004

Re: Coding: Fleeting Thoughts

I already explained why I find the "frees up the argument" thing confusing - it means that passing a named arg to a function can do totally different things depending on whether you provided a positional arg or not. In particular, this can be confusing if you begin by passing all the expli...
by Xanthir
Tue Mar 28, 2017 7:26 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9563
Views: 1345004

Re: Coding: Fleeting Thoughts

Grouping things that way, tho, implies that named args *never* assign to explicit arguments, only ever to a kwargs dict. Which is a fine model, nothing wrong with it, but it's definitely not the Python model, where every explicit argument has both a position and a name. I'm trying to convince you th...
by Xanthir
Tue Mar 28, 2017 6:57 pm UTC
Forum: Gaming
Topic: Mass Effect
Replies: 243
Views: 43025

Re: Mass Effect

I have no idea, I haven't played it yet (wife is still finishing up FF, then it's my turn to play a game in the evenings). I was just reacting to mosc having bad opinions; it's gratifying to know they were in fact extremely bad.

(That said, same thing applies to, say, Dragon Age 2.)
by Xanthir
Tue Mar 28, 2017 6:39 pm UTC
Forum: Gaming
Topic: Mass Effect
Replies: 243
Views: 43025

Re: Mass Effect

Isn't having a defined sexuality a significant part of a character's identity? I mean sure, have a bisexual character or two but just don't make EVERYONE bisexual. That's not being diverse, it's being lazy. Actually very few of them are bisexual. The game just switches everyone from gay/straight to...
by Xanthir
Tue Mar 28, 2017 6:13 pm UTC
Forum: Science
Topic: So water is blue. Why?
Replies: 4
Views: 301

Re: So water is blue. Why?

Soupspoon said it, but with a lot of text preceding it, so I'll answer it simply: Water is blue because that's the color of water. Same as (red) apples are red because that's their color. All the same mechanisms that give other physical objects their color work on water too, and the details are such...
by Xanthir
Tue Mar 28, 2017 6:09 pm UTC
Forum: Science
Topic: The Reverse of how colors work: how would it look?
Replies: 4
Views: 302

Re: The Reverse of how colors work: how would it look?

Note that this "absorbs one color and reflects everything else" is the way that *most* objects in the real world operate. Reflecting only one color is relatively rare - that's a lot of energy to absorb, and molecules usually only have a small band of wavelengths they can absorb, so you nee...
by Xanthir
Tue Mar 28, 2017 6:00 pm UTC
Forum: Mathematics
Topic: behavior of best estimator on some constructed mixture distribution
Replies: 2
Views: 220

Re: behavior of best estimator on some constructed mixture distribution

The best estimator stops being the sample mean as soon as you mix in any of the uniform. It stops being the max-thing as soon as you mix in any of the normal. The mixed distribution has some more complex best estimator. However, there are indeed limits *in practice* where you can still use the sampl...
by Xanthir
Tue Mar 28, 2017 5:56 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9563
Views: 1345004

Re: Coding: Fleeting Thoughts

(I wouldn't have responded if I wasn't okay with a conversation. ^_^) Let's look at an alternative signature: def foo(a = 5, **kwargs): print a Now, what behavior do you expect out of "foo(0)", "foo(a=1)", and "foo(0, a=1)"? The first should obviously print 0 - you supp...
by Xanthir
Tue Mar 28, 2017 12:34 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9563
Views: 1345004

Re: Coding: Fleeting Thoughts

I understand the problem you're running into, but I'm not sure I understand what you think the actual behavior should be. If you have def foo(a, b, **kwargs): return a foo(1, 2, a=0) what should that last line return? 1? 0? 0.5? choose one at random? It should return one. Hmm, I'm not sure why your...
by Xanthir
Wed Mar 15, 2017 6:53 pm UTC
Forum: Science
Topic: Eternalism. Does it allow free will?
Replies: 16
Views: 385

Re: Eternalism. Does it allow free will?

Yeah, last time this topic came up, we just circled round the definition of "free will" again. You're stuck with either defining it as "containing randomness" (which does not comport with our standard notions of "free will"), or going epiphenomenal, and asserting that t...
by Xanthir
Mon Mar 06, 2017 9:29 pm UTC
Forum: Mathematics
Topic: vertex cut / graph / combinatorics problem
Replies: 5
Views: 348

Re: vertex cut / graph / combinatorics problem

Ah, you're right. I can't just treat all the cities in a country as equally projecting.
by Xanthir
Mon Mar 06, 2017 9:13 pm UTC
Forum: Mathematics
Topic: vertex cut / graph / combinatorics problem
Replies: 5
Views: 348

Re: vertex cut / graph / combinatorics problem

Just to remove the word-problem aspect: You have a list of sets, each of which contains an arbitrary number of arbitrary integers. Someone wants to select one number from each set, in list order, to form a monotonically decreasing sequence of integers, and you want to stop them by removing the minim...
by Xanthir
Sat Mar 04, 2017 10:36 pm UTC
Forum: Fictional Science
Topic: Pitfalls of a fantasy commodity currency
Replies: 3
Views: 713

Re: Pitfalls of a fantasy commodity currency

In my own fantasy world I just have the god of commerce freely grant a cantrip that can convert between Basic Magical Currencies at a fixed rate. Gold/silver/copper are fixed to a precise 1:100:10k ratio by volume by this divine fiat, and the same cantrip can detect purity (and thus forgery); I assu...
by Xanthir
Thu Mar 02, 2017 6:31 pm UTC
Forum: Gaming
Topic: Dungeons and Dragons (and other tabletop RPGs)
Replies: 2086
Views: 309836

Re: Dungeons and Dragons (and other tabletop RPGs)

Oh shit, I've just been saving all the UAs individually; this is awesome!

Oh, except that URL appears to be broken; there's nothing at the other end. :(
by Xanthir
Wed Mar 01, 2017 10:19 pm UTC
Forum: Coding
Topic: Coding a Data-Driven Roguelike (Again)
Replies: 16
Views: 1478

Re: Coding a Data-Driven Roguelike (Again)

Yeah, the D&D 3e death mechanic is *really* narrow; in original 3e, you were unconscious and bleeding out from -1 to -10, and dead after that. 5e's mechanic is a lot better imo - once you drop to zero, you're unconscious and bleeding out (if the enemy was trying to deal lethal damage). You then ...
by Xanthir
Wed Mar 01, 2017 10:10 pm UTC
Forum: Gaming
Topic: Dungeons and Dragons (and other tabletop RPGs)
Replies: 2086
Views: 309836

Re: Dungeons and Dragons (and other tabletop RPGs)

I might be; I know that Mearls said *some* early supplement had Sorc subclasses that added bonus spells, and those were a mistake they weren't repeating.
by Xanthir
Mon Feb 27, 2017 11:03 pm UTC
Forum: Gaming
Topic: RimFortress! DwarfWorld!
Replies: 7
Views: 886

Re: RimFortress! DwarfWorld!

I forget the details, but yeah, the relationship model for men and women is explicitly different, by designer fiat. It's really quite frustrating.
by Xanthir
Mon Feb 27, 2017 10:04 pm UTC
Forum: Gaming
Topic: Dungeons and Dragons (and other tabletop RPGs)
Replies: 2086
Views: 309836

Re: Dungeons and Dragons (and other tabletop RPGs)

Note that Sword Coast's new Sorcerer subclasses are committing a sin that wotc's since stayed away from - they add more spells to the Sorcerer's Spells Known list. This has proven to be too powerful of a benefit, and so they don't do it any more.
by Xanthir
Mon Feb 27, 2017 10:01 pm UTC
Forum: Science
Topic: What is the diffrence between between rectilinear motion and translatory motion?
Replies: 2
Views: 343

Re: What is the diffrence between between rectilinear motion and translatory motion?

No, you're doing good, Soupspoon; this is clearly a homework question. While homework questions are allowed, this post violates the board rules by not including any information showing that the OP has put even a modicum of effort into solving the problem. There's no roadblock they need help with, th...
by Xanthir
Mon Feb 27, 2017 10:00 pm UTC
Forum: Science
Topic: What is the Biggest Non-Repeating Molecule?
Replies: 39
Views: 3435

Re: What is the Biggest Non-Repeating Molecule?

"Lots of information" and "high compressibility" are literally opposites. DNA is very different from long hydrocarbons in this respect; a full and accurate formula for a DNA strand can't be compressed well (because it contains a lot of information), while a full formula for a lon...
by Xanthir
Mon Feb 27, 2017 9:57 pm UTC
Forum: Mathematics
Topic: WoW: A Strange Game. The only way to win is not to play.
Replies: 7
Views: 648

Re: WoW: A Strange Game. The only way to win is not to play.

The problem isn't maintaining a good solution, it's finding one in the first place, when the surrounding area is low-fitness. Genetic algorithms are just hill-climbers with an interesting way to force them to explore new areas of the possibility space (breeding); they come with all the same limitati...
by Xanthir
Wed Feb 22, 2017 2:26 am UTC
Forum: Mathematics
Topic: Stats Question
Replies: 3
Views: 313

Re: Stats Question

Overall, yes, but note that you want the 1-tail z score, because you want the 5% all at one end, not split between both ends. 2 stdevs is the 2-tail score.
by Xanthir
Tue Feb 21, 2017 8:44 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9563
Views: 1345004

Re: Coding: Fleeting Thoughts

That's a valid point, sure.
by Xanthir
Tue Feb 21, 2017 8:42 pm UTC
Forum: Mathematics
Topic: Convert points from a 2d space with a real dimension x and an imaginary dimension y
Replies: 19
Views: 831

Re: Convert points from a 2d space with a real dimension x and an imaginary dimension y

I'm very confused; you seem to be contradicting yourself - you want a 2d *space* (not spacetime), which suggests two spatial dimensions, but you also want 1 space dimension and 1 time dimension, forming a 2d spacetime. Which do you want? If you want a spacetime that works like ours does, just with o...
by Xanthir
Tue Feb 21, 2017 6:06 pm UTC
Forum: Mathematics
Topic: Convert points from a 2d space with a real dimension x and an imaginary dimension y
Replies: 19
Views: 831

Re: Convert points from a 2d space with a real dimension x and an imaginary dimension y

Hi, I have points p i in a 2d space with a real dimension x and an imaginary dimension y: p i (x i ;i*y i ). I want to represent them in an euclidean space so I search: p' i (x' i ;y' i ). That's the standard embedding, yes - map the real part to X and the imaginary part to Y. For example, p' 1 and...
by Xanthir
Tue Feb 21, 2017 4:41 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9563
Views: 1345004

Re: Coding: Fleeting Thoughts

Yakk wrote:Considered using floats as 17 bit ints, and composing 4 of them to make a 64 bit int? :)

Why 17? You've got 24 bits of integer precision in a float (including the hidden bit), so you only need three of them.
by Xanthir
Fri Feb 17, 2017 10:48 pm UTC
Forum: Mathematics
Topic: "There is an Exception to every rule"
Replies: 32
Views: 2973

Re: "There is an Exception to every rule"

18² + 1 = 325 = 13 x 5², so 18 / 5 is the best approximation of sqrt(13) in that neighbourhood. Note that 13 = 2² + 3², so sqrt(13) is the length of the diagonal of the smallest rectangle with unequal (integer) sides > 1. It's an interesting "coincidence" that 18 - 5 = 13 as well as 18 / ...
by Xanthir
Wed Feb 15, 2017 12:33 am UTC
Forum: Gaming
Topic: FTL - ohcrapshieldsaredown!
Replies: 352
Views: 46056

Re: FTL - ohcrapshieldsaredown!

I think it's definitely the easiest ship to kill the boss with, yeah. It just turns the battle into a waiting game; as long as you can survive long enough, you're guaranteed to win.

(I enjoy the Type C for that ship, too - it's got an alternate Artillery Gun.)
by Xanthir
Tue Feb 14, 2017 8:42 pm UTC
Forum: Gaming
Topic: FTL - ohcrapshieldsaredown!
Replies: 352
Views: 46056

Re: FTL - ohcrapshieldsaredown!

FTL on the other hand keeps you on a clock. You have a limited time to explore a sector, and as such... what you find and what you don't find is incredibly luck-based and random. As a result, a lot of Hard-mode playthroughs just feels like beating your face against the RNG. Come up with good enough...
by Xanthir
Fri Feb 10, 2017 9:02 pm UTC
Forum: Mathematics
Topic: Misunderstanding basic math concepts, help please?
Replies: 319
Views: 29076

Re: Misunderstanding basic math concepts, help please?

Yeah, the "other language" used was a combination of instinctual shared understanding and various non-verbal methods of communication. You didn't learn your first English *in* English, tho once you started you began bootstrapping yourself (accompanied by the previous methods).
by Xanthir
Mon Jan 23, 2017 9:46 pm UTC
Forum: Gaming
Topic: Final Fantasy Omnithread - All FF, all the time.
Replies: 1141
Views: 153981

Re: Final Fantasy Omnithread - All FF, all the time.

No, he's *my* husbando.
by Xanthir
Mon Jan 23, 2017 8:32 pm UTC
Forum: Gaming
Topic: Final Fantasy Omnithread - All FF, all the time.
Replies: 1141
Views: 153981

Re: Final Fantasy Omnithread - All FF, all the time.

Just to present a contrary view: it's a fun game and my wife and I are enjoying it. The combat is chaotic and interesting, the interpersonal dynamics are cute, Gladiolus is my wife's waifu, etc.
by Xanthir
Thu Jan 19, 2017 10:47 pm UTC
Forum: Gaming
Topic: Gaming fleeting thoughts
Replies: 539
Views: 38920

Re: Gaming fleeting thoughts

Also, Ezio is just legit the best character. My wife and I can both swoon over him!
by Xanthir
Thu Jan 19, 2017 10:43 pm UTC
Forum: Science
Topic: RELATIVITY QUESTIONS! (and other common queries)
Replies: 2812
Views: 492232

Re: RELATIVITY QUESTIONS! (and other common queries)

Yeah, but trying to argue about the physical reality of some things versus other things gets philosophical, while the "can you actually affect anything (faster than light)?" argument is concrete and difficult to argue with.
by Xanthir
Thu Jan 05, 2017 11:49 pm UTC
Forum: Computer Science
Topic: Deliberately bad algorithms
Replies: 108
Views: 22487

Re: Deliberately bad algorithms

Hey, my sig is linear time!
by Xanthir
Thu Jan 05, 2017 10:28 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9563
Views: 1345004

Re: Coding: Fleeting Thoughts

The important thing to remember, as said above, is that floats are not random. They don't produce weird results "just because". They're a base-2 value, with a movable "window" of precision. As a base-2 value, they can only represent values divisible by a power of 2. This is large...

Go to advanced search