Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dlock17
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
31.
▲
by
dlock17
2y ago
In the stdlib Go code for file.Close, it doesn't actually do the syscall after the first call to Close, so there's your language guarantee. That is a scary sounding error though.
32.
▲
by
dlock17
2y ago
While I'm sure Goja is great for just JavaScript, using something like wazero allows your app to support more languages (anything that compiles to WASM) while keeping the benefits of CGO. https://wazero.io/ I've u
33.
▲
by
dlock17
2y ago
It would be cool if this was true, but no, Stremio does not seed cached files. https://github.com/Stremio/stremio-features/issues/626 Somebody made an extension that adds cached torrents to your local qbittor
34.
▲
by
dlock17
3y ago
”The application is requesting access to accelerated graphics and drastically increase it's battery usage, do you allow this?”
35.
▲
by
dlock17
3y ago
It's possible all right, I've already done it. Imported Tesseract into Go with WASM. https://news.ycombinator.com/item?id=38146154 It's not trivial because you have to figure out intricacies of the language a
36.
▲
by
dlock17
3y ago
Iterators are coming. But I think taking very long on adding features such as generics and iterators has a positive effect of repelling the ones who over engineer the most. And because this is HN, I have to mention of course you can over en
37.
▲
by
dlock17
3y ago
My intentions was a "pure Go" approach, but that is probably more performant. I imagine just calling the Tesseract CLI from Go would be simplest if that's all you wanted.
38.
▲
by
dlock17
3y ago
Technically I said reimplementation. But you are right in that it's not supposed to be a drop in replacement at all. The only feature missing right now is Bounding Box detection, which I plan to add in the future.
39.
▲
by
dlock17
3y ago
You mean this? https://github.com/WebAssembly/wabt/blob/main/wasm2c/README.... That seems like quite an undertaking. But at that point, It would make sense to cut out WASM entirely like https:/
40.
▲
by
dlock17
3y ago
Exactly, I expected to find one but couldn't, so I put together my own. It's not the fastest, but it'll do for my purposes.
41.
▲
Show HN: Gogosseract, a Go Lib for CGo-Free Tesseract OCR via Wazero
(github.com)
120 points
by
dlock17
3y ago
|
24 comments
42.
▲
by
dlock17
3y ago
That is tricky. I wonder how other package systems handle this. I do think I prefer having the version being "immutable" (as enforced by the proxy, anyway) over alternatives since it's safer. Maybe the Go proxy should periodi
43.
▲
by
dlock17
3y ago
This seems like a good use case for Cap'n Proto.