Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
eklitzke
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
18 ms
·
151.
▲
by
eklitzke
4y ago
Even if they could do this they'd probably be forced to stay in the same business as Samsung supplying displays to third parties (e.g. all of the Google Pixel phones have Samsung displays). It's really hard to imagine Apple would
152.
▲
Signed Integer Compiler Optimizations
(stackoverflow.com)
2 points
by
eklitzke
4y ago
|
0 comments
153.
▲
by
eklitzke
4y ago
I don't think there are many applications where you can run the whole stack (including OS) in 128 MB of RAM, but where you also need a $700 CPU.
154.
▲
by
eklitzke
4y ago
People love parroting the meme of "Unix is old therefore it must be bad, we need something newer and modern, redesigned from the ground up" but it's always hard to get a concrete proposal from these folks. This article does a
155.
▲
by
eklitzke
4y ago
It is way more complicated than this because in any heterogeneous network environment you need to be really careful about what happens then you have new protocols like this interacting for shared resources. There are even TCP congestion con
156.
▲
by
eklitzke
4y ago
Those are weak bots though. Hikaru can't beat the strongest bots (nor can Magnus nor anyone else), he has videos on YouTube of him playing Stockfish and Komodo on the strongest settings.
157.
▲
by
eklitzke
4y ago
People already do optimizations like this all the time, when they're working on low-level code that can benefit from it. Sorting is actually a good example, all of the major sort implementations typically use quicksort when the array s
158.
▲
by
eklitzke
4y ago
Have you used the Google workspace tools? They also have tight integration of docs/meetings/chat/etc.
159.
▲
by
eklitzke
4y ago
I don't understand the comment in the post about how the vector including a large address space after .pop_back() could include private keys. Using the most literal interpretation of the post it sounds like the author doesn't unde
160.
▲
by
eklitzke
4y ago
In this case the code was using the .data() on a std::vector<char>, so it wouldn't have even been possible to use something like std::stoi (or something nicer like absl::SimpleAtoi) since the C++ routines need a std::string (or a
161.
▲
by
eklitzke
4y ago
As you pointed out it's a DOS in the sense that causing a process to fork/crash is much more expensive than a regular denied connection, so it would be easier for an attacker to overload the server using this technique than it wou
162.
▲
Lenovo ThinkBook Plus Gen 3 integrated secondary display
(gitlab.freedesktop.org)
3 points
by
eklitzke
4y ago
|
0 comments
163.
▲
by
eklitzke
4y ago
I agree that whether or not they'll allow JIT is an orthogonal issue based on security policies, but I don't think it's out of the question. The security argument to not allow a JIT is that mapping code segments as executable
164.
▲
by
eklitzke
4y ago
The profit margins of cloud providers are nowhere close to that. GCP and Azure currently lose money for Google and Microsoft, AWS is profitable but their profit margins are absolutely not 100x.
165.
▲
by
eklitzke
4y ago
The same applies to being a manager though. You're not going to get promoted forever in any role, at some point you'll hit a terminal level, whether that's in an IC track or a management track. And it's not a problem as
166.
▲
by
eklitzke
4y ago
This is easy to do and not looked down upon at FAANGs, but harder to do at smaller companies.
167.
▲
by
eklitzke
4y ago
The point about the economics of running these models is an important one that slides under the radar a lot of times. The training costs for large language models like GPT are enormous, and the inference costs are substantial too. Right now
168.
▲
‘The Battery’s Dead’: Burnout Looks Different in Autistic Adults
(nytimes.com)
73 points
by
eklitzke
4y ago
|
69 comments
169.
▲
by
eklitzke
4y ago
It's the Book of Revelation, not Revelations.
170.
▲
by
eklitzke
4y ago
First of all the change was made upstream in git, which is not controlled by GitHub (even though GitHub does have some developers who work on git). And the stated reason (not relying on third party tools/libraries) is compatible with m
171.
▲
by
eklitzke
4y ago
I was given a similar interview problem in one of my first job interviews (I think at Google?) 15 or so years ago. I don't remember the exact question, but I do remember that I needed to use Newton's method to solve it. However I
172.
▲
by
eklitzke
4y ago
This isn't the same thing though. A flex array includes the data inline in the struct so allocating a struct with a flex array at the end requires just one call to malloc and avoids a pointer indirection when indexing into the array.
173.
▲
by
eklitzke
4y ago
Obviously you should swap the bindings for _ and - (so you press shift for dash instead of the other way around). If you're really perverse you can do the same for 9/( and 0/), because most programmers type parens way more of
174.
▲
by
eklitzke
4y ago
If it's twice as much finishing work it's also twice as much "fast" work (the first 80%). The ratio of time spent between the easy stuff and the hard stuff shouldn't change, at least not just based on a square foota
175.
▲
by
eklitzke
4y ago
https://chrome.google.com/webstore/detail/hacker-news-enhanc...
176.
▲
by
eklitzke
4y ago
You're correct but sudoedit itself needs to parse the file list to know which files to copy to temporary files as you describe. So in this case you're tricking sudoedit into thinking you want to edit a different file than the one
177.
▲
by
eklitzke
4y ago
Sudo basically has an ACL-like system where you can specify exactly which users/groups can execute which commands as root. So you can say user foo can execute commands X, Y, and Z as root and user bar can execute commands W, Y, and Z a
178.
▲
by
eklitzke
4y ago
That makes sense and isn't something I had considered, but a 32-bit displacement vs an 8-bit displacement just leads to bloat in binary size, it doesn't affect how many cycles your movs jumps etc. take. There are some second order
179.
▲
by
eklitzke
4y ago
DWARF perf sampling works fine but has really high overhead, requires reading a large amount of stack space to find each prior frame, and the current tooling for generating perf reports from DWARF samples is really slow. You could definitel
180.
▲
by
eklitzke
4y ago
Just in case people don't know, you can get the same behavior with C or C++ by invoking GCC or Clang with -ftrapv. I don't know about Rust, but for C and C++ -ftrapv will only fault on signed integer overflow, as signed integer
More ›