HNHacker News
TopNewBestAskShowJobs

Saigonautica

292 karma · joined February 22, 2023

submissionscomments
Saigonautica··on Avoiding skill atrophy in the age of AI
I think about this sometimes. In the context of AI, but also for other reasons.

One way I like to see things, is that I'm lucky enough to have this intersection between things that I like doing, and things that are considered "productive" in some way by other people. Coding is one example, but most of my interests are like this.

I think a big reason I can have a not-unpleasant job, is because I've gotten reasonably good at the things I like doing. This means that for every employer that wants to pay me to do a thing I hate, there exists an employer that is willing to pay me more to do something I like, because I'm more valuable in that role. Sometimes, I'm bad at efficiently finding that person, but such is life :D

Moreover, I tend to get reasonably good at things I like doing, in highly specific ways. Sometimes these cause me to have unconventional solutions to problems. Generally these are worse (if I'm being honest), but a few times it's been a novel and optimal algorithm that made its way into a product.

I'm very hesitant to change the core process that results in the above: I express whatever natural curiosity I have by trying to build things myself. This is how I stay sharp and able to do interesting things, avoiding atrophy.

I find AI fascinating, and it's neat to see it write code! It's also cool to see some people get a lot done with it. However, mostly I find it about as useful as buying a robot to do weightlifting for me. I guess if AI muscles me out of coding, I'll shrug and learn to do some other fun thing.

Saigonautica··on How a $2k 'Made in the USA' Phone Is Manufactured
I was going to skip this article until I read your post, it got me curious. You're totally right, it does read really weird. It made me laugh a bit, I needed that this morning. Thanks!

I have also "spun up my own SMT". It's a 50 USD hot air rework station and maybe 20$ of consumables in a 4 meter square workshop (I live in Asia). It would be challenging, but possible, for me to assemble the PCBs in their photographs by hand. There are indeed a lot of people like me.

Saigonautica··on India's repair culture gives new life to dead laptops
Here are some good "value for money" tool brands I use (I live in Asia):

1.Yihua combined hot air rework station + soldering station.

2.Pro's Kit multimeter, tweezers, and wire snips.

3.Uni-T hand-held oscillosope (quite optional).

4.Mechanic brand solder paste. Get the one in a plastic syringe. The tubs dry out.

5.TS100 soldering iron as a spare. Heats up so fast at 24V!

I use them mainly for prototyping, but they are equally handy for repair. I don't re-ball BGA though. I've seen vendors do it with a machine that's mostly just a holder for the chip, and the hot air gun. Plus some templates and the solder balls.

Saigonautica··on Certified randomness using a trapped-ion quantum processor
It's a long weekend over here, so I managed to load up the code, BOM, KiCAD files, production files, and assembly instructions. Also some scope trace images of what the signal should look like at different stages:

https://github.com/seanboyce/TRNG

I didn't specifically design this for other people to easily replicate, but should not be too hard with some solder paste and a hot air rework station.

The assembly code is extensively commented-- I realize AVR assembly is not most people's native dialect, haha.

I hope you enjoy!

Saigonautica··on LLM providers on the cusp of an 'extinction' phase as capex realities bite
I just chose this step for calculations, as it's the most energy intensive part of my AI workflow. Upscaling / extending to get a usable result is really fast by comparison, and I only do it for a few images. It sort of rounds down to zero.

Most of the energy cost is how many images I have to generate to get a satisfactory one (say 100 with a decent prompt). Looking at the broader picture, the biggest energy cost of all is hiring a human designer for layout / typography and to produce print-ready files. Then managing the manufacturer, haha.

A bit off topic, but hopefully something that will brighten your day: I make physical products, so they have to be perfect (it also means I deal in DPI, not pixels). AI speeds up the number of concepts I can generate and send to contractors. I don't try to copy anyone's specific style, that would be boring. I'm sure there are less wholesome uses of this AI thing, but I feel like I've stumbled into something I'm comfortable with.

Believe it or not, I use all this to sell antiques. Like, genuine physical artifacts made by humans hundreds of years ago. I like to tell the story of the era they are from, bring it to life a little with printed supplements. No LLMs for the writing though, I do the research and writing myself, I enjoy it too much. I don't make much money with it, but it's fun, and a way to tell my country's history.

Saigonautica··on LLM providers on the cusp of an 'extinction' phase as capex realities bite
Oh, that's way better! I guess the comparison only holds as approximately true with home setups -- thanks for the references.
Saigonautica··on LLM providers on the cusp of an 'extinction' phase as capex realities bite
Also out of curiosity, I did some quick math regarding that claim you read somewhere.

Cellphone battery charge: I have a 5000mAh cellphone battery. If we ignore charging losses (pretty low normally, but not sure at 67W fast charging)... That battery stores about 18.5 watt-hours of energy, or about 67 kilojoules.

Generating a single image at 1024x1024 resolution with Stable Diffusion on my PC takes somewhere under a minute at a maximum power draw under 500W. Lets cap that at 500*60 = 30 kilojoules.

So it seems plausible that for cellphones with smaller batteries, and/or using intense image generation settings, there could be overlap! For typical cases, I think that you could get multiple (but low single digit) of AI generated images for the power cost of a cellphone charge, maybe a bit better at scale.

So in other words, maybe "technically incorrect" but not a bad approximation to communicate power use in terms most people would understand. I've heard worse!

Saigonautica··on Ask HN: What are you working on? (March 2025)
I've got a self-hosted personal library management app more or less done here: https://github.com/seanboyce/ubiblio

An electronic board game similar to Settlers of Catan (https://github.com/seanboyce/Calculus-the-game), just received the much better full sized boards. Will assemble and test over the next few weeks, then document properly. I got the matte black PCBs, they look really cool.

A hardware quantum RNG. Made a mistake in the board power supply, but it still works well with cut trace and a bodge wire. Will probably fix the bug and put the results up in a few weeks. Can push out ~300 bytes of entropy a second, each as an MQTT message.

A hardware device that just does E2E encrypted chat (using Curve 25519). Microcontrollers only, no OS, and nothing ever stored locally. HDMI output (1024x768), Wi-Fi, and USB keyboard support. I originally designed it to use a vanilla MQTT broker, but I'm probably going to move it to HTTP and just write a little self-hosted HTTP service that handles message routing and ephemeral key registration. Right now the encryption, video output, and USB host works -- but it was a tangle of wires to fix the initial bugs, so I ordered new boards. Got to put those through testing, then move on to writing the server.

Iterating on hardware stuff is pretty slow. I try to test more than one bugfix in parallel on the same board. Iteration time is 2-3 weeks and 8$. If I have all the parts in stock. I don't have very much free time right now due to work, so this suits me fine. A rule I live by is that I must always be creating, so I think this is a reasonable compromise.

Saigonautica··on Certified randomness using a trapped-ion quantum processor
I usually settle on this design: https://hackaday.io/project/184643-schrdingers-trigger

The zener design works well, but I find the signal it produces is a little too fast to sample conveniently (it works a bit too well). The two-transistor design produces a similar but slower signal. 2N5551 works nicely.

Then one hex inverter configured as a cheap two-stage inverting amplifier, and another that cleans up the signal into nice 5V with sharp transitions. An optoisolator is another option for the second stage, but adds another part to the design.

Then I shove a Von Neumann extractor on an Attiny261A (high bandwidth parallel output) or Attiny10 (if just true/false output), I have a little assembly program for that. It takes the signal in, and outputs 8 bits out in parallel, plus one bit that toggles every time a new output is ready. It's not power efficient, I never use this design on a battery, so I never optimized for sleep modes and so on. Instead I optimized to push a little more bandwidth out and try to sample the signal in a balanced way.

Finally, I just grab that with something like a Pi Pico or ESP32 and push it out MQTT. I get something like 100-300 bytes per second depending on the voltage I'm driving the transistors at (anything over 13V gets a little spicy for the first hex inverter, but add a heatsink to it, and it's fine).

I have some KiCAD files for a finished board for all this, also has space for a boost converter (the transistors need 10-12V usually to generate a nice signal). I just finished it yesterday, if you leave me your contact I'm happy to let you know when I publish it. Otherwise, just check here in like 1-2 weeks and I'll probably have it up by then: https://github.com/seanboyce/

Saigonautica··on Next generation LEDs are cheap and sustainable
Microwaves never cease to amaze me. If I were in some alternate timeline where they weren't ubiquitous, and you told me such a thing would soon be in everyone's homes, there's no way I would believe you.

I mean, people putting their foods in a Faraday cage and then pointing a cavity magnetron at them to cook them? It sort of sounds far-fetched.

Bimetallic strips are also so awesome. Every time I hear that little 'click' noise, I think about them.

Is there a term for knowing just enough about the technology that underlies daily life, that you feel mildly absurd using it for mundane tasks?

Saigonautica··on Next generation LEDs are cheap and sustainable
It's widely known among EEs. It's used for lots of interesting things, such as temperature control, motor control and positioning, and LED lighting. You can do it in hardware old-style with a 555 timer or hex inverter, but most modern systems I've worked with do it with a microcontroller.

An addendum to this that you may find interesting -- I've experimented with turning the LED on for a few microseconds at higher than rated current, then off for tens of milliseconds. The average current stays far below the specifications. This results in very high apparent brightness per unit of power consumption.

Using the IV curve of the LED, this also let me eliminate the typical current-limiting resistor. The power savings are more than the power cost of the MCU that controls it (modern low-power microcontrollers are awesome).

Anyway, the end result is a little LED + CR2032 cell + magnet that you stick to furniture, and it runs for about 3 years. I made it so that elderly people I know who wake up at night to go to the bathroom don't bump into furniture (especially in an unfamiliar place, like while traveling). Without creating a thing they have to think about often. If you're curious, I posted the code here: https://github.com/seanboyce/tinylight

An additional one you might like: I did PWM for LED dimming in the tens of Mhz for some 1 Watt red LEDs. This is for my wife -- when she has a migraine she prefers very dim red light to complete darkness. In the Mhz range, there's no visible flicker by a longshot (although it costs a little more power). Most PWM systems I've seen that flicker, use lower-frequency signals.

It must have been cool to play with LEDs in the 70s. We sort of take them for granted now, but they are so awesome. Truly we live in an age of wonders.

Saigonautica··on Sigint in Fiction
I vaguely recall one in the Venus Prime series by Arthur C Clarke. I did a quick search for you -- it was a Playfair cipher in Volume 2 of the series.

I recall it even encouraged the reader to crack it themselves with some hints!

Hope you enjoy :)

