Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ernst_klim
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
91.
▲
by
ernst_klim
3y ago
I think it's doomed to fail. If I value stability over features, I will obviously take C89, C99 or some C++ standard. Besides, we truly need some revolution in system languages, I believe. ATS, F /Low and Rust are really good fir
92.
▲
by
ernst_klim
3y ago
You don't have to use an array based on realloc. You can use a vector based on linked list of memory pages, or linked list if you need deletion (or gap buffer or any other data structure depends on your needs).
93.
▲
by
ernst_klim
3y ago
That's correct. And you operate with weak pointers at that moment with no help from the type system. So basically that's all about bypassing the too incomplete type system.
94.
▲
by
ernst_klim
3y ago
> Which seems perfectly reasonable for a new game. Right, I'm okay with that. But "being a visual marvel even on PS5 era GPU" sounds not at all the same as "being a visual marvel even on older GPU" to me. I do co
95.
▲
by
ernst_klim
3y ago
> the minimum requirements for Alan Wake 2 are 1080p at 30FPS with low graphics, with an Intel i5-7600K CPU, RTX 2060 GPU, and 16GB RAM I think we have different definitions of "older" then. Does the game runs decently on somet
96.
▲
by
ernst_klim
3y ago
These are two issues, which a theoretically orthogonal but in practice not so much. These are known as soundness and completeness. A good talk on topic [1] Rust will reject a lot of sound programs, and that's a huge performance hit. Yo
97.
▲
by
ernst_klim
3y ago
I agree. I feel far more productive in C and C++ than in Rust at that point. Rust feels like totally missing the sweet spot for me. It's way too pedantic about low level stuff for writing higher level applications, but way too complica
98.
▲
by
ernst_klim
3y ago
> Current cores need predecoders to find instruction boundaries which is just not needed with fixed width instructions The question is, how much overhead does it cause compared to the whole picture. There are empirical evidences the answ
99.
▲
by
ernst_klim
3y ago
> Arm is generally more efficient than x86 This is not entirely true in general sense. Yes, a typical ARM CPU is more energy efficient indeed, but theoretically nothing prevents x86 to be nearly as efficient. The main reason why Apple si
100.
▲
by
ernst_klim
3y ago
> New cmp Package for Comparing Ordered Values https://pkg.go.dev/cmp@master I find this part of the type constraint design particularly lame. Here one can't extend the constraint over an arbitrary type, making the
101.
▲
by
ernst_klim
3y ago
I think the whitespace issue is mostly due to the ubiquity of touch interfaces. Even a good chunk of laptops do have touchscreens now, so deskop designers have to consider them even if they didn't eat the adaptive pill. With computer m
102.
▲
by
ernst_klim
3y ago
It's much worse than 2→3 transition as it seems to me. Python is a very slow language whose main advantage is relatively cheap and easy FFI with bindings to all imaginable library already written. With breaking FFI you'll lose all
103.
▲
by
ernst_klim
3y ago
Never knew you can do it in Ruby too, thanks for sharing. I’ve missed that from python a lot.
104.
▲
by
ernst_klim
3y ago
I'm learning perl right now and I'm bewildered at how could I overlook it for such a long time. With all its quirks and strange design decisions (especially compared to elegant languages like ML or Scheme), it has it's own ki
105.
▲
by
ernst_klim
3y ago
I don't think there's any kind of global anti-drug conspiracy. Anti-drug fear mongering is a byproduct of few factors: ignorance (people confuse crack, LSD and say MDMA, labeling everything as drug), valid fears (LSD was legal whi
106.
▲
by
ernst_klim
3y ago
> It's easier to complain about rape when you're a sex worker if what you're doing is legal It's harder to combat rape when you have to meet client in a more secret place, and when you can't take a photo of clien
107.
▲
by
ernst_klim
3y ago
It's not ridiculous at all, just a blatant and obvious example of populist policy. Just like war on drugs or subsidizing demand to counter real estate price increase. With issues where people go emotional politics often goes this way,
108.
▲
by
ernst_klim
3y ago
> The simple truth is that men handled the vast majority of situations where combat was required I think you greatly overestimate how much combat people faced during prehistoric times. Population was distributed sparsely, most food was g
109.
▲
by
ernst_klim
3y ago
> we spent our nights waiting around the fire in case of tiger I think it's the opposite. During the prehistoric times most food was actually gathered by women IIRC, and both sexes could use fire to scare away predators, so men were
110.
▲
by
ernst_klim
3y ago
As someone who did competitive weightlifting early in my life I don't think it's true. First of all, a healthy body is very good at adaptation, i.e. if properly trained, your bones, muscles and other tissues get thicker and less p
111.
▲
by
ernst_klim
3y ago
As an introvert with Asperger and an adamant pro-office guy I can't relate, what you describe sounds more like social anxiety or sociophobia, and require proper treatment (also facing (semi)professional conversations is a good treatmen
112.
▲
by
ernst_klim
3y ago
> modules are worst I think the opposite, modules are vastly superior to typeclasses in regards to, well, modularity. > In Haskell, the type class database is global and there is no duplication. That's not a bug, but a feature of
113.
▲
by
ernst_klim
4y ago
> Emacs Lisp is probably the worst language Strongly disagree. With lexical bindings it's on par with contemporary strongly typed dynamic languages like python. It does even have fancy pattern matching with pcase library built in, p
114.
▲
by
ernst_klim
4y ago
Recently I've had an argument with somebody bragging about they managed to bypass goto with writing following mess: do { r = allocate_resource(); if (!r) break; } while (false); When I've said that
115.
▲
by
ernst_klim
4y ago
I have no estimates, only my experience from visiting these countries, but I found an article regarding Georgia [1]. But it's pretty widespread, Navalny, the main Putin opponent uses crypto as the main source of donations since all his
116.
▲
by
ernst_klim
4y ago
> but it would seem preferable if they could be paid in US dollars There are USD-bound cryptos like USDT, it's all about infrastructure. The point is that using Visa, Swift and other infra is usually bad option. In the 90s people us
117.
▲
by
ernst_klim
4y ago
> Can regular people do anything with it? No. It's used a lot in the third world. In Georgia you can buy a burger paying crypto via NFC terminal. I also know people who get their salaries in crypto. And it's used a lot for dona
118.
▲
by
ernst_klim
4y ago
> Literally my argument. Literally not. You've quoted Paradox of Intolerance applied to abortion debates . Now read the quote and try to understand why it's not applicable.
119.
▲
by
ernst_klim
4y ago
> Illegal abortion threatens society. That's not what Popper says. Popper literally says, quote: > I do not imply, for instance, that we should always suppress the utterance of intolerant philosophies; as long as we can counter
120.
▲
by
ernst_klim
4y ago
You and Popper have very different notion of "intolerance". By intolerance here Popper means something which threatens open society and freedom of expressions, not "any opinions I don't like" (and if you read litera
More ›