hellowww

241 posts

hellowww

hellowww

@Temporary111x

I like compilers

Katılım Eylül 2025
201 Takip Edilen10 Takipçiler
Sabitlenmiş Tweet
hellowww
hellowww@Temporary111x·
Writing a register allocator is one of the most painful thing to do in a compiler. But I think it is worth it, since register allocation probably one of the most important compiler optimization. And once you got it done, you can just forget about it, and move on with your life.
hellowww tweet media
English
1
0
2
238
hellowww
hellowww@Temporary111x·
@ChShersh Still waiting for C++ modules to be finished.
English
2
0
2
341
Dmitrii Kovanikov
Dmitrii Kovanikov@ChShersh·
GCC 16 was released some time ago with improved support for C++26, including 1. Reflection 2. Contracts 3. C++20 enabled by default 4. std::mdspan 5. std::simd 6. Improved modules support isocpp.org/blog/2026/04/g…
Dmitrii Kovanikov tweet media
English
15
13
186
14.2K
hellowww
hellowww@Temporary111x·
The screenshot is showing how to do it in GlobalISel. In SelectionDAG, you do something similiar, that is, tell legalizer to use libcall for your illegal operation (Node). for example, in your TargetLowering, do this: setOperationAction(ISD::FADD, MVT::f32, LibCall);
English
0
0
0
21
hellowww
hellowww@Temporary111x·
In LLVM, legalization is a phase where illegal instructions getting converted into instructions that is supported by your hardware. The easiest way is using libcall. 1. Tell legalizer to use libcall for your illegal instructions. 2. call setLibcallImpl in TargetLowering.
hellowww tweet mediahellowww tweet media
English
1
0
0
15
hellowww
hellowww@Temporary111x·
llvm backend is soooo under documented, someone pls fix it
English
0
0
0
13
hellowww
hellowww@Temporary111x·
@rfleury so, everyone will use 1 space for indentation.
English
2
0
2
2.9K
Keruis
Keruis@yutongwu111140·
I got expelled from the C++ community for using two-space indentation, putting if on the same line, and using macros
Keruis tweet media
English
57
16
352
46.3K
hellowww retweetledi
the tiny corp
the tiny corp@__tinygrad__·
The tinygrad spec is now merged in tinygrad/spec. Unlike every other ML compiler, all optimization is done in this IR all the way up to instruction selection.
the tiny corp tweet mediathe tiny corp tweet media
English
9
29
466
30K
Zuhaitz
Zuhaitz@zuhaitz_dev·
For this week I'll write a Forth system. And I use the term 'system' because it's both a compiler and an interpreter. It's definitely a fun concept which I recommend researching. I will do some improvements to the B compiler implementation too.
Zuhaitz@zuhaitz_dev

1st Week Project: a B compiler targeting x86-64. C was heavily influenced by B, so I decided to write a compiler for it! I followed a Honeywell 6000 manual, but it targets x64 and respects the SYS V ABI. It has C interoperability. So you can use stuff like raylib for example!

English
7
1
65
5.2K
hellowww
hellowww@Temporary111x·
@rfleury They're not even trying to fix it, the game's still buggy as hell
English
0
0
0
3
hellowww
hellowww@Temporary111x·
I found many algorithm on papers are horrible, seems like they only care about mathematical elegance
English
0
0
1
23
hellowww retweetledi
Underfox
Underfox@Underfox3·
In this paper is proposed CuLifter, a IR lifting framework that recovers register types from NVIDIA SASS binaries via constraint propagation with conflict detection, reconstructs explicit control flow, and aggregates multi-instruction patterns. arxiv.org/pdf/2604.27486
Underfox tweet mediaUnderfox tweet mediaUnderfox tweet mediaUnderfox tweet media
English
1
13
50
2.7K
hellowww
hellowww@Temporary111x·
People need to move on with this Google Summer of Code thing. Got accepted ? Cool Rejected ? Whatever, let's do another things
English
0
0
0
22
Beursact ✨
Beursact ✨@beursact·
Looking to connect with more people working across the stack, specifically in: AI / Deep Learning Systems / CUDA / Triton Compilers & MLIR Distributed Systems / Infra Performance & Low latency If you’re building or breaking things in these spaces, let's talk. #connect
English
7
0
10
208
hellowww
hellowww@Temporary111x·
@yutongwu111140 And for the parsing, you might want to review your grammar. Make sure it is easy to be parsed. If your grammar does not weird, recursive descent should be straightforward, maybe you can also look at how Kaleidoscope Tutorial do the parsing.
English
0
0
1
19
hellowww
hellowww@Temporary111x·
@yutongwu111140 Just make the logic straightforward (read one by one and maybe peek some chars ahead). The default case is a bit confusing IMO. Also, don't waste too much time on scanning/parsing, it is not worth it.
English
1
0
1
99
Keruis
Keruis@yutongwu111140·
I should find a book to read. The lexer is manageable to write, but the parser is a mess. I have no idea what it's doing, and I keep changing it over and over
Keruis tweet media
English
4
0
23
1.4K