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

this is super interesting! im excited to give this a look this afternoon, since I specifically have wanted faster throughout for decompressing maps in a game engine.


Hey, glad to hear that you found it interesting.

misa77 primarily targets textual data (ie. byte-aligned data formats where each byte corresponds to a symbol), so I hadn't tested it on game assets much until now.

After seeing your comment, I pulled some random assets from Pathfinder WoTR (in fact, Unity compresses them with lz4hc) and DOS2. The gains are much more modest here due to asset data being mostly floats, but level 0 performs decently nevertheless.

Results on a map asset (WoTR):

  codec       decode      ratio    encode
  misa77 -0   4061 MB/s   61.52%   40.4 MB/s
  misa77 -1   2851 MB/s   59.04%   36.2 MB/s
  lz4         2561 MB/s   62.66%   488 MB/s
  lz4hc -12   2428 MB/s   55.53%   6.23 MB/s
Results on equipment asset (WoTR):

  codec       decode      ratio    encode
  misa77 -0   4675 MB/s   54.33%   48.6 MB/s
  misa77 -1   3752 MB/s   51.96%   40.9 MB/s
  lz4         3101 MB/s   55.21%   497 MB/s
  lz4hc -12   3036 MB/s   47.62%   6.25 MB/s
Results on texture asset (DOS2):

  codec       decode      ratio    encode
  misa77 -0   5546 MB/s   67.99%   47.0 MB/s
  misa77 -1   2991 MB/s   63.79%   31.5 MB/s
  lz4         3602 MB/s   68.53%   623 MB/s
  lz4hc -12   2689 MB/s   59.30%   9.01 MB/s
Note: the benchmarking setup is identical to the intel x86-64 one described in the readme.


You can look at the LZ4 decompression implementation in ClickHouse: https://presentations.clickhouse.com/2018-highload-siberia/ (the presentation is quite old, but the implementation was updated recently). It uses the same LZ4 format, just decompresses faster.


ah i apologize. can i get this post removed?


The main thing I'm excited about is the new `Bun.Webview` feature, especially as a replacement for things like Puppeteer or Playwright.

> All input is dispatched as OS-level events — sites can't distinguish view.click() from a real mouse click (isTrusted: true).

This is especially exciting


I'm unsure how to handle the title, since it misrepresents the content of an otherwise interesting article. I know there's HN etiquette around editorializing, so I submitted as is.


As someone who's been working on a file upload service for a while, this is the only real way to download very large files on Firefox.

The file system access API is a great way to write chunks of a file at a gime, but for now Firefox doesn't support it

https://wicg.github.io/file-system-access/ https://mozilla.github.io/standards-positions/#native-file-s...


That makes sense, and their reasoning looks sound. Here's hoping the file read/write parts get broken apart from the rest.

Thanks for the link.


It makes me uninterested in Firefox. I want webapps to be able to talk to files, but Mozilla thinks it's too dangerous. Even though we already have APIs to talk to the local filesystem, & the main difference is this one isnt hideously slow.

This issue is one of those that when people are screaming, why are folks using chrome, why haven't we all switched to Firefox I point to and say, because I want a good web, I want a fast web, I want a featureful web, and Mozilla definitely does not share my priorities.


If it doesn't do what you want, it's fair not to like it.

Just to offer a different perspective, though: I don't consider a lot of the things that Chrome does (bittorrent functionality in this case) to be part of "a good web", or really part of the web at all. I don't need my browser to be an operating system. I can use other apps to do other things.

It's much more important to me to avoid another Internet Explorer-like monoculture, and to have a browser that's relatively respectful of privacy.


Probably the main benefit of another browser engine (Ladybug?) entering the scene is that it would force Mozilla to come up with a more compelling sell than "not Chrome."


Do you mean Ladybird? It would be nice to see it become competitive with the others, at least. Diversity would be welcome.

I was a little surprised to learn that they'll use Swift for future development. It's not among the languages I usually think of for cross-platform work. On the other hand, maybe Ladybird using it will help drive improvement in that area.

https://nitter.privacydev.net/awesomekling/status/1822236888...


Firefox can definitely download very large files with no problem, JS doesn't even need to be involved, downloading a file is ancient browser functionality.

The server sends an application/octet-stream response and a few other headers and it works.


Fly.io employee here. This is neat!


glad you liked it :)


at my job, it's part of company culture to praise people publicly whenever they're doing great work. it's a great way of knowing you're on the right path.


Public praise is different than direct management praise. It still shouldn’t be done without consent. Your intention may be good but only effect matters.


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

Search: