Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
K0nserv
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
61.
▲
by
K0nserv
9mo ago
> If you want to make pointers not have a nil state by default, this requires one of two possibilities: requiring the programmer to test every pointer on use, or assume pointers cannot be nil. The former is really annoying, and the latte
62.
▲
by
K0nserv
9mo ago
The current AI bubble seems like a bad proposition for most people regardless of how it shakes out. The way I've seen it described elsewhere is: either the bubble pops, causing a significant recession or it doesn't and loads of pe
63.
▲
by
K0nserv
9mo ago
Losing contact with the code is definitely on my mind too. Just like how writing can be a method of thinking, so can programming. I fear that only by suffering through the implementation will you realise the flaws of your solution. If this
64.
▲
by
K0nserv
10mo ago
Changes to multi-word pointers can cause UB due to race conditions in Go because only changes at the word level are atomic. See: https://blog.stalkr.net/2015/04/golang-data-races-to-break-m...
65.
▲
by
K0nserv
10mo ago
You can do TURN using TLS/TCP over port 443. This can fool some firewalls, but will still fail for instances when an intercepting HTTP proxy is used. The neat thing about ICE is that you get automatic fallbacks and best path selection.
66.
▲
by
K0nserv
10mo ago
> Yes, but the arguments why we need to replace C code with Rust was not that it is better by "helping the programmer check themselves" but that we need to switch to memory-safe languages because it "removes a whole class
67.
▲
by
K0nserv
10mo ago
Having spent time around cross platform rollouts and development I think something like Crux is the best approach. Building a complete UI framework to rival what iOS and Android provide natively is a monumental task.
68.
▲
by
K0nserv
10mo ago
Finished an initial version of this https://github.com/k0nserv/plid
69.
▲
by
K0nserv
10mo ago
Finished an initial version of mine https://github.com/k0nserv/plid
70.
▲
by
K0nserv
10mo ago
Everything is solely the responsibility of the programmer. The strength of Rust as a language is that it helps the programmer check themselves before they wreck themselves. The critique of C would be that it provides far too little support
71.
▲
by
K0nserv
10mo ago
Isn’t it obvious that the primary source of CVEs in Rust programs would be the portions of the program where the human is charge of correctness instead of the compiler? The relevant question is whether it results in fewer and less severe CV
72.
▲
by
K0nserv
10mo ago
It's important to note that the `unsafe` keyword is poorly named. What it does is unlock a few more capabilities at the cost of upholding the invariants the spec requires. It should really be called "assured" or something. Th
73.
▲
by
K0nserv
10mo ago
No knowledge of the business. But I think it's because of the underlying question that plagues Mozilla: How will that make money?
74.
▲
by
K0nserv
10mo ago
That is indeed interesting. I have slightly different goals for my version. I want everything to fit in 128 bits so I'm sacrificing some of the random bits, I'm also making sure the representation inside Postgres is also exactly 1
75.
▲
by
K0nserv
10mo ago
An additional thing I learned when I worked on a ulid alternative over the weekend[0] is: Postgres's internal Datum type is at most 64 bits which means every uuid requires heap allocation[1] (at least until we get 128 bit machines). 0:
76.
▲
by
K0nserv
10mo ago
Isn't part of this that inserting into a btree index is more performant when the keys are increasing rather than being random? A random id will cause more re-balancing operations than always inserting at the end. Increasing ids are als
77.
▲
by
K0nserv
10mo ago
On Thursday I learned about ulid[0] which I think really neatly solves the problem of text representation for UUID v7. However, I also like the idea of prefixed ids, although I haven't used them in anger. Yesterday I built most of a Po
78.
▲
by
K0nserv
10mo ago
This is the first comment of yours I responded to so I'm not continuing anything. You are not engaging in good faith. I will stop talking to you now
79.
▲
by
K0nserv
10mo ago
1. This doesn't really matter for the argument. Most of the time you can audit unsafe blocks, in some instances the invariants you are upholding require you to consider more code. The benefit is still that you can design safe interface
80.
▲
by
K0nserv
10mo ago
> Also you can't do self-referential strutcs. You mean in safe rust? You can definitely do self-referential structs with unsafe and Pin to make a safe API. Heck every future generated by the compiler relies on this.
81.
▲
by
K0nserv
10mo ago
It adds loads of latency for one. If you watch someone who is a competent screen reader user you'll notice they have the speech rate set very high, to you it'll be hard to understand anything. Adding an LLM in the middle of this w
82.
▲
by
K0nserv
10mo ago
More eyes are better, but more importantly code review is also about knowledge dissemination. If only the original author and the LLM saw the code you have a bus factor of 1. If another person reviews the bus factor is closer to 2.
83.
▲
by
K0nserv
10mo ago
I should've said, I went to high school in 2008 (in Sweden). I'm definitely not the dotcom generation.
84.
▲
by
K0nserv
10mo ago
I learned C++ first. Like many I wanted to make games so I started programming before high school. I think our first high school classes were also in C++ tbf.
85.
▲
by
K0nserv
10mo ago
Manual memory management is just one axis. Some others are: - `&mut T` which encodes that you have exclusive access to a value via a reference. I don't think there is any language with the same concept. - `&T` which encodes the
86.
▲
by
K0nserv
10mo ago
It's not quite a fully formed argument, but I'm coming to the view that Rust mostly requires less cognitive load than other languages. I'm coming at this from the perspective of "cognitive load" meaning, roughly &qu
87.
▲
by
K0nserv
10mo ago
I haven't played a while so I cannot comment. When I last played I spun up a server for my friend group to play on. This is the beauty of old school games like these, no need to rely on a company to keep servers running. In a way Warso
88.
▲
by
K0nserv
10mo ago
https://www.warsow.net/ is good and runs on pretty much everything. Plays like a mix between UT and Quake3.
89.
▲
by
K0nserv
11mo ago
This is not how `npm install` works. This misunderstanding is so pervasive. Unless you change stuff in `package.json` `npm install` will not update anything, it still installs based on package-lock.json. Quoting from the docs: > This com
90.
▲
by
K0nserv
11mo ago
That doesn't track (pun not intended). It's a binary state so either side has to be the default, they just changed which side the default fell on. Prior to the change no opinion expressed and expressed intent (in favour of trackin
More ›