342 karma · joined Mar 6, 2012 (14y ago) · 175 submissions
comment 2y ago · link · parent
Find the empty string and replace with say
`($&)`
where `$&`
refers to the captured variable, and with input `xyz`,
the result is `()x()y()z()`
With an empty input, the result is `()`.
The result of indexOf can consistently return the first index of the first half open subrange in a string. It just so happens that the first subrange of an empty string in an empty string is [0, 0).The limiting case is also an interesting way to look at it:
()a()b()c()
()a()b()
()a()
()comment 3y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
Serial speed is always a gain up, no questions asked I guess.
Obviously all of that is over simplified, and not considering other components to any system that would be built (but hey, it's not like any of this is happening tomorrow anyway).
comment 5y ago · link · parent
I like bitcoin (the idea, not the burning of the planet, even though it's only a temporary hack to bootstrap the whole thing). And hey, maybe it will encourage building nuclear mining farms, that will give their owners free bitcoin, and then we can use the nuclear plants.
The only defense I can stomach for Bitcoin's unfathomable energy consumption is that it might be only temporary. Is it worth it? So far, not that much, but I think developed-countries under-estimate the value of bitcoin, since they have more stable economies, and thus currencies, and enjoy freedom of moving their money, and data privacy...
comment 5y ago · link · parent
13.
Introduction to Reinforcement Learning (2015)(deepmind.com ↗)
243 points · by arithma · 5y ago · 44 comments
comment 5y ago · link · parent
I know this is off-topic, if it annoys anyone, I could take it somewhere else, but thought people interested in this article might have experimented or self-reflected.
comment 5y ago · link · parent
Money/Currency/Value in general can't be reduced or derived from first principles. You always have to take into account human nature, economic activity, and most unfortunately: psychology. So all criticism about how bitcoin inherently being pointless, sounds like off-tune. I want good reasons to/NOT-to buy in.
First-world country citizens kind of trust their governments to at least behave lawfully, or at least be eventually accountable. There are systems in place for transactions and accounting, and "everyone" has access.
The "Value" of bitcoin, coming from a struggling third-world country (Lebanon), is in the ability to be independent of a currency that is inflating quickly, being able to transact with the outside world (even if only in bulk) without being under the mercy of a failing financial system that is lurking around to take a share in every which way possible.
The energy consumption needs of bitcoin are an obvious drawback. But I don't think it's fair to brush away the whole thing for only that reason.
Disclosure: I own an embarrassingly small amount of bitcoin (~0.4BTC).
comment 6y ago · link · parent
Similarly, us as humans, could possibly have the ability to get over some/all of our distorted senses.
I am not talking about every day life here. It's in principle possible to deal with the logical fallacies that we're programmed with, but it requires effort.
What am more interested to convey is: our potential for objectivity is troubled with subjectivity. It is, however, not impossible on just the account of having subjective distortions. Those can be overrun.
There are many other similar analogies that come to mind, one that is prominent: digital systems made from purely analog ones.
comment 6y ago · link · parent
From a developer side, it looks like developing a webapp without the usual limitations of API access, albeit at an extra cost of marshaling or build-complexity.
There really is no reason to think of HTML/CSS/JS as Web only though.
comment 6y ago · link · parent
Culture, technology, and geology (and hey, everything else, biology, astronomy..)
I find it hard to try and see what the future may hold, and it seems that is the case since we're at an event horizon of human culture change. Talks of singularity already having come upon us is relevant in terms of predictability to a certain extent, but I kind of feel comfortable to say that humanity will indeed stabilize in at most 5k years, since we're already hitting marginal returns in technology investments. There might be two more singularities that can unlock more unpredictability: AI and biology.
comment 6y ago · link · parent
comment 6y ago · link · parent
Since the current practices are so inefficient, users are having to pay for this from pocket as hardware expenses. Buy a $1000 smartphone, to get the same experience as last-year's.
A different stack (don't need to reinvent the universe), can be branded as brutally efficient, uses slim hardware, and strict engineering practices to provide a much better experience at a fraction of the price (1/5 possible.)
I believe nobody is doing that yet since there are two main barriers:
1- Risk of no-market (I think this might be proven unfounded, given the current trend in price hikes)
2- Capital investment necessary to get started (But this also can be solved given the obvious appetite for the next-big-thing money being poured left and right, without anything catching on yet)
comment 6y ago · link · parent
1- Yes, optimizing for lowering this consumption by an app-developer can definitely be an ill-advised endeavor economically (you're saving 0.1-10% of your cost.. by adding a huge investment of time, possibly larger than the application development itself) 2- Optimizing across all deployments, can definitely move the needle, in a very significant way, against the effort required, since you're automatically deployed on 1000-1M places.
It's the same reason library developers (especially system/langugage/heavily-used-libraries) have a very good reason economically (and therefore ecologically as well) to optimize. Competition here is a huge benefit to everyone, including the environment.
comment 7y ago · link · parent