Hacker News new | past | comments | ask | show | jobs | submit | hsfzxjy's comments login

Looks cursed to me.

But TIL dollar sign $ is also valid character for identifiers.


> $ is also valid character for identifiers.

Has been like that in C since forever.


It's a common extension but it's not standard. Both C23 and C++23 only allow identifiers to start with a Unicode XID_START character, which excludes $. And with older standards, it was just Latin letters, the underscore, and explicit \u escapes.

If you look in the project's pedantic.cmake, you'll find a add_c_and_cxx_compile_options("-Wno-dollar-in-identifier-extension") just to suppress warnings about this.


VMS used $ - eg

    sts = sys$getjpiw(0, 0, 0, &jpi_itm_lst, 0, 0, 0);
    if ((sts & STS$M_SEVERITY) != STS$K_SUCCESS)
That might be why GCC originally included $ support.


I'm with you. Sometimes the symbols are ambiguous and totally unreadable.

An example is >>=, which is "inplace shr" in some languages, but "monad bind" in others. A unified ligature for >>= really confuses me.


> CJK line breaking is awful

It's not true for Chinese. Chinese allows line breaks after any characters.


My impression (again, open to correction) was that, although that's true, there are many places where breaking is not preferable, like how you can hyphenate in English but should prefer not to. Many in Japanese, basically needing a dictionary, and fewer in Chinese but still some.


I wonder whether it's relevant to this

https://news.ycombinator.com/item?id=42102506


Meanwhile, another trend among Chinese teenagers is the use of Pinyin initials to replace Chinese words. For example, 永远的神 (pinyin: Yǒngyuǎn de shén), a meme used to praise something, is often written as "yyds."

These teens have become accustomed to reading and writing sentences composed of such acronyms, and they even use them in real-life conversations—much to the annoyance of cultural conservatives. This phenomenon highlights how online communication can influence offline speech patterns.


You may self-host a vaultwarden to serve TOTP and install a website extension. To login you just click the extension for code and no need for any mobile app.


I mistakenly think the guy took over a year to boot Linux/4004 due to the comma in the post title.

(I was aware that comma represents decimal point in some regions, just didn't get this in the first place.)


Commas are used for the decimal point instead of the period character in many countries, including many European countries.


I'm from one of those European countries and still also read it as it taking over a year to boot...


We do, but most of software engineers out there hate it and use the dot, for obvious reasons (CSV in particular).

Having said that, I like our Swiss decimal group delimiter: 1'000'000.


Unless the title is internationalised somehow (possible, but I doubt it), it's "4.76" in the original article. That's what happens when submitters editorialise ;-)


Also the comma would be after 3 digits, no?

Like 1,000 and 100?


Truly. But at first sight I couldn't parse the comma as anything else except a delimiter :(


Check out what they do in India[a]. It's not beyond the realm of possibility to misremember it exactly.

a: https://en.wikipedia.org/wiki/Thousands_separator#Examples_o...


Yes, in India we use 3 places for the first and then 2 places for the rest. But comma was never a thing. Fun fact: In India we use upto Crore as mentioned in the link, but recently had to learn upto Lakh Crore as the politicians looted bigger recently and went beyond normal. :)


Hexo for generation and hosted on Github Pages.

https://i.hsfzxjy.site


> `break rust;` causing the Rust compiler to emit an internal compiler error

Is this real?



> error: internal compiler error: It looks like you're trying to break rust; would you like some ICE?

Lovely, and the word game is just great.


https://play.rust-lang.org/?version=stable&mode=debug&editio...

> error: internal compiler error: It looks like you're trying to break rust; would you like some ICE?

> --> src/main.rs:2:5

> |

> 2 | break rust;

> | ^^^^^^^^^^

> |

> = note: the compiler expectedly panicked. this is a feature.

> = note: we would appreciate a joke overview: https://github.com/rust-lang/rust/issues/43162#issuecomment-...


You can run the demo locally following the Usage part. Currently the WASM shaper feature is not enabled in any browser, so the demo won't work in web pages.


Ah, the wasm association calibrated my brain to seeing a browser window in the demo whereas it's really gedit.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: