Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
koster
1 day ago
|
parent
|
context
|
favorite
| on:
Five Years of Tinygrad
Maybe it's wrong to call it homoiconicity, but Julia code in symbolic form is a first-class citizen in a way that has no remote equivalent in Python.
Expr(:call, :+, 1, Expr(:call, :*, 2, 3)) |> eval # 7
The fact that it displays as 1 + 2 * 3 instead of (+ 1 (* 2 3)) ... meh. The whole point is to make metaprogramming easy, which Julia is quite successful at (for better or worse -- some people shouldn't be allowed near macros).
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: