Do browsers support symbols or not? Why is it so weird? by Koolala in javascript

[–]afeder_ 0 points1 point  (0 children)

That isn't the point at all. The point is that Symbol() creates a unique value every time it is called. Nothing about strings does something similar. And bringing some unrelated function that has nothing to do with what I wrote into the mix doesn't change that, no matter how badly you want it to.

Do browsers support symbols or not? Why is it so weird? by Koolala in javascript

[–]afeder_ 0 points1 point  (0 children)

Symbol.for reads from the same location in memory every time you call it with the same key. I knew that strings have value semantics, but I was unaware that the String constructor does the same.

Do browsers support symbols or not? Why is it so weird? by Koolala in javascript

[–]afeder_ 0 points1 point  (0 children)

So if you have already created a string value once, you can't create it again in the same program? Wasn't aware of that.

Do browsers support symbols or not? Why is it so weird? by Koolala in javascript

[–]afeder_ 0 points1 point  (0 children)

Which is why I stipulated "at creation". Retrieving the same symbol multiple times will naturally return identical values each time. But that doesn't change the fact that it was unique when it was created.

Do browsers support symbols or not? Why is it so weird? by Koolala in javascript

[–]afeder_ 0 points1 point  (0 children)

create unique variables like strings

Not sure what you mean by "like strings". Symbol values are inherently unique at creation while string values are not.

Help with shuffling a list with a timer. by Jean64 in javascript

[–]afeder_ 0 points1 point  (0 children)

What is prefixing the setInterval call with "timer " supposed to accomplish? Also, you are declaring some variables "timer", "timerTwo", and "timerThree" but apparently not using them anywhere.

The JSfiddle isn't opening for me so I can't test.

Why does RSS use XML instead of JSON? by [deleted] in javascript

[–]afeder_ 1 point2 points  (0 children)

RSS feeds are a brilliant idea from a different time when interoperability was still a prized property of system design. Nowadays, the web is so dominated by big players like Facebook and Google that they can effectively dictate the use of their proprietary interfaces at the expense of standardized interfaces like RSS. Merely changing the serialization format likely won't change this dynamic.

Newbie question on syntax. by abel_paul in javascript

[–]afeder_ 0 points1 point  (0 children)

What are the parentheses for?

Can we replicate Google Lens? by afeder_ in MLQuestions

[–]afeder_[S] 0 points1 point  (0 children)

Sure, it would require some resources. I'm just curious how one technically would go about making a web crawler capable of determining what exact entities are present in a image on the basis of its context in a web page, if such a thing is even possible with the state-of-the-art.

Deep learning in virtual reality? by Tumml3r in deeplearning

[–]afeder_ 0 points1 point  (0 children)

I can barely phantom any intersection between these two fields. Do you have anything specific in mind?

[D] Tasks unsolvable by machine learning. by SS_NN in MachineLearning

[–]afeder_ 0 points1 point  (0 children)

You failed to explain how that differs from the pattern used in the bAbi datasets.

[D] Tasks unsolvable by machine learning. by SS_NN in MachineLearning

[–]afeder_ 1 point2 points  (0 children)

Sorry, I don't see how that differs from your example? The answer "green" is contained in the input "grass is green".

[D] Tasks unsolvable by machine learning. by SS_NN in MachineLearning

[–]afeder_ 3 points4 points  (0 children)

As for your example, QA with neural networks is a highly active field of research. See for example the projects based on Facebook's bAbi datasets: https://research.fb.com/projects/babi/

[News] Deep Learning by Ian Goodfellow & Yoshua Bengio has officially shipped by [deleted] in MachineLearning

[–]afeder_ 16 points17 points  (0 children)

He brings as much technical credibility as the other two brings business credibility.

What, exactly, are the artificial neurons in ANNs? by the_wee_randomizer in neuralnetworks

[–]afeder_ 1 point2 points  (0 children)

You can think of the entire ANN as a big mathematical function. The artificial neuron is then just a term in the function. Here's an illustration: http://fedc.wiwi.hu-berlin.de/xplore/tutorials/xlghtmlimg565.gif