HNHacker News
TopNewBestAskShowJobs

rdescartes

190 karma · joined May 21, 2016

submissionscomments
rdescartes··on Rust Glancer: Rust LSP using 100x less RAM
Could you mind to tell me what is your plan on proc-macros ? You said you have an idea to “will not require actual code execution”. On the other hand, RA current method of handling in Proc-Macros are very fragile.
rdescartes··on Show HN: 3D Mahjong, Built in CSS
Should it be named Shanghai solitaire Or Mahjong Solitaire ?
rdescartes··on Graphene OS: a security-enhanced Android build
Why firefox in andriod is "more vulnerable to exploitation" ?
rdescartes··on AGI is Mathematically Impossible 2: When Entropy Returns
From that paper:

    There exists a class of questions in life that appear remarkably simple in structure and yet contain infinite complexity in their resolution space. Consider the familiar or even archetypal inquiry: "Darling, please be honest: have I gained weight?"
rdescartes··on Structured Outputs with Ollama
If you want to get a good result, the grammar should be following the expect output from the prompt, especially if you use a small model. Normally I would manually fine-tune the prompt to output the grammar format first, and then apply the grammar in production.
rdescartes··on Structured Outputs with Ollama
If anyone needs a more powerful constrain outputs, llama.cpp support gbnf:

https://github.com/ggerganov/llama.cpp/blob/master/grammars/...

rdescartes··on Emulating an iPod Touch 2G using QEMU
I apologize for going off topic, but may I kindly ask how one might go about learning these things?
rdescartes··on Extracting the abstract syntax tree from GCC (2015)
> Another reason I love Rust. It’s very statically analyzable.

Proc-macro in Rust is very tricky to analyze statically, some are even impossible (due to non-deterministic behavior)

rdescartes··on 'Do Not Split': A Hong Kong protest film [video]
Functional constituencies are part of the Hong Kong legislature. Imagine that half of the US Congress is appointed by the President of the United States.
rdescartes··on 'Do Not Split': A Hong Kong protest film [video]
> To keep this in context, the current Hong Kong SAR government is democratically elected[6] according to the provisions of an international treaty signed by the PRC and the UK which took effect in 1997[7].

Democratically elected ? Note that hong kong functional constituency system is fully controlled by CCP.

[1] https://en.wikipedia.org/wiki/Functional_constituency_(Hong_...

rdescartes··on How fighting games use delay-based and rollback netcode (2019)
Does anyone know how Fall Guy's net code was implemented? It's very smooth with 100 participants.
rdescartes··on Comp.lang.c Google Group has been banned
unsafe { comp.lang.c }
rdescartes··on 20% of requests for Wikimedia Commons are for one image of a flower
One of my friends used the same strategy to block DDOS from China : just put "Falun Gong" on there and it was resolved instantly.
rdescartes··on More challenging projects every programmer should try
I would recommend choosing a long enough time (e.g. 3 months) to contribute an open source project you are using, especially you are not familiar to that domain. I learnt a lot from modern compiler stuffs by contribute to rust-analzyer.
rdescartes··on Dietlibc – a Libc optimized for small size
However, I think it maybe a fake proverb.

https://www.npr.org/2018/06/12/619140377/after-ivanka-trump-...

rdescartes··on Goodbye, Slack. Hello, Spectrum
Seem like you can host your own spectrum service now?

https://github.com/withspectrum/spectrum

rdescartes··on Do I really need to get out the soldering-iron again?
How the last schematic works ? What is the purpose of 100 ohms resistor and diode in series for ?