News for hackers. Stuff that matters.

keyvank

Almost correct! Though the system consists of 2 tokens. BETH which is 1:1 ERC-20 receipt of burnt ETH, and WORM which has a limited cap & limited emission of 50 WORM per 30 minutes which can be mined by consuming BETH :)
nice job! now it's time for the prover part :)
So glad you liked it!
wow, i envy you! :) i have been working on a really simple self-compiling C compiler for some time, was wondering if you are interested in adding it to your OS haha. but if GCC works fine, then i don't see a reason :d
can you compile and run smth like gcc in your OS?
have done that already :(
Re:Show HN: My C compiler compiled itself on Thursday December 05, 2024 @07:19PM (#42334449)
that’s why i love HN. tnx for the links!
Re:Show HN: My C compiler compiled itself on Wednesday December 04, 2024 @02:34PM (#42321134)
the asms should be identical, so the binaries should be identical too, unless the linker is undeterministic
Re:Show HN: My C compiler compiled itself on Wednesday December 04, 2024 @09:48AM (#42317936)
perfect explanation, tnx!
Re:Show HN: My C compiler compiled itself on Wednesday December 04, 2024 @05:40AM (#42316250)
i think it just supports smth like 70% of C. I didn't bother supporting floating-point operators, or arrays (I mean, malloc and pointers are fine) or etc. I just wanted smth small and self-hosting!
Re:Show HN: My C compiler compiled itself on Wednesday December 04, 2024 @05:39AM (#42316237)
i learnt that building a c compiler isn't that hard, just takes time :)
Re:Show HN: My C compiler compiled itself on Wednesday December 04, 2024 @05:37AM (#42316225)
thanks man!

yes that makes sense. unfortunately 30cc is not able to compile that syntax, and will probably give type-checker errors when passing a void* to pointer of another type. but will implement it sometime soon!

Re:Show HN: My C compiler compiled itself on Wednesday December 04, 2024 @02:44AM (#42315313)
Thanks! The third step proves that the assembly code generated by the second-step compiler is valid even when compiling a big C project.
Re:Show HN: My C compiler compiled itself on Tuesday December 03, 2024 @06:15PM (#42312758)
tnx!
Re:Show HN: My C compiler compiled itself on Tuesday December 03, 2024 @06:15PM (#42312757)
tnx!

Ask HN: Will someone here review my computer-science book?

I finally found a publisher willing to publish my book (CRC Press)! As part of their process, they asked me to introduce them 5 reviewers, preferably 'previous authors with similar books or journal articles.' Since I'm a first-time author, I don't know anyone who could do this for me. I was curious if there are folks here who could help me with this?Find the book here: https://keyvan.me/tsp

( Read More... | no comments | on HN )

Older »