Saigonautica··on Ask HN: What are you working on? (February 2025)
I made a small and light CRUD web thing in FastAPI to organize my personal library. Mostly it focuses on physical books, but handles ebooks too. I published it as FOSS and some people requested features, so I expanded it a little. It's nothing fancy: https://github.com/seanboyce/ubiblio

...absolutely no one requested an RISC V port, but I did that too for laughs. Neat to see the whole thing run on a system the size of a postage stamp.

Not sure what to do with it next. Will probably just let it be what it is, and fix any bugs that people report. Maybe move on to a new little weekend project.

Saigonautica··on Kindle is removing download and transfer option on Feb 26th
A working solution for me was to deploy a little website to organize both my physical and ebooks in the same place. For physical books, it tells me where they should be. For ebooks, I can download the file, the website is light enough that it works fine with my ebook reader.

Surely there are bugs, but here it is, if you'd like to give it a spin: https://github.com/seanboyce/ubiblio

Interestingly enough, I had tried to find a way to add an 'email to my device' option, but it was too fiddly. I got it working with OAUTH + gmail, but setting it up was not exactly user-friendly. The simple download option worked much better.

Anyway just a weekend project I extended a little. Don't expect much polish :D

Saigonautica··on Why is zero plural? (2024)
It's not my place to critique your beliefs -- you may find Gödel's incompleteness theorem interesting to think about though. It was the end of the attempts to unify mathematics under a common set of axioms, as far as I know. I find it quite fascinating, personally.

