Live data from Hacker News

Julia Macros for Beginners

jkrumbiegel.com

1–10 of 36 posts

Re: Julia Macros for Beginners

#3
As always, I'm very glad to see that structural, Common Lisp-style macro systems with the whole language available for macro construction, have been successfully adopted in other languages to the point where it's possible to explain them without a single mention of Lisp in the article, or even better - where a mention of Lisp anywhere else except for the very beginning would make the article worse by making a unnecessary detour.

pg's article on the topic, "What Made Lisp Different", [0] has aged poorly, and points 8 and 9 it makes (a notation for code using trees of symbols and the whole language always available) are no longer Lisp-specific. The final point, about "inventing a new dialect of Lisp", doesn't hold true either - as seen here, Julia is doing just fine not claiming to be another dialect of Lisp, even though many sources mention directly that it's Lisp-inspired.

Congrats to Julia people for the macro system and to the author for the article!

[0] http://www.paulgraham.com/diff.html

Re: Julia Macros for Beginners

#4
post #3

As always, I'm very glad to see that structural, Common Lisp-style macro systems with the whole language available for macro construction, have been successfully adopted in other languages to the point where it's possible to explain them without a single mention of Lisp in the article, or even better - where a mention of Lisp anywhere else except for the very beginning would make the article worse by making a unneces…

One could argue that Julia is just Lisp with a syntax that appeals more to popular taste.

There is also a secret option to get into a lisp repl in Julia "julia --lisp".

Re: Julia Macros for Beginners

#5
post #4
post #3

As always, I'm very glad to see that structural, Common Lisp-style macro systems with the whole language available for macro construction, have been successfully adopted in other languages to the point where it's possible to explain them without a single mention of Lisp in the article, or even better - where a mention of Lisp anywhere else except for the very beginning would make the article worse by making a unneces…

One could argue that Julia is just Lisp with a syntax that appeals more to popular taste. There is also a secret option to get into a lisp repl in Julia "julia --lisp".

Sure, that's always an option - same as Dylan, in a way!

Re: Julia Macros for Beginners

#6
post #5
post #4

Earlier quoted context omitted.

One could argue that Julia is just Lisp with a syntax that appeals more to popular taste. There is also a secret option to get into a lisp repl in Julia "julia --lisp".

Sure, that's always an option - same as Dylan, in a way!

Julia does take inspiration from Dylan and Scheme(the parser is even written in it) so it makes sense I guess

Re: Julia Macros for Beginners

#7
post #4
post #3

As always, I'm very glad to see that structural, Common Lisp-style macro systems with the whole language available for macro construction, have been successfully adopted in other languages to the point where it's possible to explain them without a single mention of Lisp in the article, or even better - where a mention of Lisp anywhere else except for the very beginning would make the article worse by making a unneces…

One could argue that Julia is just Lisp with a syntax that appeals more to popular taste. There is also a secret option to get into a lisp repl in Julia "julia --lisp".

> There is also a secret option to get into a lisp repl in Julia "julia --lisp".

Wtf....... what? I just tried it, it's true. Is this some easter egg?

Re: Julia Macros for Beginners

#8
post #7
post #4

Earlier quoted context omitted.

One could argue that Julia is just Lisp with a syntax that appeals more to popular taste. There is also a secret option to get into a lisp repl in Julia "julia --lisp".

> There is also a secret option to get into a lisp repl in Julia "julia --lisp". Wtf....... what? I just tried it, it's true. Is this some easter egg?

Julia's parser is written in Scheme using femtolisp. Look for *.scm files and the 'flisp' directory in the repo[1].

[1] https://github.com/JuliaLang/julia/tree/master/src

Re: Julia Macros for Beginners

#9
post #4
post #3

As always, I'm very glad to see that structural, Common Lisp-style macro systems with the whole language available for macro construction, have been successfully adopted in other languages to the point where it's possible to explain them without a single mention of Lisp in the article, or even better - where a mention of Lisp anywhere else except for the very beginning would make the article worse by making a unneces…

One could argue that Julia is just Lisp with a syntax that appeals more to popular taste. There is also a secret option to get into a lisp repl in Julia "julia --lisp".

yeah it doesn't take much eye squinting to see lisp in julia. given these similarities i wonder if julia users could start to appreciate the s-expression syntax. i come from matlab then python background and i have come to really enjoy the s-expression syntax. modern IDE tools have made s-expression code as readable as pythonic pseudo-code-like syntax while affording the programmer unrivaled editing power
Post reply on HN