Search found 5293 matches

by Xanthir
Thu Jun 16, 2016 11:29 pm UTC
Forum: Science
Topic: Relativistic Lorentz force
Replies: 34
Views: 5444

Re: Relativistic Lorentz force

That's not the sense in which "imaginary numbers" are, either. Some types of numbers, like counting numbers, are one-dimensional. Other types of numbers are two-dimensional. Some things are best modeled with one-dimensional numbers, others with two-dimensional. There's nothing complicated ...
by Xanthir
Wed Jun 15, 2016 5:58 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9770
Views: 1574427

Re: Coding: Fleeting Thoughts

I don't know of any use-cases right now; I'm mostly concerned with the fact that mod is more useful than rem for positive values. Mod just has a consistent and simple definition for negative moduluses, so might as well keep it.
by Xanthir
Wed Jun 15, 2016 4:53 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9770
Views: 1574427

Re: Coding: Fleeting Thoughts

So let's see: ⋅ 11 quot 3, 11 mod 3 = (3, 2) ⋅ -11 quot 3, -11 mod 3 = (-3, 1) ⋅ 11 quot -3, 11 mod -3 = (-3, -1) ⋅ -11 quot -3, -11 mod -3 = (3, -2) Okay, so I think it does indeed lose information; I don't think there's a single rule that lets you recover a ...
by Xanthir
Wed Jun 15, 2016 5:50 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9770
Views: 1574427

Re: Coding: Fleeting Thoughts

The downside is that (-a)/b != -(a/b), which is generally considered a more useful equality to have, which is why most languages use quot/rem instead of div/mod. My personal experience has been that when you are actually using integer division, that pretty much never comes into play. Yeah, like, yo...
by Xanthir
Mon Jun 13, 2016 8:40 pm UTC
Forum: Computer Science
Topic: standard approach to very high dimensional optimization by genetic algorithms / machine learning methods
Replies: 3
Views: 3730

Re: standard approach to very high dimensional optimization by genetic algorithms / machine learning methods

I suggest looking into the deep learning neural nets that are popular these days; they address this precise topic in a number of ways. At their core, they work by using multiple levels of neurons that gradually extract features from the image; starting with contrast boundaries, then edges, then shap...
by Xanthir
Mon Jun 13, 2016 8:38 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9770
Views: 1574427

Re: Coding: Fleeting Thoughts

Does Haskell really specify the timing of IO execution at all? AFAIK it does not (so IO could be implemented as Promise) but if it does then you're right of course. EDIT: Of course just creating an IO object does not run it immediately but that results more from the pure vs. impure difference than ...
by Xanthir
Sun Jun 12, 2016 6:42 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9770
Views: 1574427

Re: Coding: Fleeting Thoughts

It's sort of cheating to implement IO in a language that's already impure. ??? Why? What makes it "cheating", and what part of my implementation utilizes impurity to cheat? Like, do you think that, because impurity exists, IO can't even be useful in JS? I assure you that it can! (For exam...
by Xanthir
Sun Jun 12, 2016 6:30 pm UTC
Forum: Coding
Topic: Why is my PDF scroll and search so slow?
Replies: 5
Views: 4335

Re: Why is my PDF scroll and search so slow?

I find that universally, PDF readers are terrible for no good reason. A perfectly equivalent web page would scroll/etc vastly better. Very annoying when trying to, say, use a D&D pdf to play from. :/
by Xanthir
Sat Jun 11, 2016 8:26 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9770
Views: 1574427

Re: Coding: Fleeting Thoughts

No? Promise is a completely different functor with unrelated semantics (it's the "asynchronous Maybe"). It's just also a fairly simple "container holding a value" functor that defers work a little bit.
by Xanthir
Sat Jun 11, 2016 4:34 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9770
Views: 1574427

Re: Coding: Fleeting Thoughts

I always think of IO as "IO is what the whole program in languages with side-effects is". That's more of the hand-waving metaphorical nonsense that makes it so hard to understand. >_< That sentence you just wrote gives me *zero* insight into how IO works or how I might implement it. It *s...
by Xanthir
Fri Jun 10, 2016 1:56 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9770
Views: 1574427

Re: Coding: Fleeting Thoughts

I think he means blacklisting a domain once, so it never shows up again.
by Xanthir
Thu Jun 09, 2016 8:44 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9770
Views: 1574427

Re: Coding: Fleeting Thoughts

The wiki is what comes up when you search for these things, and it gets linked often. ^_^

(Glass houses here tho - W3Schools comes up highly in search results for web stuff, and it's a trash fire.)
by Xanthir
Thu Jun 09, 2016 4:11 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9770
Views: 1574427

Re: Coding: Fleeting Thoughts

Notice that you weren't able to learn Reader properly until someone pointed out the definition to you. No, the *definition* I'd seen plenty of times. I'd read over the Haskell wiki definition of it several times, and saw several tutorials giving servicable definitions. It was the *implementation* o...
by Xanthir
Wed Jun 08, 2016 9:29 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9770
Views: 1574427

Re: Coding: Fleeting Thoughts

Yes, my point that I keep hammering on is that almost all tutorials talk about IO in the "purposes of reasoning about" sense, which is *incredibly damaging* to actually *understanding* functors. It makes them seem like magical, impossible-to-understand abstractions that only crazy language...
by Xanthir
Wed Jun 08, 2016 6:27 pm UTC
Forum: Fictional Science
Topic: Splitting/Duplication in Humans
Replies: 25
Views: 4642

Re: Asexual Reproduction in Humans

And it's a great series in general for exploring what a universe's physics would be like if spacetime were Euclidean rather than Minkowskian. All around great nerdery in physics, biology, and feminism with a very alien species.
by Xanthir
Wed Jun 08, 2016 12:17 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9770
Views: 1574427

Re: Coding: Fleeting Thoughts

Right, unsafePerformIO is just "run the function inside of the IO and return the result". The function inside of the IO is just something that takes no arguments and potentially has side-effects; it exists just to delay the side-effects until either the runtime is ready to do them or you'r...
by Xanthir
Tue Jun 07, 2016 10:06 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9770
Views: 1574427

Re: Coding: Fleeting Thoughts

Agree, but I'd go further. It's not enough to just explain what Reader is, you have to show its implementation, too - I was confused as *heck* by Reader until I realized how simple it was. (Some article finally outright said "Reader is just Function, but given a different name to express more p...
by Xanthir
Tue Jun 07, 2016 6:53 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9770
Views: 1574427

Re: Coding: Fleeting Thoughts

I'm still fuzzy on functors and it's unlikely that the discussion here will clear it up for me (which is fine). But, how accurate (or how bad) was my comparison regarding monads ? Just monads, not functors. :) A monad is a functor; "monad" is shorthand for "monadic functor". (he...
by Xanthir
Tue Jun 07, 2016 4:23 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9770
Views: 1574427

Re: Coding: Fleeting Thoughts

Yes, yes, we can go all abstract and ephemeral. But that's not helpful . That's why functors have taken so long to start bleeding out of Haskell and other heavy-functional languages. Functors are data structures. They are implemented in a computer as an object with a particular interface - namely, a...
by Xanthir
Tue Jun 07, 2016 12:32 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9770
Views: 1574427

Re: Coding: Fleeting Thoughts

This is probably heretical, but here goes my fleeting thought. So, I just read the clearest explanation of monads I've ever encountered, after wading through the second clearest explanation of monads I've encountered. Coming from a shell scripting background (with lots of text processing and extens...
by Xanthir
Tue Jun 07, 2016 12:10 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9770
Views: 1574427

Re: Coding: Fleeting Thoughts

I've spent a lot of time digesting them, and finally came to what I think is a really simple way of understanding them - a functor is a wrapper object around some arbitrary value(s), that has a well-behaved .map() method. The values need not be there. Sure, but getting into the more abstract things...
by Xanthir
Mon Jun 06, 2016 11:37 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9770
Views: 1574427

Re: Coding: Fleeting Thoughts

It's really hard to read this with no types or laws, and with functions and methods being totally mixed up. A type `F` is a functor if there exists a function with the type `F<B> fmap(Function<A, B> f, F<A> a)`, obeying the following laws: For all a, fmap({x => x}, a) = a For all f and g and a, fma...
by Xanthir
Fri Jun 03, 2016 11:56 pm UTC
Forum: Gaming
Topic: Cool games on the interweb redux
Replies: 511
Views: 273703

Re: Cool games on the interweb redux

Oh, and it appears bonus ticks are limited to 57600, or 16*60*60. I haven't actually done the math, but I presume we pick up one bonus tick per second of missed time or something, which implies you idle max is 16 hours if you dont' want to lose resources.
by Xanthir
Fri Jun 03, 2016 11:54 pm UTC
Forum: Gaming
Topic: Cool games on the interweb redux
Replies: 511
Views: 273703

Re: Cool games on the interweb redux

Yeah, I'm stuck grinding research right now to unlock electronics. Plastic-level research is *so* expensive that I can't run a ton of it (but it produces a whole lot, so that's nice).
by Xanthir
Fri Jun 03, 2016 11:51 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9770
Views: 1574427

Re: Coding: Fleeting Thoughts

I'm *fascinated* by how other people approach understanding of functors and their variants. I've spent a lot of time digesting them, and finally came to what I think is a really simple way of understanding them - a functor is a wrapper object around some arbitrary value(s), that has a well-behaved ....
by Xanthir
Fri Jun 03, 2016 11:13 pm UTC
Forum: Fictional Science
Topic: How would a blind race become a space faring civilization?
Replies: 4
Views: 3183

Re: How would a blind race become a space faring civilization?

Shorter Soupspoon: Most of tech development can proceed along identical or very similar tracks for a blind species (especially if they instead echolocate, but that's not required), it'll just use more tactile displays. They won't discover stars until they actually discover the electromagnetic spectr...
by Xanthir
Thu Jun 02, 2016 5:32 pm UTC
Forum: Science
Topic: Expected oldest person in history
Replies: 32
Views: 6694

Re: Expected oldest person in history

Oh thank god, I was like "I KNOW I saw the second plane hit, every classroom in the building turned on their TV to the live news coverage minutes after the first one hit".

This was especially bad because I *know* most/all of my actual childhood memories are reconstructed, not originals.
by Xanthir
Wed Jun 01, 2016 4:05 am UTC
Forum: Gaming
Topic: Cool games on the interweb redux
Replies: 511
Views: 273703

Re: Cool games on the interweb redux

Do you like the idea of Factorio, but think it's too fiddly/complex and, well, 3dish? Do you like idle games? Try FactoryIdle , a pretty neat little factory-based idle game. I'm still in the early game, where factory lines are relatively simple, but my research floors have gotten pretty complex, and...
by Xanthir
Sun May 29, 2016 11:24 pm UTC
Forum: Coding
Topic: Code duplication vs clarity
Replies: 15
Views: 5105

Re: Code duplication vs clarity

1: I can FIRST figure out which subset of fields I have, and THEN use a switch to do the proper subset of things. ... 2: I can do the things in order, and for each thing, figure out whether the data combination means I should do that thing in the first place. ... 3: I can do both, but it seems to b...
by Xanthir
Sun May 29, 2016 11:16 pm UTC
Forum: Coding
Topic: Entry level tech career--what should I be learning?
Replies: 3
Views: 3565

Re: Entry level tech career--what should I be learning?

You just posted this thread a few weeks ago, my dude viewtopic.php?f=11&t=114739
by Xanthir
Fri May 27, 2016 5:00 am UTC
Forum: Science
Topic: Alkaline Food
Replies: 26
Views: 5259

Re: Alkaline Food

As the OP mentioned, any pop nutrition on "alkaline diets" is nonsense woo.
by Xanthir
Tue May 24, 2016 4:45 pm UTC
Forum: Science
Topic: Which planet?
Replies: 28
Views: 4494

Re: Which planet?

Is it possible to surf the rings? No, they're very sparse at people-size scale. (This is similar to the confusion about the asteroid belt - we only see it in super-zoomed-out view, so we think it's dense and things can actually hide in it, but actually the average distance between asteroids is meas...
by Xanthir
Tue May 10, 2016 5:39 pm UTC
Forum: Coding
Topic: PHP OOP website example
Replies: 5
Views: 3962

Re: PHP OOP website example

Those aren't competing things. "object oriented programming" is something you can do in PHP. I believe the OP was referring to doing oop as opposed to the default "just throw shit together and get code on the page" that PHP makes so easy.
by Xanthir
Tue May 10, 2016 6:48 am UTC
Forum: Science
Topic: Alkaline Food
Replies: 26
Views: 5259

Re: Alkaline Food

Also: basic things trigger your bitter sensors. We've bred that out of nearly everything we eat, or avoided it as food entirely.
by Xanthir
Mon May 09, 2016 3:14 am UTC
Forum: Site/Forum issues
Topic: Location 2
Replies: 8
Views: 5239

Re: Location 2

What in the actual heck? That option is right there as described for me...
by Xanthir
Sun May 08, 2016 5:38 am UTC
Forum: Coding
Topic: [Resolved] Generalized Hamming numbers in Python
Replies: 3
Views: 3230

Re: Generalized Hamming numbers in Python

Common issue in Javascript, and why the new for-of loop has some non-obvious semantic details when you use a let in its head. Your problem is that the i variable is created once, at the beginning of the outer list comprehension, and each of the generator expressions closes over it. It gets updated m...
by Xanthir
Sun May 08, 2016 4:36 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9770
Views: 1574427

Re: Coding: Fleeting Thoughts

by Xanthir
Sat May 07, 2016 3:25 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9770
Views: 1574427

Re: Coding: Fleeting Thoughts

I was just reading an interesting article arguing that we might be entering an era where it makes sense to treat the hard-drive as just another level of memory. All files are "open" and memory-mapped at all times, rather than requiring special load/save operations. Gotta introduce some new...
by Xanthir
Fri May 06, 2016 3:55 am UTC
Forum: School
Topic: Forum Migration
Replies: 412
Views: 526625

Re: Forum Migration

If you hit enter in the address bar, and the URL matches the page you're already on, and there's an anchor (ie, a # with something after it), then it doesn't actually reload the page, it just scrolls to that anchor. It needs to work that way because that's how links to anchors work to just scroll t...
by Xanthir
Fri Apr 29, 2016 6:48 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9770
Views: 1574427

Re: Coding: Fleeting Thoughts

The desired behaviour is to have a zero element that resets the time series to mempty so that any mappends that happen "in the future" start from scratch. So it turns out this is relevant to me today; I need to implement a system for retrieving metadata about a document from several sourc...

Go to advanced search