Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
fathyb
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
fathyb
2y ago
> On macOS memory can be paged to/from disk. On iOS it isn’t and applications must free memory when asked or be terminated Not sure what you meant by that, you always could `mmap` files into memory on iOS. Back in the 32 bits days t
2.
▲
by
fathyb
2y ago
Apple advertised the first iPhone to run OS X: https://youtu.be/VQKMoT-6XSg?t=506
3.
▲
by
fathyb
2y ago
> on the server that is hosting this service I’m not sure if it changed, but last time I heard HN was running on FreeBSD: https://news.ycombinator.com/item?id=16076041 > just imagine how much performance could be gain
4.
▲
by
fathyb
2y ago
If anybody is interesting in learning more about that smearing campaing: https://www.ajiunit.com/investigation/the-labour-files > An investigation based on the largest leak of documents in British political history.
5.
▲
by
fathyb
2y ago
Agreed. For spicier chords also recorded by the Nat King Cole Trio on the same set check out Mona Lisa: https://www.youtube.com/watch?v=NIDX18Xl16s
6.
▲
by
fathyb
2y ago
Link for Europe: https://archive.ph/IHdjm
7.
▲
by
fathyb
2y ago
Now imagine how limited computers are with their ability to count to only 1.
8.
▲
by
fathyb
2y ago
Isn't because in Cars the character itself is the IP, not the actor? For example, if Owen Wilson started cosplaying as the Cars character and making money out of it, he could be sued. Reminds me of an Archer bit: https://yo
9.
▲
by
fathyb
2y ago
> I don’t know if signatures are verified before or after running but the binary probably won’t even run without being signed by a paying Apple Developer anyways. It's before. You can code sign and verify macOS binaries with any cer
10.
▲
by
fathyb
2y ago
Isn't opioid addiction the root cause? People dying of fentanyl are mostly opioid addicts who started with prescription meds [1] such as Oxycontin. Heroin is close to fent in lethality, and oxycodone is next in line [2]. [1] https:&#x
11.
▲
by
fathyb
2y ago
I didn't know browser vendors supported WASI! I said that as some of us do not use WASI at all, just WebAssembly itself, so they can save some time by not reading this if they're not interested in WASI and/or its limitations.
12.
▲
by
fathyb
2y ago
I agree, my personal take: if you don't want to get your hands dirty, WebAssembly is not ready for you yet. It'll take at least 5 more years before the tooling gets into a state where things should just work (especially DWARF supp
13.
▲
by
fathyb
2y ago
> If you are using WebAssembly in a web browser then you are good, WASI does not concern you. In case you absolutely do not care for WASI but love WebAssembly for the web.
14.
▲
by
fathyb
2y ago
Just had it too, refreshing worked.
15.
▲
by
fathyb
2y ago
> moving between release or debug affects nothing I'd start with that, it's an obvious red flag. Switching between both should create huge differences. Also look into `wasm-opt` from the Binaryen project for post-link optimizat
16.
▲
by
fathyb
2y ago
It really depends on what you're using. If you use Rust with `wasm32-unknown-unknown`, you'll likely get small binaries (<200 kB). If you use C++ and Emscripten with all features enabled, then yeah you'll have multiple meg
17.
▲
by
fathyb
2y ago
Alacritty uses OpenGL ES 2.0 which is not deprecated. It's shipped OOB in macOS through the ANGLE project by Google, mainly because Safari depends on it to provide WebGL support (it's kind of OpenGL ES for JavaScript). ANGLE trans
18.
▲
by
fathyb
2y ago
> The iPads have had the hardware in the M-series chips and the software in the form of Apple's hypervisor framework in iPadOS for a couple of generations now, but Apple hasn't enabled it to be used officially. They removed the
19.
▲
by
fathyb
2y ago
An allocator is free to only `mmap` addresses that are within a range. I think jemalloc could allow you to do that using custom arenas.
20.
▲
by
fathyb
2y ago
Makes it easy to migrate from containers to VMs using the same tooling.
21.
▲
by
fathyb
2y ago
That makes a lot of sense, thank you!
22.
▲
by
fathyb
2y ago
If this was intentional, shouldn't it also affect `mach_absolute_time` which is used by the standard libraries of most languages and accessible to Swift? Also note you can get precise JavaScript measurements (and threading, eg. using p
23.
▲
by
fathyb
2y ago
I believe `CACurrentMediaTime` depends on `QuartzCore.framework` and `Date` is not monotonic. I would also find it confusing if I found code doing something like network retries using `CACurrentMediaTime`.
24.
▲
by
fathyb
2y ago
`Box<[u8]>` stores the pointer and its length (2 x size_t), `std::unique_ptr<const uint8_t[]>` only stores the pointer. That's for slices, for dynamically sized types (eg. `Box<dyn ToString>`) it contains a pointer to
25.
▲
by
fathyb
2y ago
The Rustonomicon is a good start, on fat pointers: https://doc.rust-lang.org/nomicon/exotic-sizes.html > Because they lack a statically known size, these types can only exist behind a pointer. Any pointer to a DST c
26.
▲
by
fathyb
2y ago
Another reason it is not true: Rust has fat pointers, eg. `std::unique_ptr<const uint8[]>` and `Box<[u8]>` both contain the same allocation data, but `Box` will be 128-bit on 64-bit systems.
27.
▲
by
fathyb
2y ago
I think that's where you're confused: `Arc` does not do any synchronization, again it's pretty much the same as `std::shared_ptr` (hence the name Arc: Atomically Reference Counted). Your `Locker` does not do what `Arc` does,
28.
▲
by
fathyb
2y ago
What is worrying is what it’ll mean for the access to the West Bank and Gaza, as they’re currently the only international media outlet on the field, and are documenting various atrocities that are currently being looked at by the ICJ.
29.
▲
by
fathyb
2y ago
Both are true, Rust just has more restrictions. It’s not completely equivalent, but you can think of `Arc<T>` as `std::shared_ptr<const T>` as in if you use `unsafe` or `const_cast` you can bypass mutability restrictions. Otherw
30.
▲
by
fathyb
2y ago
Rust `Box` = C++ `std::unique_ptr`, both have the same ABI (just pointers) Rust `Arc` = C++ `std::shared_ptr` Rust `Rc` = C++ `std::shared_ptr` but using a simple integer instead of an atomic so it is not thread safe `Arc` and `Rc` do not a
More ›