Better HN
topnewbestaskshowjobs
Log inSign up

lidavidm

272 karma · joined Nov 30, 2020 (5y ago) · 71 submissions

https://github.com/lidavidm

otherdavidli@lidavidm.me

Submissions

comment 3mo ago · link · parent

Isn't that backwards? The nonexistent character is in the -digitized- version so presumably OCR or something got 彊 wrong, that's not saying that 彁 was used in the -print- version.

Indeed, the source link is about exactly this: a crappy scan appears to have 彁 but a better copy reveals it was 彊.

comment 5mo ago · link · parent

AIUI, Kobo devices have a more advanced rendering engine if you name the file with .kepub.epub. (I think it's based on ePub 3?) Not sure if it would fix the problem here. But I personally run ePubs through kepubify (https://pgaskin.net/kepubify/try/) before transferring them to my Kobo.

comment 8mo ago · link · parent

[Not the overall point of the poem, but] yet for all that, it turns out chemical weapons aren't even that useful: https://acoup.blog/2020/03/20/collections-why-dont-we-use-ch...

comment 10mo ago · link · parent

You may like this book called The Origins of Efficiency: https://press.stripe.com/origins-of-efficiency

Or the author's newsletter: https://www.construction-physics.com/

comment 11mo ago · link · parent

Olympus and other cameras can do this with "pixel shift": it uses the stabilization mechanism to quickly move the sensor by 1 pixel.

https://en.wikipedia.org/wiki/Pixel_shift

EDIT: Sigma also has "Foveon" sensors that do not have the filter and instead stacks multiple sensors (for different wavelengths) at each pixel.

https://en.wikipedia.org/wiki/Foveon_X3_sensor

comment 1y ago · link · parent

Oh that is awesome! I would really appreciate it!

Could you also get d2 into GitHub and Notion while you have it here :)

comment 1y ago · link · parent

I always liked D2 more than mermaid, except IMO, this makes grid layouts essentially useless: https://github.com/terrastruct/d2/issues/1164

Having to figure out the exact pixel widths defeats the point of these tools, at least for me.

comment 1y ago · link · parent

Someone on the issue they made explained why Clone is "broken": https://github.com/JelteF/derive_more/issues/490#issuecommen...

Which links to this blog post explaining the choice in more detail: https://smallcultfollowing.com/babysteps/blog/2022/04/12/imp...

comment 1y ago · link · parent

The graphics would be called chibis, IMO (or デフォルメ if you wanna be fancy) and IDK about developers, but perhaps weaboos/weebs would be the general term

comment 1y ago · link · parent

Iceberg-go is working on it! (edit: it being write support)

11.

Data Wants to Be Free: Fast Data Exchange with Apache Arrow(arrow.apache.org ↗)

5 points · by lidavidm · 1y ago · discuss

comment 1y ago · link · parent

It might be funny to use this as a software versioning scheme. ("What do you mean the next version after v3 is 20A?")

comment 1y ago · link · parent

At least they appear to be partnering with Kobo "later this year" [1]. I've been a big fan of Kobo's devices so this is a nice plus. (I just wish they could figure out some way to get Kindle exclusives, but well that's a contradiction in terms, so...)

[1]: https://bookshop.org/info/ebooks ("Can I read my ebooks on my Kindle, Kobo, Nook, etc.?")

comment 1y ago · link · parent

https://www.ralfj.de/blog/2019/07/14/uninit.html perhaps (the OP also talks about this when linking to a talk about jemalloc)

comment 1y ago · link · parent

To get a really precise answer you'd have to profile or benchmark. I'd say it's also hard to do an apples to apples comparison (if you only replace the data format in the wire protocol, the database probably still has to transpose the data to ingest it). And it's hard to do a benchmark in the first place since probably your database's wire protocol is not really exposed for you to do a benchmark.

You can sort of see what benefits you might get from a post like this, though: https://willayd.com/leveraging-the-adbc-driver-in-analytics-...

While we're not using Arrow on the wire here, the ADBC driver uses Postgres's binary format (which is still row oriented) + COPY and can get significant speedups compared to other Postgres drivers.

The other thing might be to consider whether you can just dump to Parquet files or something like that and bypass the database entirely (maybe using Iceberg as well).

comment 1y ago · link · parent

Arrow has several other related projects in this space:

Arrow Flight SQL defines defines a full protocol designed to support JDBC/ODBC-like APIs but using columnar, Arrow data transfer for performance (why take your data and transpose it twice?)

https://arrow.apache.org/blog/2022/02/16/introducing-arrow-f...

There's an Apache-licensed JDBC driver that talks the Flight SQL protocol (i.e. it's a driver for _any_ server that implements the protocol): https://arrow.apache.org/blog/2022/11/01/arrow-flight-sql-jd...

