HNHacker News
TopNewBestAskShowJobs

doodlewind

15 karma · joined November 11, 2019

doodlewind at gmail
submissionscomments
doodlewind··on Show HN: PocketJS – Solid/Vue JSX and Tailwind at 60fps on a 2004 Sony PSP
I've been building PocketJS: standard Solid or Vue Vaper JSX with Tailwind classes, and runs without browser: a small rust core owns layout/animation/rendering, your components run in QuickJS, and everything heavy (styles, fonts, images...) is compiled to binary at build time.

So I've managed to make it work on a 2004 Sony PSP, enabling wide range of possibilities.

doodlewind··on Show HN: A Figma file viewer for the 333 MHz Sony PSP
Hi HN, I made this with PocketJS. The demo is running on real PSP hardware:

https://x.com/pocket_js/status/2075858786271854894

Source:

https://github.com/pocket-stack/pocket-figma

doodlewind··on Typed Japanese: Expressing Natural Language Grammar with TypeScript Types
You've raised an excellent point about natural language flexibility! Indeed, a strict pass/fail system would struggle with the grammatical variations found in everyday language.

Textbook examples are ideal for this approach precisely because they demonstrate grammatical structures with intentional precision. Rather than binary pass/fail results, we could implement degrees of type conformance with specific error messages tied to common mistakes. This makes the approach particularly valuable in educational contexts, where a textbook-aligned type system could provide scaffolded feedback as learners progress.

In essence, textbook examples with their corresponding type annotations could serve as a "test262" suite for natural language learning - a reference collection against which learners can validate their understanding within a controlled, educational environment.

doodlewind··on A 70-year-old's secret to a full and happy life
My grandpa is an agriculture scientist. He graduated from university before the Culture Revolution disaster, and still served the country selflessly. In the 1980s he won Chinese national science first prize.

He raised me up and I am proud of him. All the difficulties and chaos that happened in this country doesn't affect his perseverance doing researches and making my family better off. He is still optimistic and healthy today. With your stories, I found that as human being, we are really seeking for and sharing similar happiness, which can go beyond ideology.

Thanks for all your sharing again.

doodlewind··on Render React to Embedded LCD
I successfully build a React renderer that displays text and pixels on a 0.96-inch OLED screen. The renderer is built on top of a C driver for I2C protocol, which is used as a C module for the embeddable QuickJS engine. The whole codebase, including JS engine, C modules and React Reconciler, are compiled into binary within 780KB on a Raspberry Pi. This encourages me to try out React for developing Linux GUI in the future, hope you like it!