4,235 karma · joined Sep 10, 2015 (11y ago) · 1,525 submissions
comment 8y ago · link · parent
Even people who never had any great achievements can experience it with sex: sometimes you are alone for a while, and think how amazing it would be to have sex with someone, thinking about all sorts of happy feelings you'd have and how you would be happier overall and so on. Then you have a one night stand, and it's good, but you realize it hasn't really changed anything, that a relationship might not necessarily work out, that you are not necessarily going to be able to repeat it, then think about how you got exactly what wanted and that many other people would have really wanted to have your experience, and yet you can't appreciate it like you think you should.
I think the solution is partly to accept it, and just let your expectations about the happiness related to those achievements go down, and also trying to focus on achievements that have lasting effects, mainly those that involve getting wealthier or healthier, and finally trying to have a more balanced life, relying less on high-impact random once-in-a-while experiences and more on habitual routine experiences, although it can be hard to find the motivation for that for some people.
comment 8y ago · link · parent
It's not even hard: just require anyone selling on Amazon to wire a large enough deposit before they are allowed to sell (magnitude depending on the price, volume of their items and possibly their assumed trustworthiness); then, if they are found selling counterfeits or otherwise misrepresenting their products or their company, Amazon pockets a third of it, rewards another third to the person reporting it to Amazon and distributes the remaining third to affected shoppers.
It seems to me that the gains would far outweigh any possible reduction in the number of legitimate sellers and products.
comment 8y ago · link · parent
It appears to contain a 10MB long UTF-8 mess in both the og:title meta content and in a mailto: link.
I'd guess it's supposed to crash iOS apps by either posting that link if it displays links in a thumbnail element using og:title or otherwise by pasting the huge mailto link contained in the webpage, or perhaps only the e-mail address.
comment 8y ago · link · parent
So making it detectable (intentionally, even, right there in the user agent!) is really absurd.
Or actually, it makes one wonder about Google's motives.
comment 8y ago · link · parent
Since it's useless, not having it is great since you no longer have to worry about it and the problems it causes like random pauses, sawtooth-shaped and excessive memory usage and inability to use swap properly (although you have to worry about heap fragmentation, but usually that's not as terrible).
Also you'd need lifetimes and borrowed references anyway to have static guarantees like that there are no remaining references to mutex-protected data after you unlock the mutex, so having a GC as well actually increases complexity.
comment 8y ago · link · parent
Also, this seems an inaccurate claim: e.g. a single $449 GTX 1070 Ti can do at least 50fps at 4K maximum quality in all tested games in https://www.anandtech.com/show/11987/the-nvidia-geforce-gtx-...
This means that for 1000$ a dual 1070 Ti workstation should be able to do 4K 120hz just fine in all games, perhaps slightly lowering presets on GTA V.
Of course this being cutting edge graphics a quad GPU setup is more reasonable which would allow 4K per eye at 120hz max quality, possibly even more with tweaked settings.
comment 8y ago · link · parent
Who would win then? Google's money and marketing power, or Mozilla's independence, trustworthiness and being the renderer's creator?
comment 8y ago · link · parent
Assuming active transactions {T}_i ordered by id, then if you are committing T_i, any row whose [Tmin, Tmax] visibility interval is fully contained in (T_(i-1), T_(i+1)) (i.e. for which Tmin > T_(i-1) && T_(i+1) < Tmax) is now dead (taking -inf and a large value for the previous/next transaction ids if there are none).
I believe this sort of query can be efficiently handled in time O(k polylog n) with several data structures, like an interval tree such as a B-tree augmented with maximum values or several kinds of 2D search trees.
It's also possible to use a simple index and just reclaim those rows whose Tmax is lower than the oldest active transaction, although this means that a single never-closed transaction blocks all row reclamation forever, which seems a bad design for a production-quality database.
comment 8y ago · link · parent
Isn't it possible to just use a data structure to index rows by transaction ids, and on each transaction commit efficiently find all rows that aren't visible to any transaction, and add them to a free list?
Seems kind of a bad design to rely on periodic full data scans.
comment 8y ago · link · parent
I think this is doable by adding a buffer to store cache entries evicted by speculative execution, so they can be put back, and a log of new cache entries, so they can be removed
Also, the abort process itself needs to take a constant amount of time out of the critical path to avoid leaking info via timing (the timing then only depends on how fast the CPU determines it speculated wrong, but that doesn't depend on the speculated code).
EDIT: Hyperthreading also needs to be handled somehow, which other than disabling it might require adding a per-thread "L0" cache and using that exclusively for speculatively executed code.
There is still the problem of theoretical plain timing attacks on normally executed code though, but that's unrelated.
Making sure that the indirect branch predictor only makes predictions when the source address fully matches would be nice as well (although theoretically not required if there are no side effects).
comment 8y ago · link · parent
That seems feasible without significant performance loss in most cases.
There is still a fingerprinting issue though that might not be possible to fully remove without huge performance cost.
comment 8y ago · link · parent
If it, like it seems, is just an attack on OS kernels and PV hypervisors, you can simply turn off the mitigation, since nowadays kernel security is mostly useless (and Linux is likely full of exploitable bugs anyway, so memory protection doesn't really do that much other that protecting against accidental crashes, which isn't changed by this).
Even if it's an attack against hypervisors any large deployment can simply use reserved machines and it won't have a significant cost.
comment 8y ago · link · parent
comment 8y ago · link · parent
Apple has a monopoly on OSes that run iOS apps, OSes that run on iPhones, phones that run iOS and on App Stores that can install iOS apps.
They abuse all of them (e.g. the Webkit-only issue for iOS, monopoly pricing on iPhones, censorship in App Store).
Conversely e.g. Google has none of these monopolies except for the monopoly in running perfectly apps that require Google Play Services.
comment 8y ago · link · parent
Either it's private, and then NOBODY has it (i.e. stored on local machines, paper or just memorized), or it's not private, and then it's publicly accessible on a website, or it's confidential and then it's either service-specific data that is deleted as soon as possible (e.g. web searches) or given along with a physically signed contract containing an NDA and penalties for failure to keep secret.
The best way to achieve this is to require, by law, companies to publish on the web anything they learn from customers that is either not strictly part of their interaction with the service or has been stored for more than a month.
This will result in companies no longer asking for things that customers don't want to be public, and deleting interaction data unless the customer wants it kept and published.
Also it will result in a reduction of Google/Facebook/etc.'s monopoly powers since they will have a reduced monopoly on customer data.
comment 8y ago · link · parent
Is he the person in charge of which code gets shipped to Firefox users? If so, that seems rather bad, and it ought to stop.
If not, maybe the person in charge (probably the CTO) should be the one apologizing for letting them ship this thing?
comment 8y ago · link · parent
If someone is viewing the content, they presumably like it, so there doesn't seem to be any difference compared to people viewing advertisement on "non-objectionable" content.
If someone else sees the content along with the advertisement, they can just truthfully say that the advertisements are placed by an automatic algorithm and that they don't endorse the content.
What's the problem?
comment 8y ago · link · parent
A BTC future can be perfectly hedged by taking a loan until the settlement date and using it to buy 1 BTC, holding it until settlement and then selling, so that's probably what the counterpart selling the future is doing.
comment 8y ago · link · parent
Also, such an API would allow an extension to make the browser UI unusable, which would make figuring out the problem and removing the offending extension quite hard.
comment 8y ago · link · parent
Qualcomm Centriq 2434 [https://www.nextplatform.com/2017/11/08/qualcomms-amberwing-...]:
- 40 cores (no SMT)
- 2.5 GHz peak
- 4 uops/instructions per cycle [https://www.qualcomm.com/media/documents/files/qualcomm-cent...]
- 110 W TDP
- $888
- 10 Guops/s/core
- 0.011 Guops/s/core/$
- 400 Guops/s
- 0.45 Guops/s/$
- 3.63 Guops/s/W
AMD Epyc 7401P [https://en.wikipedia.org/wiki/Epyc]:
- 24 cores (2x SMT)
- 2.8 GHz all-core boost
- 6 uops per cycle [http://www.agner.org/optimize/microarchitecture.pdf]
- 170 W TDP
- $1075
- 16.8 Guops/s/core
- 0.016 Guops/s/core/$
- 403 Guops/s
- 0.37 Guops/s/$
- 2.37 Guops/s/W
So based on this the AMD processor has 170% the Qualcomm's per-core performance, equal on total throughput, 83% of Qualcomm's total thoughput per $ and 65% of Qualcomm's total throughput per W.
Note that the AMD CPU has SMT while the Qualcomm doesn't which improves utilization, and its components are probably faster (due to higher TDP and more experience making CPUs), so it looks like the AMD CPUs are likely to be strictly better in practice except possibly on performance/watt.
Also, with AMD/Intel, albeit at much lower performance/$, you can have 32-core instead of 24-core CPUs and there is up to 4/8-way SMP support that Qualcomm doesn't mention.
comment 8y ago · link · parent
E.g. db[key] += value and db[key].insert(value) commute with themselves, but db[key] = value obviously doesn't.
This just seems to be an attempt to implement a correct eventually consistent database, and the CRDTs are simply datatypes with commutative update operations.
Unfortunately, it seems to allow transactions that examine objects and then (conditionally) update them, which obviously are not guaranteed to be commutative even if the objects are commutative, so maybe it doesn't succeed at implementing a correct database.
comment 8y ago · link · parent
They should either provide one or "bless" an external solution as the official one (after making sure it works correctly).
The other problem is that GoCardless setup an asynchronous and a synchronous replica instead of 2 synchronous replicas (or preferably 4+), resulting in only two points of failure, which is not enough.