HackerTrans
TopNewTrendsCommentsPastAskShowJobs

chirsz

144 karmajoined hace 5 años

Submissions

JSON with Commas and Comments

nigeltao.github.io
2 points·by chirsz·hace 3 meses·1 comments

JSONC Specification

jsonc.org
3 points·by chirsz·hace 3 meses·0 comments

BusyBox-Only Linux

github.com
3 points·by chirsz·hace 7 meses·0 comments

Reproduce Portal's closing credits on your terminal

github.com
1 points·by chirsz·hace 10 meses·1 comments

Implement Canvas2D over WebGL

github.com
2 points·by chirsz·hace 10 meses·0 comments

[untitled]

1 points·by chirsz·hace 10 meses·0 comments

comments

chirsz
·hace 4 días·discuss
A quick search reveals several other serious vulnerabilities in Tenda routers that could grant administrator privileges. Therefore, I tend to believe this is due to the company's incompetence and lack of technical skill rather than malicious intent—but it's still a reason to avoid using Tenda products. There's a reason why Tenda's market share is far lower than TP-Link's.
chirsz
·hace 5 días·discuss
Does this name come from reversing "CP/M"?
chirsz
·hace 16 días·discuss
The Node.js team removed `--experimental-transform-types` from Node.js v26. This makes native, full TypeScript support impossible.

https://github.com/nodejs/typescript/issues/51#issuecomment-...
chirsz
·hace 27 días·discuss
Welcome to https://jsonc.org
chirsz
·el mes pasado·discuss
It's https://smolweb.org/
chirsz
·hace 2 meses·discuss
Still no seahorse
chirsz
·hace 2 meses·discuss
SBus peripherals use the Forth language in their PROMs to initialize themselves[1].

[1] https://docs.oracle.com/cd/E19957-01/802-3239-10/sbusandfc.h...
chirsz
·hace 2 meses·discuss
There are many open-source software developers whose backgrounds we don't know much about, such as Russell King, who implemented the 32-bit ARM port of Linux. He used the magic number 0x016F2818 (24061976 in decimal) without explanation, which I guess is his birthday, but I can't verify it since he hasn't disclosed his birthday anywhere.
chirsz
·hace 2 meses·discuss
In China, people generally share porn through closed social network groups.
chirsz
·hace 2 meses·discuss
Because Türkiye is a widely recognized sovereign state, while Taiwan (or more formally, the Republic of China) is not. Taiwan is also not a member of ISO.
chirsz
·hace 3 meses·discuss
If you can build a bFLT version of BusyBox, then you can get a minimal system that can do some meaningful work! See BusyBox Linux[1].

[1]: https://github.com/chirsz-ever/busybox-linux
chirsz
·hace 3 meses·discuss
Related: [jsonc.org](https://news.ycombinator.com/item?id=47713427)
chirsz
·hace 3 meses·discuss
It's best to avoid using std::wstring and other wchar_t-related facilities, as they are highly non-portable across different platforms. If you need to interact with the Win32 API, use char16_t and std::u16string, so that anyone knows it contains a UTF-16 encoded string and knows how to use and process it.
chirsz
·hace 4 meses·discuss
You can see:

* no-panic: https://docs.rs/no-panic/latest/no_panic/

* Safe Rust has no undefined behavior: https://news.ycombinator.com/item?id=39564755
chirsz
·hace 6 meses·discuss
In ancient China, the imperial year designations were usually changed in the second year following the coronation of a new emperor, thus preventing the occurrence of two imperial year designations in the same year. Japan seems to have chosen to change the imperial year designation in the same year because of the faster flow of information in modern times. I still think it would be more convenient to change it the second year.
chirsz
·hace 7 meses·discuss
I've recently been doing something similar: I have a UbiSurfer 9, a netbook using an S3C2416 chip as its CPU, running the ARMv5 instruction set, and with 128MB of DDR2 memory. Its original operating system is WinCE 6.0, and I'm trying to run Linux on it. The good news is that Debian still maintains the armel architecture, so we potentially have a large number of userspace programs available. The bad news is there's no suitable kernel and bootloader. Fortunately, a friend helped me write a bootloader and modified the kernel source code to make it work. Running a Debian system is possible, but quite slow, so I created a minimal system with only Busybox[1], and it works perfectly.

[1]: https://github.com/chirsz-ever/busybox-linux

I'm still exploring this; related information is in this repository, written in Chinese:

https://github.com/chirsz-ever/ubisurfer9
chirsz
·hace 8 meses·discuss
The behavior of C macros is actually described by a piece of pseudocode from Dave Prosser and it is not in the standard:

* https://www.spinellis.gr/blog/20060626/

* https://www.spinellis.gr/pubs/jrnl/2006-DDJ-Finessing/html/S...

* https://gcc.gnu.org/legacy-ml/gcc-prs/2001-q1/msg00495.html
chirsz
·hace 10 meses·discuss
Demonstration video on a EL display terminal from the 1980s: https://www.bilibili.com/video/BV1cU4y1A7ud
chirsz
·hace 10 meses·discuss
It would be even better if this easter egg appeared on line 6502!