Better HN
topnewbestaskshowjobs
Log inSign up

haqreu

520 karma · joined Mar 11, 2016 (10y ago) · 32 submissions

Submissions

comment 11mo ago · link · parent

nope, not mine

comment 1y ago · link · parent

A full rewrite to the computer graphics course.

3.

Tinyrenderer second edition: software rendering in 500 lines of bare C++(haqr.eu ↗)

20 points · by haqreu · 1y ago · 2 comments

comment 1y ago · link · parent

I'll definitely test maximal SSA + DCE in tinyoptimizer when I'll get to it. For the moment I made [1] somewhat-pruned mem2reg pass, not even sure how to call it. But it indeed required to compute dominance frontiers.

[1] https://ssloy.github.io/tinyoptimizer/mem2reg/

comment 1y ago · link · parent

I removed it, no need to offend people with racial slur, especially when it is not intended.

comment 1y ago · link · parent

Hum. Did not anticipate that, thank you for pointing out.

comment 1y ago · link · parent

Thank you!

comment 1y ago · link · parent

Thank you for the reference, I'll check it.

Why not fully maximal SSA + DCE? I mean, other than timings consideration. Fully maximal does not even need any graph traversal, it is entirely local to each block.

comment 1y ago · link · parent

I'd argue that Lengauer-Tarjan is overrated. While it is neat, it's premature optimization IMHO. Fully maximal SSA (at the entry of each block insert a phi-node for each variable) + dead code elimination (we need it anyways) is much simpler.

comment 1y ago · link · parent

The "week-end" part refers to the fact that I wrote it in one week-end with little to no experience in compiler design. You can check the commit history, 12 to 14 Jan, 2024 :)

comment 1y ago · link · parent

Have you ever wondered how a compiler works, but you never found courage to find out? Then this series of articles is for you.

12.

TinyCompiler: A Compiler in a Week-End(ssloy.github.io ↗)

5 points · by haqreu · 1y ago · 1 comment

comment 6y ago · link · parent

Here is the schematics:

https://hsto.org/webt/4a/mb/ad/4ambad_bocdk6_0khdqve6grzjs.p...

two ternary multiplexers out of two dg403 chips.

comment 6y ago · link · parent

AFAIK it was never built, only partially designed.

15.

Penny, a 10 Bucks Hexapod(github.com ↗)

2 points · by haqreu · 6y ago · discuss

comment 6y ago · link · parent

This is ROM only, not a fully functioning computer.

comment 6y ago · link · parent

Fun!

comment 6y ago · link · parent

Setun is the only example, and it had a binary memory.

19.

Building a ternary computer at home: a software emulator(github.com ↗)

153 points · by haqreu · 6y ago · 30 comments

20.

DIY: Penny, a Ten Bucks Hexapod(youtu.be ↗)

1 points · by haqreu · 6y ago · discuss

21.

Stereo Rendering in Few Lines of Code(github.com ↗)

1 points · by haqreu · 7y ago · discuss

22.

A simple 3D shooter from scratch in a weekend(github.com ↗)

2 points · by haqreu · 7y ago · 2 comments

comment 7y ago · link · parent

Yes it does, however you'd need to modify CMakeLists.txt, as it is written for g++

comment 7y ago · link · parent

Funny how you did not notice that the project is focused on the GPU :)

25.

KABOOM in 180 lines of bare C++(github.com ↗)

854 points · by haqreu · 7y ago · 63 comments

26.

Naïve Math: The Mendocino Motor and Earnshaw's Theorem(habr.com ↗)

46 points · by haqreu · 7y ago · 3 comments

12