Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bluetech
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
bluetech
1y ago
Which Linux version did you use for the io_uring tests? Unless I missed it I don't see it mentioned.
2.
▲
by
bluetech
2y ago
> `ctx.Value` is an `any -> any` kv store that does not come with any documentation, type checking for which key and value should be available The docs https://pkg.go.dev/context#Context suggest a way to make it type-
3.
▲
by
bluetech
3y ago
That's not going to happen. Check out "induced demand".
4.
▲
AWS Application Load Balancer now supports TLS 1.3
(aws.amazon.com)
3 points
by
bluetech
3y ago
|
0 comments
5.
▲
by
bluetech
3y ago
Some discussion on zio in loom-dev mailing list recently: https://mail.openjdk.org/pipermail/loom-dev/2023-March/00535...
6.
▲
by
bluetech
4y ago
> Object.freeze does make an object immutable If you look at the Hardened Javascript example: const makeCounter = () => { let count = 0; return harden({ incr: () => (count += 1), decr: () => (
7.
▲
by
bluetech
4y ago
What advantage does pg_repack have when you only rebuild an index? Or do you mean it has advantage when pg_repack is run on the entire table?
8.
▲
by
bluetech
5y ago
> One possible solution currently considered is to ask Article 5 protections from NATO for the duration of the membership process. The report discusses this, and mentions two reasons against doing that: - What happens if you do it, and t
9.
▲
by
bluetech
6y ago
Basically, their answer is yes. First, under this system, long-term speculation is not really viable, due to the high tax. So the buyer must have some reason for paying higher than the price you set, which you don't see, i.e. you under
10.
▲
by
bluetech
6y ago
The book Radical Markets proposes the following tax (to replace most other taxes), quote: Every citizen and especially corporation would self-assess the value of assets they possess, pay a roughly 7% tax on these values and be required to s
11.
▲
by
bluetech
6y ago
Java actually doesn't need to add any features for it to support this, it needs to remove them. I recommend reading this excellect article: http://habitatchronicles.com/2017/05/what-are-capabilities/
12.
▲
by
bluetech
6y ago
This is so obviously what needs to happen, it's really surprising it's not a feature in all major languages by now. I bet in 10 years time, giving dependencies complete control would seem crazy. Here is an interesting proposal on
13.
▲
by
bluetech
7y ago
PSI is a perfect fit for htop. I sent a PR to add it some time ago ( https://github.com/hishamhm/htop/pull/890 ) but it hasn't been merged yet.
14.
▲
by
bluetech
8y ago
We've been using it for some time as well, not even with a random value, just `X-Entity-Ref-ID: null` works too. Found it through some obscure StackOverflow answer.
15.
▲
by
bluetech
8y ago
React has a built-in useReducer hook now as well: https://reactjs.org/docs/hooks-reference.html#usereducer
16.
▲
by
bluetech
8y ago
I think object-capabilities are one way to have much safer code reuse. Suppose a dependency exports a class UsefulService. In current languages, such a class can do anything - access the filesystem, access the network, etc. Suppose however
17.
▲
by
bluetech
8y ago
One reason I still use git grep is this: I have some minified .js files in the repository, which I don't want to be included in grep results. So I mark the files as binary in gitattributes, then git grep just says "Binary file foo
18.
▲
by
bluetech
8y ago
It is not as clear cut as you say, there appears to be some scientific discussion on this: https://en.wikipedia.org/wiki/Endurance_running_hypothesis
19.
▲
by
bluetech
8y ago
Have you heard of persistence hunting? Here's is a short documentary from the BBC: https://www.youtube.com/watch?v=826HMLoiE_o It is believed to be one of the oldest hunting techniques, and so would indicate that human
20.
▲
by
bluetech
8y ago
I think it would be neat if WebAssembly were embedded in other languages, like it is in JavaScript now. For example, suppose Python had a WebAssembly engine. I bet that could replace a lot of C extensions, and it would be as portable/u
21.
▲
by
bluetech
8y ago
I liked this bit, using the fastest compiler for each primitive: > ./do tries a list of compilers in compilers/c, keeping the fastest working implementation of each primitive. Before running ./do you can edit compilers
22.
▲
by
bluetech
8y ago
Well, surely you put the line somewhere? Would you depend on `leftpad`? How about `is-odd`? Your view of dependencies is very idealistic. And if I'd venture to guess - apologies if I'm wrong - young, at least to programming. I
23.
▲
by
bluetech
8y ago
Please see the comment I replied to.
24.
▲
by
bluetech
8y ago
A dependency for uuid4 is hardly needed: crypto = require('crypto'); function uuid4() { const bytes = crypto.randomBytes(16); bytes[6] = (bytes[6] & 0x0f) | 0x40; bytes[8] = (bytes[8] & 0x3f) | 0x8
25.
▲
by
bluetech
9y ago
A buffered channel can be implemented with two unbuffered channels + a goroutine + an array.
26.
▲
by
bluetech
9y ago
It can be changed at runtime. From proc(5), system wide limits: /proc/sys/kernel/pid_max > PID_MAX_LIMIT, approximately 4 million /proc/sys/kernel/threads-max > FUTEX_TID_MASK (0x3fffffff), [app
27.
▲
by
bluetech
9y ago
On the other hand, from Linus Torvalds: > I will, in fact, claim that the difference between a bad programmer and a good one is whether he considers his code or his data structures more important. Bad programmers worry about the code. Go
28.
▲
by
bluetech
9y ago
systemd should have a "whitelist" mode, where everything is locked down by default. Or at least, some /usr/share/doc/systemd/locked-down-example.service file with all of the relevant options set to "s
29.
▲
by
bluetech
9y ago
The line above has this: // This is safe since we check the return value. let sock = unsafe { libc::socket(libc::AF_INET, libc::SOCK_DGRAM, 0) }; if sock < 0 { return Err(Error::CreateSocket(IoError::last_
30.
▲
by
bluetech
9y ago
Django has an ALLOWED_HOSTS setting, which must be provided even in debug and test configurations. I'm surprised Wordpress doesn't have a similar setting; accepting any arbitrary Host can only cause trouble (at least for those uni
More ›