Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
varelaz
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
61.
▲
by
varelaz
7y ago
I think as everywhere 90% of money Youtube gets from 3-10% of content. That looks like cost optimization. They spend money for requests (displaying video) and storage. Even if storage is 30% of their cost and they can remove 10% of biggest
62.
▲
by
varelaz
7y ago
Google uses CPM or even kind of vCPM model for videos mostly AFAIK, so if you see more than 5 seconds of the ad, advertisers will pay for it.
63.
▲
by
varelaz
7y ago
Nope. You can translate instructions, but standard library and frameworks also should use local naming or it will be completely useless.
64.
▲
by
varelaz
7y ago
A lot of people don't speak English and I think it's main barrier to become a programmer or QA engineer.
65.
▲
by
varelaz
7y ago
First time I've seen non-ASCII language around 7-10 years ago. It was 1C language, it's very alike to Visual Basic but all in Russian. I think it was very good idea to use Russian for that, it's embed language for platform de
66.
▲
by
varelaz
7y ago
Everything of this looks like syntax sugar. I would expect more work on internals. Python has a lot of awkward edge cases in standard lib. In a lot of cases None is valid output for not-done states. Also I hate multithreading programming in
67.
▲
by
varelaz
7y ago
That looks like uncompetitive behavior from Cloudflare, so it's their problem also. Cloudflare can send EDNS if nameserver and the actual server run by the same party, but they don't
68.
▲
by
varelaz
7y ago
I think decision of archive.is is very interesting. 1) They attracted a lot of attention; 2) They showed the way to struggle with Cloudflare business that abuse their service. If several bigger CDNs like akamai or softlayer will consider
69.
▲
by
varelaz
7y ago
If you have predictable load and constant expenses then yes, lambda should cost more than EC2 ondemand, and hardware hosting should cost less than cloud. You started development on AWS, but once infrastructure become static and all tasks we
70.
▲
by
varelaz
7y ago
While this is cool to harden your transactions, as more locks you add as more deadlocks and blocks appear, and it becomes harder and harder to keep transactions fast and isolated from each other. For example if you do select for update and
71.
▲
by
varelaz
7y ago
You may end up with 0xFF items on stock, add/subtract are cool, but not ideal, also negative number is not always more acceptable than exception. I recall FF bug with Civilization https://www.geek.com/games/why-gan
72.
▲
by
varelaz
7y ago
We implemented this with additional DB checks. For example: we put only one job to queue at a time per customer, the rest are in database until one that in progress is not processed. Actually most of the prioritization could be implemented
73.
▲
by
varelaz
7y ago
No. By default SQS uses `at-least-once delivery` system. It's distributed and when you connect to API one SQS node that you working with could have different state comparing to another, so you may fetch the same message twice by 2 sepa
74.
▲
by
varelaz
7y ago
There are VPC API endpoints for this. As far as I recall it was all the time there from VPC begging, but I might be wrong.
75.
▲
by
varelaz
7y ago
One important drawback of SQS is that it's eventually consistent, you can read the same message twice from different workers. Nevertheless we keep using it with additional checks when it's critical, it's still the cheapest so
76.
▲
by
varelaz
7y ago
There are much more of it. I think around 1/3 of standard library is legacy and burden for python. I recall there was a PyCon talk about why you may not want to be a part of standard library. Release process and support of old versions
77.
▲
by
varelaz
7y ago
All of removed modules should go to PyPi no one is going to kill them completely. Python keeps a lot of legacy. I'm also pretty concerned with builtin robots.txt parser for example. There are much better PyPi libraries which are well m
78.
▲
by
varelaz
7y ago
GUIDs are really unreadable and long. You can read and remember some numeric ID, but GUID/UUIDs – totally impossible. I hated them after Microsoft COM.
79.
▲
by
varelaz
7y ago
I hope they will bring this to Europe soon.
80.
▲
by
varelaz
7y ago
Sorry, I thought problem is with thousands parallel processes execution. There problem is with some remainings from previous process runs.
81.
▲
by
varelaz
7y ago
Why someone needs 1000 created processes on one server? I worked with IO and CPU bound tasks and never needed more than ~50 processes, even on very big servers. Is there any practical reason for this (besides pure interest)?
82.
▲
by
varelaz
8y ago
It was part of the talk in PyCon Ukraine 2018, which I took part. https://pyvideo.org/pycon-ukraine-2018/verification-of-concu... That's the video Sorry it's on Russian and amount of steps was 33. Check 28:30
83.
▲
by
varelaz
8y ago
Good luck with this. I heard about practical TLA usage. There was hang up in python asyncio library related to concurrency and it required 24 steps to reproduce. It was found and fixed with TLA help.
84.
▲
by
varelaz
8y ago
but quantum representation of this information still lives somewhere in the Universe
85.
▲
by
varelaz
8y ago
Likely not. Mutation that will help to survive this type of sterilization likely will not help virus to be more effective in other aspects. For example extremophiles are not very effective as infections.
86.
▲
by
varelaz
8y ago
Does anyone know status of mechanical accumulator project. I've heard that flywheel could be promising, while it has its flaws.
87.
▲
by
varelaz
8y ago
Well, in that case the Sun is the closes to everything, since it's center of rotation, but I think that 'average' metric is wrong, no one is going to flight to the Mars when it's opposite to the Earth, it's like ave
88.
▲
by
varelaz
8y ago
There is no aim to get one or zero in output. We need to have enough ones for XOR algorithm to invert bits. A xor 1 => inverted A. A xor 0 = A. So if we have too few ones, source data will remain unchanged and that quickly become a patte
89.
▲
by
varelaz
8y ago
Looks fine for home made RNG, but not enough for production. What's missed there, since method is using data from MCU RAM, it's better to test MCU RAM first without XOR. Can we be confident that certain bit will be more likely to
90.
▲
by
varelaz
8y ago
It's atomic in CPython and protected with GIL. It will be safe in user-defined dict classes if you will make it safe and care of this. And everything above is a matter of implementation. What you write is pure and correct in common sen
More ›