(There's also an ODBC driver, but at the moment it's GPL - the developers are working on upstreaming it and rewriting the GPL bits. And yes, this means that you're still transposing your data, but it turns out that transferring your data in columnar format can still be faster - see https://www.vldb.org/pvldb/vol10/p1022-muehleisen.pdf)

There's an experiment to put Flight SQL in front of PostgreSQL: https://arrow.apache.org/blog/2023/09/13/flight-sql-postgres...

There's also ADBC; where Flight SQL is a generic protocol (akin to TDS or how many projects implement the PostgreSQL wire protocol), ADBC is a generic API (akin to JDBC/ODBC in that it abstracts the protocol layer/database, but it again uses Arrow data): https://arrow.apache.org/blog/2023/01/05/introducing-arrow-a...

comment 1y ago · link · parent

It used to use DataFusion. https://www.paradedb.com/blog/iceberg_lakehouse

comment 1y ago · link · parent

Can't you use DataFusion single node/without any Apache ecosystem stuff? They have a Python library and DataFusion is "just" a query engine. (If anything, I'd call Pandas the batteries included option...)

I think the difference is more that DataFusion is built as a library so you can plug it into the product you're building (e.g. Comet, which plugs it into Spark, or pg_lakehouse, which plugs it into Postgres). Polars could be used that way, but it's also a functional package you can pip install and use as a Pandas alternative right now.

comment 1y ago · link · parent

I'm also curious why it's a fork (I'm sure there's a good reason?)

Coincidentally I was looking into C++ documentation generators again.

In terms of integration, what I've settled on for apache/arrow-adbc is using Sphinx as the toplevel site generator, then writing a script that generates fake Intersphinx indices for a Doxygen site. That way you can link to Doxygen items from within Sphinx without having to hardcode URLs, instead by referencing a class name or similar, and Sphinx will warn if you reference something nonexistent, without having to use something like breathe that tries to render the Doxygen output within Sphinx. (Same approach with Javadoc -> Sphinx, too.)

comment 1y ago · link · parent

I suppose this feature should have been termed closed captioning and not subtitling. It seems you're not going to get much sympathy for human translation here.

comment 1y ago · link · parent

Thanks! Frankly so long as I can get a browser and install some reader apps (Kobo, Manga-one, etc.) that would fit my needs fine, and as long as they support older versions of Android for enough years (or I can avoid upgrading the app version) then things should be fine. The 10.3" Boox is 80k JPY which is a bit pricey, though, but I'll consider it vs the Kobo device next time I upgrade e-readers.

comment 1y ago · link · parent

Which tablet do you use? I've been considering a Boox but the licensing issues and apparent outdated Android give me pause...

comment 1y ago · link · parent

There's a PR implementing a similar approach. Seems it could use help to work out some kinks in the color mixing.

https://invent.kde.org/graphics/krita/-/merge_requests/1783 https://krita-artists.org/t/can-we-get-mixbox-on-krita/64201...

comment 2y ago · link · parent

Neat, I didn't realize Kobo was WebKit-based, but given they offer a full browser (experimentally) on their readers, that makes sense. They also support some 'nice' ePub 3 features: fixed layouts so that comic books and manga work properly; right-to-left pagination for Japanese books, and vertical layout (also for Japanese books). Though, I feel like their page numbering gets mixed up with vertical layout (sometimes opening and reopening the book changes the # of pages, and I lose my spot...)

comment 2y ago · link · parent

Kobo has a store. It's decent, it won't have Kindle indies, and IMO it has fewer/worse sales, but it's not a big deal to me. They do have a subscription plan with unlimited access to certain books but it's not clear to me how good the catalog is.

You can also buy from third party stores, e.g. Weightless Books for sci-fi & fantasy, and just drag-and-drop the epub onto the Kobo.

comment 2y ago · link · parent

Only because Western-centric systems don't handle non-LTR text properly.

https://atadistance.net/2019/10/20/japanese-text-layout-for-...

> Baseline font metrics will never deliver great CJK typography because there are too many limitations. > > This is why InDesign J implements virtual body metrics based on Adobe proprietary table information for true high-end Japanese layout. There is no virtual body standard digital font metric standard so everybody implements the missing stuff on the fly and everybody does it different. Unfortunately the irony of it all is that Adobe played a huge role in how these limitations played out in the evolution of digital fonts, desktop publishing (DTP) and the situation we have today.

I have a Kobo reader which supports both ePub 2 and ePub 3, and IIRC you need ePub 3 in order to get proper RTL/top-to-bottom text and Japanese typesetting, as well as proper comics support (if you buy an ePub 3 manga, it'll properly flip the page turn direction and the progress bar; a CBZ or other format won't). But most other readers I run into don't understand ePub 3 properly.

comment 2y ago · link · parent

That's still quite a bit more than just plug -> drag and drop, also especially because sometimes I had to manually bring up the interface, and remember some IP that I might only use every week or two at most. (I guess I could set up a bookmark, sure.) Also, it chokes on large-ish files (it would just never upload, no indication in the UI), so I had to split up books.

Anyways, I think I could have dealt with it if it handled large books fine.

comment 2y ago · link · parent

Yeah. Still way more effort than Kobo: plug it in, drag and drop.

comment 2y ago · link · parent

Could consider a Kobo Elipsa. (I have a different Kobo device.) It runs some sort of Linux and you can install Koreader and a couple of other things. You can tweak a config file and set up the device without an account. Not sure how the writing experience compares to reMarkable, though (probably not favorably).

comment 2y ago · link · parent

I posted some other comments in this thread - unless they've significantly improved the software in the past year I would 100% recommend against it.

(Also, a lot of manga gets distributed through proprietary apps now so an iPad is probably your best bet anyways, at least if you read the serialized version and not the tankoubon releases...)

123