Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bvrmn
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
38 ms
·
511.
▲
by
bvrmn
5y ago
It's nice to have atomic guarantees of GILed implementation. For me current CPython semantic is a golden middle: you have pretty fast interpreter without race conditions (for huge part of user code). Due to GIL. I always like to ask fo
512.
▲
by
bvrmn
5y ago
Actually browser normalized string and it works for me also. Here is original byte sequence: >>> b'n\xcc\x83'.decode() 'ñ' >>> b'n\xcc\x83'.decode()[0] 'n' >
513.
▲
by
bvrmn
5y ago
> Python has the GIL. You are welcome to show fast single-core python interpreter without GIL. Coreteam will gladly accept your patches.
514.
▲
by
bvrmn
5y ago
Python 3.9.9 (main, Nov 20 2021, 21:30:06) [GCC 11.1.0] on linux
515.
▲
by
bvrmn
5y ago
>>> "ñ"[0] 'n' >>> "ñ"[1] '̃'
516.
▲
by
bvrmn
5y ago
A minor note: pow is able to calculate modulo inverse (pow(a, -1, n)) starting from python3.8.
517.
▲
by
bvrmn
5y ago
For me Foundation lacks composability. This method should be really two: CreateCopy (I assume it already exist) and mutating DeleteLastPathComponent. I don't mention immutable by default behavior because it was long ago and written in
518.
▲
by
bvrmn
5y ago
Russians don't have an option to pay fee to be free. Our usual term for "incorrect" speech is starting from 3 years.
519.
▲
by
bvrmn
5y ago
It's calculated that around 500 people is under arrest in Russia for political reasons. The only thing they did was to express disagreement with current policy.
520.
▲
by
bvrmn
5y ago
> You also have to remember that the justification for the Russian invasion of Crimea was to protect the minority Russian population living in Crimea. The only justification was to get votes in future president elections. We call this ph
521.
▲
by
bvrmn
5y ago
I'm russian by the way. And we can get arrested for single like in social media. Please don't tell me about propaganda.
522.
▲
by
bvrmn
5y ago
Russian and Belarus government don't protect their people in any way.
523.
▲
by
bvrmn
5y ago
Some generic registers (r1, r2...) would be easy to implement and allocate on translation step.
524.
▲
by
bvrmn
5y ago
Examples in tips don't work due to input size limit.
525.
▲
by
bvrmn
5y ago
If you data to join looks like not very huge dictionaries[1] (locations, types, etc) then ClickHouse can show amazing speeds. I had no any problems with a speed of usual joins though. [1] https://clickhouse.com/docs/en&
526.
▲
by
bvrmn
5y ago
> I'm now hoping to be able to go to St Petersburg, just to walk around. You'd better to hurry. Historic districts are in a sad state and city administration wants do nothing about it. It's pretty depressive atmosphere but
527.
▲
by
bvrmn
5y ago
It's a very strange benchmark. 1) Clickhouse allows to trivially setup a batch buffer on server side. It will always be faster on insert with low disk usage. 2) Suspicious axis on query benchmark. It seems it represents diff in query l
528.
▲
by
bvrmn
5y ago
Opposition is not a target audience of FacePay.
529.
▲
by
bvrmn
5y ago
Where I can read how modern k8s deals with persistent storage? It looks like after pg cluster shutdown you lose all data.
530.
▲
by
bvrmn
5y ago
Yep, from one end backend devs don't want to provide API tied to current month UI, on other end they tend to religiously stick to "REST" API and frontend guys need to fetch zillion requests. You can do marvelous things with s
531.
▲
by
bvrmn
5y ago
Parent talked about simple solution for address shortage. Like IPv6 is mere IPv4 with 128bit addresses.
532.
▲
by
bvrmn
5y ago
IPv6 is a light years away from simply "moar bits in address".
533.
▲
by
bvrmn
5y ago
> This course is about making you a better programmer. It is a very bold statement. There is nothing in course about how to fight complexity. Knowledge how to traverse an ADT tree helps a little unfortunately. But it is a great classic C
534.
▲
by
bvrmn
5y ago
CREATE TABLE AS can help. As well as CTEs.
535.
▲
by
bvrmn
5y ago
> fk_join(foo, 'bar_id', bar, 'quux_id', quux) This example has same amount of semantic entities as in SQL. Also there is USING. Also why author needs a strict modeling over json when one can model in native types? It
536.
▲
by
bvrmn
5y ago
TDD in classical form (understood by most devs) aka "one test per function/method" leads to poor design indeed. There is a little training about why this approach couples code with tests and what to do instead.
537.
▲
by
bvrmn
5y ago
Love this book. Yep, it has some strange thoughts. But the main idea about deep/shallow modules and their interfaces is a good one.
538.
▲
by
bvrmn
5y ago
The book's design approach suites TDD perfectly. Narrow deep modules allow to freely refactor internals and keep tests green.
539.
▲
by
bvrmn
5y ago
I don't see a difference between (eval s-expression) and eval("some code"). `eval` is inherently insecure without special restricted runtime. Pureness doesn't guarantee security.
540.
▲
by
bvrmn
5y ago
Yep, chrome works fine!
More ›