There exist an infinite number of unprovable-but-true statements for any given set of axioms of sufficient complexity (e.g. arithmetic). I find it conceivable that having "more than one mathematics" would be quite practical!

Saigonautica··on Sweden brings more books and handwriting practice back to its schools (2023)
I've been thinking about this a lot lately. I share what I read, but only with very close friends. I'm hesitant to lend books out -- people are not great at returning them (partly my fault, I'm also bad at tracking the loans). I also have a hard time finding my books, as I live in a very small house (bookshelves are out of the question, it's numbered bins).

I am also wary of most of the cloud services in this domain.

So I wrote a little software to manage the situation -- just a simple CRUD thing that lets me manage a small personal library, or a small shared library between friends. It's not a "social network for books" or something grand like that. Just a simple self-hosted thing with minimal system requirements. There were some existing solutions, but none that really felt right.

It's published (open source) and has a few users, but I don't think I'll be able to manage it, if it receives a giant burst of attention. On github it's called 'ubiblio'. Perhaps I'll be ready to share it more generally in a few months.

Not sure if it's useful to you, but I hope it is!

Saigonautica··on We are teen hackers from around the world who code together
Perhaps there is one in your area: https://wiki.hackerspaces.org/List_of_Hacker_Spaces

I'm in Asia so no luck, but on the bright side, tools are quite affordable here.

