Better HN
topnewbestaskshowjobs
Log inSign up

rdescartes

190 karma · joined May 21, 2016 (10y ago) · 23 submissions

Submissions

comment 3mo ago · link · parent

If it’s possible, that would be awesome. Do you mean that the author of the proc macro provides that information through attributes?

(Disclosure: I originally implemented the proc-macro part of RA.)

comment 3mo ago · link · parent

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.

comment 9mo ago · link · parent

Should it be named Shanghai solitaire Or Mahjong Solitaire ?

comment 1y ago · link · parent

Why firefox in andriod is "more vulnerable to exploitation" ?

comment 1y ago · link · parent

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?"

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

If anyone needs a more powerful constrain outputs, llama.cpp support gbnf:

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

comment 2y ago · link · parent

I apologize for going off topic, but may I kindly ask how one might go about learning these things?

9.

Rust-Analyzer Drop “Experimental”(github.com ↗)

3 points · by rdescartes · 5y ago · discuss

comment 5y ago · link · parent

> 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)

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

> 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_...

comment 5y ago · link · parent

Does anyone know how Fall Guy's net code was implemented? It's very smooth with 100 participants.

comment 5y ago · link · parent

unsafe { comp.lang.c }

comment 5y ago · link · parent

One of my friends used the same strategy to block DDOS from China : just put "Falun Gong" on there and it was resolved instantly.

16.

Hacking [Censored] [Censored] and [Censored](youtube.com ↗)

2 points · by rdescartes · 5y ago · 1 comment

comment 5y ago · link · parent

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.

comment 7y ago · link · parent

However, I think it maybe a fake proverb.

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

19.

Hong Kong's Protestors Have Their Own Special Slang(time.com ↗)

2 points · by rdescartes · 7y ago · discuss

20.

Sharpest bread kitchen knife in the world [video](youtube.com ↗)

19 points · by rdescartes · 7y ago · 8 comments

comment 7y ago · link · parent

Seem like you can host your own spectrum service now?

https://github.com/withspectrum/spectrum

comment 7y ago · link · parent

How the last schematic works ? What is the purpose of 100 ohms resistor and diode in series for ?