๐Ÿ“ฆ justjake / react4blub

blub language can run react too

โ˜… 0 stars โ‘‚ 0 forks ๐Ÿ‘ 0 watching
๐Ÿ“ฅ Clone https://github.com/justjake/react4blub.git
HTTPS git clone https://github.com/justjake/react4blub.git
SSH git clone git@github.com:justjake/react4blub.git
CLI gh repo clone justjake/react4blub
Jake Teton-Landis Jake Teton-Landis going truly bananas c01e426 3 years ago ๐Ÿ“ History
๐Ÿ“‚ main View all commits โ†’
๐Ÿ“ .vscode
๐Ÿ“ c
๐Ÿ“ main
๐Ÿ“ react
๐Ÿ“ reconciler
๐Ÿ“ testdom
๐Ÿ“ web
๐Ÿ“„ .clang-format
๐Ÿ“„ .gitignore
๐Ÿ“„ go.mod
๐Ÿ“„ go.sum
๐Ÿ“„ react4c
๐Ÿ“„ README.md
๐Ÿ“„ README.md

react4blub

Some experimental attempts to re-implement the React model in "blub" languages.

  • ./c - C programming language. I learned a lot about macros and
metaprogramming, but couldn't figure out how to handle allocations for the H(comp, props, children...) return value of a component. Ideally this could just be a struct on the stack, but the variable-sized children array poses an issue I can't solve with my current (rudimentary) C skills.

  • Go (current attempt). This is going much better; I have a prototype
RenderToString working fine. I'm currently stuck on figuring out/writing the reconciliation algorithm. Go generics make this much more possible/appealing compared to what was possible in the past!