Saigonautica··on Bogus Software
I enjoy AVR Assembly a lot. A big reason is that Atmel has very good datasheets.

However if having an audience for your games matters, this is maybe a bad choice. On the other hand, if you would like to use LEDs, buttons, and sensors (or just like making physical hardware in general) it's very good fun.

Another word of warning, I find Microchip Studio bloated and buggy. To the point where I'll code ASM in literally anything except that, then paste it in to simulate.

Also there's a bug in the Atmel-ICE. One of the programming headers is soldered in upside down (or at least it is on mine). This is no problem if you buy the full cable assembly (where they reverse it again in the cable). However if you cheap out and buy the raw PCB only like I did, knowing this will save you a frustrating puzzle.

Anyway these minor frustrations aside, its the main language I've always returned to when I want to make something just for the fun of it.

Saigonautica··on The world of tomorrow
I immigrated to Asia around a decade ago and the relative optimism for technology and the future in general is one of the things that struck me as well.

I mean, if you look for pessimism you'll find examples of that too -- but in broad strokes I would also describe the average perception as 'enthusiastic'. It's something I've have a hard time explaining to my North American colleagues.

Maybe it just has to be experienced?

Saigonautica··on Charset="WTF-8"
The reminds me of a few Thai colleagues who ended up with a legal first name of "Mr." (period included), probably as a result of this.

Buying them plane tickets to attend meetings and so on proved fairly difficult.

Saigonautica··on GnuCash 5.9
Ah, I live in one of those impenetrable realms, and have made some progress deciphering their arcane glyphs. I can tell you that here in Viet Nam, accounting is almost entirely done in spreadsheets. I've mostly seen similar in nearby countries.

Also your accountant will universally have a bizarre custom font for Vietnamese characters, that they downloaded ten years ago from a now-defunct forum. It will never correctly transcribe into any other font, and they don't know how to change it. If I switch accountants, it's always a different cursed font. This is a great and enduring mystery.

So I keep a second set of books -- GnuCash is fantastic for this, but I've also used QuickBooks sometimes. Then I use that to make sure the accountant is producing something that at is at least adjacent to reality. I'm audited by law every year (at my own expense), and they only support spreadsheets.

Surely one day soon this will change (except the font thing I bet), but for now I thought you might get a laugh out of this little slice of my life :)

Saigonautica··on Ask HN: What are you working on (September 2024)?
I'll slot some time in to write it up properly in a month or two!

This month is busy but I will get around to it. Would you like me to drop you an email (to the address in your profile) when I do?

Saigonautica··on Ask HN: What are you working on (September 2024)?
I designed an electronic board game, very similar to Settlers of Catan.

There are some electronic Catan builds out there, but I found them really expensive -- e.g. opting for a smartwatch screen + microcontroller for every game tile (of which there are 19). Beautiful, yes -- but not my style.

Instead, I went for 8-segment displays for numeric tile values, and RGB LEDs to display terrain types. It adds up to 342 LEDs to control for the full board, from a single central microcontroller. When you turn it on, it sets up the board for you. Pressing a central button "rolls the dice", and it will flash the tiles that produce resources as per the game rules. Or cue special actions on certain rolls.

