In Julia, why is @printf a macro instead of a function?

Taking a variable number of arguments is not a problem for normal Julia functions [1]. @printf is a macro so that it can parse and interpret the format string at compile time and generate custom code for that specific format string. People may not realize that C’s printf function re-parses and re-interprets the format string … Read more

Is Julia dynamically typed?

Tim Holy’s answer is quite correct, but I’ll elaborate a bit. First, let’s define some terms – you may disagree with my definitions, but at least you’ll know what I’m saying. The primary difference between static and dynamic languages, in my view, is this: in static languages, expressions have types; in dynamic languages, values have types. … Read more

Linking R and Julia?

I too have been looking at Julia ever since Doug Bates sent me a heads-up in January. But like @gsk3, I measure this on an “Rcpp scale” as I would like to pass rich R objects to Julia. And that does not seem to be supported at all right now. Julia has a nice and … Read more

What is a “symbol” in Julia?

Symbols in Julia are the same as in Lisp, Scheme or Ruby. However, the answers to those related questions are not really satisfactory, in my opinion. If you read those answers, it seems that the reason a symbol is different than a string is that strings are mutable while symbols are immutable, and symbols are … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)