Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
arielb1
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
arielb1
5y ago
The people of the West Bank have engaged in terrorism against Israeli civilians up to 2005 - https://en.wikipedia.org/wiki/Second_Intifada - and that's not particularly ancient history.
2.
▲
by
arielb1
5y ago
Maybe that's the subject for the next blog post, but I think the main reason cancellation causes more troubles than ordinary IO problems, is that with ordinary errors you assume that the resource that suffered the errors is down and do
3.
▲
by
arielb1
5y ago
Its more that in Rust, async cancellation will occur exactly at await points, which are generally when you do IO.
4.
▲
by
arielb1
5y ago
The one system I've seen work is when each medium team (of say, 20-36 people) has a "devops team" of say 4-6 people that is responsible for all the infrastructure stuff, while the rest of the people can focus on product work.
5.
▲
by
arielb1
5y ago
The main difficulty I have with this method is that I don't have an easy way to pass a Python array to bash as an array of parameters.
6.
▲
by
arielb1
5y ago
When calling shell from bash (to use pipes etc.), I found it useful to pass variables via the environment, like this: def safe_call(command, **keywds): return subprocess.check_call(f'set -euo pipefail; {command}', sh
7.
▲
by
arielb1
6y ago
Not that surprising: CPUs can perform scalar in parallel with computation, so I would expect a few scalar ops to be free in any code that is not scalar-bound.
8.
▲
by
arielb1
7y ago
> The described attack utilized a malicious router. I understand how cross-interface packets can be used maliciously. I'm just trying to figure out the non-malicious use cases for them.
9.
▲
by
arielb1
7y ago
What's the configuration you're talking about? In the Wifi+Ethernet case, how do the routers know to send the packets towards the "right" interface, without the computer having the "right" IP address? I mean,
10.
▲
by
arielb1
7y ago
Is there a place where I can read about these cases?
11.
▲
by
arielb1
7y ago
How is this supposed to work? How will the packet destined to the WiFi IP address get to the Ethernet interface?
12.
▲
by
arielb1
7y ago
> nping --tcp --flags SA --source-ip 192.168.12.1 --dest-ip 10.8.0.8 -- rate 3 -c 3 -e ap0 --dest-mac 08:00:27:9c:53:12 Why is Linux accepting packets coming from one interface into an IP address belonging to a different interface? It fe
13.
▲
by
arielb1
9y ago
From the outside, it feels that most exploit chains on modern systems rely on 4 mostly-independent steps: 1. code execution in a worker process - typically a memory corruption 2. ACE in worker process to ACE in unsandboxed process 3. code e
14.
▲
by
arielb1
9y ago
For example, accidentally sharing a lock-less cache or a non-atomic reference counted pointer between threads. For example this code, which tries to send a reference-counted pointer between threads, which can cause the reference counter to
15.
▲
by
arielb1
9y ago
Engine failed during qualification testing, not acceptance testing - so it's a new design. If you don't occasionally blow an engine up on the stand you are either not testing hard enough or not pushing the limits hard enough.
16.
▲
by
arielb1
9y ago
But these are "customer protection" laws, which are intended to make sure people are informed and to make it reasonable to shop in the street, not to protect against people who intentionally try to break them. They are easily opte
17.
▲
by
arielb1
9y ago
The main criticism of HFT I have heard is that it makes life harder for institutional investors, which makes them less likely to take effort to invest well.
18.
▲
by
arielb1
9y ago
In Rust the "verified product" is the chain of bors merges - we even save build artifacts for each node in the chain for easy bisection of issues. A rollup creates a single bors merge for all the commits in them, so it's only
19.
▲
by
arielb1
9y ago
This is how you do high-school algebra, after all. As long as it is clear that all steps are reversible, it is ok.
20.
▲
by
arielb1
9y ago
> PTYs are "terminal servers"—they're just sucky ones from a time when a terminal had fewer expected capabilities. But, indeed, you can connect a TTY directly to e.g. a serial modem, and then the person dialling your mode
21.
▲
by
arielb1
9y ago
If you don't care about "making it pretty", you can make a cookie-cutter 3270-style UI pretty easily.
22.
▲
by
arielb1
9y ago
You need some sort of "terminal server" to maintain the session and station state, and I think screen's server does that thing quite well - I don't see a good reason to integrate the "terminal server" with the
23.
▲
by
arielb1
9y ago
While we are post-scarcity in respect to food production , we are not post-scarcity in food distribution in undeveloped countries. That turns out to be a much harder problem.
24.
▲
by
arielb1
9y ago
Performance is really not something you can design from scratch. If you are using Hadoop for a 1GB job, it's likely that you have architectural bottlenecks that will prevent you from scaling to multiple-terabyte workloads anyway. And i
25.
▲
by
arielb1
10y ago
The reason is of course that returning a variably-sized value to an already-existing address space is annoying. IOW that's what standard output (and pipes on /proc/self/fd/N) is for.
26.
▲
by
arielb1
10y ago
If you use some API other than system(3) - even if you literally use a shell-script - it's: 1) serialize data structure to semi-typed array of strings 2) pass array of strings directly to target program 3) have target program parse the
27.
▲
by
arielb1
10y ago
> Compiler writers actually have it pretty easy once the language is defined, which is a real honest to god spec. Compilers are typically developed in-parallel with the spec, exactly because you don't know what you want to spec befo
28.
▲
by
arielb1
10y ago
For buildings not collapsing, the main thing that matters is that the structure's strength is larger that the applied forces. Edge cases can be solved by adding more material, or more intelligently by having enough redundancy that you
29.
▲
by
arielb1
10y ago
Yeah. Software projects that are as complex as a house are typically called "the script that guy wrote a decade ago", and tend to work fairly well, even considering that use-cases for software have changed rapidly in the last few
30.
▲
by
arielb1
10y ago
`git checkout` is indeed a stupid command, because it has 3 modes: > git checkout [--detach|-b] <commit-ish> Set HEAD to a new place and sync the working-directory/index to it. > git checkout <paths> Copy paths from t
More ›