Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

I had no idea that Julia was good for metaprogramming. I'm so glad I asked. Thanks for the links-added to my reading list.


sort by: page size:


Do you have any recommendations wrt getting started with Julia? It's a language I've wanted to explore a bit, but I haven't been able to find any good community resources or jumping-off points.


Julia is such a delightful language! It allows rapid prototyping and at the same time it runs fast. It has a great REPL, package manager and workflow with Revise.jl.

Yeah Julia is really easy to pick up if you're a computer science person. I came across Julia when searching for a language with good linear algebra support, then I learned it over a week while implementing a paper I was reading. Two weeks later I implemented an improvement to that paper, which turned out to be very publishable. I basically owe a whole paper to Julia, which almost felt like a free paper lol.

I'm not super familiar with Julia but it seems to use a pretty simple and easy to manipulate representation for metaprogramming purposes.

http://docs.julialang.org/en/latest/manual/metaprogramming/


try out the julia language

Julia is really fun to work with.I really love the REPL, multiple dispatch and the way you easily introspect code upto native assembly code.

This seems to be a very neat intro into Julia and a practical use case. I’ve been postponing to learn the language for a while now, but from what I heard/seen it seems to be extremely well designed.

Yes and this makes all the Lisp-like metaprogramming possible!

https://docs.julialang.org/en/v1/manual/metaprogramming/

It's pretty cool, although I haven't used it much myself


The list of features is impressive: http://julialang.org/. Concurrency, metaprogramming, efficient macros, generics, etc...

As a julia user, thanks for this! Inspiring and packed with pearls. There's a lot we can learn from the python community

Julia looks like a wonderful mix of Ruby, Python and ML (or something). I'm really eager to see this adopted by more people.

Can you give an example? I haven’t used Julia and I’m curious to hear what you mean by that.

I'm not very familiar with Julia, could you provide an example of what you're taking about in the last paragraph?

Haha yeah. Julia is just a MATLAB where you utilize metaprogramming and other code generation tools to generate hardware independent LLVM IR from generic algorithms written on abstract types. :P

the metaprogramming resources in Julia are very slick. I wrote a DSL that lets you write functions in that are then turned into synthesizable verilog modules. Implementing combinatorial logic (I haven't gotten to sequential yet) took about three days.

I've just started learning Julia and I'm also loving it so far.

It's really well designed with loads of great features (and decent libraries) for scientific computing.


If you want to see some very productive uses of metaprogramming in Julia, check out Jump.jl or DataframesMeta.jl. Both use metaprogramming to create their own little DSLs that make expressing problems in a specific form very easy.
next

Legal | privacy