Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
prattmic
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
prattmic
7y ago
For sure, implementing Linux is no easy task, and there is no magic bullet. For compatibility testing, we have extensive system call unit tests [1] and also run many open source test suites. Language runtime tests (e.g., Python, Go, etc) ar
32.
▲
by
prattmic
7y ago
> From what I understand, basically a user-space program that wraps your container and intercepts all system calls. You can then allow/deny/re-wire them (based on a config). gVisor actually intercepts and implements the syste
33.
▲
by
prattmic
8y ago
As someone that works on gVisor, I disagree with this w.r.t. our project. i.e., the existence of our go_generics tool is not an obvious indication that we need generics in the language. A bit of history: this tool was originally created spe
34.
▲
by
prattmic
8y ago
Chrome OS is adding Linux container support, and it looks like VS Code works: https://kmyers.me/blog/chromeos/running-visual-studio-code-o... Docs: https://chromium.googlesource.com/chromiumos/
35.
▲
by
prattmic
8y ago
There are two primary strengths that gVisor provides over the seccomp model, the second of which you've actually alluded to above. 1. Layered security While seccomp allows users to limit the attack surface on the kernel, the applicatio
36.
▲
by
prattmic
9y ago
> Now, attempting to link a standalone executable without a '_start' symbol, on the other hand... GNU ld and gold both support --entry to change the entry point. Alternatively, you can specify it in your linker script. https:&
37.
▲
by
prattmic
10y ago
This talk is also discusses the adversaries: https://www.youtube.com/watch?v=0knR6vXba7g
38.
▲
by
prattmic
10y ago
Usually this happens on Linux because an application is using too much memory and the kernel is spending tons of resources reclaiming memory to prevent a system OOM. The system can easily slow to a crawl as memory accesses and allocations a
39.
▲
by
prattmic
10y ago
I did some experimentation last night as well. I suspected a lot of the cost came from the unmapping the files and the required invalidations and TLB shootdowns required to do so. I made rg simply not munmap files when it was done with them
40.
▲
by
prattmic
10y ago
> - Processes should be able to reserve some % of both CPU and I/O bandwidth. So you can have video players, games, etc. which remain perfectly smooth no matter what other processes are running at the same time. It is far from the n
41.
▲
by
prattmic
10y ago
- The initial mapping of each file in any thread must halt all of the threads which are otherwise active. - Every page fault in any mapping must also halt all of the threads. These are certainly not the case on Linux, and I&#
42.
▲
by
prattmic
10y ago
This is not quite right. M's are OS threads. P's are processing units, on which goroutines are scheduled. There are exactly GOMAXPROCS P's. P's are scheduled to run on M's, but there may be more M's than GOMAXP
43.
▲
by
prattmic
10y ago
Within the API, proto3 does not have the concept of field presence. All fields are "present" and default to their type's zero value. Since the client can handle this, there is no need to explicitly serialize default values.
44.
▲
by
prattmic
10y ago
It is only over 10 years, but Vanguard has a short analysis of Dollar Cost Averaging at https://pressroom.vanguard.com/nonindexed/7.23.2012_Dollar-c...
45.
▲
by
prattmic
11y ago
I don't know if someone has already written one, but a commit-msg hook could certainly achieve this. http://git-scm.com/docs/githooks
46.
▲
by
prattmic
11y ago
vim.tiny is installed by default, though I don't believe the vi symlink is installed by default.
47.
▲
by
prattmic
12y ago
I've found that turning WiFi off and on again will also reset the 'poor connectivity' decision.
48.
▲
by
prattmic
12y ago
The Go build system uses the Plan 9 assembler, which is explicitly simplistic to discourage the use of assembly except when there is a very compelling case for it.
49.
▲
by
prattmic
12y ago
> In C the Any type is void. Using the class definitions above this is entirely valid and produces no warnings: > void v; > struct t1 = v; I assume you mean a pointer to void here. You explicitly cannot have a void value, as voi
50.
▲
by
prattmic
12y ago
If I recall correctly, at least some of the STM32F4 timers can be clocked at the same frequency as the system clock, so 168MHz maximum. The GPIOs can be configured with a maximum 100MHz clock, though your software likely cannot read the reg
51.
▲
by
prattmic
13y ago
With regards to the ASCII table: `man ascii` I searched for it for ages before realizing that it has been right there at my fingertips for ages.
52.
▲
by
prattmic
13y ago
We shall see in a few days. http://www.google.com/trends/explore?q=tahr#q=tahr%2C%20trus...
53.
▲
by
prattmic
14y ago
Try the "Custom range..." under "Time". https://www.google.com/search?q=special+education+spending&#...
54.
▲
by
prattmic
14y ago
You can use "layout asm" to see the dissassembly as you step through your program. "layout reg" will then split the view and show you the registers at the same time.