Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
rand_r
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
rand_r
1mo ago
That's fine, but rate limiting is a solved problem at this point. They need to rate-limit free accounts and be realistic about their limits instead of letting the system fail.
2.
▲
by
rand_r
4mo ago
> all viewpoints covered from you populace This is the core of the issue. We don’t actually want all viewpoints represented because that wouldn’t by itself produce any value. You want someone to come up with the fundamental theorems of
3.
▲
by
rand_r
7mo ago
> When I watch a movie, I don't care about the artist's life. I care about character life, that's very different. It may seem like this, but up to now, you haven't been able to divorce a story from its creator because
4.
▲
by
rand_r
9mo ago
Only in as much as their product is a pure commodity like oil. Like yes it’s trivial to get customers if you sell gas for half the price, but I don’t think LLMs are that simple right now. ChatGPT has a particular voice that is different fr
5.
▲
by
rand_r
1y ago
There is no difference between “def f(x={})” and “def f(x=dict())”, unless you have shadowed the dict builtin. They both have exactly the same subtle bug if you are mutating or return x later.
6.
▲
by
rand_r
1y ago
You can use “set()”. Introducing more weird special cases into the language is a bad direction for Python.
7.
▲
by
rand_r
1y ago
This is something you see in movies. Cash is by nature not traceable, so invalidating notes after issue would make it impossible to trust any cash transaction.
8.
▲
by
rand_r
1y ago
> to see if the serial numbers are out of circulation. Cash cannot be invalidated like this. It would ruin the value of all cash since you could no longer trust cash from anyone. Only damaged notes are taken out and replaced by the gover
9.
▲
by
rand_r
1y ago
Not sure what you mean!? Locks, at their core, are not implemented by languages. They’re feature of a task runtime e.g. Postgres advisory locks or kernel locks in a Posix OS.
10.
▲
by
rand_r
1y ago
Race conditions are generally solved with algorithms, not the language. For example, defining a total ordering on locks and only acquiring locks in that order to prevent deadlock. I guess there there are language features like co-routines&#
11.
▲
by
rand_r
1y ago
Yes, exactly. Latency is the killer feature. Doing a video call with extra 50ms of latency is noticeable.
12.
▲
by
rand_r
2y ago
This is a great point. Life is tough because we are all competing in a game. Tweaking the rules of the game so that each basket is worth more points doesn’t make the game easier for any player. From Henry George: > Now, to produce wealth
13.
▲
by
rand_r
2y ago
I don’t know why they couldn’t do the friggen obvious move of asking the police to unblock the roads by force, and impounding the vehicles for repeat offences. Going after bank accounts was a coward move that never made sense. If I just sat
14.
▲
by
rand_r
2y ago
Nothing prevents explicit error handling in Python either. Forcing explicit error handling just creates verbosity since no system can functionally prevent you from ignoring errors.
15.
▲
by
rand_r
2y ago
> never handled correctly I’ve seen this argument, but if you look at real golang code and examples, it’s just a bunch of “if err <> nill” copy pasta on every line. It’s true that handling errors is painstaking, but nothing about g
16.
▲
by
rand_r
2y ago
Interesting! I wonder how this plays into AWS pricing. They charge a flat fate for MBps of IO. But I don’t know if they have a rule to round up to nearest 4K, or they actually charge you the IO amount from the storage implementation by trac
17.
▲
by
rand_r
2y ago
I know what you mean, and you’re probably right, but there’s a deeper problem, which is the overuse of adjectives and overall wordiness. It’s quite jarring because it reads like someone trying to impress rather than get an important message
18.
▲
by
rand_r
2y ago
This is sort of an aside, but a very interesting thing about Postgres is that it can efficiently combine independent column indexes together, so there is much less of a need, compared to older databases, to even create multi-column indexes.
19.
▲
by
rand_r
2y ago
Something I’ve been curious about recently, is how did Linux get away with straight C for so long, considering how complex of a project it is. Did they end up reimplementing a bunch of C++ features? Actually, regarding sophisticated project
20.
▲
by
rand_r
2y ago
Using hardware floating point types is not suitable if mathematical correctness matters, and is largely a deprecated practice. Check out Python’s fraction module for example, for exact arithmetic[0]. [0]: https://www.geeksforgeek
21.
▲
by
rand_r
2y ago
It is true that DB compute is relatively expensive, but doing a join on the DB itself is obscenely more efficient vs doing it manually in a nested loop on an app server. Also, the DB is generally a lot smarter than doing quadratic operation
22.
▲
by
rand_r
2y ago
Yes, exactly! We found out the hard way just how unreliable Redis-based locks are, and switched to Postgres locks. It works reliably since our code is already in a Postgres transaction. Created a “lock” table with a single string key column
23.
▲
by
rand_r
2y ago
Development speed and conciseness is what sells Python. Something simple like being able to do `breakpoint()` anywhere and get an interactive debugger is unmatched in Go.
24.
▲
by
rand_r
2y ago
Well the 192 case would probably have an external IP + Port uniquely mapped to it in the router’s NAT table. I think you’re missing the larger point though. No one said IPs are exclusively used as GUIDs. Just that they are used as GUIDs, wh
25.
▲
by
rand_r
2y ago
Because of NAT, it’s actually “IP + Port#” that is globally unique, and ultimately associated with a single physical network interface on a device (e.g an ethernet port on a PC). There’s exceptions like broadcast IPs, but the point is that
26.
▲
by
rand_r
2y ago
It’s a free market because buying an iPhone is a choice. It happens to be an incredible product, so may not feel like a choice, but the experience was designed by one company and put into the market as an offering. Apple has no control over
27.
▲
by
rand_r
2y ago
I’m not a fan of the control, but this is the free market at work. Nothing stops you or any other company from creating a competing phone with its own app ecosystem. It’s really not for the government to dictate to companies how their produ
28.
▲
by
rand_r
2y ago
If done comprehensively, this strategy has the potential to be much better than a traditional stacktrace because you can embed local variables within each additional error context string. The main problem with traditional stacktraces is tha
29.
▲
by
rand_r
2y ago
Creating a profitable car company is a crazy high bar though. Hasn’t been done for over a hundred years in the USA, and that too, with a new kind of engine and single-handedly making EVs viable through its supercharger network (all other op
30.
▲
by
rand_r
2y ago
Amen, brother. Fact is, all critical limitations with IPv4 were hacked around by necessity, so the average user doesn’t care. The main failure case is that it’s a painful or possibly impossible to setup your own public internet server from
More ›