I really enjoy cost-optimizing prototypes, so this was good fun. I got it down to about USD 20 for a single, ready-to-play unit, including solid brass game pieces (it helps that I'm in Asia). I still use the deck of cards from Catan for now, but plan to replace it with something sci-fi themed. Maybe "Asteroid Miners".

The only thing I'm not 100% satisfied with is that the board is a little cramped -- it's a bit over half the size of the original Catan board. The PCBs had to fit within 100mx100mm -- I used a bit of a weird PCB geometry so that the board is composed of 3 identical subunits, rotated a few degrees to maximize it's surface area within a 100mm square.

I'm not planning to sell it. I just had a slow month, so it's a good time to learn to do new things. I never make any money with hardware, but I love how whimsical electronics can brighten someone's day. Sometimes that earns me a client -- and if not, it's cheap entertainment for me that keeps my skills sharp and my morale high.

Saigonautica··on New study simulates gravitational waves from failing warp drive
A more accurate analogy would be that without looking at very much sand, you already possess one grain of sand in the exact shape of your face. This spikes your curiosity and you ask: What are the chances of finding another?
Saigonautica··on Namibia turns the visa tables on Western nations
I have successfully managed (once and hopefully again) a Canadian visa application, for a Vietnamese family member (tourism).

It was slightly longer than my thesis, although much shorter to complete -- unless you include failed previous attempts. To date, it remains my magnum opus of bureaucratic compliance.

It's a frustrating and moderately expensive experience, that I would otherwise never have learned about as a Canadian citizen.

Meanwhile, a visa to enter Vietnam for 3 months from a Western nation is a fee and a rubber stamp. A fascinating problem arising from that is the number of undocumented migrant workers we get from the West! It's been a thing for a decade, but in the past was mainly people offering English lessons who did not meet the requirements for a work permit. It's expanded significantly in scope post-Covid, although I don't have any hard numbers to share.

I feel it's quite fair to expect some visa costs/paperwork when no fair and bilateral visa arrangement exists. On the other hand, the level of noncompliance with the terms of the issued visas worries me. I'm a documented immigrant to Vietnam, I run a small and boring company. If the rules change in a crackdown, will I get caught up in a regulatory net meant to catch someone else? Losing my company this way would be really disheartening.

I'm unable to think of an easy fix to the asymmetrical unfairness of visas -- but I thought you might enjoy a slice of what it looks like from the other side. I guess immigrants anywhere are presented with many of the same challenges.

Saigonautica··on Boy photographer seeks danger as others flee (1968)
I think that's a fair judgement!

There's an expression I've heard here that amounts to "If you lose your job, start a business". People prefer steady jobs, but if that's not available, you either start a business or join the family one.

A side effect is that when I go to industrial markets, a lot of the shopkeepers are working for family, and aren't really being "paid" per se. So they can be a bit cranky at times, there are indeed places they would rather be. So I make sure to have my order ready and zero questions :)

I'm actually setting up a family business in Vietnam right now. Many families have one, but mine does not. I've got relatives coming back from jobs overseas and I want to offer them something better than being a receptionist for USD 250 a month. Or at least something in addition to that.

Saigonautica··on I made a thing to help you make a thing out of a keypad
Your tiny dinosaur assistant is awesome!

I encountered a similar problem, but solved it with USB keyboards / keypads instead. I managed to get a low-speed USB host working on ESP32. Now I use these instead as much better build quality is available, although they are notably more expensive.

One thing that caught me off guard was that USB keyboard scancodes were different from PS/2. Previously I had tackled the issue using PS/2 keypads and a chip with some firmware that translated the scancodes to 5V serial. This was neat, but sourcing old keyboards eventually became a pain.

Saigonautica··on Vietnamese property tycoon sentenced to death in $27B fraud case
That's always been my understanding as well. I recall some cases in the last few years where this resulted in quite a bit of the funds being recovered.

Sadly I cannot remember the specific cases.

Saigonautica··on Vietnamese property tycoon sentenced to death in $27B fraud case
Without this intending to be a comment on whether it is just or not, there's an interesting caveat to the law that might be of interest.

De jure, here's an amount that the guilty party can repay to avoid the death penalty. I recall it being 3/4 of the amount stolen.

Saigonautica··on Vietnamese property tycoon sentenced to death in $27B fraud case
Some people here do pay bribes. I do not. Neither do most people around my age that I know.

I immigrated here 12 years ago. I have a company license, a driving license, proper residency, and so on.

I got every last piece of it by filling out forms, and waiting a normal amount of time. I speak Vietnamese like a small child and have no Vietnamese heritage.

Perhaps some people will report something different, and perhaps they are also correct. However, this is my story.

← PreviousPage 2 of 3Next →