Hacker Newsnew | past | comments | ask | show | jobs | submit | yearolinuxdsktp's commentslogin

Java JIT compilers perform function inlining across virtual function boundaries… this is why JIT’d Java can outperform the same C or C++ code. Couple it with escape analysis to transfer short-lived allocations to be stack-allocated (avoiding GC).

Often times virtual functions are implemented in C to provide an interface (such as filesystem code in the Linux kernel) via function pointers—-just like C++ vtable lookups, these cannot be inlined at compile time.

What I wonder is whether code generated in C can be JIT-optimized by WASM runtimes with similar automatic inlining.


How do you compete with Nitro-based VMs on AWS with 0.5% overhead?

When running on bare metal, the CPU performance is within 1%, so usually quite well! Hardest thing is I/O, but we do a lot to help with that too.

Do you mean malware in the firmware that sticks around after you format the drive?

Every organization with good security hygiene requires strong-password-protected disk encryption, because when your stuff is stolen from your Tesla at lunch time in broad daylight, no shredder policy will save you, full stop.

Who said the data wasn't encrypted?

100%. If you’re not encrypting your drive, along with a strong password, you’re fucking around.

Physical destruction as the only sure way? When your hardware is stolen, good luck physically destroying it.


How is this better than Liquibase? Isn’t there a risk of missing schema evolution steps when you only diff current vs target? (Because current can be v1 and target v3 and you might have lost column migration logic from v2)

Seventy-seven million in *2023

How can it load when the internet is down?!? Doesn’t the PWA source have to be fetched? And if it’s cached, then so can be the static resources.

The complete web page and all resources are saved locally by the service worker. "Clear site data"/clear cookies will delete it. However, clearing the normal browser cache won't. It's overall a little more persistent than the cache for static resources. However, it needs to be installed as an app to really work offline without initial loading. Chrome will prompt you for that on Android, Linux, and Windows. Safari can also do that but makes you jump through hoops. In Firefox, the PWA will work like a page that loads even when the machine is offline.

Local news needs timestamps… I see stale last-week weather news. Had to click and see date from last week in the article.

I've added them. Thank you.

Reminds me of `tig`, which is a TUI with a continuous diff (not side by side) viewer… you can revert chunks inline. Has tree view, diff view and blame view.

Yes tig is awesome!

I am also trying to add integration for this TUI with nvim `diffview` and `codediff` support.


git itself also has the lesser known `git add --patch` (or `-p`), the interactive staging tool (not to be confused with `git add --interactive` or `-i`, which does add more interactive tools but has a much more complex TUI that doesn't start from diffs).

It really should be the default, with the current 'git add' behaviour behind '--the-whole-damn-thing-i-dont-care-what-the-diff-is'.

Yeah, one of the things I miss most from darcs was that being the default experience and also the only step in change creation (`darcs record` versus `git add -p; git commit`; darcs also had a `darcs add` but it was to opt-in source files to status tracking, a reverse of the `.gitignore` opt-out approach).

Totally agreed!

Brining `git add -p` style staging into the UI is definitely something worth thinking about.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: