Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
the-lazy-guy
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
31.
▲
by
the-lazy-guy
4y ago
You probably know that, but there is smartparens mode which does similar magic to non-lisp languages: https://github.com/Fuco1/smartparens
32.
▲
by
the-lazy-guy
4y ago
It is written in the linked README, but I will state it here. Rust checks integer overflows at runtime (or not at all, if building for maximum speed). It is safer than not checking at all. But costs performance and can lead to (predictable)
33.
▲
by
the-lazy-guy
4y ago
Yep, you don't, as long as you want to return a local object. I know that copy elision for returns is not a permitted optimization anymory but a mandatory behavior (since C++11?). And it is a common pitfall to use unnecessary std::move
34.
▲
by
the-lazy-guy
4y ago
std::move is not only about performance. It is about being able to disallow destructive copies of certain types. I.e. unique_ptr can not be copied, and auto_ptr can. Can you write perfectly functioning code without these features? Sure! You
35.
▲
by
the-lazy-guy
4y ago
I think we are in the dead-end in this discussion. Thanks for your time.
36.
▲
by
the-lazy-guy
4y ago
> General graphs are, as I noted, better handled by decoupling ownership from connectivity, as is almost always quite easy. Let me reiterate once again. Decopling of ownership from connectivity does not solve any correctness problems. In
37.
▲
by
the-lazy-guy
4y ago
ML and Haskell are languages with garbage collection. In case of Haskell it is also pure and lazy which makes it a huge PITA to use for any non-trivial non-hierarchical datastructures. You can look at Okasaki's book to see what level o
38.
▲
by
the-lazy-guy
4y ago
> And, if you think that a type system can be no help with some family of data structures, it can only because you are unfamiliar with powerful type systems. I am. Would you please point me at some things to study? The best I can imagine
39.
▲
by
the-lazy-guy
4y ago
> When the type system accurately represents relationships, there is no need for users of a data structure to be careful to obey rules. Of course. Unfortunately sticking everything into an array and pointing to things via integers instea
40.
▲
by
the-lazy-guy
4y ago
I think you didn't get the point. If you represent references between objects as integers, you are back to having no help from compiler in case you keep a reference (index) longer than the object exists in a sensible state. This works
41.
▲
by
the-lazy-guy
4y ago
Thanks for the excursion into data oriented design. Now think about the fact that API provided by browser to JS is actually stateful. And you have to make a lot of things mutable. That is an external constraint that a lot of things in the b
42.
▲
by
the-lazy-guy
4y ago
Probably, you rarely see these errors because you have never been a part of team making a comparably complex system which is used literally by billions of people and being exploited by multiple hackers. Also trying to implement certain algo
43.
▲
by
the-lazy-guy
4y ago
Millions of businesses run on Microsoft platforms and software developed on/for Microsoft platforms for decades. I think you are painting darker picture than it really is. Or please elaborate a little what you mean by "betraying&q
44.
▲
by
the-lazy-guy
4y ago
You could do something like primitive inline cache. Store "version" of the globals in another variable. Each time globals are modified - bump the version. For each call-site and/or keep what the global name is resolved to +
45.
▲
by
the-lazy-guy
4y ago
1. Fair point. I did think about that later. Anyway, the only veto power the "golden share" has, is about transfer of ownership. 2. You are talking abut PIF board. I am talking about Yandex board. 2 of 12 Yandex board members are
46.
▲
by
the-lazy-guy
4y ago
Yandex did have a Dutch datacenter when it planned the expansion in Turkey (and other countries later). That expansion didn't work out and that datacenter was closed. Taking that aside, I wouldn't say that Yandex is incorporated i
47.
▲
by
the-lazy-guy
4y ago
1. Do you have examples when the "golden share" rights were excercised? Or which company decisions were actually impacted by it? "veto right" != "control". Othrwise we could say that Russia controls UN security
48.
▲
by
the-lazy-guy
4y ago
I can't speak for other companies mentioned (for most of them Russian government is the biggest shareholder, so I think you are right), but Yandex is not and has never been controlled by people close to Putin. I would like to see examp
49.
▲
by
the-lazy-guy
4y ago
I think maintaining a directory of binary files and using it at runtime is a lot better in the long run. Either through a separate build step which embeds them into the test binary. Or via proper env setup where tests actually know how to f
50.
▲
by
the-lazy-guy
4y ago
> I know that he's one of the people dependent on the Putin's government to protect them. Would you give examples of this protection? Or the source of your knowledge. There is a clear definition of "oligarch" in Russi
51.
▲
by
the-lazy-guy
4y ago
Would you mind saying what oligarch owns the company? It is a publically traded company. https://ir.yandex/shareholder-structure Arkady Volozh is a rare case of a (very) rich man in Russia who actually created his wealth by
52.
▲
by
the-lazy-guy
4y ago
You are wrong, unfortunately. https://www-moscowtimes-ru.translate.goog/2022/04/19/vlasti-...
53.
▲
by
the-lazy-guy
5y ago
Thanks for the explanation. English is not my native language and I read the comment as if the commenter had fundamental disagreements with the author of the PR but had to agree with him on this particular point about license terms.
54.
▲
by
the-lazy-guy
5y ago
How exactly do you fundamentally disagree with the author of the PR? He literally did no statements beyond saying that this is not an Apache License anymore.
55.
▲
by
the-lazy-guy
5y ago
The only person deeply involved in Haskell at MSR Cambridge was Simon Peyton Jones. And he was Senior Principal Reserarcher. You can look up the total compensation for that level on public salary sharing websites yourself. You are off at le
56.
▲
by
the-lazy-guy
5y ago
That is one interpretation. Another interpretation is that in pursuing academic career requires a certain attitude towards studying which people growing in a family of academics are a lot more likely to have. In STEM it makes a lot more sen