HNHacker News
TopNewBestAskShowJobs

thangngoc89

1,369 karma · joined November 18, 2015

Email: hi [at] khoanguyen.me
submissionscomments
thangngoc89··on Goja: A Golang JavaScript Runtime
Actually I decided to learn golang for extending using Golang for better DX (type hints and compiler errors)
thangngoc89··on Serverless-registry: A Docker registry backed by Workers and R2
Local (mounted NFS) from our internal NAS
thangngoc89··on Serverless-registry: A Docker registry backed by Workers and R2
I’m self-hosting gitea just for their private docker registry. LFS is actually slow for heavy deep learning workflow with millions of small files. I’m using DVC [1] instead.

[1]: https://dvc.org

thangngoc89··on Serverless-registry: A Docker registry backed by Workers and R2
I think this is wonderful. I’m running a Gitea instance in one of our dev machine just for private registry. Keeping the instance only had been extra workflow for us.

But 500MB limit of layer size is a dealbreaker for AI related workflow.

thangngoc89··on July 2024 Update on Instability Reports on Intel Core 13th/14th Gen Desktop CPUs
I didn’t setup anything in BIOS. But my motherboard are from asus. I will look into this. Thanks for your suggestion.
thangngoc89··on July 2024 Update on Instability Reports on Intel Core 13th/14th Gen Desktop CPUs
I guess you’re lucky. I own 2 machines for small scale CNN training, one 13900k and one 14900k. I have to throttle the CPU performances to 90% for stable running. This cost me about 1 hour / 100 hours of training.
thangngoc89··on Caprover changed to source-available license
Updated LICENSE 2 weeks ago added appendix to Apache License 2.0. See below for the full quote:

Appendix: In case of a conflict, the terms of this appendix supersede the general apache license.

- Unless provided with a written agreement, the paid features of CapRover (as a service) cannot be modified. - Unless provided with a written agreement, no persons are permitted to redistribute another paid version of CapRover. - Furthermore, any modifications of free features of CapRover should be distributed as free & opensource software.

If you have any questions, please feel free to reach out to us.

For terms and conditions of the software and the service, please see TERMS_AND_CONDITIONS.md

thangngoc89··on Ask HN: Why are PWA user install stats so hard to find?
"Tap here to install" is how Chrome does it.
thangngoc89··on Ask HN: Why are PWA user install stats so hard to find?
> Apple said PWAs had "very low user adoption"

Installing PWA isn't obvious for users on iOS Safari or even macOS Safari. It's very obscure

> A Chrome OS ... desktop PWA installs have grow by 270%

Google Chrome would "beg" you to install PWA if the web was developed in the correct way with correct manifest and ServiceWorkers.

thangngoc89··on Using S3 as a Container Registry
I’m using Gitea just for packages (Docker, npm, python, ….) I’m surprised noone has mentioned this in this thread
thangngoc89··on Using S3 as a Container Registry
I see your point on the pull speed. Most of my pulls are stuck at waiting for the pytorch/dependencies layer.

This might work with pip but I absolutely hate pip and using poetry with great success. I will investigate how to do this with poetry.

thangngoc89··on Using S3 as a Container Registry
You can’t. Installing pytorch and supporting dependencies takes 2.2GB on debian-slim.
thangngoc89··on Zig Goals
Indeed. I still hate Python space sensitive syntax after 2 years of working with it.
thangngoc89··on Zig Goals
I think this is to avoid debate in the team that would use the language. The language simply doesn't allow that, end of discussion.

Just like `go fmt`. It's a compiler error for unformatted codes.

thangngoc89··on Zig Goals
I agree. Below is the direct link in case one of the moderators see this and want to update.

https://github.com/ziglang/zig/blob/4236b85c722b36cb31595634...

thangngoc89··on Mitsubishi robot solves Rubik's Cube in 0.305s
It’s for personal satisfaction. At some point, you can’t physically move the cube any faster, but rather you learn new algorithm to save the steps.

For example, you could solve the final layer by repeating 3 algorithms. Or you could learn about 100 algorithms for 100 permutations. At higher level, you would know that using A algorithm would be faster than B because the one next to it is easier to perform.

You could look in blind cube where you look at the cube, memorize it then solve it while blindfolded.

thangngoc89··on Mitsubishi robot solves Rubik's Cube in 0.305s
I have been solving Rubik’s cube for 10 years. Some of the moves are impossible for human like rotating the up and down faces (or left and right faces) at the same time. For human, it would be rotating the middle and rotate the whole cube instead.
thangngoc89··on Rakkas full-stack React framework powered by Vite
What is the selling point of this compring to Remix which is also a vite powered React framework? I glance at the README and the website and all the selling points could be checked by Remix as well.
thangngoc89··on Don't study or work on LLMs
I believe this is quite correct. You need the whole WWW internet for training and GPU farms to train this.
thangngoc89··on Migrating Uber's ledger data from DynamoDB to LedgerStore
I'm replying to the question of how one would replicate SQLite 3 in production for redundancy. I myself consider 10GB would be the limit for using SQLite 3 in read/write in production and switch to PostgreSQL.
thangngoc89··on Migrating Uber's ledger data from DynamoDB to LedgerStore
I do this in backup testing:

    sqlite3 /path/to/db
    sqlite> PRAGMA integrity_check;

See SQLite3 documentation: https://www.sqlite.org/pragma.html#pragma_integrity_check
thangngoc89··on Migrating Uber's ledger data from DynamoDB to LedgerStore
That's why you always test your backup. I backup the full sqlite.db every day and test the litestream replication every week. So far litestream have been solid.
thangngoc89··on Migrating Uber's ledger data from DynamoDB to LedgerStore
One could use Litestream [1]

[1]: https://litestream.io

thangngoc89··on Go Browser Package
I couldn’t understand what is the context of Browser until I read the first usage example with the line “Mozilla/5.0…”. I immediately understood that this is a user-agent parsing library.

I would prefer user-agent which is a well understood term.

thangngoc89··on Accidentally breaking GitHub Actions with a shorthash collision (2019)
Anytime you run apt install/apk install, your Docker image became unreproducible. I mainly use shorthash for easy manual inspection. The Dockerhub is set to clean up images older than 2 months so the risk if shorthash collision is very low (but not impossible)
thangngoc89··on Accidentally breaking GitHub Actions with a shorthash collision (2019)
Thank you for a very detailed write up. Here I am using shorthash for Docker image tags. I guess I will fix this asap.
thangngoc89··on Show HN: An SQS Alternative on Postgres
RQ never publishes a real protocol for sending and receiving jobs. Also the `data` field could be anything because it's pickled so you could send a whole Python's object there.

See [1] for efforts to make RQ cross language compatible

[1] https://github.com/rq/rq/issues/1808

thangngoc89··on Show HN: An SQS Alternative on Postgres
Thanks for the recommendation. I've checked this out and looks like a good alternative with much simpler configuration and less foot-gun than Celery.
thangngoc89··on Show HN: An SQS Alternative on Postgres
RQ uses Python's Pickle and it doesn't have any serialization protocol so it stays Python only.
thangngoc89··on Show HN: An SQS Alternative on Postgres
Interesting. I've been looking at a much more simpler system than Celery queue to publish jobs from Golang and consume jobs from Python side (AI/ML stuff). This threads gave a lot of names and links for further investigation.
← PreviousPage 3 of 12Next →